hadoop_1.1.1.xml 3.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157
  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 Mon Dec 03 07:18:18 UTC 2012 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.1.1"
  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-commons-net.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-netrexx.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-oro.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-stylebook.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-nodeps.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jdepend.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-commons-logging.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/xml-apis.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-antlr.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-weblogic.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-starteam.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-trax.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jai.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-javamail.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-junit.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jsch.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jmf.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-swing.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-testutil.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/xercesImpl.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.1 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start interface org.apache.hadoop.HadoopVersionAnnotation -->
  13. <interface name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <method name="version" return="java.lang.String"
  18. abstract="false" native="false" synchronized="false"
  19. static="false" final="false" visibility="public"
  20. deprecated="not deprecated">
  21. <doc>
  22. <![CDATA[Get the Hadoop version
  23. @return the version string "0.6.3-dev"]]>
  24. </doc>
  25. </method>
  26. <method name="user" return="java.lang.String"
  27. abstract="false" native="false" synchronized="false"
  28. static="false" final="false" visibility="public"
  29. deprecated="not deprecated">
  30. <doc>
  31. <![CDATA[Get the username that compiled Hadoop.]]>
  32. </doc>
  33. </method>
  34. <method name="date" return="java.lang.String"
  35. abstract="false" native="false" synchronized="false"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <doc>
  39. <![CDATA[Get the date when Hadoop was compiled.
  40. @return the date in unix 'date' format]]>
  41. </doc>
  42. </method>
  43. <method name="url" return="java.lang.String"
  44. abstract="false" native="false" synchronized="false"
  45. static="false" final="false" visibility="public"
  46. deprecated="not deprecated">
  47. <doc>
  48. <![CDATA[Get the url for the subversion repository.]]>
  49. </doc>
  50. </method>
  51. <method name="revision" return="java.lang.String"
  52. abstract="false" native="false" synchronized="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <doc>
  56. <![CDATA[Get the subversion revision.
  57. @return the revision number as a string (eg. "451451")]]>
  58. </doc>
  59. </method>
  60. <method name="srcChecksum" return="java.lang.String"
  61. abstract="false" native="false" synchronized="false"
  62. static="false" final="false" visibility="public"
  63. deprecated="not deprecated">
  64. <doc>
  65. <![CDATA[Get a checksum of the source files from which
  66. Hadoop was compiled.
  67. @return a string that uniquely identifies the source]]>
  68. </doc>
  69. </method>
  70. <doc>
  71. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  72. </doc>
  73. </interface>
  74. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  75. </package>
  76. <package name="org.apache.hadoop.classification">
  77. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  78. <class name="InterfaceAudience" extends="java.lang.Object"
  79. abstract="false"
  80. static="false" final="false" visibility="public"
  81. deprecated="not deprecated">
  82. <doc>
  83. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  84. </doc>
  85. </class>
  86. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  87. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  88. <interface name="InterfaceAudience.LimitedPrivate" abstract="true"
  89. static="true" final="false" visibility="public"
  90. deprecated="not deprecated">
  91. <implements name="java.lang.annotation.Annotation"/>
  92. <method name="value" return="java.lang.String[]"
  93. abstract="false" native="false" synchronized="false"
  94. static="false" final="false" visibility="public"
  95. deprecated="not deprecated">
  96. </method>
  97. <doc>
  98. <![CDATA[Intended only for the project(s) specified in the annotation.
  99. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  100. </doc>
  101. </interface>
  102. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  103. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  104. <interface name="InterfaceAudience.Private" abstract="true"
  105. static="true" final="false" visibility="public"
  106. deprecated="not deprecated">
  107. <implements name="java.lang.annotation.Annotation"/>
  108. <doc>
  109. <![CDATA[Intended for use only within Hadoop itself.]]>
  110. </doc>
  111. </interface>
  112. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  113. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  114. <interface name="InterfaceAudience.Public" abstract="true"
  115. static="true" final="false" visibility="public"
  116. deprecated="not deprecated">
  117. <implements name="java.lang.annotation.Annotation"/>
  118. <doc>
  119. <![CDATA[Intended for use by any project or application.]]>
  120. </doc>
  121. </interface>
  122. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  123. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  124. <class name="InterfaceStability" extends="java.lang.Object"
  125. abstract="false"
  126. static="false" final="false" visibility="public"
  127. deprecated="not deprecated">
  128. <constructor name="InterfaceStability"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. </constructor>
  132. <doc>
  133. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  134. class or method not changing over time.]]>
  135. </doc>
  136. </class>
  137. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  138. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  139. <interface name="InterfaceStability.Evolving" abstract="true"
  140. static="true" final="false" visibility="public"
  141. deprecated="not deprecated">
  142. <implements name="java.lang.annotation.Annotation"/>
  143. <doc>
  144. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  145. </doc>
  146. </interface>
  147. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  148. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  149. <interface name="InterfaceStability.Stable" abstract="true"
  150. static="true" final="false" visibility="public"
  151. deprecated="not deprecated">
  152. <implements name="java.lang.annotation.Annotation"/>
  153. <doc>
  154. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  155. can break compatibility only at major release (ie. at m.0).]]>
  156. </doc>
  157. </interface>
  158. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  159. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  160. <interface name="InterfaceStability.Unstable" abstract="true"
  161. static="true" final="false" visibility="public"
  162. deprecated="not deprecated">
  163. <implements name="java.lang.annotation.Annotation"/>
  164. <doc>
  165. <![CDATA[No guarantee is provided as to reliability or stability across any
  166. level of release granularity.]]>
  167. </doc>
  168. </interface>
  169. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  170. </package>
  171. <package name="org.apache.hadoop.conf">
  172. <!-- start interface org.apache.hadoop.conf.Configurable -->
  173. <interface name="Configurable" abstract="true"
  174. static="false" final="false" visibility="public"
  175. deprecated="not deprecated">
  176. <method name="setConf"
  177. abstract="false" native="false" synchronized="false"
  178. static="false" final="false" visibility="public"
  179. deprecated="not deprecated">
  180. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  181. <doc>
  182. <![CDATA[Set the configuration to be used by this object.]]>
  183. </doc>
  184. </method>
  185. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  186. abstract="false" native="false" synchronized="false"
  187. static="false" final="false" visibility="public"
  188. deprecated="not deprecated">
  189. <doc>
  190. <![CDATA[Return the configuration used by this object.]]>
  191. </doc>
  192. </method>
  193. <doc>
  194. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  195. </doc>
  196. </interface>
  197. <!-- end interface org.apache.hadoop.conf.Configurable -->
  198. <!-- start class org.apache.hadoop.conf.Configuration -->
  199. <class name="Configuration" extends="java.lang.Object"
  200. abstract="false"
  201. static="false" final="false" visibility="public"
  202. deprecated="not deprecated">
  203. <implements name="java.lang.Iterable"/>
  204. <implements name="org.apache.hadoop.io.Writable"/>
  205. <constructor name="Configuration"
  206. static="false" final="false" visibility="public"
  207. deprecated="not deprecated">
  208. <doc>
  209. <![CDATA[A new configuration.]]>
  210. </doc>
  211. </constructor>
  212. <constructor name="Configuration" type="boolean"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <doc>
  216. <![CDATA[A new configuration where the behavior of reading from the default
  217. resources can be turned off.
  218. If the parameter {@code loadDefaults} is false, the new instance
  219. will not load resources from the default files.
  220. @param loadDefaults specifies whether to load from the default files]]>
  221. </doc>
  222. </constructor>
  223. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  224. static="false" final="false" visibility="public"
  225. deprecated="not deprecated">
  226. <doc>
  227. <![CDATA[A new configuration with the same settings cloned from another.
  228. @param other the configuration from which to clone settings.]]>
  229. </doc>
  230. </constructor>
  231. <method name="addDefaultResource"
  232. abstract="false" native="false" synchronized="true"
  233. static="true" final="false" visibility="public"
  234. deprecated="not deprecated">
  235. <param name="name" type="java.lang.String"/>
  236. <doc>
  237. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  238. added.
  239. @param name file name. File should be present in the classpath.]]>
  240. </doc>
  241. </method>
  242. <method name="addResource"
  243. abstract="false" native="false" synchronized="false"
  244. static="false" final="false" visibility="public"
  245. deprecated="not deprecated">
  246. <param name="name" type="java.lang.String"/>
  247. <doc>
  248. <![CDATA[Add a configuration resource.
  249. The properties of this resource will override properties of previously
  250. added resources, unless they were marked <a href="#Final">final</a>.
  251. @param name resource to be added, the classpath is examined for a file
  252. with that name.]]>
  253. </doc>
  254. </method>
  255. <method name="addResource"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="url" type="java.net.URL"/>
  260. <doc>
  261. <![CDATA[Add a configuration resource.
  262. The properties of this resource will override properties of previously
  263. added resources, unless they were marked <a href="#Final">final</a>.
  264. @param url url of the resource to be added, the local filesystem is
  265. examined directly to find the resource, without referring to
  266. the classpath.]]>
  267. </doc>
  268. </method>
  269. <method name="addResource"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="file" type="org.apache.hadoop.fs.Path"/>
  274. <doc>
  275. <![CDATA[Add a configuration resource.
  276. The properties of this resource will override properties of previously
  277. added resources, unless they were marked <a href="#Final">final</a>.
  278. @param file file-path of resource to be added, the local filesystem is
  279. examined directly to find the resource, without referring to
  280. the classpath.]]>
  281. </doc>
  282. </method>
  283. <method name="addResource"
  284. abstract="false" native="false" synchronized="false"
  285. static="false" final="false" visibility="public"
  286. deprecated="not deprecated">
  287. <param name="in" type="java.io.InputStream"/>
  288. <doc>
  289. <![CDATA[Add a configuration resource.
  290. The properties of this resource will override properties of previously
  291. added resources, unless they were marked <a href="#Final">final</a>.
  292. @param in InputStream to deserialize the object from.]]>
  293. </doc>
  294. </method>
  295. <method name="reloadConfiguration"
  296. abstract="false" native="false" synchronized="true"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <doc>
  300. <![CDATA[Reload configuration from previously added resources.
  301. This method will clear all the configuration read from the added
  302. resources, and final parameters. This will make the resources to
  303. be read again before accessing the values. Values that are added
  304. via set methods will overlay values read from the resources.]]>
  305. </doc>
  306. </method>
  307. <method name="get" return="java.lang.String"
  308. abstract="false" native="false" synchronized="false"
  309. static="false" final="false" visibility="public"
  310. deprecated="not deprecated">
  311. <param name="name" type="java.lang.String"/>
  312. <doc>
  313. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  314. no such property exists.
  315. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  316. before being returned.
  317. @param name the property name.
  318. @return the value of the <code>name</code> property,
  319. or null if no such property exists.]]>
  320. </doc>
  321. </method>
  322. <method name="getRaw" return="java.lang.String"
  323. abstract="false" native="false" synchronized="false"
  324. static="false" final="false" visibility="public"
  325. deprecated="not deprecated">
  326. <param name="name" type="java.lang.String"/>
  327. <doc>
  328. <![CDATA[Get the value of the <code>name</code> property, without doing
  329. <a href="#VariableExpansion">variable expansion</a>.
  330. @param name the property name.
  331. @return the value of the <code>name</code> property,
  332. or null if no such property exists.]]>
  333. </doc>
  334. </method>
  335. <method name="set"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="name" type="java.lang.String"/>
  340. <param name="value" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  343. @param name property name.
  344. @param value property value.]]>
  345. </doc>
  346. </method>
  347. <method name="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 give
  802. {@link OutputStream}.
  803. @param out the output stream to write to.]]>
  804. </doc>
  805. </method>
  806. <method name="dumpConfiguration"
  807. abstract="false" native="false" synchronized="false"
  808. static="true" final="false" visibility="public"
  809. deprecated="not deprecated">
  810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  811. <param name="out" type="java.io.Writer"/>
  812. <exception name="IOException" type="java.io.IOException"/>
  813. <doc>
  814. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  815. the given {@link Writer}
  816. The format of the output would be
  817. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  818. key2.isFinal,key2.resource}... ] }
  819. It does not output the parameters of the configuration object which is
  820. loaded from an input stream.
  821. @param out the Writer to write to
  822. @throws IOException]]>
  823. </doc>
  824. </method>
  825. <method name="getClassLoader" return="java.lang.ClassLoader"
  826. abstract="false" native="false" synchronized="false"
  827. static="false" final="false" visibility="public"
  828. deprecated="not deprecated">
  829. <doc>
  830. <![CDATA[Get the {@link ClassLoader} for this job.
  831. @return the correct class loader.]]>
  832. </doc>
  833. </method>
  834. <method name="setClassLoader"
  835. abstract="false" native="false" synchronized="false"
  836. static="false" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="classLoader" type="java.lang.ClassLoader"/>
  839. <doc>
  840. <![CDATA[Set the class loader that will be used to load the various objects.
  841. @param classLoader the new class loader.]]>
  842. </doc>
  843. </method>
  844. <method name="toString" return="java.lang.String"
  845. abstract="false" native="false" synchronized="false"
  846. static="false" final="false" visibility="public"
  847. deprecated="not deprecated">
  848. </method>
  849. <method name="setQuietMode"
  850. abstract="false" native="false" synchronized="true"
  851. static="false" final="false" visibility="public"
  852. deprecated="not deprecated">
  853. <param name="quietmode" type="boolean"/>
  854. <doc>
  855. <![CDATA[Set the quietness-mode.
  856. In the quiet-mode, error and informational messages might not be logged.
  857. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  858. to turn it off.]]>
  859. </doc>
  860. </method>
  861. <method name="main"
  862. abstract="false" native="false" synchronized="false"
  863. static="true" final="false" visibility="public"
  864. deprecated="not deprecated">
  865. <param name="args" type="java.lang.String[]"/>
  866. <exception name="Exception" type="java.lang.Exception"/>
  867. <doc>
  868. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  869. </doc>
  870. </method>
  871. <method name="readFields"
  872. abstract="false" native="false" synchronized="false"
  873. static="false" final="false" visibility="public"
  874. deprecated="not deprecated">
  875. <param name="in" type="java.io.DataInput"/>
  876. <exception name="IOException" type="java.io.IOException"/>
  877. </method>
  878. <method name="write"
  879. abstract="false" native="false" synchronized="false"
  880. static="false" final="false" visibility="public"
  881. deprecated="not deprecated">
  882. <param name="out" type="java.io.DataOutput"/>
  883. <exception name="IOException" type="java.io.IOException"/>
  884. </method>
  885. <method name="getValByRegex" return="java.util.Map"
  886. abstract="false" native="false" synchronized="false"
  887. static="false" final="false" visibility="public"
  888. deprecated="not deprecated">
  889. <param name="regex" type="java.lang.String"/>
  890. <doc>
  891. <![CDATA[get keys matching the the regex
  892. @param regex
  893. @return Map<String,String> with matching keys]]>
  894. </doc>
  895. </method>
  896. <doc>
  897. <![CDATA[Provides access to configuration parameters.
  898. <h4 id="Resources">Resources</h4>
  899. <p>Configurations are specified by resources. A resource contains a set of
  900. name/value pairs as XML data. Each resource is named by either a
  901. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  902. then the classpath is examined for a file with that name. If named by a
  903. <code>Path</code>, then the local filesystem is examined directly, without
  904. referring to the classpath.
  905. <p>Unless explicitly turned off, Hadoop by default specifies two
  906. resources, loaded in-order from the classpath: <ol>
  907. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  908. </tt>: Read-only defaults for hadoop.</li>
  909. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  910. installation.</li>
  911. </ol>
  912. Applications may add additional resources, which are loaded
  913. subsequent to these resources in the order they are added.
  914. <h4 id="FinalParams">Final Parameters</h4>
  915. <p>Configuration parameters may be declared <i>final</i>.
  916. Once a resource declares a value final, no subsequently-loaded
  917. resource can alter that value.
  918. For example, one might define a final parameter with:
  919. <tt><pre>
  920. &lt;property&gt;
  921. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  922. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  923. <b>&lt;final&gt;true&lt;/final&gt;</b>
  924. &lt;/property&gt;</pre></tt>
  925. Administrators typically define parameters as final in
  926. <tt>core-site.xml</tt> for values that user applications may not alter.
  927. <h4 id="VariableExpansion">Variable Expansion</h4>
  928. <p>Value strings are first processed for <i>variable expansion</i>. The
  929. available properties are:<ol>
  930. <li>Other properties defined in this Configuration; and, if a name is
  931. undefined here,</li>
  932. <li>Properties in {@link System#getProperties()}.</li>
  933. </ol>
  934. <p>For example, if a configuration resource contains the following property
  935. definitions:
  936. <tt><pre>
  937. &lt;property&gt;
  938. &lt;name&gt;basedir&lt;/name&gt;
  939. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  940. &lt;/property&gt;
  941. &lt;property&gt;
  942. &lt;name&gt;tempdir&lt;/name&gt;
  943. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  944. &lt;/property&gt;</pre></tt>
  945. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  946. will be resolved to another property in this Configuration, while
  947. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  948. of the System property with that name.]]>
  949. </doc>
  950. </class>
  951. <!-- end class org.apache.hadoop.conf.Configuration -->
  952. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  953. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  954. abstract="false"
  955. static="true" final="false" visibility="public"
  956. deprecated="not deprecated">
  957. <constructor name="Configuration.IntegerRanges"
  958. static="false" final="false" visibility="public"
  959. deprecated="not deprecated">
  960. </constructor>
  961. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  962. static="false" final="false" visibility="public"
  963. deprecated="not deprecated">
  964. </constructor>
  965. <method name="isIncluded" return="boolean"
  966. abstract="false" native="false" synchronized="false"
  967. static="false" final="false" visibility="public"
  968. deprecated="not deprecated">
  969. <param name="value" type="int"/>
  970. <doc>
  971. <![CDATA[Is the given value in the set of ranges
  972. @param value the value to check
  973. @return is the value in the ranges?]]>
  974. </doc>
  975. </method>
  976. <method name="toString" return="java.lang.String"
  977. abstract="false" native="false" synchronized="false"
  978. static="false" final="false" visibility="public"
  979. deprecated="not deprecated">
  980. </method>
  981. <doc>
  982. <![CDATA[A class that represents a set of positive integer ranges. It parses
  983. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  984. the lower/upper bounds are separated by dash. Either the lower or upper
  985. bound may be omitted meaning all values up to or over. So the string
  986. above means 2, 3, 5, and 7, 8, 9, ...]]>
  987. </doc>
  988. </class>
  989. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  990. <!-- start class org.apache.hadoop.conf.Configured -->
  991. <class name="Configured" extends="java.lang.Object"
  992. abstract="false"
  993. static="false" final="false" visibility="public"
  994. deprecated="not deprecated">
  995. <implements name="org.apache.hadoop.conf.Configurable"/>
  996. <constructor name="Configured"
  997. static="false" final="false" visibility="public"
  998. deprecated="not deprecated">
  999. <doc>
  1000. <![CDATA[Construct a Configured.]]>
  1001. </doc>
  1002. </constructor>
  1003. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1004. static="false" final="false" visibility="public"
  1005. deprecated="not deprecated">
  1006. <doc>
  1007. <![CDATA[Construct a Configured.]]>
  1008. </doc>
  1009. </constructor>
  1010. <method name="setConf"
  1011. abstract="false" native="false" synchronized="false"
  1012. static="false" final="false" visibility="public"
  1013. deprecated="not deprecated">
  1014. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1015. </method>
  1016. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1017. abstract="false" native="false" synchronized="false"
  1018. static="false" final="false" visibility="public"
  1019. deprecated="not deprecated">
  1020. </method>
  1021. <doc>
  1022. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1023. </doc>
  1024. </class>
  1025. <!-- end class org.apache.hadoop.conf.Configured -->
  1026. </package>
  1027. <package name="org.apache.hadoop.fs">
  1028. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1029. <class name="BlockLocation" extends="java.lang.Object"
  1030. abstract="false"
  1031. static="false" final="false" visibility="public"
  1032. deprecated="not deprecated">
  1033. <implements name="org.apache.hadoop.io.Writable"/>
  1034. <constructor name="BlockLocation"
  1035. static="false" final="false" visibility="public"
  1036. deprecated="not deprecated">
  1037. <doc>
  1038. <![CDATA[Default Constructor]]>
  1039. </doc>
  1040. </constructor>
  1041. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1042. static="false" final="false" visibility="public"
  1043. deprecated="not deprecated">
  1044. <doc>
  1045. <![CDATA[Constructor with host, name, offset and length]]>
  1046. </doc>
  1047. </constructor>
  1048. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1049. static="false" final="false" visibility="public"
  1050. deprecated="not deprecated">
  1051. <doc>
  1052. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1053. </doc>
  1054. </constructor>
  1055. <method name="getHosts" return="java.lang.String[]"
  1056. abstract="false" native="false" synchronized="false"
  1057. static="false" final="false" visibility="public"
  1058. deprecated="not deprecated">
  1059. <exception name="IOException" type="java.io.IOException"/>
  1060. <doc>
  1061. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1062. </doc>
  1063. </method>
  1064. <method name="getNames" return="java.lang.String[]"
  1065. abstract="false" native="false" synchronized="false"
  1066. static="false" final="false" visibility="public"
  1067. deprecated="not deprecated">
  1068. <exception name="IOException" type="java.io.IOException"/>
  1069. <doc>
  1070. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1071. </doc>
  1072. </method>
  1073. <method name="getTopologyPaths" return="java.lang.String[]"
  1074. abstract="false" native="false" synchronized="false"
  1075. static="false" final="false" visibility="public"
  1076. deprecated="not deprecated">
  1077. <exception name="IOException" type="java.io.IOException"/>
  1078. <doc>
  1079. <![CDATA[Get the list of network topology paths for each of the hosts.
  1080. The last component of the path is the host.]]>
  1081. </doc>
  1082. </method>
  1083. <method name="getOffset" return="long"
  1084. abstract="false" native="false" synchronized="false"
  1085. static="false" final="false" visibility="public"
  1086. deprecated="not deprecated">
  1087. <doc>
  1088. <![CDATA[Get the start offset of file associated with this block]]>
  1089. </doc>
  1090. </method>
  1091. <method name="getLength" return="long"
  1092. abstract="false" native="false" synchronized="false"
  1093. static="false" final="false" visibility="public"
  1094. deprecated="not deprecated">
  1095. <doc>
  1096. <![CDATA[Get the length of the block]]>
  1097. </doc>
  1098. </method>
  1099. <method name="setOffset"
  1100. abstract="false" native="false" synchronized="false"
  1101. static="false" final="false" visibility="public"
  1102. deprecated="not deprecated">
  1103. <param name="offset" type="long"/>
  1104. <doc>
  1105. <![CDATA[Set the start offset of file associated with this block]]>
  1106. </doc>
  1107. </method>
  1108. <method name="setLength"
  1109. abstract="false" native="false" synchronized="false"
  1110. static="false" final="false" visibility="public"
  1111. deprecated="not deprecated">
  1112. <param name="length" type="long"/>
  1113. <doc>
  1114. <![CDATA[Set the length of block]]>
  1115. </doc>
  1116. </method>
  1117. <method name="setHosts"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="false" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. <param name="hosts" type="java.lang.String[]"/>
  1122. <exception name="IOException" type="java.io.IOException"/>
  1123. <doc>
  1124. <![CDATA[Set the hosts hosting this block]]>
  1125. </doc>
  1126. </method>
  1127. <method name="setNames"
  1128. abstract="false" native="false" synchronized="false"
  1129. static="false" final="false" visibility="public"
  1130. deprecated="not deprecated">
  1131. <param name="names" type="java.lang.String[]"/>
  1132. <exception name="IOException" type="java.io.IOException"/>
  1133. <doc>
  1134. <![CDATA[Set the names (host:port) hosting this block]]>
  1135. </doc>
  1136. </method>
  1137. <method name="setTopologyPaths"
  1138. abstract="false" native="false" synchronized="false"
  1139. static="false" final="false" visibility="public"
  1140. deprecated="not deprecated">
  1141. <param name="topologyPaths" type="java.lang.String[]"/>
  1142. <exception name="IOException" type="java.io.IOException"/>
  1143. <doc>
  1144. <![CDATA[Set the network topology paths of the hosts]]>
  1145. </doc>
  1146. </method>
  1147. <method name="write"
  1148. abstract="false" native="false" synchronized="false"
  1149. static="false" final="false" visibility="public"
  1150. deprecated="not deprecated">
  1151. <param name="out" type="java.io.DataOutput"/>
  1152. <exception name="IOException" type="java.io.IOException"/>
  1153. <doc>
  1154. <![CDATA[Implement write of Writable]]>
  1155. </doc>
  1156. </method>
  1157. <method name="readFields"
  1158. abstract="false" native="false" synchronized="false"
  1159. static="false" final="false" visibility="public"
  1160. deprecated="not deprecated">
  1161. <param name="in" type="java.io.DataInput"/>
  1162. <exception name="IOException" type="java.io.IOException"/>
  1163. <doc>
  1164. <![CDATA[Implement readFields of Writable]]>
  1165. </doc>
  1166. </method>
  1167. <method name="toString" return="java.lang.String"
  1168. abstract="false" native="false" synchronized="false"
  1169. static="false" final="false" visibility="public"
  1170. deprecated="not deprecated">
  1171. </method>
  1172. </class>
  1173. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1174. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1175. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1176. abstract="false"
  1177. static="false" final="false" visibility="public"
  1178. deprecated="not deprecated">
  1179. <implements name="org.apache.hadoop.fs.Seekable"/>
  1180. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1181. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1182. static="false" final="false" visibility="public"
  1183. deprecated="not deprecated">
  1184. <doc>
  1185. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1186. with the specified buffer size,
  1187. and saves its argument, the input stream
  1188. <code>in</code>, for later use. An internal
  1189. buffer array of length <code>size</code>
  1190. is created and stored in <code>buf</code>.
  1191. @param in the underlying input stream.
  1192. @param size the buffer size.
  1193. @exception IllegalArgumentException if size <= 0.]]>
  1194. </doc>
  1195. </constructor>
  1196. <method name="getPos" return="long"
  1197. abstract="false" native="false" synchronized="false"
  1198. static="false" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. <exception name="IOException" type="java.io.IOException"/>
  1201. </method>
  1202. <method name="skip" return="long"
  1203. abstract="false" native="false" synchronized="false"
  1204. static="false" final="false" visibility="public"
  1205. deprecated="not deprecated">
  1206. <param name="n" type="long"/>
  1207. <exception name="IOException" type="java.io.IOException"/>
  1208. </method>
  1209. <method name="seek"
  1210. abstract="false" native="false" synchronized="false"
  1211. static="false" final="false" visibility="public"
  1212. deprecated="not deprecated">
  1213. <param name="pos" type="long"/>
  1214. <exception name="IOException" type="java.io.IOException"/>
  1215. </method>
  1216. <method name="seekToNewSource" return="boolean"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="targetPos" type="long"/>
  1221. <exception name="IOException" type="java.io.IOException"/>
  1222. </method>
  1223. <method name="read" return="int"
  1224. abstract="false" native="false" synchronized="false"
  1225. static="false" final="false" visibility="public"
  1226. deprecated="not deprecated">
  1227. <param name="position" type="long"/>
  1228. <param name="buffer" type="byte[]"/>
  1229. <param name="offset" type="int"/>
  1230. <param name="length" type="int"/>
  1231. <exception name="IOException" type="java.io.IOException"/>
  1232. </method>
  1233. <method name="readFully"
  1234. abstract="false" native="false" synchronized="false"
  1235. static="false" final="false" visibility="public"
  1236. deprecated="not deprecated">
  1237. <param name="position" type="long"/>
  1238. <param name="buffer" type="byte[]"/>
  1239. <param name="offset" type="int"/>
  1240. <param name="length" type="int"/>
  1241. <exception name="IOException" type="java.io.IOException"/>
  1242. </method>
  1243. <method name="readFully"
  1244. abstract="false" native="false" synchronized="false"
  1245. static="false" final="false" visibility="public"
  1246. deprecated="not deprecated">
  1247. <param name="position" type="long"/>
  1248. <param name="buffer" type="byte[]"/>
  1249. <exception name="IOException" type="java.io.IOException"/>
  1250. </method>
  1251. <doc>
  1252. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1253. </doc>
  1254. </class>
  1255. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1256. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1257. <class name="ChecksumException" extends="java.io.IOException"
  1258. abstract="false"
  1259. static="false" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <constructor name="ChecksumException" type="java.lang.String, long"
  1262. static="false" final="false" visibility="public"
  1263. deprecated="not deprecated">
  1264. </constructor>
  1265. <method name="getPos" return="long"
  1266. abstract="false" native="false" synchronized="false"
  1267. static="false" final="false" visibility="public"
  1268. deprecated="not deprecated">
  1269. </method>
  1270. <doc>
  1271. <![CDATA[Thrown for checksum errors.]]>
  1272. </doc>
  1273. </class>
  1274. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1275. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1276. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1277. abstract="true"
  1278. static="false" final="false" visibility="public"
  1279. deprecated="not deprecated">
  1280. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1281. static="false" final="false" visibility="public"
  1282. deprecated="not deprecated">
  1283. </constructor>
  1284. <method name="getApproxChkSumLength" return="double"
  1285. abstract="false" native="false" synchronized="false"
  1286. static="true" final="false" visibility="public"
  1287. deprecated="not deprecated">
  1288. <param name="size" type="long"/>
  1289. </method>
  1290. <method name="setConf"
  1291. abstract="false" native="false" synchronized="false"
  1292. static="false" final="false" visibility="public"
  1293. deprecated="not deprecated">
  1294. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1295. </method>
  1296. <method name="setVerifyChecksum"
  1297. abstract="false" native="false" synchronized="false"
  1298. static="false" final="false" visibility="public"
  1299. deprecated="not deprecated">
  1300. <param name="verifyChecksum" type="boolean"/>
  1301. <doc>
  1302. <![CDATA[Set whether to verify checksum.]]>
  1303. </doc>
  1304. </method>
  1305. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1306. abstract="false" native="false" synchronized="false"
  1307. static="false" final="false" visibility="public"
  1308. deprecated="not deprecated">
  1309. <doc>
  1310. <![CDATA[get the raw file system]]>
  1311. </doc>
  1312. </method>
  1313. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1314. abstract="false" native="false" synchronized="false"
  1315. static="false" final="false" visibility="public"
  1316. deprecated="not deprecated">
  1317. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1318. <doc>
  1319. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1320. </doc>
  1321. </method>
  1322. <method name="isChecksumFile" return="boolean"
  1323. abstract="false" native="false" synchronized="false"
  1324. static="true" final="false" visibility="public"
  1325. deprecated="not deprecated">
  1326. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1327. <doc>
  1328. <![CDATA[Return true iff file is a checksum file name.]]>
  1329. </doc>
  1330. </method>
  1331. <method name="getChecksumFileLength" return="long"
  1332. abstract="false" native="false" synchronized="false"
  1333. static="false" final="false" visibility="public"
  1334. deprecated="not deprecated">
  1335. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1336. <param name="fileSize" type="long"/>
  1337. <doc>
  1338. <![CDATA[Return the length of the checksum file given the size of the
  1339. actual file.]]>
  1340. </doc>
  1341. </method>
  1342. <method name="getBytesPerSum" return="int"
  1343. abstract="false" native="false" synchronized="false"
  1344. static="false" final="false" visibility="public"
  1345. deprecated="not deprecated">
  1346. <doc>
  1347. <![CDATA[Return the bytes Per Checksum]]>
  1348. </doc>
  1349. </method>
  1350. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1351. abstract="false" native="false" synchronized="false"
  1352. static="false" final="false" visibility="public"
  1353. deprecated="not deprecated">
  1354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1355. <param name="bufferSize" type="int"/>
  1356. <exception name="IOException" type="java.io.IOException"/>
  1357. <doc>
  1358. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1359. @param f the file name to open
  1360. @param bufferSize the size of the buffer to be used.]]>
  1361. </doc>
  1362. </method>
  1363. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1364. abstract="false" native="false" synchronized="false"
  1365. static="false" final="false" visibility="public"
  1366. deprecated="not deprecated">
  1367. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1368. <param name="bufferSize" type="int"/>
  1369. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1370. <exception name="IOException" type="java.io.IOException"/>
  1371. <doc>
  1372. <![CDATA[{@inheritDoc}]]>
  1373. </doc>
  1374. </method>
  1375. <method name="getChecksumLength" return="long"
  1376. abstract="false" native="false" synchronized="false"
  1377. static="true" final="false" visibility="public"
  1378. deprecated="not deprecated">
  1379. <param name="size" type="long"/>
  1380. <param name="bytesPerSum" type="int"/>
  1381. <doc>
  1382. <![CDATA[Calculated the length of the checksum file in bytes.
  1383. @param size the length of the data file in bytes
  1384. @param bytesPerSum the number of bytes in a checksum block
  1385. @return the number of bytes in the checksum file]]>
  1386. </doc>
  1387. </method>
  1388. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1389. abstract="false" native="false" synchronized="false"
  1390. static="false" final="false" visibility="public"
  1391. deprecated="not deprecated">
  1392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1393. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1394. <param name="overwrite" type="boolean"/>
  1395. <param name="bufferSize" type="int"/>
  1396. <param name="replication" type="short"/>
  1397. <param name="blockSize" type="long"/>
  1398. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1399. <exception name="IOException" type="java.io.IOException"/>
  1400. <doc>
  1401. <![CDATA[{@inheritDoc}]]>
  1402. </doc>
  1403. </method>
  1404. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  1405. abstract="false" native="false" synchronized="false"
  1406. static="false" final="false" visibility="public"
  1407. deprecated="not deprecated">
  1408. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1409. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1410. <param name="overwrite" type="boolean"/>
  1411. <param name="bufferSize" type="int"/>
  1412. <param name="replication" type="short"/>
  1413. <param name="blockSize" type="long"/>
  1414. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1415. <exception name="IOException" type="java.io.IOException"/>
  1416. <doc>
  1417. <![CDATA[{@inheritDoc}]]>
  1418. </doc>
  1419. </method>
  1420. <method name="setReplication" return="boolean"
  1421. abstract="false" native="false" synchronized="false"
  1422. static="false" final="false" visibility="public"
  1423. deprecated="not deprecated">
  1424. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1425. <param name="replication" type="short"/>
  1426. <exception name="IOException" type="java.io.IOException"/>
  1427. <doc>
  1428. <![CDATA[Set replication for an existing file.
  1429. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1430. @param src file name
  1431. @param replication new replication
  1432. @throws IOException
  1433. @return true if successful;
  1434. false if file does not exist or is a directory]]>
  1435. </doc>
  1436. </method>
  1437. <method name="rename" return="boolean"
  1438. abstract="false" native="false" synchronized="false"
  1439. static="false" final="false" visibility="public"
  1440. deprecated="not deprecated">
  1441. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1442. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1443. <exception name="IOException" type="java.io.IOException"/>
  1444. <doc>
  1445. <![CDATA[Rename files/dirs]]>
  1446. </doc>
  1447. </method>
  1448. <method name="delete" return="boolean"
  1449. abstract="false" native="false" synchronized="false"
  1450. static="false" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1453. <param name="recursive" type="boolean"/>
  1454. <exception name="IOException" type="java.io.IOException"/>
  1455. <doc>
  1456. <![CDATA[Implement the delete(Path, boolean) in checksum
  1457. file system.]]>
  1458. </doc>
  1459. </method>
  1460. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1461. abstract="false" native="false" synchronized="false"
  1462. static="false" final="false" visibility="public"
  1463. deprecated="not deprecated">
  1464. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1465. <exception name="IOException" type="java.io.IOException"/>
  1466. <doc>
  1467. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1468. a directory.
  1469. @param f
  1470. given path
  1471. @return the statuses of the files/directories in the given patch
  1472. @throws IOException]]>
  1473. </doc>
  1474. </method>
  1475. <method name="mkdirs" return="boolean"
  1476. abstract="false" native="false" synchronized="false"
  1477. static="false" final="false" visibility="public"
  1478. deprecated="not deprecated">
  1479. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1480. <exception name="IOException" type="java.io.IOException"/>
  1481. </method>
  1482. <method name="copyFromLocalFile"
  1483. abstract="false" native="false" synchronized="false"
  1484. static="false" final="false" visibility="public"
  1485. deprecated="not deprecated">
  1486. <param name="delSrc" type="boolean"/>
  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. </method>
  1491. <method name="copyToLocalFile"
  1492. abstract="false" native="false" synchronized="false"
  1493. static="false" final="false" visibility="public"
  1494. deprecated="not deprecated">
  1495. <param name="delSrc" type="boolean"/>
  1496. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1497. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1498. <exception name="IOException" type="java.io.IOException"/>
  1499. <doc>
  1500. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1501. Copy it from FS control to the local dst name.]]>
  1502. </doc>
  1503. </method>
  1504. <method name="copyToLocalFile"
  1505. abstract="false" native="false" synchronized="false"
  1506. static="false" final="false" visibility="public"
  1507. deprecated="not deprecated">
  1508. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1509. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1510. <param name="copyCrc" type="boolean"/>
  1511. <exception name="IOException" type="java.io.IOException"/>
  1512. <doc>
  1513. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1514. Copy it from FS control to the local dst name.
  1515. If src and dst are directories, the copyCrc parameter
  1516. determines whether to copy CRC files.]]>
  1517. </doc>
  1518. </method>
  1519. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1520. abstract="false" native="false" synchronized="false"
  1521. static="false" final="false" visibility="public"
  1522. deprecated="not deprecated">
  1523. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1524. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1525. <exception name="IOException" type="java.io.IOException"/>
  1526. </method>
  1527. <method name="completeLocalOutput"
  1528. abstract="false" native="false" synchronized="false"
  1529. static="false" final="false" visibility="public"
  1530. deprecated="not deprecated">
  1531. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1532. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1533. <exception name="IOException" type="java.io.IOException"/>
  1534. </method>
  1535. <method name="reportChecksumFailure" return="boolean"
  1536. abstract="false" native="false" synchronized="false"
  1537. static="false" final="false" visibility="public"
  1538. deprecated="not deprecated">
  1539. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1540. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1541. <param name="inPos" type="long"/>
  1542. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1543. <param name="sumsPos" type="long"/>
  1544. <doc>
  1545. <![CDATA[Report a checksum error to the file system.
  1546. @param f the file name containing the error
  1547. @param in the stream open on the file
  1548. @param inPos the position of the beginning of the bad data in the file
  1549. @param sums the stream open on the checksum file
  1550. @param sumsPos the position of the beginning of the bad data in the checksum file
  1551. @return if retry is neccessary]]>
  1552. </doc>
  1553. </method>
  1554. <doc>
  1555. <![CDATA[Abstract Checksumed FileSystem.
  1556. It provide a basice implementation of a Checksumed FileSystem,
  1557. which creates a checksum file for each raw file.
  1558. It generates & verifies checksums at the client side.]]>
  1559. </doc>
  1560. </class>
  1561. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1562. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1563. <class name="CommonConfigurationKeys" extends="java.lang.Object"
  1564. abstract="false"
  1565. static="false" final="false" visibility="public"
  1566. deprecated="not deprecated">
  1567. <constructor name="CommonConfigurationKeys"
  1568. static="false" final="false" visibility="public"
  1569. deprecated="not deprecated">
  1570. </constructor>
  1571. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  1572. transient="false" volatile="false"
  1573. static="true" final="true" visibility="public"
  1574. deprecated="not deprecated">
  1575. <doc>
  1576. <![CDATA[See src/core/core-default.xml]]>
  1577. </doc>
  1578. </field>
  1579. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  1580. transient="false" volatile="false"
  1581. static="true" final="true" visibility="public"
  1582. deprecated="not deprecated">
  1583. </field>
  1584. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  1585. transient="false" volatile="false"
  1586. static="true" final="true" visibility="public"
  1587. deprecated="not deprecated">
  1588. <doc>
  1589. <![CDATA[See src/core/core-default.xml]]>
  1590. </doc>
  1591. </field>
  1592. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  1593. transient="false" volatile="false"
  1594. static="true" final="true" visibility="public"
  1595. deprecated="not deprecated">
  1596. <doc>
  1597. <![CDATA[See src/core/core-default.xml]]>
  1598. </doc>
  1599. </field>
  1600. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  1601. transient="false" volatile="false"
  1602. static="true" final="true" visibility="public"
  1603. deprecated="not deprecated">
  1604. <doc>
  1605. <![CDATA[See src/core/core-default.xml]]>
  1606. </doc>
  1607. </field>
  1608. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  1609. transient="false" volatile="false"
  1610. static="true" final="true" visibility="public"
  1611. deprecated="not deprecated">
  1612. <doc>
  1613. <![CDATA[See src/core/core-default.xml]]>
  1614. </doc>
  1615. </field>
  1616. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP" type="java.lang.String"
  1617. transient="false" volatile="false"
  1618. static="true" final="true" visibility="public"
  1619. deprecated="not deprecated">
  1620. <doc>
  1621. <![CDATA[See src/core/core-default.xml]]>
  1622. </doc>
  1623. </field>
  1624. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT" type="boolean"
  1625. transient="false" volatile="false"
  1626. static="true" final="true" visibility="public"
  1627. deprecated="not deprecated">
  1628. </field>
  1629. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_KEY" type="java.lang.String"
  1630. transient="false" volatile="false"
  1631. static="true" final="true" visibility="public"
  1632. deprecated="not deprecated">
  1633. </field>
  1634. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_DEFAULT" type="boolean"
  1635. transient="false" volatile="false"
  1636. static="true" final="true" visibility="public"
  1637. deprecated="not deprecated">
  1638. </field>
  1639. <field name="IPC_SERVER_RPC_READ_THREADS_KEY" type="java.lang.String"
  1640. transient="false" volatile="false"
  1641. static="true" final="true" visibility="public"
  1642. deprecated="not deprecated">
  1643. </field>
  1644. <field name="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1645. transient="false" volatile="false"
  1646. static="true" final="true" visibility="public"
  1647. deprecated="not deprecated">
  1648. </field>
  1649. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  1650. transient="false" volatile="false"
  1651. static="true" final="true" visibility="public"
  1652. deprecated="not deprecated">
  1653. </field>
  1654. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  1655. transient="false" volatile="false"
  1656. static="true" final="true" visibility="public"
  1657. deprecated="not deprecated">
  1658. <doc>
  1659. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  1660. </doc>
  1661. </field>
  1662. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY" type="java.lang.String"
  1663. transient="false" volatile="false"
  1664. static="true" final="true" visibility="public"
  1665. deprecated="not deprecated">
  1666. <doc>
  1667. <![CDATA[Internal buffer size for Snappy compressor/decompressors]]>
  1668. </doc>
  1669. </field>
  1670. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_DEFAULT" type="int"
  1671. transient="false" volatile="false"
  1672. static="true" final="true" visibility="public"
  1673. deprecated="not deprecated">
  1674. <doc>
  1675. <![CDATA[Default value for IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY]]>
  1676. </doc>
  1677. </field>
  1678. <field name="HADOOP_RELAXED_VERSION_CHECK_KEY" type="java.lang.String"
  1679. transient="false" volatile="false"
  1680. static="true" final="true" visibility="public"
  1681. deprecated="not deprecated">
  1682. <doc>
  1683. <![CDATA[See src/core/core-default.xml]]>
  1684. </doc>
  1685. </field>
  1686. <field name="HADOOP_RELAXED_VERSION_CHECK_DEFAULT" type="boolean"
  1687. transient="false" volatile="false"
  1688. static="true" final="true" visibility="public"
  1689. deprecated="not deprecated">
  1690. </field>
  1691. <doc>
  1692. <![CDATA[This class contains constants for configuration keys used
  1693. in the common code.]]>
  1694. </doc>
  1695. </class>
  1696. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1697. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1698. <class name="ContentSummary" extends="java.lang.Object"
  1699. abstract="false"
  1700. static="false" final="false" visibility="public"
  1701. deprecated="not deprecated">
  1702. <implements name="org.apache.hadoop.io.Writable"/>
  1703. <constructor name="ContentSummary"
  1704. static="false" final="false" visibility="public"
  1705. deprecated="not deprecated">
  1706. <doc>
  1707. <![CDATA[Constructor]]>
  1708. </doc>
  1709. </constructor>
  1710. <constructor name="ContentSummary" type="long, long, long"
  1711. static="false" final="false" visibility="public"
  1712. deprecated="not deprecated">
  1713. <doc>
  1714. <![CDATA[Constructor]]>
  1715. </doc>
  1716. </constructor>
  1717. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1718. static="false" final="false" visibility="public"
  1719. deprecated="not deprecated">
  1720. <doc>
  1721. <![CDATA[Constructor]]>
  1722. </doc>
  1723. </constructor>
  1724. <method name="getLength" return="long"
  1725. abstract="false" native="false" synchronized="false"
  1726. static="false" final="false" visibility="public"
  1727. deprecated="not deprecated">
  1728. <doc>
  1729. <![CDATA[@return the length]]>
  1730. </doc>
  1731. </method>
  1732. <method name="getDirectoryCount" return="long"
  1733. abstract="false" native="false" synchronized="false"
  1734. static="false" final="false" visibility="public"
  1735. deprecated="not deprecated">
  1736. <doc>
  1737. <![CDATA[@return the directory count]]>
  1738. </doc>
  1739. </method>
  1740. <method name="getFileCount" return="long"
  1741. abstract="false" native="false" synchronized="false"
  1742. static="false" final="false" visibility="public"
  1743. deprecated="not deprecated">
  1744. <doc>
  1745. <![CDATA[@return the file count]]>
  1746. </doc>
  1747. </method>
  1748. <method name="getQuota" return="long"
  1749. abstract="false" native="false" synchronized="false"
  1750. static="false" final="false" visibility="public"
  1751. deprecated="not deprecated">
  1752. <doc>
  1753. <![CDATA[Return the directory quota]]>
  1754. </doc>
  1755. </method>
  1756. <method name="getSpaceConsumed" return="long"
  1757. abstract="false" native="false" synchronized="false"
  1758. static="false" final="false" visibility="public"
  1759. deprecated="not deprecated">
  1760. <doc>
  1761. <![CDATA[Retuns (disk) space consumed]]>
  1762. </doc>
  1763. </method>
  1764. <method name="getSpaceQuota" return="long"
  1765. abstract="false" native="false" synchronized="false"
  1766. static="false" final="false" visibility="public"
  1767. deprecated="not deprecated">
  1768. <doc>
  1769. <![CDATA[Returns (disk) space quota]]>
  1770. </doc>
  1771. </method>
  1772. <method name="write"
  1773. abstract="false" native="false" synchronized="false"
  1774. static="false" final="false" visibility="public"
  1775. deprecated="not deprecated">
  1776. <param name="out" type="java.io.DataOutput"/>
  1777. <exception name="IOException" type="java.io.IOException"/>
  1778. <doc>
  1779. <![CDATA[{@inheritDoc}]]>
  1780. </doc>
  1781. </method>
  1782. <method name="readFields"
  1783. abstract="false" native="false" synchronized="false"
  1784. static="false" final="false" visibility="public"
  1785. deprecated="not deprecated">
  1786. <param name="in" type="java.io.DataInput"/>
  1787. <exception name="IOException" type="java.io.IOException"/>
  1788. <doc>
  1789. <![CDATA[{@inheritDoc}]]>
  1790. </doc>
  1791. </method>
  1792. <method name="getHeader" return="java.lang.String"
  1793. abstract="false" native="false" synchronized="false"
  1794. static="true" final="false" visibility="public"
  1795. deprecated="not deprecated">
  1796. <param name="qOption" type="boolean"/>
  1797. <doc>
  1798. <![CDATA[Return the header of the output.
  1799. if qOption is false, output directory count, file count, and content size;
  1800. if qOption is true, output quota and remaining quota as well.
  1801. @param qOption a flag indicating if quota needs to be printed or not
  1802. @return the header of the output]]>
  1803. </doc>
  1804. </method>
  1805. <method name="toString" return="java.lang.String"
  1806. abstract="false" native="false" synchronized="false"
  1807. static="false" final="false" visibility="public"
  1808. deprecated="not deprecated">
  1809. <doc>
  1810. <![CDATA[{@inheritDoc}]]>
  1811. </doc>
  1812. </method>
  1813. <method name="toString" return="java.lang.String"
  1814. abstract="false" native="false" synchronized="false"
  1815. static="false" final="false" visibility="public"
  1816. deprecated="not deprecated">
  1817. <param name="qOption" type="boolean"/>
  1818. <doc>
  1819. <![CDATA[Return the string representation of the object in the output format.
  1820. if qOption is false, output directory count, file count, and content size;
  1821. if qOption is true, output quota and remaining quota as well.
  1822. @param qOption a flag indicating if quota needs to be printed or not
  1823. @return the string representation of the object]]>
  1824. </doc>
  1825. </method>
  1826. <doc>
  1827. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1828. </doc>
  1829. </class>
  1830. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1831. <!-- start class org.apache.hadoop.fs.DF -->
  1832. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1833. abstract="false"
  1834. static="false" final="false" visibility="public"
  1835. deprecated="not deprecated">
  1836. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1837. static="false" final="false" visibility="public"
  1838. deprecated="not deprecated">
  1839. <exception name="IOException" type="java.io.IOException"/>
  1840. </constructor>
  1841. <constructor name="DF" type="java.io.File, long"
  1842. static="false" final="false" visibility="public"
  1843. deprecated="not deprecated">
  1844. <exception name="IOException" type="java.io.IOException"/>
  1845. </constructor>
  1846. <method name="getDirPath" return="java.lang.String"
  1847. abstract="false" native="false" synchronized="false"
  1848. static="false" final="false" visibility="public"
  1849. deprecated="not deprecated">
  1850. <doc>
  1851. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1852. </doc>
  1853. </method>
  1854. <method name="getFilesystem" return="java.lang.String"
  1855. abstract="false" native="false" synchronized="false"
  1856. static="false" final="false" visibility="public"
  1857. deprecated="not deprecated">
  1858. <exception name="IOException" type="java.io.IOException"/>
  1859. <doc>
  1860. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1861. </doc>
  1862. </method>
  1863. <method name="getCapacity" return="long"
  1864. abstract="false" native="false" synchronized="false"
  1865. static="false" final="false" visibility="public"
  1866. deprecated="not deprecated">
  1867. <doc>
  1868. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1869. </doc>
  1870. </method>
  1871. <method name="getUsed" return="long"
  1872. abstract="false" native="false" synchronized="false"
  1873. static="false" final="false" visibility="public"
  1874. deprecated="not deprecated">
  1875. <doc>
  1876. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1877. </doc>
  1878. </method>
  1879. <method name="getAvailable" return="long"
  1880. abstract="false" native="false" synchronized="false"
  1881. static="false" final="false" visibility="public"
  1882. deprecated="not deprecated">
  1883. <doc>
  1884. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1885. </doc>
  1886. </method>
  1887. <method name="getPercentUsed" return="int"
  1888. abstract="false" native="false" synchronized="false"
  1889. static="false" final="false" visibility="public"
  1890. deprecated="not deprecated">
  1891. <doc>
  1892. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1893. </doc>
  1894. </method>
  1895. <method name="getMount" return="java.lang.String"
  1896. abstract="false" native="false" synchronized="false"
  1897. static="false" final="false" visibility="public"
  1898. deprecated="not deprecated">
  1899. <exception name="IOException" type="java.io.IOException"/>
  1900. <doc>
  1901. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1902. </doc>
  1903. </method>
  1904. <method name="toString" return="java.lang.String"
  1905. abstract="false" native="false" synchronized="false"
  1906. static="false" final="false" visibility="public"
  1907. deprecated="not deprecated">
  1908. </method>
  1909. <method name="getExecString" return="java.lang.String[]"
  1910. abstract="false" native="false" synchronized="false"
  1911. static="false" final="false" visibility="protected"
  1912. deprecated="not deprecated">
  1913. </method>
  1914. <method name="parseExecResult"
  1915. abstract="false" native="false" synchronized="false"
  1916. static="false" final="false" visibility="protected"
  1917. deprecated="not deprecated">
  1918. <param name="lines" type="java.io.BufferedReader"/>
  1919. <exception name="IOException" type="java.io.IOException"/>
  1920. </method>
  1921. <method name="main"
  1922. abstract="false" native="false" synchronized="false"
  1923. static="true" final="false" visibility="public"
  1924. deprecated="not deprecated">
  1925. <param name="args" type="java.lang.String[]"/>
  1926. <exception name="Exception" type="java.lang.Exception"/>
  1927. </method>
  1928. <field name="DF_INTERVAL_DEFAULT" type="long"
  1929. transient="false" volatile="false"
  1930. static="true" final="true" visibility="public"
  1931. deprecated="not deprecated">
  1932. <doc>
  1933. <![CDATA[Default DF refresh interval.]]>
  1934. </doc>
  1935. </field>
  1936. <doc>
  1937. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1938. mount points, and java.io.File for space utilization. Tested on Linux,
  1939. FreeBSD, Cygwin.]]>
  1940. </doc>
  1941. </class>
  1942. <!-- end class org.apache.hadoop.fs.DF -->
  1943. <!-- start class org.apache.hadoop.fs.DU -->
  1944. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1945. abstract="false"
  1946. static="false" final="false" visibility="public"
  1947. deprecated="not deprecated">
  1948. <constructor name="DU" type="java.io.File, long"
  1949. static="false" final="false" visibility="public"
  1950. deprecated="not deprecated">
  1951. <exception name="IOException" type="java.io.IOException"/>
  1952. <doc>
  1953. <![CDATA[Keeps track of disk usage.
  1954. @param path the path to check disk usage in
  1955. @param interval refresh the disk usage at this interval
  1956. @throws IOException if we fail to refresh the disk usage]]>
  1957. </doc>
  1958. </constructor>
  1959. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1960. static="false" final="false" visibility="public"
  1961. deprecated="not deprecated">
  1962. <exception name="IOException" type="java.io.IOException"/>
  1963. <doc>
  1964. <![CDATA[Keeps track of disk usage.
  1965. @param path the path to check disk usage in
  1966. @param conf configuration object
  1967. @throws IOException if we fail to refresh the disk usage]]>
  1968. </doc>
  1969. </constructor>
  1970. <method name="decDfsUsed"
  1971. abstract="false" native="false" synchronized="false"
  1972. static="false" final="false" visibility="public"
  1973. deprecated="not deprecated">
  1974. <param name="value" type="long"/>
  1975. <doc>
  1976. <![CDATA[Decrease how much disk space we use.
  1977. @param value decrease by this value]]>
  1978. </doc>
  1979. </method>
  1980. <method name="incDfsUsed"
  1981. abstract="false" native="false" synchronized="false"
  1982. static="false" final="false" visibility="public"
  1983. deprecated="not deprecated">
  1984. <param name="value" type="long"/>
  1985. <doc>
  1986. <![CDATA[Increase how much disk space we use.
  1987. @param value increase by this value]]>
  1988. </doc>
  1989. </method>
  1990. <method name="getUsed" return="long"
  1991. abstract="false" native="false" synchronized="false"
  1992. static="false" final="false" visibility="public"
  1993. deprecated="not deprecated">
  1994. <exception name="IOException" type="java.io.IOException"/>
  1995. <doc>
  1996. <![CDATA[@return disk space used
  1997. @throws IOException if the shell command fails]]>
  1998. </doc>
  1999. </method>
  2000. <method name="getDirPath" return="java.lang.String"
  2001. abstract="false" native="false" synchronized="false"
  2002. static="false" final="false" visibility="public"
  2003. deprecated="not deprecated">
  2004. <doc>
  2005. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2006. </doc>
  2007. </method>
  2008. <method name="start"
  2009. abstract="false" native="false" synchronized="false"
  2010. static="false" final="false" visibility="public"
  2011. deprecated="not deprecated">
  2012. <doc>
  2013. <![CDATA[Start the disk usage checking thread.]]>
  2014. </doc>
  2015. </method>
  2016. <method name="shutdown"
  2017. abstract="false" native="false" synchronized="false"
  2018. static="false" final="false" visibility="public"
  2019. deprecated="not deprecated">
  2020. <doc>
  2021. <![CDATA[Shut down the refreshing thread.]]>
  2022. </doc>
  2023. </method>
  2024. <method name="toString" return="java.lang.String"
  2025. abstract="false" native="false" synchronized="false"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. </method>
  2029. <method name="getExecString" return="java.lang.String[]"
  2030. abstract="false" native="false" synchronized="false"
  2031. static="false" final="false" visibility="protected"
  2032. deprecated="not deprecated">
  2033. </method>
  2034. <method name="parseExecResult"
  2035. abstract="false" native="false" synchronized="false"
  2036. static="false" final="false" visibility="protected"
  2037. deprecated="not deprecated">
  2038. <param name="lines" type="java.io.BufferedReader"/>
  2039. <exception name="IOException" type="java.io.IOException"/>
  2040. </method>
  2041. <method name="main"
  2042. abstract="false" native="false" synchronized="false"
  2043. static="true" final="false" visibility="public"
  2044. deprecated="not deprecated">
  2045. <param name="args" type="java.lang.String[]"/>
  2046. <exception name="Exception" type="java.lang.Exception"/>
  2047. </method>
  2048. <doc>
  2049. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2050. </doc>
  2051. </class>
  2052. <!-- end class org.apache.hadoop.fs.DU -->
  2053. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2054. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2055. abstract="false"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <constructor name="FileAlreadyExistsException"
  2059. static="false" final="false" visibility="public"
  2060. deprecated="not deprecated">
  2061. </constructor>
  2062. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2063. static="false" final="false" visibility="public"
  2064. deprecated="not deprecated">
  2065. </constructor>
  2066. <doc>
  2067. <![CDATA[Used when target file already exists for any operation and
  2068. is not configured to be overwritten.]]>
  2069. </doc>
  2070. </class>
  2071. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2072. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2073. <class name="FileChecksum" extends="java.lang.Object"
  2074. abstract="true"
  2075. static="false" final="false" visibility="public"
  2076. deprecated="not deprecated">
  2077. <implements name="org.apache.hadoop.io.Writable"/>
  2078. <constructor name="FileChecksum"
  2079. static="false" final="false" visibility="public"
  2080. deprecated="not deprecated">
  2081. </constructor>
  2082. <method name="getAlgorithmName" return="java.lang.String"
  2083. abstract="true" native="false" synchronized="false"
  2084. static="false" final="false" visibility="public"
  2085. deprecated="not deprecated">
  2086. <doc>
  2087. <![CDATA[The checksum algorithm name]]>
  2088. </doc>
  2089. </method>
  2090. <method name="getLength" return="int"
  2091. abstract="true" native="false" synchronized="false"
  2092. static="false" final="false" visibility="public"
  2093. deprecated="not deprecated">
  2094. <doc>
  2095. <![CDATA[The length of the checksum in bytes]]>
  2096. </doc>
  2097. </method>
  2098. <method name="getBytes" return="byte[]"
  2099. abstract="true" native="false" synchronized="false"
  2100. static="false" final="false" visibility="public"
  2101. deprecated="not deprecated">
  2102. <doc>
  2103. <![CDATA[The value of the checksum in bytes]]>
  2104. </doc>
  2105. </method>
  2106. <method name="equals" return="boolean"
  2107. abstract="false" native="false" synchronized="false"
  2108. static="false" final="false" visibility="public"
  2109. deprecated="not deprecated">
  2110. <param name="other" type="java.lang.Object"/>
  2111. <doc>
  2112. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2113. </doc>
  2114. </method>
  2115. <method name="hashCode" return="int"
  2116. abstract="false" native="false" synchronized="false"
  2117. static="false" final="false" visibility="public"
  2118. deprecated="not deprecated">
  2119. <doc>
  2120. <![CDATA[{@inheritDoc}]]>
  2121. </doc>
  2122. </method>
  2123. <doc>
  2124. <![CDATA[An abstract class representing file checksums for files.]]>
  2125. </doc>
  2126. </class>
  2127. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2128. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2129. <class name="FileStatus" extends="java.lang.Object"
  2130. abstract="false"
  2131. static="false" final="false" visibility="public"
  2132. deprecated="not deprecated">
  2133. <implements name="org.apache.hadoop.io.Writable"/>
  2134. <implements name="java.lang.Comparable"/>
  2135. <constructor name="FileStatus"
  2136. static="false" final="false" visibility="public"
  2137. deprecated="not deprecated">
  2138. </constructor>
  2139. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2140. static="false" final="false" visibility="public"
  2141. deprecated="not deprecated">
  2142. </constructor>
  2143. <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"
  2144. static="false" final="false" visibility="public"
  2145. deprecated="not deprecated">
  2146. </constructor>
  2147. <method name="getLen" return="long"
  2148. abstract="false" native="false" synchronized="false"
  2149. static="false" final="false" visibility="public"
  2150. deprecated="not deprecated">
  2151. </method>
  2152. <method name="isDir" return="boolean"
  2153. abstract="false" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <doc>
  2157. <![CDATA[Is this a directory?
  2158. @return true if this is a directory]]>
  2159. </doc>
  2160. </method>
  2161. <method name="getBlockSize" return="long"
  2162. abstract="false" native="false" synchronized="false"
  2163. static="false" final="false" visibility="public"
  2164. deprecated="not deprecated">
  2165. <doc>
  2166. <![CDATA[Get the block size of the file.
  2167. @return the number of bytes]]>
  2168. </doc>
  2169. </method>
  2170. <method name="getReplication" return="short"
  2171. abstract="false" native="false" synchronized="false"
  2172. static="false" final="false" visibility="public"
  2173. deprecated="not deprecated">
  2174. <doc>
  2175. <![CDATA[Get the replication factor of a file.
  2176. @return the replication factor of a file.]]>
  2177. </doc>
  2178. </method>
  2179. <method name="getModificationTime" return="long"
  2180. abstract="false" native="false" synchronized="false"
  2181. static="false" final="false" visibility="public"
  2182. deprecated="not deprecated">
  2183. <doc>
  2184. <![CDATA[Get the modification time of the file.
  2185. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2186. </doc>
  2187. </method>
  2188. <method name="getAccessTime" return="long"
  2189. abstract="false" native="false" synchronized="false"
  2190. static="false" final="false" visibility="public"
  2191. deprecated="not deprecated">
  2192. <doc>
  2193. <![CDATA[Get the access time of the file.
  2194. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2195. </doc>
  2196. </method>
  2197. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2198. abstract="false" native="false" synchronized="false"
  2199. static="false" final="false" visibility="public"
  2200. deprecated="not deprecated">
  2201. <doc>
  2202. <![CDATA[Get FsPermission associated with the file.
  2203. @return permssion. If a filesystem does not have a notion of permissions
  2204. or if permissions could not be determined, then default
  2205. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2206. </doc>
  2207. </method>
  2208. <method name="getOwner" return="java.lang.String"
  2209. abstract="false" native="false" synchronized="false"
  2210. static="false" final="false" visibility="public"
  2211. deprecated="not deprecated">
  2212. <doc>
  2213. <![CDATA[Get the owner of the file.
  2214. @return owner of the file. The string could be empty if there is no
  2215. notion of owner of a file in a filesystem or if it could not
  2216. be determined (rare).]]>
  2217. </doc>
  2218. </method>
  2219. <method name="getGroup" return="java.lang.String"
  2220. abstract="false" native="false" synchronized="false"
  2221. static="false" final="false" visibility="public"
  2222. deprecated="not deprecated">
  2223. <doc>
  2224. <![CDATA[Get the group associated with the file.
  2225. @return group for the file. The string could be empty if there is no
  2226. notion of group of a file in a filesystem or if it could not
  2227. be determined (rare).]]>
  2228. </doc>
  2229. </method>
  2230. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2231. abstract="false" native="false" synchronized="false"
  2232. static="false" final="false" visibility="public"
  2233. deprecated="not deprecated">
  2234. </method>
  2235. <method name="setPermission"
  2236. abstract="false" native="false" synchronized="false"
  2237. static="false" final="false" visibility="protected"
  2238. deprecated="not deprecated">
  2239. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2240. <doc>
  2241. <![CDATA[Sets permission.
  2242. @param permission if permission is null, default value is set]]>
  2243. </doc>
  2244. </method>
  2245. <method name="setOwner"
  2246. abstract="false" native="false" synchronized="false"
  2247. static="false" final="false" visibility="protected"
  2248. deprecated="not deprecated">
  2249. <param name="owner" type="java.lang.String"/>
  2250. <doc>
  2251. <![CDATA[Sets owner.
  2252. @param owner if it is null, default value is set]]>
  2253. </doc>
  2254. </method>
  2255. <method name="setGroup"
  2256. abstract="false" native="false" synchronized="false"
  2257. static="false" final="false" visibility="protected"
  2258. deprecated="not deprecated">
  2259. <param name="group" type="java.lang.String"/>
  2260. <doc>
  2261. <![CDATA[Sets group.
  2262. @param group if it is null, default value is set]]>
  2263. </doc>
  2264. </method>
  2265. <method name="write"
  2266. abstract="false" native="false" synchronized="false"
  2267. static="false" final="false" visibility="public"
  2268. deprecated="not deprecated">
  2269. <param name="out" type="java.io.DataOutput"/>
  2270. <exception name="IOException" type="java.io.IOException"/>
  2271. </method>
  2272. <method name="readFields"
  2273. abstract="false" native="false" synchronized="false"
  2274. static="false" final="false" visibility="public"
  2275. deprecated="not deprecated">
  2276. <param name="in" type="java.io.DataInput"/>
  2277. <exception name="IOException" type="java.io.IOException"/>
  2278. </method>
  2279. <method name="compareTo" return="int"
  2280. abstract="false" native="false" synchronized="false"
  2281. static="false" final="false" visibility="public"
  2282. deprecated="not deprecated">
  2283. <param name="o" type="java.lang.Object"/>
  2284. <doc>
  2285. <![CDATA[Compare this object to another object
  2286. @param o the object to be compared.
  2287. @return a negative integer, zero, or a positive integer as this object
  2288. is less than, equal to, or greater than the specified object.
  2289. @throws ClassCastException if the specified object's is not of
  2290. type FileStatus]]>
  2291. </doc>
  2292. </method>
  2293. <method name="equals" return="boolean"
  2294. abstract="false" native="false" synchronized="false"
  2295. static="false" final="false" visibility="public"
  2296. deprecated="not deprecated">
  2297. <param name="o" type="java.lang.Object"/>
  2298. <doc>
  2299. <![CDATA[Compare if this object is equal to another object
  2300. @param o the object to be compared.
  2301. @return true if two file status has the same path name; false if not.]]>
  2302. </doc>
  2303. </method>
  2304. <method name="hashCode" return="int"
  2305. abstract="false" native="false" synchronized="false"
  2306. static="false" final="false" visibility="public"
  2307. deprecated="not deprecated">
  2308. <doc>
  2309. <![CDATA[Returns a hash code value for the object, which is defined as
  2310. the hash code of the path name.
  2311. @return a hash code value for the path name.]]>
  2312. </doc>
  2313. </method>
  2314. <doc>
  2315. <![CDATA[Interface that represents the client side information for a file.]]>
  2316. </doc>
  2317. </class>
  2318. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2319. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2320. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2321. abstract="true"
  2322. static="false" final="false" visibility="public"
  2323. deprecated="not deprecated">
  2324. <implements name="java.io.Closeable"/>
  2325. <constructor name="FileSystem"
  2326. static="false" final="false" visibility="protected"
  2327. deprecated="not deprecated">
  2328. </constructor>
  2329. <method name="addFileSystemForTesting"
  2330. abstract="false" native="false" synchronized="false"
  2331. static="true" final="false" visibility="public"
  2332. deprecated="not deprecated">
  2333. <param name="uri" type="java.net.URI"/>
  2334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2335. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2336. <exception name="IOException" type="java.io.IOException"/>
  2337. <doc>
  2338. <![CDATA[This method adds a file system for testing so that we can find it later.
  2339. It is only for testing.
  2340. @param uri the uri to store it under
  2341. @param conf the configuration to store it under
  2342. @param fs the file system to store
  2343. @throws IOException]]>
  2344. </doc>
  2345. </method>
  2346. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2347. abstract="false" native="false" synchronized="false"
  2348. static="true" final="false" visibility="public"
  2349. deprecated="not deprecated">
  2350. <param name="uri" type="java.net.URI"/>
  2351. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2352. <param name="user" type="java.lang.String"/>
  2353. <exception name="IOException" type="java.io.IOException"/>
  2354. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2355. </method>
  2356. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2357. abstract="false" native="false" synchronized="false"
  2358. static="true" final="false" visibility="public"
  2359. deprecated="not deprecated">
  2360. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2361. <exception name="IOException" type="java.io.IOException"/>
  2362. <doc>
  2363. <![CDATA[Returns the configured filesystem implementation.]]>
  2364. </doc>
  2365. </method>
  2366. <method name="getDefaultUri" return="java.net.URI"
  2367. abstract="false" native="false" synchronized="false"
  2368. static="true" final="false" visibility="public"
  2369. deprecated="not deprecated">
  2370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2371. <doc>
  2372. <![CDATA[Get the default filesystem URI from a configuration.
  2373. @param conf the configuration to access
  2374. @return the uri of the default filesystem]]>
  2375. </doc>
  2376. </method>
  2377. <method name="setDefaultUri"
  2378. abstract="false" native="false" synchronized="false"
  2379. static="true" final="false" visibility="public"
  2380. deprecated="not deprecated">
  2381. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2382. <param name="uri" type="java.net.URI"/>
  2383. <doc>
  2384. <![CDATA[Set the default filesystem URI in a configuration.
  2385. @param conf the configuration to alter
  2386. @param uri the new default filesystem uri]]>
  2387. </doc>
  2388. </method>
  2389. <method name="setDefaultUri"
  2390. abstract="false" native="false" synchronized="false"
  2391. static="true" final="false" visibility="public"
  2392. deprecated="not deprecated">
  2393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2394. <param name="uri" type="java.lang.String"/>
  2395. <doc>
  2396. <![CDATA[Set the default filesystem URI in a configuration.
  2397. @param conf the configuration to alter
  2398. @param uri the new default filesystem uri]]>
  2399. </doc>
  2400. </method>
  2401. <method name="initialize"
  2402. abstract="false" native="false" synchronized="false"
  2403. static="false" final="false" visibility="public"
  2404. deprecated="not deprecated">
  2405. <param name="name" type="java.net.URI"/>
  2406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2407. <exception name="IOException" type="java.io.IOException"/>
  2408. <doc>
  2409. <![CDATA[Called after a new FileSystem instance is constructed.
  2410. @param name a uri whose authority section names the host, port, etc.
  2411. for this FileSystem
  2412. @param conf the configuration]]>
  2413. </doc>
  2414. </method>
  2415. <method name="getUri" return="java.net.URI"
  2416. abstract="true" native="false" synchronized="false"
  2417. static="false" final="false" visibility="public"
  2418. deprecated="not deprecated">
  2419. <doc>
  2420. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2421. </doc>
  2422. </method>
  2423. <method name="getCanonicalUri" return="java.net.URI"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="false" final="false" visibility="protected"
  2426. deprecated="not deprecated">
  2427. <doc>
  2428. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2429. @return URI
  2430. @see NetUtils#getCanonicalUri(URI, int)]]>
  2431. </doc>
  2432. </method>
  2433. <method name="getDefaultPort" return="int"
  2434. abstract="false" native="false" synchronized="false"
  2435. static="false" final="false" visibility="protected"
  2436. deprecated="not deprecated">
  2437. <doc>
  2438. <![CDATA[Get the default port for this file system.
  2439. @return the default port or 0 if there isn't one]]>
  2440. </doc>
  2441. </method>
  2442. <method name="getCanonicalServiceName" return="java.lang.String"
  2443. abstract="false" native="false" synchronized="false"
  2444. static="false" final="false" visibility="public"
  2445. deprecated="not deprecated">
  2446. <doc>
  2447. <![CDATA[Get a canonical service name for this file system. The token cache is
  2448. the only user of this value, and uses it to lookup this filesystem's
  2449. service tokens. The token cache will not attempt to acquire tokens if the
  2450. service is null.
  2451. @return a service string that uniquely identifies this file system, null
  2452. if the filesystem does not implement tokens
  2453. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2454. </doc>
  2455. </method>
  2456. <method name="getName" return="java.lang.String"
  2457. abstract="false" native="false" synchronized="false"
  2458. static="false" final="false" visibility="public"
  2459. deprecated="call #getUri() instead.">
  2460. <doc>
  2461. <![CDATA[@deprecated call #getUri() instead.]]>
  2462. </doc>
  2463. </method>
  2464. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2465. abstract="false" native="false" synchronized="false"
  2466. static="true" final="false" visibility="public"
  2467. deprecated="call #get(URI,Configuration) instead.">
  2468. <param name="name" type="java.lang.String"/>
  2469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2470. <exception name="IOException" type="java.io.IOException"/>
  2471. <doc>
  2472. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2473. </doc>
  2474. </method>
  2475. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2476. abstract="false" native="false" synchronized="false"
  2477. static="true" final="false" visibility="public"
  2478. deprecated="not deprecated">
  2479. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2480. <exception name="IOException" type="java.io.IOException"/>
  2481. <doc>
  2482. <![CDATA[Get the local file syste
  2483. @param conf the configuration to configure the file system with
  2484. @return a LocalFileSystem]]>
  2485. </doc>
  2486. </method>
  2487. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2488. abstract="false" native="false" synchronized="false"
  2489. static="true" final="false" visibility="public"
  2490. deprecated="not deprecated">
  2491. <param name="uri" type="java.net.URI"/>
  2492. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2493. <exception name="IOException" type="java.io.IOException"/>
  2494. <doc>
  2495. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2496. of the URI determines a configuration property name,
  2497. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2498. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2499. </doc>
  2500. </method>
  2501. <method name="closeAll"
  2502. abstract="false" native="false" synchronized="false"
  2503. static="true" final="false" visibility="public"
  2504. deprecated="not deprecated">
  2505. <exception name="IOException" type="java.io.IOException"/>
  2506. <doc>
  2507. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2508. used anymore.
  2509. @throws IOException]]>
  2510. </doc>
  2511. </method>
  2512. <method name="closeAllForUGI"
  2513. abstract="false" native="false" synchronized="false"
  2514. static="true" final="false" visibility="public"
  2515. deprecated="not deprecated">
  2516. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2517. <exception name="IOException" type="java.io.IOException"/>
  2518. <doc>
  2519. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2520. are not used anymore.
  2521. @param ugi
  2522. @throws IOException]]>
  2523. </doc>
  2524. </method>
  2525. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2526. abstract="false" native="false" synchronized="false"
  2527. static="false" final="false" visibility="public"
  2528. deprecated="not deprecated">
  2529. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2530. <doc>
  2531. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2532. </doc>
  2533. </method>
  2534. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2535. abstract="false" native="false" synchronized="false"
  2536. static="true" final="false" visibility="public"
  2537. deprecated="not deprecated">
  2538. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2539. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2540. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2541. <exception name="IOException" type="java.io.IOException"/>
  2542. <doc>
  2543. <![CDATA[create a file with the provided permission
  2544. The permission of the file is set to be the provided permission as in
  2545. setPermission, not permission&~umask
  2546. It is implemented using two RPCs. It is understood that it is inefficient,
  2547. but the implementation is thread-safe. The other option is to change the
  2548. value of umask in configuration to be 0, but it is not thread-safe.
  2549. @param fs file system handle
  2550. @param file the name of the file to be created
  2551. @param permission the permission of the file
  2552. @return an output stream
  2553. @throws IOException]]>
  2554. </doc>
  2555. </method>
  2556. <method name="mkdirs" return="boolean"
  2557. abstract="false" native="false" synchronized="false"
  2558. static="true" final="false" visibility="public"
  2559. deprecated="not deprecated">
  2560. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2561. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2562. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[create a directory with the provided permission
  2566. The permission of the directory is set to be the provided permission as in
  2567. setPermission, not permission&~umask
  2568. @see #create(FileSystem, Path, FsPermission)
  2569. @param fs file system handle
  2570. @param dir the name of the directory to be created
  2571. @param permission the permission of the directory
  2572. @return true if the directory creation succeeds; false otherwise
  2573. @throws IOException]]>
  2574. </doc>
  2575. </method>
  2576. <method name="checkPath"
  2577. abstract="false" native="false" synchronized="false"
  2578. static="false" final="false" visibility="protected"
  2579. deprecated="not deprecated">
  2580. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2581. <doc>
  2582. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2583. </doc>
  2584. </method>
  2585. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2586. abstract="false" native="false" synchronized="false"
  2587. static="false" final="false" visibility="public"
  2588. deprecated="not deprecated">
  2589. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2590. <param name="start" type="long"/>
  2591. <param name="len" type="long"/>
  2592. <exception name="IOException" type="java.io.IOException"/>
  2593. <doc>
  2594. <![CDATA[Return an array containing hostnames, offset and size of
  2595. portions of the given file. For a nonexistent
  2596. file or regions, null will be returned.
  2597. This call is most helpful with DFS, where it returns
  2598. hostnames of machines that contain the given file.
  2599. The FileSystem will simply return an elt containing 'localhost'.]]>
  2600. </doc>
  2601. </method>
  2602. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2603. abstract="true" native="false" synchronized="false"
  2604. static="false" final="false" visibility="public"
  2605. deprecated="not deprecated">
  2606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2607. <param name="bufferSize" type="int"/>
  2608. <exception name="IOException" type="java.io.IOException"/>
  2609. <doc>
  2610. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2611. @param f the file name to open
  2612. @param bufferSize the size of the buffer to be used.]]>
  2613. </doc>
  2614. </method>
  2615. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2616. abstract="false" native="false" synchronized="false"
  2617. static="false" final="false" visibility="public"
  2618. deprecated="not deprecated">
  2619. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2620. <exception name="IOException" type="java.io.IOException"/>
  2621. <doc>
  2622. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2623. @param f the file to open]]>
  2624. </doc>
  2625. </method>
  2626. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2627. abstract="false" native="false" synchronized="false"
  2628. static="false" final="false" visibility="public"
  2629. deprecated="not deprecated">
  2630. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2631. <exception name="IOException" type="java.io.IOException"/>
  2632. <doc>
  2633. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2634. Files are overwritten by default.]]>
  2635. </doc>
  2636. </method>
  2637. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2638. abstract="false" native="false" synchronized="false"
  2639. static="false" final="false" visibility="public"
  2640. deprecated="not deprecated">
  2641. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2642. <param name="overwrite" type="boolean"/>
  2643. <exception name="IOException" type="java.io.IOException"/>
  2644. <doc>
  2645. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2646. </doc>
  2647. </method>
  2648. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2649. abstract="false" 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="progress" type="org.apache.hadoop.util.Progressable"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2657. reporting.
  2658. Files are overwritten by default.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2662. abstract="false" native="false" synchronized="false"
  2663. static="false" final="false" visibility="public"
  2664. deprecated="not deprecated">
  2665. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2666. <param name="replication" type="short"/>
  2667. <exception name="IOException" type="java.io.IOException"/>
  2668. <doc>
  2669. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2670. Files are overwritten by default.]]>
  2671. </doc>
  2672. </method>
  2673. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2674. abstract="false" native="false" synchronized="false"
  2675. static="false" final="false" visibility="public"
  2676. deprecated="not deprecated">
  2677. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2678. <param name="replication" type="short"/>
  2679. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2680. <exception name="IOException" type="java.io.IOException"/>
  2681. <doc>
  2682. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2683. reporting.
  2684. Files are overwritten by default.]]>
  2685. </doc>
  2686. </method>
  2687. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2688. abstract="false" native="false" synchronized="false"
  2689. static="false" final="false" visibility="public"
  2690. deprecated="not deprecated">
  2691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2692. <param name="overwrite" type="boolean"/>
  2693. <param name="bufferSize" type="int"/>
  2694. <exception name="IOException" type="java.io.IOException"/>
  2695. <doc>
  2696. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2697. @param f the file name to open
  2698. @param overwrite if a file with this name already exists, then if true,
  2699. the file will be overwritten, and if false an error will be thrown.
  2700. @param bufferSize the size of the buffer to be used.]]>
  2701. </doc>
  2702. </method>
  2703. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2704. abstract="false" native="false" synchronized="false"
  2705. static="false" final="false" visibility="public"
  2706. deprecated="not deprecated">
  2707. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2708. <param name="overwrite" type="boolean"/>
  2709. <param name="bufferSize" type="int"/>
  2710. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2711. <exception name="IOException" type="java.io.IOException"/>
  2712. <doc>
  2713. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2714. reporting.
  2715. @param f the file name to open
  2716. @param overwrite if a file with this name already exists, then if true,
  2717. the file will be overwritten, and if false an error will be thrown.
  2718. @param bufferSize the size of the buffer to be used.]]>
  2719. </doc>
  2720. </method>
  2721. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2722. abstract="false" native="false" synchronized="false"
  2723. static="false" final="false" visibility="public"
  2724. deprecated="not deprecated">
  2725. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2726. <param name="overwrite" type="boolean"/>
  2727. <param name="bufferSize" type="int"/>
  2728. <param name="replication" type="short"/>
  2729. <param name="blockSize" type="long"/>
  2730. <exception name="IOException" type="java.io.IOException"/>
  2731. <doc>
  2732. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2733. @param f the file name to open
  2734. @param overwrite if a file with this name already exists, then if true,
  2735. the file will be overwritten, and if false an error will be thrown.
  2736. @param bufferSize the size of the buffer to be used.
  2737. @param replication required block replication for the file.]]>
  2738. </doc>
  2739. </method>
  2740. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2741. abstract="false" native="false" synchronized="false"
  2742. static="false" final="false" visibility="public"
  2743. deprecated="not deprecated">
  2744. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2745. <param name="overwrite" type="boolean"/>
  2746. <param name="bufferSize" type="int"/>
  2747. <param name="replication" type="short"/>
  2748. <param name="blockSize" type="long"/>
  2749. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2750. <exception name="IOException" type="java.io.IOException"/>
  2751. <doc>
  2752. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2753. reporting.
  2754. @param f the file name to open
  2755. @param overwrite if a file with this name already exists, then if true,
  2756. the file will be overwritten, and if false an error will be thrown.
  2757. @param bufferSize the size of the buffer to be used.
  2758. @param replication required block replication for the file.]]>
  2759. </doc>
  2760. </method>
  2761. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2762. abstract="true" native="false" synchronized="false"
  2763. static="false" final="false" visibility="public"
  2764. deprecated="not deprecated">
  2765. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2766. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2767. <param name="overwrite" type="boolean"/>
  2768. <param name="bufferSize" type="int"/>
  2769. <param name="replication" type="short"/>
  2770. <param name="blockSize" type="long"/>
  2771. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2772. <exception name="IOException" type="java.io.IOException"/>
  2773. <doc>
  2774. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2775. reporting.
  2776. @param f the file name to open
  2777. @param permission
  2778. @param overwrite if a file with this name already exists, then if true,
  2779. the file will be overwritten, and if false an error will be thrown.
  2780. @param bufferSize the size of the buffer to be used.
  2781. @param replication required block replication for the file.
  2782. @param blockSize
  2783. @param progress
  2784. @throws IOException
  2785. @see #setPermission(Path, FsPermission)]]>
  2786. </doc>
  2787. </method>
  2788. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2789. abstract="false" native="false" synchronized="false"
  2790. static="false" final="false" visibility="public"
  2791. deprecated="API only for 0.20-append">
  2792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2793. <param name="overwrite" type="boolean"/>
  2794. <param name="bufferSize" type="int"/>
  2795. <param name="replication" type="short"/>
  2796. <param name="blockSize" type="long"/>
  2797. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2798. <exception name="IOException" type="java.io.IOException"/>
  2799. <doc>
  2800. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2801. reporting. Same as create(), except fails if parent directory doesn't
  2802. already exist.
  2803. @param f the file name to open
  2804. @param overwrite if a file with this name already exists, then if true,
  2805. the file will be overwritten, and if false an error will be thrown.
  2806. @param bufferSize the size of the buffer to be used.
  2807. @param replication required block replication for the file.
  2808. @param blockSize
  2809. @param progress
  2810. @throws IOException
  2811. @see #setPermission(Path, FsPermission)
  2812. @deprecated API only for 0.20-append]]>
  2813. </doc>
  2814. </method>
  2815. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2816. abstract="false" native="false" synchronized="false"
  2817. static="false" final="false" visibility="public"
  2818. deprecated="API only for 0.20-append">
  2819. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2820. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2821. <param name="overwrite" type="boolean"/>
  2822. <param name="bufferSize" type="int"/>
  2823. <param name="replication" type="short"/>
  2824. <param name="blockSize" type="long"/>
  2825. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2826. <exception name="IOException" type="java.io.IOException"/>
  2827. <doc>
  2828. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2829. reporting. Same as create(), except fails if parent directory doesn't
  2830. already exist.
  2831. @param f the file name to open
  2832. @param permission
  2833. @param overwrite if a file with this name already exists, then if true,
  2834. the file will be overwritten, and if false an error will be thrown.
  2835. @param bufferSize the size of the buffer to be used.
  2836. @param replication required block replication for the file.
  2837. @param blockSize
  2838. @param progress
  2839. @throws IOException
  2840. @see #setPermission(Path, FsPermission)
  2841. @deprecated API only for 0.20-append]]>
  2842. </doc>
  2843. </method>
  2844. <method name="createNewFile" return="boolean"
  2845. abstract="false" native="false" synchronized="false"
  2846. static="false" final="false" visibility="public"
  2847. deprecated="not deprecated">
  2848. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2849. <exception name="IOException" type="java.io.IOException"/>
  2850. <doc>
  2851. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2852. create fails, or if it already existed, return false.]]>
  2853. </doc>
  2854. </method>
  2855. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2856. abstract="false" native="false" synchronized="false"
  2857. static="false" final="false" visibility="public"
  2858. deprecated="not deprecated">
  2859. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2860. <exception name="IOException" type="java.io.IOException"/>
  2861. <doc>
  2862. <![CDATA[Append to an existing file (optional operation).
  2863. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2864. @param f the existing file to be appended.
  2865. @throws IOException]]>
  2866. </doc>
  2867. </method>
  2868. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2869. abstract="false" native="false" synchronized="false"
  2870. static="false" final="false" visibility="public"
  2871. deprecated="not deprecated">
  2872. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2873. <param name="bufferSize" type="int"/>
  2874. <exception name="IOException" type="java.io.IOException"/>
  2875. <doc>
  2876. <![CDATA[Append to an existing file (optional operation).
  2877. Same as append(f, bufferSize, null).
  2878. @param f the existing file to be appended.
  2879. @param bufferSize the size of the buffer to be used.
  2880. @throws IOException]]>
  2881. </doc>
  2882. </method>
  2883. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2884. abstract="true" native="false" synchronized="false"
  2885. static="false" final="false" visibility="public"
  2886. deprecated="not deprecated">
  2887. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2888. <param name="bufferSize" type="int"/>
  2889. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2890. <exception name="IOException" type="java.io.IOException"/>
  2891. <doc>
  2892. <![CDATA[Append to an existing file (optional operation).
  2893. @param f the existing file to be appended.
  2894. @param bufferSize the size of the buffer to be used.
  2895. @param progress for reporting progress if it is not null.
  2896. @throws IOException]]>
  2897. </doc>
  2898. </method>
  2899. <method name="getReplication" return="short"
  2900. abstract="false" native="false" synchronized="false"
  2901. static="false" final="false" visibility="public"
  2902. deprecated="Use getFileStatus() instead">
  2903. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2904. <exception name="IOException" type="java.io.IOException"/>
  2905. <doc>
  2906. <![CDATA[Get replication.
  2907. @deprecated Use getFileStatus() instead
  2908. @param src file name
  2909. @return file replication
  2910. @throws IOException]]>
  2911. </doc>
  2912. </method>
  2913. <method name="setReplication" return="boolean"
  2914. abstract="false" native="false" synchronized="false"
  2915. static="false" final="false" visibility="public"
  2916. deprecated="not deprecated">
  2917. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2918. <param name="replication" type="short"/>
  2919. <exception name="IOException" type="java.io.IOException"/>
  2920. <doc>
  2921. <![CDATA[Set replication for an existing file.
  2922. @param src file name
  2923. @param replication new replication
  2924. @throws IOException
  2925. @return true if successful;
  2926. false if file does not exist or is a directory]]>
  2927. </doc>
  2928. </method>
  2929. <method name="rename" return="boolean"
  2930. abstract="true" native="false" synchronized="false"
  2931. static="false" final="false" visibility="public"
  2932. deprecated="not deprecated">
  2933. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2934. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2935. <exception name="IOException" type="java.io.IOException"/>
  2936. <doc>
  2937. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2938. or remote DFS.]]>
  2939. </doc>
  2940. </method>
  2941. <method name="delete" return="boolean"
  2942. abstract="true" native="false" synchronized="false"
  2943. static="false" final="false" visibility="public"
  2944. deprecated="Use delete(Path, boolean) instead">
  2945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2946. <exception name="IOException" type="java.io.IOException"/>
  2947. <doc>
  2948. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2949. </doc>
  2950. </method>
  2951. <method name="delete" return="boolean"
  2952. abstract="true" native="false" synchronized="false"
  2953. static="false" final="false" visibility="public"
  2954. deprecated="not deprecated">
  2955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2956. <param name="recursive" type="boolean"/>
  2957. <exception name="IOException" type="java.io.IOException"/>
  2958. <doc>
  2959. <![CDATA[Delete a file.
  2960. @param f the path to delete.
  2961. @param recursive if path is a directory and set to
  2962. true, the directory is deleted else throws an exception. In
  2963. case of a file the recursive can be set to either true or false.
  2964. @return true if delete is successful else false.
  2965. @throws IOException]]>
  2966. </doc>
  2967. </method>
  2968. <method name="deleteOnExit" return="boolean"
  2969. abstract="false" native="false" synchronized="false"
  2970. static="false" final="false" visibility="public"
  2971. deprecated="not deprecated">
  2972. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2973. <exception name="IOException" type="java.io.IOException"/>
  2974. <doc>
  2975. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2976. When the JVM shuts down,
  2977. all FileSystem objects will be closed automatically.
  2978. Then,
  2979. the marked path will be deleted as a result of closing the FileSystem.
  2980. The path has to exist in the file system.
  2981. @param f the path to delete.
  2982. @return true if deleteOnExit is successful, otherwise false.
  2983. @throws IOException]]>
  2984. </doc>
  2985. </method>
  2986. <method name="processDeleteOnExit"
  2987. abstract="false" native="false" synchronized="false"
  2988. static="false" final="false" visibility="protected"
  2989. deprecated="not deprecated">
  2990. <doc>
  2991. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2992. deletes all files in the specified paths.]]>
  2993. </doc>
  2994. </method>
  2995. <method name="exists" return="boolean"
  2996. abstract="false" native="false" synchronized="false"
  2997. static="false" final="false" visibility="public"
  2998. deprecated="not deprecated">
  2999. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3000. <exception name="IOException" type="java.io.IOException"/>
  3001. <doc>
  3002. <![CDATA[Check if exists.
  3003. @param f source file]]>
  3004. </doc>
  3005. </method>
  3006. <method name="isDirectory" return="boolean"
  3007. abstract="false" native="false" synchronized="false"
  3008. static="false" final="false" visibility="public"
  3009. deprecated="Use getFileStatus() instead">
  3010. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3011. <exception name="IOException" type="java.io.IOException"/>
  3012. <doc>
  3013. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3014. </doc>
  3015. </method>
  3016. <method name="isFile" return="boolean"
  3017. abstract="false" native="false" synchronized="false"
  3018. static="false" final="false" visibility="public"
  3019. deprecated="not deprecated">
  3020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3021. <exception name="IOException" type="java.io.IOException"/>
  3022. <doc>
  3023. <![CDATA[True iff the named path is a regular file.]]>
  3024. </doc>
  3025. </method>
  3026. <method name="getLength" return="long"
  3027. abstract="false" native="false" synchronized="false"
  3028. static="false" final="false" visibility="public"
  3029. deprecated="Use getFileStatus() instead">
  3030. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3031. <exception name="IOException" type="java.io.IOException"/>
  3032. <doc>
  3033. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3034. </doc>
  3035. </method>
  3036. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3037. abstract="false" native="false" synchronized="false"
  3038. static="false" final="false" visibility="public"
  3039. deprecated="not deprecated">
  3040. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3041. <exception name="IOException" type="java.io.IOException"/>
  3042. <doc>
  3043. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3044. </doc>
  3045. </method>
  3046. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3047. abstract="true" native="false" synchronized="false"
  3048. static="false" final="false" visibility="public"
  3049. deprecated="not deprecated">
  3050. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3051. <exception name="IOException" type="java.io.IOException"/>
  3052. <doc>
  3053. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3054. a directory.
  3055. @param f
  3056. given path
  3057. @return the statuses of the files/directories in the given patch
  3058. returns null, if Path f does not exist in the FileSystem
  3059. @throws IOException]]>
  3060. </doc>
  3061. </method>
  3062. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  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. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3068. <exception name="IOException" type="java.io.IOException"/>
  3069. <doc>
  3070. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3071. filter.
  3072. @param f
  3073. a path name
  3074. @param filter
  3075. the user-supplied path filter
  3076. @return an array of FileStatus objects for the files under the given path
  3077. after applying the filter
  3078. @throws IOException
  3079. if encounter any problem while fetching the status]]>
  3080. </doc>
  3081. </method>
  3082. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3083. abstract="false" native="false" synchronized="false"
  3084. static="false" final="false" visibility="public"
  3085. deprecated="not deprecated">
  3086. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3087. <exception name="IOException" type="java.io.IOException"/>
  3088. <doc>
  3089. <![CDATA[Filter files/directories in the given list of paths using default
  3090. path filter.
  3091. @param files
  3092. a list of paths
  3093. @return a list of statuses for the files under the given paths after
  3094. applying the filter default Path filter
  3095. @exception IOException]]>
  3096. </doc>
  3097. </method>
  3098. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3099. abstract="false" native="false" synchronized="false"
  3100. static="false" final="false" visibility="public"
  3101. deprecated="not deprecated">
  3102. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3103. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3104. <exception name="IOException" type="java.io.IOException"/>
  3105. <doc>
  3106. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3107. path filter.
  3108. @param files
  3109. a list of paths
  3110. @param filter
  3111. the user-supplied path filter
  3112. @return a list of statuses for the files under the given paths after
  3113. applying the filter
  3114. @exception IOException]]>
  3115. </doc>
  3116. </method>
  3117. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3118. abstract="false" native="false" synchronized="false"
  3119. static="false" final="false" visibility="public"
  3120. deprecated="not deprecated">
  3121. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3122. <exception name="IOException" type="java.io.IOException"/>
  3123. <doc>
  3124. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3125. files. Results are sorted by their names.
  3126. <p>
  3127. A filename pattern is composed of <i>regular</i> characters and
  3128. <i>special pattern matching</i> characters, which are:
  3129. <dl>
  3130. <dd>
  3131. <dl>
  3132. <p>
  3133. <dt> <tt> ? </tt>
  3134. <dd> Matches any single character.
  3135. <p>
  3136. <dt> <tt> * </tt>
  3137. <dd> Matches zero or more characters.
  3138. <p>
  3139. <dt> <tt> [<i>abc</i>] </tt>
  3140. <dd> Matches a single character from character set
  3141. <tt>{<i>a,b,c</i>}</tt>.
  3142. <p>
  3143. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3144. <dd> Matches a single character from the character range
  3145. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3146. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3147. <p>
  3148. <dt> <tt> [^<i>a</i>] </tt>
  3149. <dd> Matches a single character that is not from character set or range
  3150. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3151. immediately to the right of the opening bracket.
  3152. <p>
  3153. <dt> <tt> \<i>c</i> </tt>
  3154. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3155. <p>
  3156. <dt> <tt> {ab,cd} </tt>
  3157. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3158. <p>
  3159. <dt> <tt> {ab,c{de,fh}} </tt>
  3160. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3161. </dl>
  3162. </dd>
  3163. </dl>
  3164. @param pathPattern a regular expression specifying a pth pattern
  3165. @return an array of paths that match the path pattern
  3166. @throws IOException]]>
  3167. </doc>
  3168. </method>
  3169. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3170. abstract="false" native="false" synchronized="false"
  3171. static="false" final="false" visibility="public"
  3172. deprecated="not deprecated">
  3173. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3174. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3175. <exception name="IOException" type="java.io.IOException"/>
  3176. <doc>
  3177. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3178. and is accepted by the user-supplied path filter. Results are sorted by
  3179. their path names.
  3180. Return null if pathPattern has no glob and the path does not exist.
  3181. Return an empty array if pathPattern has a glob and no path matches it.
  3182. @param pathPattern
  3183. a regular expression specifying the path pattern
  3184. @param filter
  3185. a user-supplied path filter
  3186. @return an array of FileStatus objects
  3187. @throws IOException if any I/O error occurs when fetching file status]]>
  3188. </doc>
  3189. </method>
  3190. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3191. abstract="false" native="false" synchronized="false"
  3192. static="false" final="false" visibility="public"
  3193. deprecated="not deprecated">
  3194. <doc>
  3195. <![CDATA[Return the current user's home directory in this filesystem.
  3196. The default implementation returns "/user/$USER/".]]>
  3197. </doc>
  3198. </method>
  3199. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3200. abstract="false" native="false" synchronized="false"
  3201. static="false" final="false" visibility="public"
  3202. deprecated="not deprecated">
  3203. <param name="renewer" type="java.lang.String"/>
  3204. <exception name="IOException" type="java.io.IOException"/>
  3205. <doc>
  3206. <![CDATA[Get a new delegation token for this file system.
  3207. @param renewer the account name that is allowed to renew the token.
  3208. @return a new delegation token
  3209. @throws IOException]]>
  3210. </doc>
  3211. </method>
  3212. <method name="setWorkingDirectory"
  3213. abstract="true" native="false" synchronized="false"
  3214. static="false" final="false" visibility="public"
  3215. deprecated="not deprecated">
  3216. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3217. <doc>
  3218. <![CDATA[Set the current working directory for the given file system. All relative
  3219. paths will be resolved relative to it.
  3220. @param new_dir]]>
  3221. </doc>
  3222. </method>
  3223. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3224. abstract="true" native="false" synchronized="false"
  3225. static="false" final="false" visibility="public"
  3226. deprecated="not deprecated">
  3227. <doc>
  3228. <![CDATA[Get the current working directory for the given file system
  3229. @return the directory pathname]]>
  3230. </doc>
  3231. </method>
  3232. <method name="mkdirs" return="boolean"
  3233. abstract="false" native="false" synchronized="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3237. <exception name="IOException" type="java.io.IOException"/>
  3238. <doc>
  3239. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3240. </doc>
  3241. </method>
  3242. <method name="mkdirs" return="boolean"
  3243. abstract="true" native="false" synchronized="false"
  3244. static="false" final="false" visibility="public"
  3245. deprecated="not deprecated">
  3246. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3247. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3248. <exception name="IOException" type="java.io.IOException"/>
  3249. <doc>
  3250. <![CDATA[Make the given file and all non-existent parents into
  3251. directories. Has the semantics of Unix 'mkdir -p'.
  3252. Existence of the directory hierarchy is not an error.]]>
  3253. </doc>
  3254. </method>
  3255. <method name="copyFromLocalFile"
  3256. abstract="false" native="false" synchronized="false"
  3257. static="false" final="false" visibility="public"
  3258. deprecated="not deprecated">
  3259. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3260. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3261. <exception name="IOException" type="java.io.IOException"/>
  3262. <doc>
  3263. <![CDATA[The src file is on the local disk. Add it to FS at
  3264. the given dst name and the source is kept intact afterwards]]>
  3265. </doc>
  3266. </method>
  3267. <method name="moveFromLocalFile"
  3268. abstract="false" native="false" synchronized="false"
  3269. static="false" final="false" visibility="public"
  3270. deprecated="not deprecated">
  3271. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3272. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3273. <exception name="IOException" type="java.io.IOException"/>
  3274. <doc>
  3275. <![CDATA[The src files is on the local disk. Add it to FS at
  3276. the given dst name, removing the source afterwards.]]>
  3277. </doc>
  3278. </method>
  3279. <method name="moveFromLocalFile"
  3280. abstract="false" native="false" synchronized="false"
  3281. static="false" final="false" visibility="public"
  3282. deprecated="not deprecated">
  3283. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3284. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3285. <exception name="IOException" type="java.io.IOException"/>
  3286. <doc>
  3287. <![CDATA[The src file is on the local disk. Add it to FS at
  3288. the given dst name, removing the source afterwards.]]>
  3289. </doc>
  3290. </method>
  3291. <method name="copyFromLocalFile"
  3292. abstract="false" native="false" synchronized="false"
  3293. static="false" final="false" visibility="public"
  3294. deprecated="not deprecated">
  3295. <param name="delSrc" type="boolean"/>
  3296. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3297. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3298. <exception name="IOException" type="java.io.IOException"/>
  3299. <doc>
  3300. <![CDATA[The src file is on the local disk. Add it to FS at
  3301. the given dst name.
  3302. delSrc indicates if the source should be removed]]>
  3303. </doc>
  3304. </method>
  3305. <method name="copyFromLocalFile"
  3306. abstract="false" native="false" synchronized="false"
  3307. static="false" final="false" visibility="public"
  3308. deprecated="not deprecated">
  3309. <param name="delSrc" type="boolean"/>
  3310. <param name="overwrite" type="boolean"/>
  3311. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3312. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3313. <exception name="IOException" type="java.io.IOException"/>
  3314. <doc>
  3315. <![CDATA[The src files are on the local disk. Add it to FS at
  3316. the given dst name.
  3317. delSrc indicates if the source should be removed]]>
  3318. </doc>
  3319. </method>
  3320. <method name="copyFromLocalFile"
  3321. abstract="false" native="false" synchronized="false"
  3322. static="false" final="false" visibility="public"
  3323. deprecated="not deprecated">
  3324. <param name="delSrc" type="boolean"/>
  3325. <param name="overwrite" type="boolean"/>
  3326. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3327. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3328. <exception name="IOException" type="java.io.IOException"/>
  3329. <doc>
  3330. <![CDATA[The src file is on the local disk. Add it to FS at
  3331. the given dst name.
  3332. delSrc indicates if the source should be removed]]>
  3333. </doc>
  3334. </method>
  3335. <method name="copyToLocalFile"
  3336. abstract="false" native="false" synchronized="false"
  3337. static="false" final="false" visibility="public"
  3338. deprecated="not deprecated">
  3339. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3340. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3341. <exception name="IOException" type="java.io.IOException"/>
  3342. <doc>
  3343. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3344. Copy it from FS control to the local dst name.]]>
  3345. </doc>
  3346. </method>
  3347. <method name="moveToLocalFile"
  3348. abstract="false" native="false" synchronized="false"
  3349. static="false" final="false" visibility="public"
  3350. deprecated="not deprecated">
  3351. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3352. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3353. <exception name="IOException" type="java.io.IOException"/>
  3354. <doc>
  3355. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3356. Copy it from FS control to the local dst name.
  3357. Remove the source afterwards]]>
  3358. </doc>
  3359. </method>
  3360. <method name="copyToLocalFile"
  3361. abstract="false" native="false" synchronized="false"
  3362. static="false" final="false" visibility="public"
  3363. deprecated="not deprecated">
  3364. <param name="delSrc" type="boolean"/>
  3365. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3366. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3367. <exception name="IOException" type="java.io.IOException"/>
  3368. <doc>
  3369. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3370. Copy it from FS control to the local dst name.
  3371. delSrc indicates if the src will be removed or not.]]>
  3372. </doc>
  3373. </method>
  3374. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3375. abstract="false" native="false" synchronized="false"
  3376. static="false" final="false" visibility="public"
  3377. deprecated="not deprecated">
  3378. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3379. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3380. <exception name="IOException" type="java.io.IOException"/>
  3381. <doc>
  3382. <![CDATA[Returns a local File that the user can write output to. The caller
  3383. provides both the eventual FS target name and the local working
  3384. file. If the FS is local, we write directly into the target. If
  3385. the FS is remote, we write into the tmp local area.]]>
  3386. </doc>
  3387. </method>
  3388. <method name="completeLocalOutput"
  3389. abstract="false" native="false" synchronized="false"
  3390. static="false" final="false" visibility="public"
  3391. deprecated="not deprecated">
  3392. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3393. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3394. <exception name="IOException" type="java.io.IOException"/>
  3395. <doc>
  3396. <![CDATA[Called when we're all done writing to the target. A local FS will
  3397. do nothing, because we've written to exactly the right place. A remote
  3398. FS will copy the contents of tmpLocalFile to the correct target at
  3399. fsOutputFile.]]>
  3400. </doc>
  3401. </method>
  3402. <method name="close"
  3403. abstract="false" native="false" synchronized="false"
  3404. static="false" final="false" visibility="public"
  3405. deprecated="not deprecated">
  3406. <exception name="IOException" type="java.io.IOException"/>
  3407. <doc>
  3408. <![CDATA[No more filesystem operations are needed. Will
  3409. release any held locks.]]>
  3410. </doc>
  3411. </method>
  3412. <method name="getUsed" return="long"
  3413. abstract="false" native="false" synchronized="false"
  3414. static="false" final="false" visibility="public"
  3415. deprecated="not deprecated">
  3416. <exception name="IOException" type="java.io.IOException"/>
  3417. <doc>
  3418. <![CDATA[Return the total size of all files in the filesystem.]]>
  3419. </doc>
  3420. </method>
  3421. <method name="getBlockSize" return="long"
  3422. abstract="false" native="false" synchronized="false"
  3423. static="false" final="false" visibility="public"
  3424. deprecated="Use getFileStatus() instead">
  3425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3426. <exception name="IOException" type="java.io.IOException"/>
  3427. <doc>
  3428. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3429. </doc>
  3430. </method>
  3431. <method name="getDefaultBlockSize" return="long"
  3432. abstract="false" native="false" synchronized="false"
  3433. static="false" final="false" visibility="public"
  3434. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  3435. <doc>
  3436. <![CDATA[Return the number of bytes that large input files should be optimally
  3437. be split into to minimize i/o time.
  3438. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  3439. </doc>
  3440. </method>
  3441. <method name="getDefaultBlockSize" return="long"
  3442. abstract="false" native="false" synchronized="false"
  3443. static="false" final="false" visibility="public"
  3444. deprecated="not deprecated">
  3445. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3446. <doc>
  3447. <![CDATA[Return the number of bytes that large input files should be optimally
  3448. be split into to minimize i/o time.
  3449. @param f path of file
  3450. @return the default block size for the path's filesystem]]>
  3451. </doc>
  3452. </method>
  3453. <method name="getDefaultReplication" return="short"
  3454. abstract="false" native="false" synchronized="false"
  3455. static="false" final="false" visibility="public"
  3456. deprecated="use {@link #getDefaultReplication(Path)} instead">
  3457. <doc>
  3458. <![CDATA[Get the default replication.
  3459. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  3460. </doc>
  3461. </method>
  3462. <method name="getDefaultReplication" return="short"
  3463. abstract="false" native="false" synchronized="false"
  3464. static="false" final="false" visibility="public"
  3465. deprecated="not deprecated">
  3466. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3467. <doc>
  3468. <![CDATA[Get the default replication.
  3469. @param path of the file
  3470. @return default replication for the path's filesystem]]>
  3471. </doc>
  3472. </method>
  3473. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3474. abstract="true" native="false" synchronized="false"
  3475. static="false" final="false" visibility="public"
  3476. deprecated="not deprecated">
  3477. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3478. <exception name="IOException" type="java.io.IOException"/>
  3479. <doc>
  3480. <![CDATA[Return a file status object that represents the path.
  3481. @param f The path we want information from
  3482. @return a FileStatus object
  3483. @throws FileNotFoundException when the path does not exist;
  3484. IOException see specific implementation]]>
  3485. </doc>
  3486. </method>
  3487. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  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. <exception name="IOException" type="java.io.IOException"/>
  3493. <doc>
  3494. <![CDATA[Get the checksum of a file.
  3495. @param f The file path
  3496. @return The file checksum. The default return value is null,
  3497. which indicates that no checksum algorithm is implemented
  3498. in the corresponding FileSystem.]]>
  3499. </doc>
  3500. </method>
  3501. <method name="setVerifyChecksum"
  3502. abstract="false" native="false" synchronized="false"
  3503. static="false" final="false" visibility="public"
  3504. deprecated="not deprecated">
  3505. <param name="verifyChecksum" type="boolean"/>
  3506. <doc>
  3507. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3508. corresponding FileSystem supports checksum. By default doesn't do anything.
  3509. @param verifyChecksum]]>
  3510. </doc>
  3511. </method>
  3512. <method name="setPermission"
  3513. abstract="false" native="false" synchronized="false"
  3514. static="false" final="false" visibility="public"
  3515. deprecated="not deprecated">
  3516. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3517. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3518. <exception name="IOException" type="java.io.IOException"/>
  3519. <doc>
  3520. <![CDATA[Set permission of a path.
  3521. @param p
  3522. @param permission]]>
  3523. </doc>
  3524. </method>
  3525. <method name="setOwner"
  3526. abstract="false" native="false" synchronized="false"
  3527. static="false" final="false" visibility="public"
  3528. deprecated="not deprecated">
  3529. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3530. <param name="username" type="java.lang.String"/>
  3531. <param name="groupname" type="java.lang.String"/>
  3532. <exception name="IOException" type="java.io.IOException"/>
  3533. <doc>
  3534. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3535. The parameters username and groupname cannot both be null.
  3536. @param p The path
  3537. @param username If it is null, the original username remains unchanged.
  3538. @param groupname If it is null, the original groupname remains unchanged.]]>
  3539. </doc>
  3540. </method>
  3541. <method name="setTimes"
  3542. abstract="false" native="false" synchronized="false"
  3543. static="false" final="false" visibility="public"
  3544. deprecated="not deprecated">
  3545. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3546. <param name="mtime" type="long"/>
  3547. <param name="atime" type="long"/>
  3548. <exception name="IOException" type="java.io.IOException"/>
  3549. <doc>
  3550. <![CDATA[Set access time of a file
  3551. @param p The path
  3552. @param mtime Set the modification time of this file.
  3553. The number of milliseconds since Jan 1, 1970.
  3554. A value of -1 means that this call should not set modification time.
  3555. @param atime Set the access time of this file.
  3556. The number of milliseconds since Jan 1, 1970.
  3557. A value of -1 means that this call should not set access time.]]>
  3558. </doc>
  3559. </method>
  3560. <method name="getStatistics" return="java.util.Map"
  3561. abstract="false" native="false" synchronized="true"
  3562. static="true" final="false" visibility="public"
  3563. deprecated="use {@link #getAllStatistics} instead">
  3564. <doc>
  3565. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3566. @return a Map having a key as URI scheme and value as Statistics object
  3567. @deprecated use {@link #getAllStatistics} instead]]>
  3568. </doc>
  3569. </method>
  3570. <method name="getAllStatistics" return="java.util.List"
  3571. abstract="false" native="false" synchronized="true"
  3572. static="true" final="false" visibility="public"
  3573. deprecated="not deprecated">
  3574. <doc>
  3575. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3576. </doc>
  3577. </method>
  3578. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3579. abstract="false" native="false" synchronized="true"
  3580. static="true" final="false" visibility="public"
  3581. deprecated="not deprecated">
  3582. <param name="scheme" type="java.lang.String"/>
  3583. <param name="cls" type="java.lang.Class"/>
  3584. <doc>
  3585. <![CDATA[Get the statistics for a particular file system
  3586. @param cls the class to lookup
  3587. @return a statistics object]]>
  3588. </doc>
  3589. </method>
  3590. <method name="clearStatistics"
  3591. abstract="false" native="false" synchronized="true"
  3592. static="true" final="false" visibility="public"
  3593. deprecated="not deprecated">
  3594. </method>
  3595. <method name="printStatistics"
  3596. abstract="false" native="false" synchronized="true"
  3597. static="true" final="false" visibility="public"
  3598. deprecated="not deprecated">
  3599. <exception name="IOException" type="java.io.IOException"/>
  3600. </method>
  3601. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3602. transient="false" volatile="false"
  3603. static="true" final="true" visibility="public"
  3604. deprecated="not deprecated">
  3605. </field>
  3606. <field name="LOG" type="org.apache.commons.logging.Log"
  3607. transient="false" volatile="false"
  3608. static="true" final="true" visibility="public"
  3609. deprecated="not deprecated">
  3610. </field>
  3611. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3612. transient="false" volatile="false"
  3613. static="false" final="false" visibility="protected"
  3614. deprecated="not deprecated">
  3615. <doc>
  3616. <![CDATA[The statistics for this file system.]]>
  3617. </doc>
  3618. </field>
  3619. <doc>
  3620. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3621. may be implemented as a distributed filesystem, or as a "local"
  3622. one that reflects the locally-connected disk. The local version
  3623. exists for small Hadoop instances and for testing.
  3624. <p>
  3625. All user code that may potentially use the Hadoop Distributed
  3626. File System should be written to use a FileSystem object. The
  3627. Hadoop DFS is a multi-machine system that appears as a single
  3628. disk. It's useful because of its fault tolerance and potentially
  3629. very large capacity.
  3630. <p>
  3631. The local implementation is {@link LocalFileSystem} and distributed
  3632. implementation is DistributedFileSystem.]]>
  3633. </doc>
  3634. </class>
  3635. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3636. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3637. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3638. abstract="false"
  3639. static="true" final="true" visibility="public"
  3640. deprecated="not deprecated">
  3641. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3642. static="false" final="false" visibility="public"
  3643. deprecated="not deprecated">
  3644. </constructor>
  3645. <method name="incrementBytesRead"
  3646. abstract="false" native="false" synchronized="false"
  3647. static="false" final="false" visibility="public"
  3648. deprecated="not deprecated">
  3649. <param name="newBytes" type="long"/>
  3650. <doc>
  3651. <![CDATA[Increment the bytes read in the statistics
  3652. @param newBytes the additional bytes read]]>
  3653. </doc>
  3654. </method>
  3655. <method name="incrementBytesWritten"
  3656. abstract="false" native="false" synchronized="false"
  3657. static="false" final="false" visibility="public"
  3658. deprecated="not deprecated">
  3659. <param name="newBytes" type="long"/>
  3660. <doc>
  3661. <![CDATA[Increment the bytes written in the statistics
  3662. @param newBytes the additional bytes written]]>
  3663. </doc>
  3664. </method>
  3665. <method name="incrementReadOps"
  3666. abstract="false" native="false" synchronized="false"
  3667. static="false" final="false" visibility="public"
  3668. deprecated="not deprecated">
  3669. <param name="count" type="int"/>
  3670. <doc>
  3671. <![CDATA[Increment the number of read operations
  3672. @param count number of read operations]]>
  3673. </doc>
  3674. </method>
  3675. <method name="incrementLargeReadOps"
  3676. abstract="false" native="false" synchronized="false"
  3677. static="false" final="false" visibility="public"
  3678. deprecated="not deprecated">
  3679. <param name="count" type="int"/>
  3680. <doc>
  3681. <![CDATA[Increment the number of large read operations
  3682. @param count number of large read operations]]>
  3683. </doc>
  3684. </method>
  3685. <method name="incrementWriteOps"
  3686. abstract="false" native="false" synchronized="false"
  3687. static="false" final="false" visibility="public"
  3688. deprecated="not deprecated">
  3689. <param name="count" type="int"/>
  3690. <doc>
  3691. <![CDATA[Increment the number of write operations
  3692. @param count number of write operations]]>
  3693. </doc>
  3694. </method>
  3695. <method name="getBytesRead" return="long"
  3696. abstract="false" native="false" synchronized="false"
  3697. static="false" final="false" visibility="public"
  3698. deprecated="not deprecated">
  3699. <doc>
  3700. <![CDATA[Get the total number of bytes read
  3701. @return the number of bytes]]>
  3702. </doc>
  3703. </method>
  3704. <method name="getBytesWritten" return="long"
  3705. abstract="false" native="false" synchronized="false"
  3706. static="false" final="false" visibility="public"
  3707. deprecated="not deprecated">
  3708. <doc>
  3709. <![CDATA[Get the total number of bytes written
  3710. @return the number of bytes]]>
  3711. </doc>
  3712. </method>
  3713. <method name="getReadOps" return="int"
  3714. abstract="false" native="false" synchronized="false"
  3715. static="false" final="false" visibility="public"
  3716. deprecated="not deprecated">
  3717. <doc>
  3718. <![CDATA[Get the number of file system read operations such as list files
  3719. @return number of read operations]]>
  3720. </doc>
  3721. </method>
  3722. <method name="getLargeReadOps" return="int"
  3723. abstract="false" native="false" synchronized="false"
  3724. static="false" final="false" visibility="public"
  3725. deprecated="not deprecated">
  3726. <doc>
  3727. <![CDATA[Get the number of large file system read operations such as list files
  3728. under a large directory
  3729. @return number of large read operations]]>
  3730. </doc>
  3731. </method>
  3732. <method name="getWriteOps" return="int"
  3733. abstract="false" native="false" synchronized="false"
  3734. static="false" final="false" visibility="public"
  3735. deprecated="not deprecated">
  3736. <doc>
  3737. <![CDATA[Get the number of file system write operations such as create, append
  3738. rename etc.
  3739. @return number of write operations]]>
  3740. </doc>
  3741. </method>
  3742. <method name="toString" return="java.lang.String"
  3743. abstract="false" native="false" synchronized="false"
  3744. static="false" final="false" visibility="public"
  3745. deprecated="not deprecated">
  3746. </method>
  3747. <method name="reset"
  3748. abstract="false" native="false" synchronized="false"
  3749. static="false" final="false" visibility="public"
  3750. deprecated="not deprecated">
  3751. <doc>
  3752. <![CDATA[Reset the counts of bytes to 0.]]>
  3753. </doc>
  3754. </method>
  3755. <method name="getScheme" return="java.lang.String"
  3756. abstract="false" native="false" synchronized="false"
  3757. static="false" final="false" visibility="public"
  3758. deprecated="not deprecated">
  3759. <doc>
  3760. <![CDATA[Get the uri scheme associated with this statistics object.
  3761. @return the schema associated with this set of statistics]]>
  3762. </doc>
  3763. </method>
  3764. </class>
  3765. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3766. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3767. <class name="FileUtil" extends="java.lang.Object"
  3768. abstract="false"
  3769. static="false" final="false" visibility="public"
  3770. deprecated="not deprecated">
  3771. <constructor name="FileUtil"
  3772. static="false" final="false" visibility="public"
  3773. deprecated="not deprecated">
  3774. </constructor>
  3775. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3776. abstract="false" native="false" synchronized="false"
  3777. static="true" final="false" visibility="public"
  3778. deprecated="not deprecated">
  3779. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3780. <doc>
  3781. <![CDATA[convert an array of FileStatus to an array of Path
  3782. @param stats
  3783. an array of FileStatus objects
  3784. @return an array of paths corresponding to the input]]>
  3785. </doc>
  3786. </method>
  3787. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3788. abstract="false" native="false" synchronized="false"
  3789. static="true" final="false" visibility="public"
  3790. deprecated="not deprecated">
  3791. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3792. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3793. <doc>
  3794. <![CDATA[convert an array of FileStatus to an array of Path.
  3795. If stats if null, return path
  3796. @param stats
  3797. an array of FileStatus objects
  3798. @param path
  3799. default path to return in stats is null
  3800. @return an array of paths corresponding to the input]]>
  3801. </doc>
  3802. </method>
  3803. <method name="fullyDelete" return="boolean"
  3804. abstract="false" native="false" synchronized="false"
  3805. static="true" final="false" visibility="public"
  3806. deprecated="not deprecated">
  3807. <param name="dir" type="java.io.File"/>
  3808. <exception name="IOException" type="java.io.IOException"/>
  3809. <doc>
  3810. <![CDATA[Delete a directory and all its contents. If
  3811. we return false, the directory may be partially-deleted.]]>
  3812. </doc>
  3813. </method>
  3814. <method name="fullyDeleteContents" return="boolean"
  3815. abstract="false" native="false" synchronized="false"
  3816. static="true" final="false" visibility="public"
  3817. deprecated="not deprecated">
  3818. <param name="dir" type="java.io.File"/>
  3819. <exception name="IOException" type="java.io.IOException"/>
  3820. <doc>
  3821. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3822. we return false, the directory may be partially-deleted.]]>
  3823. </doc>
  3824. </method>
  3825. <method name="fullyDelete"
  3826. abstract="false" native="false" synchronized="false"
  3827. static="true" final="false" visibility="public"
  3828. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3829. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3830. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3831. <exception name="IOException" type="java.io.IOException"/>
  3832. <doc>
  3833. <![CDATA[Recursively delete a directory.
  3834. @param fs {@link FileSystem} on which the path is present
  3835. @param dir directory to recursively delete
  3836. @throws IOException
  3837. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3838. </doc>
  3839. </method>
  3840. <method name="copy" return="boolean"
  3841. abstract="false" native="false" synchronized="false"
  3842. static="true" final="false" visibility="public"
  3843. deprecated="not deprecated">
  3844. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3845. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3846. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3847. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3848. <param name="deleteSource" type="boolean"/>
  3849. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3850. <exception name="IOException" type="java.io.IOException"/>
  3851. <doc>
  3852. <![CDATA[Copy files between FileSystems.]]>
  3853. </doc>
  3854. </method>
  3855. <method name="copy" return="boolean"
  3856. abstract="false" native="false" synchronized="false"
  3857. static="true" final="false" visibility="public"
  3858. deprecated="not deprecated">
  3859. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3860. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3861. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3862. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3863. <param name="deleteSource" type="boolean"/>
  3864. <param name="overwrite" type="boolean"/>
  3865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3866. <exception name="IOException" type="java.io.IOException"/>
  3867. </method>
  3868. <method name="copy" return="boolean"
  3869. abstract="false" native="false" synchronized="false"
  3870. static="true" final="false" visibility="public"
  3871. deprecated="not deprecated">
  3872. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3873. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3874. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3875. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3876. <param name="deleteSource" type="boolean"/>
  3877. <param name="overwrite" type="boolean"/>
  3878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3879. <exception name="IOException" type="java.io.IOException"/>
  3880. <doc>
  3881. <![CDATA[Copy files between FileSystems.]]>
  3882. </doc>
  3883. </method>
  3884. <method name="copyMerge" return="boolean"
  3885. abstract="false" native="false" synchronized="false"
  3886. static="true" final="false" visibility="public"
  3887. deprecated="not deprecated">
  3888. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3889. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3890. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3891. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3892. <param name="deleteSource" type="boolean"/>
  3893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3894. <param name="addString" type="java.lang.String"/>
  3895. <exception name="IOException" type="java.io.IOException"/>
  3896. <doc>
  3897. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3898. </doc>
  3899. </method>
  3900. <method name="copy" return="boolean"
  3901. abstract="false" native="false" synchronized="false"
  3902. static="true" final="false" visibility="public"
  3903. deprecated="not deprecated">
  3904. <param name="src" type="java.io.File"/>
  3905. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3906. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3907. <param name="deleteSource" type="boolean"/>
  3908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3909. <exception name="IOException" type="java.io.IOException"/>
  3910. <doc>
  3911. <![CDATA[Copy local files to a FileSystem.]]>
  3912. </doc>
  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="dst" type="java.io.File"/>
  3921. <param name="deleteSource" type="boolean"/>
  3922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3923. <exception name="IOException" type="java.io.IOException"/>
  3924. <doc>
  3925. <![CDATA[Copy FileSystem files to local files.]]>
  3926. </doc>
  3927. </method>
  3928. <method name="makeShellPath" return="java.lang.String"
  3929. abstract="false" native="false" synchronized="false"
  3930. static="true" final="false" visibility="public"
  3931. deprecated="not deprecated">
  3932. <param name="filename" type="java.lang.String"/>
  3933. <exception name="IOException" type="java.io.IOException"/>
  3934. <doc>
  3935. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3936. @param filename The filename to convert
  3937. @return The unix pathname
  3938. @throws IOException on windows, there can be problems with the subprocess]]>
  3939. </doc>
  3940. </method>
  3941. <method name="makeShellPath" return="java.lang.String"
  3942. abstract="false" native="false" synchronized="false"
  3943. static="true" final="false" visibility="public"
  3944. deprecated="not deprecated">
  3945. <param name="file" type="java.io.File"/>
  3946. <exception name="IOException" type="java.io.IOException"/>
  3947. <doc>
  3948. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3949. @param file The filename to convert
  3950. @return The unix pathname
  3951. @throws IOException on windows, there can be problems with the subprocess]]>
  3952. </doc>
  3953. </method>
  3954. <method name="makeShellPath" return="java.lang.String"
  3955. abstract="false" native="false" synchronized="false"
  3956. static="true" final="false" visibility="public"
  3957. deprecated="not deprecated">
  3958. <param name="file" type="java.io.File"/>
  3959. <param name="makeCanonicalPath" type="boolean"/>
  3960. <exception name="IOException" type="java.io.IOException"/>
  3961. <doc>
  3962. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3963. @param file The filename to convert
  3964. @param makeCanonicalPath
  3965. Whether to make canonical path for the file passed
  3966. @return The unix pathname
  3967. @throws IOException on windows, there can be problems with the subprocess]]>
  3968. </doc>
  3969. </method>
  3970. <method name="getDU" return="long"
  3971. abstract="false" native="false" synchronized="false"
  3972. static="true" final="false" visibility="public"
  3973. deprecated="not deprecated">
  3974. <param name="dir" type="java.io.File"/>
  3975. <doc>
  3976. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3977. implementation.
  3978. @param dir
  3979. The input dir to get the disk space of this local dir
  3980. @return The total disk space of the input local directory]]>
  3981. </doc>
  3982. </method>
  3983. <method name="unZip"
  3984. abstract="false" native="false" synchronized="false"
  3985. static="true" final="false" visibility="public"
  3986. deprecated="not deprecated">
  3987. <param name="inFile" type="java.io.File"/>
  3988. <param name="unzipDir" type="java.io.File"/>
  3989. <exception name="IOException" type="java.io.IOException"/>
  3990. <doc>
  3991. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3992. passed as the second parameter
  3993. @param inFile The zip file as input
  3994. @param unzipDir The unzip directory where to unzip the zip file.
  3995. @throws IOException]]>
  3996. </doc>
  3997. </method>
  3998. <method name="unTar"
  3999. abstract="false" native="false" synchronized="false"
  4000. static="true" final="false" visibility="public"
  4001. deprecated="not deprecated">
  4002. <param name="inFile" type="java.io.File"/>
  4003. <param name="untarDir" type="java.io.File"/>
  4004. <exception name="IOException" type="java.io.IOException"/>
  4005. <doc>
  4006. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  4007. passed as the second parameter
  4008. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  4009. @param inFile The tar file as input.
  4010. @param untarDir The untar directory where to untar the tar file.
  4011. @throws IOException]]>
  4012. </doc>
  4013. </method>
  4014. <method name="symLink" return="int"
  4015. abstract="false" native="false" synchronized="false"
  4016. static="true" final="false" visibility="public"
  4017. deprecated="not deprecated">
  4018. <param name="target" type="java.lang.String"/>
  4019. <param name="linkname" type="java.lang.String"/>
  4020. <exception name="IOException" type="java.io.IOException"/>
  4021. <doc>
  4022. <![CDATA[Create a soft link between a src and destination
  4023. only on a local disk. HDFS does not support this
  4024. @param target the target for symlink
  4025. @param linkname the symlink
  4026. @return value returned by the command]]>
  4027. </doc>
  4028. </method>
  4029. <method name="chmod" return="int"
  4030. abstract="false" native="false" synchronized="false"
  4031. static="true" final="false" visibility="public"
  4032. deprecated="not deprecated">
  4033. <param name="filename" type="java.lang.String"/>
  4034. <param name="perm" type="java.lang.String"/>
  4035. <exception name="IOException" type="java.io.IOException"/>
  4036. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4037. <doc>
  4038. <![CDATA[Change the permissions on a filename.
  4039. @param filename the name of the file to change
  4040. @param perm the permission string
  4041. @return the exit code from the command
  4042. @throws IOException
  4043. @throws InterruptedException]]>
  4044. </doc>
  4045. </method>
  4046. <method name="chmod" return="int"
  4047. abstract="false" native="false" synchronized="false"
  4048. static="true" final="false" visibility="public"
  4049. deprecated="not deprecated">
  4050. <param name="filename" type="java.lang.String"/>
  4051. <param name="perm" type="java.lang.String"/>
  4052. <param name="recursive" type="boolean"/>
  4053. <exception name="IOException" type="java.io.IOException"/>
  4054. <doc>
  4055. <![CDATA[Change the permissions on a file / directory, recursively, if
  4056. needed.
  4057. @param filename name of the file whose permissions are to change
  4058. @param perm permission string
  4059. @param recursive true, if permissions should be changed recursively
  4060. @return the exit code from the command.
  4061. @throws IOException
  4062. @throws InterruptedException]]>
  4063. </doc>
  4064. </method>
  4065. <method name="setPermission"
  4066. abstract="false" native="false" synchronized="false"
  4067. static="true" final="false" visibility="public"
  4068. deprecated="not deprecated">
  4069. <param name="f" type="java.io.File"/>
  4070. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4071. <exception name="IOException" type="java.io.IOException"/>
  4072. <doc>
  4073. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  4074. of forking if group == other.
  4075. @param f the file to change
  4076. @param permission the new permissions
  4077. @throws IOException]]>
  4078. </doc>
  4079. </method>
  4080. <method name="createLocalTempFile" return="java.io.File"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="true" final="true" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="basefile" type="java.io.File"/>
  4085. <param name="prefix" type="java.lang.String"/>
  4086. <param name="isDeleteOnExit" type="boolean"/>
  4087. <exception name="IOException" type="java.io.IOException"/>
  4088. <doc>
  4089. <![CDATA[Create a tmp file for a base file.
  4090. @param basefile the base file of the tmp
  4091. @param prefix file name prefix of tmp
  4092. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4093. @return a newly created tmp file
  4094. @exception IOException If a tmp file cannot created
  4095. @see java.io.File#createTempFile(String, String, File)
  4096. @see java.io.File#deleteOnExit()]]>
  4097. </doc>
  4098. </method>
  4099. <method name="replaceFile"
  4100. abstract="false" native="false" synchronized="false"
  4101. static="true" final="false" visibility="public"
  4102. deprecated="not deprecated">
  4103. <param name="src" type="java.io.File"/>
  4104. <param name="target" type="java.io.File"/>
  4105. <exception name="IOException" type="java.io.IOException"/>
  4106. <doc>
  4107. <![CDATA[Move the src file to the name specified by target.
  4108. @param src the source file
  4109. @param target the target file
  4110. @exception IOException If this operation fails]]>
  4111. </doc>
  4112. </method>
  4113. <method name="listFiles" return="java.io.File[]"
  4114. abstract="false" native="false" synchronized="false"
  4115. static="true" final="false" visibility="public"
  4116. deprecated="not deprecated">
  4117. <param name="dir" type="java.io.File"/>
  4118. <exception name="IOException" type="java.io.IOException"/>
  4119. <doc>
  4120. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4121. when a dir is not a directory or for any I/O error. Instead of having
  4122. null check everywhere File#listFiles() is used, we will add utility API
  4123. to get around this problem. For the majority of cases where we prefer
  4124. an IOException to be thrown.
  4125. @param dir directory for which listing should be performed
  4126. @return list of files or empty list
  4127. @exception IOException for invalid directory or for a bad disk.]]>
  4128. </doc>
  4129. </method>
  4130. <method name="list" return="java.lang.String[]"
  4131. abstract="false" native="false" synchronized="false"
  4132. static="true" final="false" visibility="public"
  4133. deprecated="not deprecated">
  4134. <param name="dir" type="java.io.File"/>
  4135. <exception name="IOException" type="java.io.IOException"/>
  4136. <doc>
  4137. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4138. when a dir is not a directory or for any I/O error. Instead of having
  4139. null check everywhere File#list() is used, we will add utility API
  4140. to get around this problem. For the majority of cases where we prefer
  4141. an IOException to be thrown.
  4142. @param dir directory for which listing should be performed
  4143. @return list of file names or empty string list
  4144. @exception IOException for invalid directory or for a bad disk.]]>
  4145. </doc>
  4146. </method>
  4147. <doc>
  4148. <![CDATA[A collection of file-processing util methods]]>
  4149. </doc>
  4150. </class>
  4151. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4152. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4153. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4154. abstract="false"
  4155. static="false" final="false" visibility="public"
  4156. deprecated="not deprecated">
  4157. <constructor name="FilterFileSystem"
  4158. static="false" final="false" visibility="public"
  4159. deprecated="not deprecated">
  4160. </constructor>
  4161. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4162. static="false" final="false" visibility="public"
  4163. deprecated="not deprecated">
  4164. </constructor>
  4165. <method name="initialize"
  4166. abstract="false" native="false" synchronized="false"
  4167. static="false" final="false" visibility="public"
  4168. deprecated="not deprecated">
  4169. <param name="name" type="java.net.URI"/>
  4170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4171. <exception name="IOException" type="java.io.IOException"/>
  4172. <doc>
  4173. <![CDATA[Called after a new FileSystem instance is constructed.
  4174. @param name a uri whose authority section names the host, port, etc.
  4175. for this FileSystem
  4176. @param conf the configuration]]>
  4177. </doc>
  4178. </method>
  4179. <method name="getUri" return="java.net.URI"
  4180. abstract="false" native="false" synchronized="false"
  4181. static="false" final="false" visibility="public"
  4182. deprecated="not deprecated">
  4183. <doc>
  4184. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4185. </doc>
  4186. </method>
  4187. <method name="getCanonicalServiceName" return="java.lang.String"
  4188. abstract="false" native="false" synchronized="false"
  4189. static="false" final="false" visibility="public"
  4190. deprecated="not deprecated">
  4191. </method>
  4192. <method name="getName" return="java.lang.String"
  4193. abstract="false" native="false" synchronized="false"
  4194. static="false" final="false" visibility="public"
  4195. deprecated="call #getUri() instead.">
  4196. <doc>
  4197. <![CDATA[@deprecated call #getUri() instead.]]>
  4198. </doc>
  4199. </method>
  4200. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4201. abstract="false" native="false" synchronized="false"
  4202. static="false" final="false" visibility="public"
  4203. deprecated="not deprecated">
  4204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4205. <doc>
  4206. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4207. </doc>
  4208. </method>
  4209. <method name="checkPath"
  4210. abstract="false" native="false" synchronized="false"
  4211. static="false" final="false" visibility="protected"
  4212. deprecated="not deprecated">
  4213. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4214. <doc>
  4215. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4216. </doc>
  4217. </method>
  4218. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4219. abstract="false" native="false" synchronized="false"
  4220. static="false" final="false" visibility="public"
  4221. deprecated="not deprecated">
  4222. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4223. <param name="start" type="long"/>
  4224. <param name="len" type="long"/>
  4225. <exception name="IOException" type="java.io.IOException"/>
  4226. </method>
  4227. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4228. abstract="false" native="false" synchronized="false"
  4229. static="false" final="false" visibility="public"
  4230. deprecated="not deprecated">
  4231. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4232. <param name="bufferSize" type="int"/>
  4233. <exception name="IOException" type="java.io.IOException"/>
  4234. <doc>
  4235. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4236. @param f the file name to open
  4237. @param bufferSize the size of the buffer to be used.]]>
  4238. </doc>
  4239. </method>
  4240. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4241. abstract="false" native="false" synchronized="false"
  4242. static="false" final="false" visibility="public"
  4243. deprecated="not deprecated">
  4244. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4245. <param name="bufferSize" type="int"/>
  4246. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4247. <exception name="IOException" type="java.io.IOException"/>
  4248. <doc>
  4249. <![CDATA[{@inheritDoc}]]>
  4250. </doc>
  4251. </method>
  4252. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4253. abstract="false" native="false" synchronized="false"
  4254. static="false" final="false" visibility="public"
  4255. deprecated="not deprecated">
  4256. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4257. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4258. <param name="overwrite" type="boolean"/>
  4259. <param name="bufferSize" type="int"/>
  4260. <param name="replication" type="short"/>
  4261. <param name="blockSize" type="long"/>
  4262. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4263. <exception name="IOException" type="java.io.IOException"/>
  4264. <doc>
  4265. <![CDATA[{@inheritDoc}]]>
  4266. </doc>
  4267. </method>
  4268. <method name="setReplication" return="boolean"
  4269. abstract="false" native="false" synchronized="false"
  4270. static="false" final="false" visibility="public"
  4271. deprecated="not deprecated">
  4272. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4273. <param name="replication" type="short"/>
  4274. <exception name="IOException" type="java.io.IOException"/>
  4275. <doc>
  4276. <![CDATA[Set replication for an existing file.
  4277. @param src file name
  4278. @param replication new replication
  4279. @throws IOException
  4280. @return true if successful;
  4281. false if file does not exist or is a directory]]>
  4282. </doc>
  4283. </method>
  4284. <method name="rename" return="boolean"
  4285. abstract="false" native="false" synchronized="false"
  4286. static="false" final="false" visibility="public"
  4287. deprecated="not deprecated">
  4288. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4289. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4290. <exception name="IOException" type="java.io.IOException"/>
  4291. <doc>
  4292. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4293. or remote DFS.]]>
  4294. </doc>
  4295. </method>
  4296. <method name="delete" return="boolean"
  4297. abstract="false" native="false" synchronized="false"
  4298. static="false" final="false" visibility="public"
  4299. deprecated="not deprecated">
  4300. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4301. <exception name="IOException" type="java.io.IOException"/>
  4302. <doc>
  4303. <![CDATA[Delete a file]]>
  4304. </doc>
  4305. </method>
  4306. <method name="delete" return="boolean"
  4307. abstract="false" native="false" synchronized="false"
  4308. static="false" final="false" visibility="public"
  4309. deprecated="not deprecated">
  4310. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4311. <param name="recursive" type="boolean"/>
  4312. <exception name="IOException" type="java.io.IOException"/>
  4313. <doc>
  4314. <![CDATA[Delete a file]]>
  4315. </doc>
  4316. </method>
  4317. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4318. abstract="false" native="false" synchronized="false"
  4319. static="false" final="false" visibility="public"
  4320. deprecated="not deprecated">
  4321. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. <doc>
  4324. <![CDATA[List files in a directory.]]>
  4325. </doc>
  4326. </method>
  4327. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4328. abstract="false" native="false" synchronized="false"
  4329. static="false" final="false" visibility="public"
  4330. deprecated="not deprecated">
  4331. </method>
  4332. <method name="setWorkingDirectory"
  4333. abstract="false" native="false" synchronized="false"
  4334. static="false" final="false" visibility="public"
  4335. deprecated="not deprecated">
  4336. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4337. <doc>
  4338. <![CDATA[Set the current working directory for the given file system. All relative
  4339. paths will be resolved relative to it.
  4340. @param newDir]]>
  4341. </doc>
  4342. </method>
  4343. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4344. abstract="false" native="false" synchronized="false"
  4345. static="false" final="false" visibility="public"
  4346. deprecated="not deprecated">
  4347. <doc>
  4348. <![CDATA[Get the current working directory for the given file system
  4349. @return the directory pathname]]>
  4350. </doc>
  4351. </method>
  4352. <method name="mkdirs" 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="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4358. <exception name="IOException" type="java.io.IOException"/>
  4359. <doc>
  4360. <![CDATA[{@inheritDoc}]]>
  4361. </doc>
  4362. </method>
  4363. <method name="copyFromLocalFile"
  4364. abstract="false" native="false" synchronized="false"
  4365. static="false" final="false" visibility="public"
  4366. deprecated="not deprecated">
  4367. <param name="delSrc" type="boolean"/>
  4368. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4369. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4370. <exception name="IOException" type="java.io.IOException"/>
  4371. <doc>
  4372. <![CDATA[The src file is on the local disk. Add it to FS at
  4373. the given dst name.
  4374. delSrc indicates if the source should be removed]]>
  4375. </doc>
  4376. </method>
  4377. <method name="copyToLocalFile"
  4378. abstract="false" native="false" synchronized="false"
  4379. static="false" final="false" visibility="public"
  4380. deprecated="not deprecated">
  4381. <param name="delSrc" type="boolean"/>
  4382. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4383. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4384. <exception name="IOException" type="java.io.IOException"/>
  4385. <doc>
  4386. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4387. Copy it from FS control to the local dst name.
  4388. delSrc indicates if the src will be removed or not.]]>
  4389. </doc>
  4390. </method>
  4391. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4392. abstract="false" native="false" synchronized="false"
  4393. static="false" final="false" visibility="public"
  4394. deprecated="not deprecated">
  4395. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4396. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4397. <exception name="IOException" type="java.io.IOException"/>
  4398. <doc>
  4399. <![CDATA[Returns a local File that the user can write output to. The caller
  4400. provides both the eventual FS target name and the local working
  4401. file. If the FS is local, we write directly into the target. If
  4402. the FS is remote, we write into the tmp local area.]]>
  4403. </doc>
  4404. </method>
  4405. <method name="completeLocalOutput"
  4406. abstract="false" native="false" synchronized="false"
  4407. static="false" final="false" visibility="public"
  4408. deprecated="not deprecated">
  4409. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4410. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4411. <exception name="IOException" type="java.io.IOException"/>
  4412. <doc>
  4413. <![CDATA[Called when we're all done writing to the target. A local FS will
  4414. do nothing, because we've written to exactly the right place. A remote
  4415. FS will copy the contents of tmpLocalFile to the correct target at
  4416. fsOutputFile.]]>
  4417. </doc>
  4418. </method>
  4419. <method name="getDefaultBlockSize" return="long"
  4420. abstract="false" native="false" synchronized="false"
  4421. static="false" final="false" visibility="public"
  4422. deprecated="not deprecated">
  4423. <doc>
  4424. <![CDATA[Return the number of bytes that large input files should be optimally
  4425. be split into to minimize i/o time.]]>
  4426. </doc>
  4427. </method>
  4428. <method name="getDefaultReplication" return="short"
  4429. abstract="false" native="false" synchronized="false"
  4430. static="false" final="false" visibility="public"
  4431. deprecated="not deprecated">
  4432. <doc>
  4433. <![CDATA[Get the default replication.]]>
  4434. </doc>
  4435. </method>
  4436. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4437. abstract="false" native="false" synchronized="false"
  4438. static="false" final="false" visibility="public"
  4439. deprecated="not deprecated">
  4440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4441. <exception name="IOException" type="java.io.IOException"/>
  4442. <doc>
  4443. <![CDATA[Get file status.]]>
  4444. </doc>
  4445. </method>
  4446. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4447. abstract="false" native="false" synchronized="false"
  4448. static="false" final="false" visibility="public"
  4449. deprecated="not deprecated">
  4450. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4451. <exception name="IOException" type="java.io.IOException"/>
  4452. <doc>
  4453. <![CDATA[{@inheritDoc}]]>
  4454. </doc>
  4455. </method>
  4456. <method name="setVerifyChecksum"
  4457. abstract="false" native="false" synchronized="false"
  4458. static="false" final="false" visibility="public"
  4459. deprecated="not deprecated">
  4460. <param name="verifyChecksum" type="boolean"/>
  4461. <doc>
  4462. <![CDATA[{@inheritDoc}]]>
  4463. </doc>
  4464. </method>
  4465. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4466. abstract="false" native="false" synchronized="false"
  4467. static="false" final="false" visibility="public"
  4468. deprecated="not deprecated">
  4469. </method>
  4470. <method name="close"
  4471. abstract="false" native="false" synchronized="false"
  4472. static="false" final="false" visibility="public"
  4473. deprecated="not deprecated">
  4474. <exception name="IOException" type="java.io.IOException"/>
  4475. </method>
  4476. <method name="setOwner"
  4477. abstract="false" native="false" synchronized="false"
  4478. static="false" final="false" visibility="public"
  4479. deprecated="not deprecated">
  4480. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4481. <param name="username" type="java.lang.String"/>
  4482. <param name="groupname" type="java.lang.String"/>
  4483. <exception name="IOException" type="java.io.IOException"/>
  4484. <doc>
  4485. <![CDATA[{@inheritDoc}]]>
  4486. </doc>
  4487. </method>
  4488. <method name="setPermission"
  4489. abstract="false" native="false" synchronized="false"
  4490. static="false" final="false" visibility="public"
  4491. deprecated="not deprecated">
  4492. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4493. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4494. <exception name="IOException" type="java.io.IOException"/>
  4495. <doc>
  4496. <![CDATA[{@inheritDoc}]]>
  4497. </doc>
  4498. </method>
  4499. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4500. transient="false" volatile="false"
  4501. static="false" final="false" visibility="protected"
  4502. deprecated="not deprecated">
  4503. </field>
  4504. <doc>
  4505. <![CDATA[A <code>FilterFileSystem</code> contains
  4506. some other file system, which it uses as
  4507. its basic file system, possibly transforming
  4508. the data along the way or providing additional
  4509. functionality. The class <code>FilterFileSystem</code>
  4510. itself simply overrides all methods of
  4511. <code>FileSystem</code> with versions that
  4512. pass all requests to the contained file
  4513. system. Subclasses of <code>FilterFileSystem</code>
  4514. may further override some of these methods
  4515. and may also provide additional methods
  4516. and fields.]]>
  4517. </doc>
  4518. </class>
  4519. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4520. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4521. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4522. abstract="false"
  4523. static="false" final="false" visibility="public"
  4524. deprecated="not deprecated">
  4525. <implements name="org.apache.hadoop.fs.Seekable"/>
  4526. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4527. <implements name="java.io.Closeable"/>
  4528. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4529. static="false" final="false" visibility="public"
  4530. deprecated="not deprecated">
  4531. <exception name="IOException" type="java.io.IOException"/>
  4532. </constructor>
  4533. <method name="seek"
  4534. abstract="false" native="false" synchronized="true"
  4535. static="false" final="false" visibility="public"
  4536. deprecated="not deprecated">
  4537. <param name="desired" type="long"/>
  4538. <exception name="IOException" type="java.io.IOException"/>
  4539. </method>
  4540. <method name="getPos" return="long"
  4541. abstract="false" native="false" synchronized="false"
  4542. static="false" final="false" visibility="public"
  4543. deprecated="not deprecated">
  4544. <exception name="IOException" type="java.io.IOException"/>
  4545. </method>
  4546. <method name="read" return="int"
  4547. abstract="false" native="false" synchronized="false"
  4548. static="false" final="false" visibility="public"
  4549. deprecated="not deprecated">
  4550. <param name="position" type="long"/>
  4551. <param name="buffer" type="byte[]"/>
  4552. <param name="offset" type="int"/>
  4553. <param name="length" type="int"/>
  4554. <exception name="IOException" type="java.io.IOException"/>
  4555. </method>
  4556. <method name="readFully"
  4557. abstract="false" native="false" synchronized="false"
  4558. static="false" final="false" visibility="public"
  4559. deprecated="not deprecated">
  4560. <param name="position" type="long"/>
  4561. <param name="buffer" type="byte[]"/>
  4562. <param name="offset" type="int"/>
  4563. <param name="length" type="int"/>
  4564. <exception name="IOException" type="java.io.IOException"/>
  4565. </method>
  4566. <method name="readFully"
  4567. abstract="false" native="false" synchronized="false"
  4568. static="false" final="false" visibility="public"
  4569. deprecated="not deprecated">
  4570. <param name="position" type="long"/>
  4571. <param name="buffer" type="byte[]"/>
  4572. <exception name="IOException" type="java.io.IOException"/>
  4573. </method>
  4574. <method name="seekToNewSource" return="boolean"
  4575. abstract="false" native="false" synchronized="false"
  4576. static="false" final="false" visibility="public"
  4577. deprecated="not deprecated">
  4578. <param name="targetPos" type="long"/>
  4579. <exception name="IOException" type="java.io.IOException"/>
  4580. </method>
  4581. <doc>
  4582. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4583. and buffers input through a {@link BufferedInputStream}.]]>
  4584. </doc>
  4585. </class>
  4586. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4587. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4588. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4589. abstract="false"
  4590. static="false" final="false" visibility="public"
  4591. deprecated="not deprecated">
  4592. <implements name="org.apache.hadoop.fs.Syncable"/>
  4593. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4594. static="false" final="false" visibility="public"
  4595. deprecated="not deprecated">
  4596. <exception name="IOException" type="java.io.IOException"/>
  4597. </constructor>
  4598. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4599. static="false" final="false" visibility="public"
  4600. deprecated="not deprecated">
  4601. <exception name="IOException" type="java.io.IOException"/>
  4602. </constructor>
  4603. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4604. static="false" final="false" visibility="public"
  4605. deprecated="not deprecated">
  4606. <exception name="IOException" type="java.io.IOException"/>
  4607. </constructor>
  4608. <method name="getPos" return="long"
  4609. abstract="false" native="false" synchronized="false"
  4610. static="false" final="false" visibility="public"
  4611. deprecated="not deprecated">
  4612. <exception name="IOException" type="java.io.IOException"/>
  4613. </method>
  4614. <method name="close"
  4615. abstract="false" native="false" synchronized="false"
  4616. static="false" final="false" visibility="public"
  4617. deprecated="not deprecated">
  4618. <exception name="IOException" type="java.io.IOException"/>
  4619. </method>
  4620. <method name="getWrappedStream" return="java.io.OutputStream"
  4621. abstract="false" native="false" synchronized="false"
  4622. static="false" final="false" visibility="public"
  4623. deprecated="not deprecated">
  4624. </method>
  4625. <method name="sync"
  4626. abstract="false" native="false" synchronized="false"
  4627. static="false" final="false" visibility="public"
  4628. deprecated="not deprecated">
  4629. <exception name="IOException" type="java.io.IOException"/>
  4630. <doc>
  4631. <![CDATA[{@inheritDoc}]]>
  4632. </doc>
  4633. </method>
  4634. <doc>
  4635. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4636. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4637. file.]]>
  4638. </doc>
  4639. </class>
  4640. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4641. <!-- start class org.apache.hadoop.fs.FSError -->
  4642. <class name="FSError" extends="java.lang.Error"
  4643. abstract="false"
  4644. static="false" final="false" visibility="public"
  4645. deprecated="not deprecated">
  4646. <doc>
  4647. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4648. in the native filesystem.]]>
  4649. </doc>
  4650. </class>
  4651. <!-- end class org.apache.hadoop.fs.FSError -->
  4652. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4653. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4654. abstract="true"
  4655. static="false" final="false" visibility="public"
  4656. deprecated="not deprecated">
  4657. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4658. static="false" final="false" visibility="protected"
  4659. deprecated="not deprecated">
  4660. <doc>
  4661. <![CDATA[Constructor
  4662. @param file The name of the file to be read
  4663. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4664. </doc>
  4665. </constructor>
  4666. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4667. static="false" final="false" visibility="protected"
  4668. deprecated="not deprecated">
  4669. <doc>
  4670. <![CDATA[Constructor
  4671. @param file The name of the file to be read
  4672. @param numOfRetries Number of read retries when ChecksumError occurs
  4673. @param sum the type of Checksum engine
  4674. @param chunkSize maximun chunk size
  4675. @param checksumSize the number byte of each checksum]]>
  4676. </doc>
  4677. </constructor>
  4678. <method name="readChunk" return="int"
  4679. abstract="true" native="false" synchronized="false"
  4680. static="false" final="false" visibility="protected"
  4681. deprecated="not deprecated">
  4682. <param name="pos" type="long"/>
  4683. <param name="buf" type="byte[]"/>
  4684. <param name="offset" type="int"/>
  4685. <param name="len" type="int"/>
  4686. <param name="checksum" type="byte[]"/>
  4687. <exception name="IOException" type="java.io.IOException"/>
  4688. <doc>
  4689. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4690. and checksum into <code>checksum</code>.
  4691. The method is used for implementing read, therefore, it should be optimized
  4692. for sequential reading
  4693. @param pos chunkPos
  4694. @param buf desitination buffer
  4695. @param offset offset in buf at which to store data
  4696. @param len maximun number of bytes to read
  4697. @return number of bytes read]]>
  4698. </doc>
  4699. </method>
  4700. <method name="getChunkPosition" return="long"
  4701. abstract="true" native="false" synchronized="false"
  4702. static="false" final="false" visibility="protected"
  4703. deprecated="not deprecated">
  4704. <param name="pos" type="long"/>
  4705. <doc>
  4706. <![CDATA[Return position of beginning of chunk containing pos.
  4707. @param pos a postion in the file
  4708. @return the starting position of the chunk which contains the byte]]>
  4709. </doc>
  4710. </method>
  4711. <method name="needChecksum" return="boolean"
  4712. abstract="false" native="false" synchronized="true"
  4713. static="false" final="false" visibility="protected"
  4714. deprecated="not deprecated">
  4715. <doc>
  4716. <![CDATA[Return true if there is a need for checksum verification]]>
  4717. </doc>
  4718. </method>
  4719. <method name="read" return="int"
  4720. abstract="false" native="false" synchronized="true"
  4721. static="false" final="false" visibility="public"
  4722. deprecated="not deprecated">
  4723. <exception name="IOException" type="java.io.IOException"/>
  4724. <doc>
  4725. <![CDATA[Read one checksum-verified byte
  4726. @return the next byte of data, or <code>-1</code> if the end of the
  4727. stream is reached.
  4728. @exception IOException if an I/O error occurs.]]>
  4729. </doc>
  4730. </method>
  4731. <method name="read" return="int"
  4732. abstract="false" native="false" synchronized="true"
  4733. static="false" final="false" visibility="public"
  4734. deprecated="not deprecated">
  4735. <param name="b" type="byte[]"/>
  4736. <param name="off" type="int"/>
  4737. <param name="len" type="int"/>
  4738. <exception name="IOException" type="java.io.IOException"/>
  4739. <doc>
  4740. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4741. the specified byte array, starting at the given offset.
  4742. <p> This method implements the general contract of the corresponding
  4743. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4744. the <code>{@link InputStream}</code> class. As an additional
  4745. convenience, it attempts to read as many bytes as possible by repeatedly
  4746. invoking the <code>read</code> method of the underlying stream. This
  4747. iterated <code>read</code> continues until one of the following
  4748. conditions becomes true: <ul>
  4749. <li> The specified number of bytes have been read,
  4750. <li> The <code>read</code> method of the underlying stream returns
  4751. <code>-1</code>, indicating end-of-file.
  4752. </ul> If the first <code>read</code> on the underlying stream returns
  4753. <code>-1</code> to indicate end-of-file then this method returns
  4754. <code>-1</code>. Otherwise this method returns the number of bytes
  4755. actually read.
  4756. @param b destination buffer.
  4757. @param off offset at which to start storing bytes.
  4758. @param len maximum number of bytes to read.
  4759. @return the number of bytes read, or <code>-1</code> if the end of
  4760. the stream has been reached.
  4761. @exception IOException if an I/O error occurs.
  4762. ChecksumException if any checksum error occurs]]>
  4763. </doc>
  4764. </method>
  4765. <method name="checksum2long" return="long"
  4766. abstract="false" native="false" synchronized="false"
  4767. static="true" final="false" visibility="public"
  4768. deprecated="not deprecated">
  4769. <param name="checksum" type="byte[]"/>
  4770. <doc>
  4771. <![CDATA[Convert a checksum byte array to a long]]>
  4772. </doc>
  4773. </method>
  4774. <method name="getPos" return="long"
  4775. abstract="false" native="false" synchronized="true"
  4776. static="false" final="false" visibility="public"
  4777. deprecated="not deprecated">
  4778. <exception name="IOException" type="java.io.IOException"/>
  4779. </method>
  4780. <method name="available" return="int"
  4781. abstract="false" native="false" synchronized="true"
  4782. static="false" final="false" visibility="public"
  4783. deprecated="not deprecated">
  4784. <exception name="IOException" type="java.io.IOException"/>
  4785. </method>
  4786. <method name="skip" return="long"
  4787. abstract="false" native="false" synchronized="true"
  4788. static="false" final="false" visibility="public"
  4789. deprecated="not deprecated">
  4790. <param name="n" type="long"/>
  4791. <exception name="IOException" type="java.io.IOException"/>
  4792. <doc>
  4793. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4794. input stream.
  4795. <p>This method may skip more bytes than are remaining in the backing
  4796. file. This produces no exception and the number of bytes skipped
  4797. may include some number of bytes that were beyond the EOF of the
  4798. backing file. Attempting to read from the stream after skipping past
  4799. the end will result in -1 indicating the end of the file.
  4800. <p>If <code>n</code> is negative, no bytes are skipped.
  4801. @param n the number of bytes to be skipped.
  4802. @return the actual number of bytes skipped.
  4803. @exception IOException if an I/O error occurs.
  4804. ChecksumException if the chunk to skip to is corrupted]]>
  4805. </doc>
  4806. </method>
  4807. <method name="seek"
  4808. abstract="false" native="false" synchronized="true"
  4809. static="false" final="false" visibility="public"
  4810. deprecated="not deprecated">
  4811. <param name="pos" type="long"/>
  4812. <exception name="IOException" type="java.io.IOException"/>
  4813. <doc>
  4814. <![CDATA[Seek to the given position in the stream.
  4815. The next read() will be from that position.
  4816. <p>This method may seek past the end of the file.
  4817. This produces no exception and an attempt to read from
  4818. the stream will result in -1 indicating the end of the file.
  4819. @param pos the postion to seek to.
  4820. @exception IOException if an I/O error occurs.
  4821. ChecksumException if the chunk to seek to is corrupted]]>
  4822. </doc>
  4823. </method>
  4824. <method name="readFully" return="int"
  4825. abstract="false" native="false" synchronized="false"
  4826. static="true" final="false" visibility="protected"
  4827. deprecated="not deprecated">
  4828. <param name="stm" type="java.io.InputStream"/>
  4829. <param name="buf" type="byte[]"/>
  4830. <param name="offset" type="int"/>
  4831. <param name="len" type="int"/>
  4832. <exception name="IOException" type="java.io.IOException"/>
  4833. <doc>
  4834. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4835. <code>stm</code>
  4836. @param stm an input stream
  4837. @param buf destiniation buffer
  4838. @param offset offset at which to store data
  4839. @param len number of bytes to read
  4840. @return actual number of bytes read
  4841. @throws IOException if there is any IO error]]>
  4842. </doc>
  4843. </method>
  4844. <method name="set"
  4845. abstract="false" native="false" synchronized="true"
  4846. static="false" final="true" visibility="protected"
  4847. deprecated="not deprecated">
  4848. <param name="verifyChecksum" type="boolean"/>
  4849. <param name="sum" type="java.util.zip.Checksum"/>
  4850. <param name="maxChunkSize" type="int"/>
  4851. <param name="checksumSize" type="int"/>
  4852. <doc>
  4853. <![CDATA[Set the checksum related parameters
  4854. @param verifyChecksum whether to verify checksum
  4855. @param sum which type of checksum to use
  4856. @param maxChunkSize maximun chunk size
  4857. @param checksumSize checksum size]]>
  4858. </doc>
  4859. </method>
  4860. <method name="markSupported" return="boolean"
  4861. abstract="false" native="false" synchronized="false"
  4862. static="false" final="true" visibility="public"
  4863. deprecated="not deprecated">
  4864. </method>
  4865. <method name="mark"
  4866. abstract="false" native="false" synchronized="false"
  4867. static="false" final="true" visibility="public"
  4868. deprecated="not deprecated">
  4869. <param name="readlimit" type="int"/>
  4870. </method>
  4871. <method name="reset"
  4872. abstract="false" native="false" synchronized="false"
  4873. static="false" final="true" visibility="public"
  4874. deprecated="not deprecated">
  4875. <exception name="IOException" type="java.io.IOException"/>
  4876. </method>
  4877. <field name="LOG" type="org.apache.commons.logging.Log"
  4878. transient="false" volatile="false"
  4879. static="true" final="true" visibility="public"
  4880. deprecated="not deprecated">
  4881. </field>
  4882. <field name="file" type="org.apache.hadoop.fs.Path"
  4883. transient="false" volatile="false"
  4884. static="false" final="false" visibility="protected"
  4885. deprecated="not deprecated">
  4886. <doc>
  4887. <![CDATA[The file name from which data is read from]]>
  4888. </doc>
  4889. </field>
  4890. <doc>
  4891. <![CDATA[This is a generic input stream for verifying checksums for
  4892. data before it is read by a user.]]>
  4893. </doc>
  4894. </class>
  4895. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4896. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4897. <class name="FSInputStream" extends="java.io.InputStream"
  4898. abstract="true"
  4899. static="false" final="false" visibility="public"
  4900. deprecated="not deprecated">
  4901. <implements name="org.apache.hadoop.fs.Seekable"/>
  4902. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4903. <constructor name="FSInputStream"
  4904. static="false" final="false" visibility="public"
  4905. deprecated="not deprecated">
  4906. </constructor>
  4907. <method name="seek"
  4908. abstract="true" native="false" synchronized="false"
  4909. static="false" final="false" visibility="public"
  4910. deprecated="not deprecated">
  4911. <param name="pos" type="long"/>
  4912. <exception name="IOException" type="java.io.IOException"/>
  4913. <doc>
  4914. <![CDATA[Seek to the given offset from the start of the file.
  4915. The next read() will be from that location. Can't
  4916. seek past the end of the file.]]>
  4917. </doc>
  4918. </method>
  4919. <method name="getPos" return="long"
  4920. abstract="true" native="false" synchronized="false"
  4921. static="false" final="false" visibility="public"
  4922. deprecated="not deprecated">
  4923. <exception name="IOException" type="java.io.IOException"/>
  4924. <doc>
  4925. <![CDATA[Return the current offset from the start of the file]]>
  4926. </doc>
  4927. </method>
  4928. <method name="seekToNewSource" return="boolean"
  4929. abstract="true" native="false" synchronized="false"
  4930. static="false" final="false" visibility="public"
  4931. deprecated="not deprecated">
  4932. <param name="targetPos" type="long"/>
  4933. <exception name="IOException" type="java.io.IOException"/>
  4934. <doc>
  4935. <![CDATA[Seeks a different copy of the data. Returns true if
  4936. found a new source, false otherwise.]]>
  4937. </doc>
  4938. </method>
  4939. <method name="read" return="int"
  4940. abstract="false" native="false" synchronized="false"
  4941. static="false" final="false" visibility="public"
  4942. deprecated="not deprecated">
  4943. <param name="position" type="long"/>
  4944. <param name="buffer" type="byte[]"/>
  4945. <param name="offset" type="int"/>
  4946. <param name="length" type="int"/>
  4947. <exception name="IOException" type="java.io.IOException"/>
  4948. </method>
  4949. <method name="readFully"
  4950. abstract="false" native="false" synchronized="false"
  4951. static="false" final="false" visibility="public"
  4952. deprecated="not deprecated">
  4953. <param name="position" type="long"/>
  4954. <param name="buffer" type="byte[]"/>
  4955. <param name="offset" type="int"/>
  4956. <param name="length" type="int"/>
  4957. <exception name="IOException" type="java.io.IOException"/>
  4958. </method>
  4959. <method name="readFully"
  4960. abstract="false" native="false" synchronized="false"
  4961. static="false" final="false" visibility="public"
  4962. deprecated="not deprecated">
  4963. <param name="position" type="long"/>
  4964. <param name="buffer" type="byte[]"/>
  4965. <exception name="IOException" type="java.io.IOException"/>
  4966. </method>
  4967. <doc>
  4968. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4969. of RAF-style seek ability.]]>
  4970. </doc>
  4971. </class>
  4972. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4973. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4974. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4975. abstract="true"
  4976. static="false" final="false" visibility="public"
  4977. deprecated="not deprecated">
  4978. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4979. static="false" final="false" visibility="protected"
  4980. deprecated="not deprecated">
  4981. </constructor>
  4982. <method name="writeChunk"
  4983. abstract="true" native="false" synchronized="false"
  4984. static="false" final="false" visibility="protected"
  4985. deprecated="not deprecated">
  4986. <param name="b" type="byte[]"/>
  4987. <param name="offset" type="int"/>
  4988. <param name="len" type="int"/>
  4989. <param name="checksum" type="byte[]"/>
  4990. <exception name="IOException" type="java.io.IOException"/>
  4991. </method>
  4992. <method name="write"
  4993. abstract="false" native="false" synchronized="true"
  4994. static="false" final="false" visibility="public"
  4995. deprecated="not deprecated">
  4996. <param name="b" type="int"/>
  4997. <exception name="IOException" type="java.io.IOException"/>
  4998. <doc>
  4999. <![CDATA[Write one byte]]>
  5000. </doc>
  5001. </method>
  5002. <method name="write"
  5003. abstract="false" native="false" synchronized="true"
  5004. static="false" final="false" visibility="public"
  5005. deprecated="not deprecated">
  5006. <param name="b" type="byte[]"/>
  5007. <param name="off" type="int"/>
  5008. <param name="len" type="int"/>
  5009. <exception name="IOException" type="java.io.IOException"/>
  5010. <doc>
  5011. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  5012. starting at offset <code>off</code> and generate a checksum for
  5013. each data chunk.
  5014. <p> This method stores bytes from the given array into this
  5015. stream's buffer before it gets checksumed. The buffer gets checksumed
  5016. and flushed to the underlying output stream when all data
  5017. in a checksum chunk are in the buffer. If the buffer is empty and
  5018. requested length is at least as large as the size of next checksum chunk
  5019. size, this method will checksum and write the chunk directly
  5020. to the underlying output stream. Thus it avoids uneccessary data copy.
  5021. @param b the data.
  5022. @param off the start offset in the data.
  5023. @param len the number of bytes to write.
  5024. @exception IOException if an I/O error occurs.]]>
  5025. </doc>
  5026. </method>
  5027. <method name="flushBuffer"
  5028. abstract="false" native="false" synchronized="true"
  5029. static="false" final="false" visibility="protected"
  5030. deprecated="not deprecated">
  5031. <exception name="IOException" type="java.io.IOException"/>
  5032. </method>
  5033. <method name="flushBuffer"
  5034. abstract="false" native="false" synchronized="true"
  5035. static="false" final="false" visibility="protected"
  5036. deprecated="not deprecated">
  5037. <param name="keep" type="boolean"/>
  5038. <exception name="IOException" type="java.io.IOException"/>
  5039. </method>
  5040. <method name="convertToByteStream" return="byte[]"
  5041. abstract="false" native="false" synchronized="false"
  5042. static="true" final="false" visibility="public"
  5043. deprecated="not deprecated">
  5044. <param name="sum" type="java.util.zip.Checksum"/>
  5045. <param name="checksumSize" type="int"/>
  5046. <doc>
  5047. <![CDATA[Converts a checksum integer value to a byte stream]]>
  5048. </doc>
  5049. </method>
  5050. <method name="resetChecksumChunk"
  5051. abstract="false" native="false" synchronized="true"
  5052. static="false" final="false" visibility="protected"
  5053. deprecated="not deprecated">
  5054. <param name="size" type="int"/>
  5055. <doc>
  5056. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  5057. </doc>
  5058. </method>
  5059. <doc>
  5060. <![CDATA[This is a generic output stream for generating checksums for
  5061. data before it is written to the underlying stream]]>
  5062. </doc>
  5063. </class>
  5064. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  5065. <!-- start class org.apache.hadoop.fs.FsShell -->
  5066. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  5067. abstract="false"
  5068. static="false" final="false" visibility="public"
  5069. deprecated="not deprecated">
  5070. <implements name="org.apache.hadoop.util.Tool"/>
  5071. <constructor name="FsShell"
  5072. static="false" final="false" visibility="public"
  5073. deprecated="not deprecated">
  5074. </constructor>
  5075. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  5076. static="false" final="false" visibility="public"
  5077. deprecated="not deprecated">
  5078. </constructor>
  5079. <method name="init"
  5080. abstract="false" native="false" synchronized="false"
  5081. static="false" final="false" visibility="protected"
  5082. deprecated="not deprecated">
  5083. <exception name="IOException" type="java.io.IOException"/>
  5084. </method>
  5085. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5086. abstract="false" native="false" synchronized="false"
  5087. static="false" final="false" visibility="public"
  5088. deprecated="not deprecated">
  5089. <doc>
  5090. <![CDATA[Returns the Trash object associated with this shell.]]>
  5091. </doc>
  5092. </method>
  5093. <method name="byteDesc" return="java.lang.String"
  5094. abstract="false" native="false" synchronized="false"
  5095. static="true" final="false" visibility="public"
  5096. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5097. <param name="len" type="long"/>
  5098. <doc>
  5099. <![CDATA[Return an abbreviated English-language desc of the byte length
  5100. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5101. </doc>
  5102. </method>
  5103. <method name="limitDecimalTo2" return="java.lang.String"
  5104. abstract="false" native="false" synchronized="true"
  5105. static="true" final="false" visibility="public"
  5106. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5107. <param name="d" type="double"/>
  5108. <doc>
  5109. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5110. </doc>
  5111. </method>
  5112. <method name="run" return="int"
  5113. abstract="false" native="false" synchronized="false"
  5114. static="false" final="false" visibility="public"
  5115. deprecated="not deprecated">
  5116. <param name="argv" type="java.lang.String[]"/>
  5117. <exception name="Exception" type="java.lang.Exception"/>
  5118. <doc>
  5119. <![CDATA[run]]>
  5120. </doc>
  5121. </method>
  5122. <method name="close"
  5123. abstract="false" native="false" synchronized="false"
  5124. static="false" final="false" visibility="public"
  5125. deprecated="not deprecated">
  5126. <exception name="IOException" type="java.io.IOException"/>
  5127. </method>
  5128. <method name="main"
  5129. abstract="false" native="false" synchronized="false"
  5130. static="true" final="false" visibility="public"
  5131. deprecated="not deprecated">
  5132. <param name="argv" type="java.lang.String[]"/>
  5133. <exception name="Exception" type="java.lang.Exception"/>
  5134. <doc>
  5135. <![CDATA[main() has some simple utility methods]]>
  5136. </doc>
  5137. </method>
  5138. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5139. transient="false" volatile="false"
  5140. static="false" final="false" visibility="protected"
  5141. deprecated="not deprecated">
  5142. </field>
  5143. <field name="dateForm" type="java.text.SimpleDateFormat"
  5144. transient="false" volatile="false"
  5145. static="true" final="true" visibility="public"
  5146. deprecated="not deprecated">
  5147. </field>
  5148. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5149. transient="false" volatile="false"
  5150. static="true" final="true" visibility="protected"
  5151. deprecated="not deprecated">
  5152. </field>
  5153. <doc>
  5154. <![CDATA[Provide command line access to a FileSystem.]]>
  5155. </doc>
  5156. </class>
  5157. <!-- end class org.apache.hadoop.fs.FsShell -->
  5158. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5159. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5160. abstract="false"
  5161. static="false" final="false" visibility="public"
  5162. deprecated="not deprecated">
  5163. <implements name="java.net.URLStreamHandlerFactory"/>
  5164. <constructor name="FsUrlStreamHandlerFactory"
  5165. static="false" final="false" visibility="public"
  5166. deprecated="not deprecated">
  5167. </constructor>
  5168. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5169. static="false" final="false" visibility="public"
  5170. deprecated="not deprecated">
  5171. </constructor>
  5172. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5173. abstract="false" native="false" synchronized="false"
  5174. static="false" final="false" visibility="public"
  5175. deprecated="not deprecated">
  5176. <param name="protocol" type="java.lang.String"/>
  5177. </method>
  5178. <doc>
  5179. <![CDATA[Factory for URL stream handlers.
  5180. There is only one handler whose job is to create UrlConnections. A
  5181. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5182. implementation.
  5183. Before returning our handler, we make sure that FileSystem knows an
  5184. implementation for the requested scheme/protocol.]]>
  5185. </doc>
  5186. </class>
  5187. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5188. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5189. <class name="GlobPattern" extends="java.lang.Object"
  5190. abstract="false"
  5191. static="false" final="false" visibility="public"
  5192. deprecated="not deprecated">
  5193. <constructor name="GlobPattern" type="java.lang.String"
  5194. static="false" final="false" visibility="public"
  5195. deprecated="not deprecated">
  5196. <doc>
  5197. <![CDATA[Construct the glob pattern object with a glob pattern string
  5198. @param globPattern the glob pattern string]]>
  5199. </doc>
  5200. </constructor>
  5201. <method name="compiled" return="java.util.regex.Pattern"
  5202. abstract="false" native="false" synchronized="false"
  5203. static="false" final="false" visibility="public"
  5204. deprecated="not deprecated">
  5205. <doc>
  5206. <![CDATA[@return the compiled pattern]]>
  5207. </doc>
  5208. </method>
  5209. <method name="compile" return="java.util.regex.Pattern"
  5210. abstract="false" native="false" synchronized="false"
  5211. static="true" final="false" visibility="public"
  5212. deprecated="not deprecated">
  5213. <param name="globPattern" type="java.lang.String"/>
  5214. <doc>
  5215. <![CDATA[Compile glob pattern string
  5216. @param globPattern the glob pattern
  5217. @return the pattern object]]>
  5218. </doc>
  5219. </method>
  5220. <method name="matches" return="boolean"
  5221. abstract="false" native="false" synchronized="false"
  5222. static="false" final="false" visibility="public"
  5223. deprecated="not deprecated">
  5224. <param name="s" type="java.lang.CharSequence"/>
  5225. <doc>
  5226. <![CDATA[Match input against the compiled glob pattern
  5227. @param s input chars
  5228. @return true for successful matches]]>
  5229. </doc>
  5230. </method>
  5231. <method name="set"
  5232. abstract="false" native="false" synchronized="false"
  5233. static="false" final="false" visibility="public"
  5234. deprecated="not deprecated">
  5235. <param name="glob" type="java.lang.String"/>
  5236. <doc>
  5237. <![CDATA[Set and compile a glob pattern
  5238. @param glob the glob pattern string]]>
  5239. </doc>
  5240. </method>
  5241. <method name="hasWildcard" return="boolean"
  5242. abstract="false" native="false" synchronized="false"
  5243. static="false" final="false" visibility="public"
  5244. deprecated="not deprecated">
  5245. <doc>
  5246. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5247. </doc>
  5248. </method>
  5249. <doc>
  5250. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5251. </doc>
  5252. </class>
  5253. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5254. <!-- start class org.apache.hadoop.fs.HardLink -->
  5255. <class name="HardLink" extends="java.lang.Object"
  5256. abstract="false"
  5257. static="false" final="false" visibility="public"
  5258. deprecated="not deprecated">
  5259. <constructor name="HardLink"
  5260. static="false" final="false" visibility="public"
  5261. deprecated="not deprecated">
  5262. </constructor>
  5263. <method name="getLinkMultArgLength" return="int"
  5264. abstract="false" native="false" synchronized="false"
  5265. static="true" final="false" visibility="protected"
  5266. deprecated="not deprecated">
  5267. <param name="fileDir" type="java.io.File"/>
  5268. <param name="fileBaseNames" type="java.lang.String[]"/>
  5269. <param name="linkDir" type="java.io.File"/>
  5270. <exception name="IOException" type="java.io.IOException"/>
  5271. <doc>
  5272. <![CDATA[Calculate the nominal length of all contributors to the total
  5273. commandstring length, including fixed overhead of the OS-dependent
  5274. command. It's protected rather than private, to assist unit testing,
  5275. but real clients are not expected to need it -- see the way
  5276. createHardLinkMult() uses it internally so the user doesn't need to worry
  5277. about it.
  5278. @param fileDir - source directory, parent of fileBaseNames
  5279. @param fileBaseNames - array of path-less file names, relative
  5280. to the source directory
  5281. @param linkDir - target directory where the hardlinks will be put
  5282. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5283. @throws IOException]]>
  5284. </doc>
  5285. </method>
  5286. <method name="getMaxAllowedCmdArgLength" return="int"
  5287. abstract="false" native="false" synchronized="false"
  5288. static="true" final="false" visibility="protected"
  5289. deprecated="not deprecated">
  5290. <doc>
  5291. <![CDATA[Return this private value for use by unit tests.
  5292. Shell commands are not allowed to have a total string length
  5293. exceeding this size.]]>
  5294. </doc>
  5295. </method>
  5296. <method name="createHardLink"
  5297. abstract="false" native="false" synchronized="false"
  5298. static="true" final="false" visibility="public"
  5299. deprecated="not deprecated">
  5300. <param name="file" type="java.io.File"/>
  5301. <param name="linkName" type="java.io.File"/>
  5302. <exception name="IOException" type="java.io.IOException"/>
  5303. <doc>
  5304. <![CDATA[Creates a hardlink
  5305. @param file - existing source file
  5306. @param linkName - desired target link file]]>
  5307. </doc>
  5308. </method>
  5309. <method name="createHardLinkMult"
  5310. abstract="false" native="false" synchronized="false"
  5311. static="true" final="false" visibility="public"
  5312. deprecated="not deprecated">
  5313. <param name="parentDir" 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[Creates hardlinks from multiple existing files within one parent
  5319. directory, into one target directory.
  5320. @param parentDir - directory containing source files
  5321. @param fileBaseNames - list of path-less file names, as returned by
  5322. parentDir.list()
  5323. @param linkDir - where the hardlinks should be put. It must already exist.
  5324. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5325. we will automatically split it into multiple invocations of the
  5326. underlying method.]]>
  5327. </doc>
  5328. </method>
  5329. <method name="createHardLinkMult" return="int"
  5330. abstract="false" native="false" synchronized="false"
  5331. static="true" final="false" visibility="protected"
  5332. deprecated="not deprecated">
  5333. <param name="parentDir" type="java.io.File"/>
  5334. <param name="fileBaseNames" type="java.lang.String[]"/>
  5335. <param name="linkDir" type="java.io.File"/>
  5336. <param name="maxLength" type="int"/>
  5337. <exception name="IOException" type="java.io.IOException"/>
  5338. </method>
  5339. <method name="getLinkCount" return="int"
  5340. abstract="false" native="false" synchronized="false"
  5341. static="true" final="false" visibility="public"
  5342. deprecated="not deprecated">
  5343. <param name="fileName" type="java.io.File"/>
  5344. <exception name="IOException" type="java.io.IOException"/>
  5345. <doc>
  5346. <![CDATA[Retrieves the number of links to the specified file.]]>
  5347. </doc>
  5348. </method>
  5349. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5350. transient="false" volatile="false"
  5351. static="true" final="false" visibility="public"
  5352. deprecated="not deprecated">
  5353. </field>
  5354. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5355. transient="false" volatile="false"
  5356. static="false" final="true" visibility="public"
  5357. deprecated="not deprecated">
  5358. </field>
  5359. <doc>
  5360. <![CDATA[Class for creating hardlinks.
  5361. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5362. The HardLink class was formerly a static inner class of FSUtil,
  5363. and the methods provided were blatantly non-thread-safe.
  5364. To enable volume-parallel Update snapshots, we now provide static
  5365. threadsafe methods that allocate new buffer string arrays
  5366. upon each call. We also provide an API to hardlink all files in a
  5367. directory with a single command, which is up to 128 times more
  5368. efficient - and minimizes the impact of the extra buffer creations.]]>
  5369. </doc>
  5370. </class>
  5371. <!-- end class org.apache.hadoop.fs.HardLink -->
  5372. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5373. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5374. abstract="false"
  5375. static="true" final="false" visibility="public"
  5376. deprecated="not deprecated">
  5377. <constructor name="HardLink.LinkStats"
  5378. static="false" final="false" visibility="public"
  5379. deprecated="not deprecated">
  5380. </constructor>
  5381. <method name="clear"
  5382. abstract="false" native="false" synchronized="false"
  5383. static="false" final="false" visibility="public"
  5384. deprecated="not deprecated">
  5385. </method>
  5386. <method name="report" return="java.lang.String"
  5387. abstract="false" native="false" synchronized="false"
  5388. static="false" final="false" visibility="public"
  5389. deprecated="not deprecated">
  5390. </method>
  5391. <field name="countDirs" type="int"
  5392. transient="false" volatile="false"
  5393. static="false" final="false" visibility="public"
  5394. deprecated="not deprecated">
  5395. </field>
  5396. <field name="countSingleLinks" type="int"
  5397. transient="false" volatile="false"
  5398. static="false" final="false" visibility="public"
  5399. deprecated="not deprecated">
  5400. </field>
  5401. <field name="countMultLinks" type="int"
  5402. transient="false" volatile="false"
  5403. static="false" final="false" visibility="public"
  5404. deprecated="not deprecated">
  5405. </field>
  5406. <field name="countFilesMultLinks" type="int"
  5407. transient="false" volatile="false"
  5408. static="false" final="false" visibility="public"
  5409. deprecated="not deprecated">
  5410. </field>
  5411. <field name="countEmptyDirs" type="int"
  5412. transient="false" volatile="false"
  5413. static="false" final="false" visibility="public"
  5414. deprecated="not deprecated">
  5415. </field>
  5416. <field name="countPhysicalFileCopies" type="int"
  5417. transient="false" volatile="false"
  5418. static="false" final="false" visibility="public"
  5419. deprecated="not deprecated">
  5420. </field>
  5421. <doc>
  5422. <![CDATA[HardLink statistics counters and methods.
  5423. Not multi-thread safe, obviously.
  5424. Init is called during HardLink instantiation, above.
  5425. These are intended for use by knowledgeable clients, not internally,
  5426. because many of the internal methods are static and can't update these
  5427. per-instance counters.]]>
  5428. </doc>
  5429. </class>
  5430. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5431. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5432. <class name="HardLink.OSType" extends="java.lang.Enum"
  5433. abstract="false"
  5434. static="true" final="true" visibility="public"
  5435. deprecated="not deprecated">
  5436. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5437. abstract="false" native="false" synchronized="false"
  5438. static="true" final="false" visibility="public"
  5439. deprecated="not deprecated">
  5440. </method>
  5441. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5442. abstract="false" native="false" synchronized="false"
  5443. static="true" final="false" visibility="public"
  5444. deprecated="not deprecated">
  5445. <param name="name" type="java.lang.String"/>
  5446. </method>
  5447. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5448. transient="false" volatile="false"
  5449. static="true" final="true" visibility="public"
  5450. deprecated="not deprecated">
  5451. </field>
  5452. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5453. transient="false" volatile="false"
  5454. static="true" final="true" visibility="public"
  5455. deprecated="not deprecated">
  5456. </field>
  5457. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5458. transient="false" volatile="false"
  5459. static="true" final="true" visibility="public"
  5460. deprecated="not deprecated">
  5461. </field>
  5462. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5463. transient="false" volatile="false"
  5464. static="true" final="true" visibility="public"
  5465. deprecated="not deprecated">
  5466. </field>
  5467. </class>
  5468. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5469. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5470. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5471. abstract="false"
  5472. static="false" final="false" visibility="public"
  5473. deprecated="not deprecated">
  5474. <constructor name="HarFileSystem"
  5475. static="false" final="false" visibility="public"
  5476. deprecated="not deprecated">
  5477. <doc>
  5478. <![CDATA[public construction of harfilesystem]]>
  5479. </doc>
  5480. </constructor>
  5481. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5482. static="false" final="false" visibility="public"
  5483. deprecated="not deprecated">
  5484. <doc>
  5485. <![CDATA[Constructor to create a HarFileSystem with an
  5486. underlying filesystem.
  5487. @param fs]]>
  5488. </doc>
  5489. </constructor>
  5490. <method name="initialize"
  5491. abstract="false" native="false" synchronized="false"
  5492. static="false" final="false" visibility="public"
  5493. deprecated="not deprecated">
  5494. <param name="name" type="java.net.URI"/>
  5495. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5496. <exception name="IOException" type="java.io.IOException"/>
  5497. <doc>
  5498. <![CDATA[Initialize a Har filesystem per har archive. The
  5499. archive home directory is the top level directory
  5500. in the filesystem that contains the HAR archive.
  5501. Be careful with this method, you do not want to go
  5502. on creating new Filesystem instances per call to
  5503. path.getFileSystem().
  5504. the uri of Har is
  5505. har://underlyingfsscheme-host:port/archivepath.
  5506. or
  5507. har:///archivepath. This assumes the underlying filesystem
  5508. to be used in case not specified.]]>
  5509. </doc>
  5510. </method>
  5511. <method name="getHarVersion" return="int"
  5512. abstract="false" native="false" synchronized="false"
  5513. static="false" final="false" visibility="public"
  5514. deprecated="not deprecated">
  5515. <exception name="IOException" type="java.io.IOException"/>
  5516. </method>
  5517. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5518. abstract="false" native="false" synchronized="false"
  5519. static="false" final="false" visibility="public"
  5520. deprecated="not deprecated">
  5521. <doc>
  5522. <![CDATA[return the top level archive.]]>
  5523. </doc>
  5524. </method>
  5525. <method name="getUri" return="java.net.URI"
  5526. abstract="false" native="false" synchronized="false"
  5527. static="false" final="false" visibility="public"
  5528. deprecated="not deprecated">
  5529. <doc>
  5530. <![CDATA[Returns the uri of this filesystem.
  5531. The uri is of the form
  5532. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5533. </doc>
  5534. </method>
  5535. <method name="getCanonicalServiceName" return="java.lang.String"
  5536. abstract="false" native="false" synchronized="false"
  5537. static="false" final="false" visibility="public"
  5538. deprecated="not deprecated">
  5539. </method>
  5540. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5545. </method>
  5546. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5547. abstract="false" native="false" synchronized="false"
  5548. static="false" final="false" visibility="public"
  5549. deprecated="not deprecated">
  5550. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5551. <param name="start" type="long"/>
  5552. <param name="len" type="long"/>
  5553. <exception name="IOException" type="java.io.IOException"/>
  5554. <doc>
  5555. <![CDATA[Get block locations from the underlying fs and fix their
  5556. offsets and lengths.
  5557. @param file the input filestatus to get block locations
  5558. @param start the start of the desired range in the contained file
  5559. @param len the length of the desired range
  5560. @return block locations for this segment of file
  5561. @throws IOException]]>
  5562. </doc>
  5563. </method>
  5564. <method name="getHarHash" return="int"
  5565. abstract="false" native="false" synchronized="false"
  5566. static="true" final="false" visibility="public"
  5567. deprecated="not deprecated">
  5568. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5569. <doc>
  5570. <![CDATA[the hash of the path p inside iniside
  5571. the filesystem
  5572. @param p the path in the harfilesystem
  5573. @return the hash code of the path.]]>
  5574. </doc>
  5575. </method>
  5576. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5577. abstract="false" native="false" synchronized="false"
  5578. static="false" final="false" visibility="public"
  5579. deprecated="not deprecated">
  5580. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5581. <exception name="IOException" type="java.io.IOException"/>
  5582. <doc>
  5583. <![CDATA[return the filestatus of files in har archive.
  5584. The permission returned are that of the archive
  5585. index files. The permissions are not persisted
  5586. while creating a hadoop archive.
  5587. @param f the path in har filesystem
  5588. @return filestatus.
  5589. @throws IOException]]>
  5590. </doc>
  5591. </method>
  5592. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5593. abstract="false" native="false" synchronized="false"
  5594. static="false" final="false" visibility="public"
  5595. deprecated="not deprecated">
  5596. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5597. <doc>
  5598. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5599. </doc>
  5600. </method>
  5601. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5602. abstract="false" native="false" synchronized="false"
  5603. static="false" final="false" visibility="public"
  5604. deprecated="not deprecated">
  5605. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5606. <param name="bufferSize" type="int"/>
  5607. <exception name="IOException" type="java.io.IOException"/>
  5608. <doc>
  5609. <![CDATA[Returns a har input stream which fakes end of
  5610. file. It reads the index files to get the part
  5611. file name and the size and start of the file.]]>
  5612. </doc>
  5613. </method>
  5614. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5615. abstract="false" native="false" synchronized="false"
  5616. static="false" final="false" visibility="public"
  5617. deprecated="not deprecated">
  5618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5619. <param name="bufferSize" type="int"/>
  5620. <exception name="IOException" type="java.io.IOException"/>
  5621. </method>
  5622. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  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. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5628. <param name="overwrite" type="boolean"/>
  5629. <param name="bufferSize" type="int"/>
  5630. <param name="replication" type="short"/>
  5631. <param name="blockSize" type="long"/>
  5632. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5633. <exception name="IOException" type="java.io.IOException"/>
  5634. </method>
  5635. <method name="close"
  5636. abstract="false" native="false" synchronized="false"
  5637. static="false" final="false" visibility="public"
  5638. deprecated="not deprecated">
  5639. <exception name="IOException" type="java.io.IOException"/>
  5640. </method>
  5641. <method name="setReplication" return="boolean"
  5642. abstract="false" native="false" synchronized="false"
  5643. static="false" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5646. <param name="replication" type="short"/>
  5647. <exception name="IOException" type="java.io.IOException"/>
  5648. <doc>
  5649. <![CDATA[Not implemented.]]>
  5650. </doc>
  5651. </method>
  5652. <method name="delete" return="boolean"
  5653. abstract="false" native="false" synchronized="false"
  5654. static="false" final="false" visibility="public"
  5655. deprecated="not deprecated">
  5656. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5657. <param name="recursive" type="boolean"/>
  5658. <exception name="IOException" type="java.io.IOException"/>
  5659. <doc>
  5660. <![CDATA[Not implemented.]]>
  5661. </doc>
  5662. </method>
  5663. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5664. abstract="false" native="false" synchronized="false"
  5665. static="false" final="false" visibility="public"
  5666. deprecated="not deprecated">
  5667. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5668. <exception name="IOException" type="java.io.IOException"/>
  5669. <doc>
  5670. <![CDATA[liststatus returns the children of a directory
  5671. after looking up the index files.]]>
  5672. </doc>
  5673. </method>
  5674. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5675. abstract="false" native="false" synchronized="false"
  5676. static="false" final="false" visibility="public"
  5677. deprecated="not deprecated">
  5678. <doc>
  5679. <![CDATA[return the top level archive path.]]>
  5680. </doc>
  5681. </method>
  5682. <method name="setWorkingDirectory"
  5683. abstract="false" native="false" synchronized="false"
  5684. static="false" final="false" visibility="public"
  5685. deprecated="not deprecated">
  5686. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5687. </method>
  5688. <method name="mkdirs" return="boolean"
  5689. abstract="false" native="false" synchronized="false"
  5690. static="false" final="false" visibility="public"
  5691. deprecated="not deprecated">
  5692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5693. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5694. <exception name="IOException" type="java.io.IOException"/>
  5695. <doc>
  5696. <![CDATA[not implemented.]]>
  5697. </doc>
  5698. </method>
  5699. <method name="copyFromLocalFile"
  5700. abstract="false" native="false" synchronized="false"
  5701. static="false" final="false" visibility="public"
  5702. deprecated="not deprecated">
  5703. <param name="delSrc" type="boolean"/>
  5704. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5705. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5706. <exception name="IOException" type="java.io.IOException"/>
  5707. <doc>
  5708. <![CDATA[not implemented.]]>
  5709. </doc>
  5710. </method>
  5711. <method name="copyToLocalFile"
  5712. abstract="false" native="false" synchronized="false"
  5713. static="false" final="false" visibility="public"
  5714. deprecated="not deprecated">
  5715. <param name="delSrc" type="boolean"/>
  5716. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5717. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5718. <exception name="IOException" type="java.io.IOException"/>
  5719. <doc>
  5720. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5721. </doc>
  5722. </method>
  5723. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5724. abstract="false" native="false" synchronized="false"
  5725. static="false" final="false" visibility="public"
  5726. deprecated="not deprecated">
  5727. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5728. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5729. <exception name="IOException" type="java.io.IOException"/>
  5730. <doc>
  5731. <![CDATA[not implemented.]]>
  5732. </doc>
  5733. </method>
  5734. <method name="completeLocalOutput"
  5735. abstract="false" native="false" synchronized="false"
  5736. static="false" final="false" visibility="public"
  5737. deprecated="not deprecated">
  5738. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5739. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5740. <exception name="IOException" type="java.io.IOException"/>
  5741. <doc>
  5742. <![CDATA[not implemented.]]>
  5743. </doc>
  5744. </method>
  5745. <method name="setOwner"
  5746. abstract="false" native="false" synchronized="false"
  5747. static="false" final="false" visibility="public"
  5748. deprecated="not deprecated">
  5749. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5750. <param name="username" type="java.lang.String"/>
  5751. <param name="groupname" type="java.lang.String"/>
  5752. <exception name="IOException" type="java.io.IOException"/>
  5753. <doc>
  5754. <![CDATA[not implemented.]]>
  5755. </doc>
  5756. </method>
  5757. <method name="setPermission"
  5758. abstract="false" native="false" synchronized="false"
  5759. static="false" final="false" visibility="public"
  5760. deprecated="not deprecated">
  5761. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5762. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5763. <exception name="IOException" type="java.io.IOException"/>
  5764. <doc>
  5765. <![CDATA[Not implemented.]]>
  5766. </doc>
  5767. </method>
  5768. <field name="VERSION" type="int"
  5769. transient="false" volatile="false"
  5770. static="true" final="true" visibility="public"
  5771. deprecated="not deprecated">
  5772. </field>
  5773. <doc>
  5774. <![CDATA[This is an implementation of the Hadoop Archive
  5775. Filesystem. This archive Filesystem has index files
  5776. of the form _index* and has contents of the form
  5777. part-*. The index files store the indexes of the
  5778. real files. The index files are of the form _masterindex
  5779. and _index. The master index is a level of indirection
  5780. in to the index file to make the look ups faster. the index
  5781. file is sorted with hash code of the paths that it contains
  5782. and the master index contains pointers to the positions in
  5783. index for ranges of hashcodes.]]>
  5784. </doc>
  5785. </class>
  5786. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5787. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5788. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5789. abstract="false"
  5790. static="false" final="false" visibility="public"
  5791. deprecated="not deprecated">
  5792. <constructor name="InMemoryFileSystem"
  5793. static="false" final="false" visibility="public"
  5794. deprecated="not deprecated">
  5795. </constructor>
  5796. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5797. static="false" final="false" visibility="public"
  5798. deprecated="not deprecated">
  5799. </constructor>
  5800. <method name="reserveSpaceWithCheckSum" return="boolean"
  5801. abstract="false" native="false" synchronized="false"
  5802. static="false" final="false" visibility="public"
  5803. deprecated="not deprecated">
  5804. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5805. <param name="size" type="long"/>
  5806. <doc>
  5807. <![CDATA[Register a file with its size. This will also register a checksum for the
  5808. file that the user is trying to create. This is required since none of
  5809. the FileSystem APIs accept the size of the file as argument. But since it
  5810. is required for us to apriori know the size of the file we are going to
  5811. create, the user must call this method for each file he wants to create
  5812. and reserve memory for that file. We either succeed in reserving memory
  5813. for both the main file and the checksum file and return true, or return
  5814. false.]]>
  5815. </doc>
  5816. </method>
  5817. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5818. abstract="false" native="false" synchronized="false"
  5819. static="false" final="false" visibility="public"
  5820. deprecated="not deprecated">
  5821. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5822. </method>
  5823. <method name="getNumFiles" return="int"
  5824. abstract="false" native="false" synchronized="false"
  5825. static="false" final="false" visibility="public"
  5826. deprecated="not deprecated">
  5827. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5828. </method>
  5829. <method name="getFSSize" return="long"
  5830. abstract="false" native="false" synchronized="false"
  5831. static="false" final="false" visibility="public"
  5832. deprecated="not deprecated">
  5833. </method>
  5834. <method name="getPercentUsed" return="float"
  5835. abstract="false" native="false" synchronized="false"
  5836. static="false" final="false" visibility="public"
  5837. deprecated="not deprecated">
  5838. </method>
  5839. <doc>
  5840. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5841. that the file lengths are known ahead of time and the total lengths of all
  5842. the files is below a certain number (like 100 MB, configurable). Use the API
  5843. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5844. the API for reserving space in the FS. The uri of this filesystem starts with
  5845. ramfs:// .]]>
  5846. </doc>
  5847. </class>
  5848. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5849. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5850. <class name="LocalDirAllocator" extends="java.lang.Object"
  5851. abstract="false"
  5852. static="false" final="false" visibility="public"
  5853. deprecated="not deprecated">
  5854. <constructor name="LocalDirAllocator" type="java.lang.String"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. <doc>
  5858. <![CDATA[Create an allocator object
  5859. @param contextCfgItemName]]>
  5860. </doc>
  5861. </constructor>
  5862. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5863. abstract="false" native="false" synchronized="false"
  5864. static="false" final="false" visibility="public"
  5865. deprecated="not deprecated">
  5866. <param name="pathStr" type="java.lang.String"/>
  5867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5868. <exception name="IOException" type="java.io.IOException"/>
  5869. <doc>
  5870. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5871. the file is not known apriori. We go round-robin over the set of disks
  5872. (via the configured dirs) and return the first complete path where
  5873. we could create the parent directory of the passed path.
  5874. @param pathStr the requested path (this will be created on the first
  5875. available disk)
  5876. @param conf the Configuration object
  5877. @return the complete path to the file on a local disk
  5878. @throws IOException]]>
  5879. </doc>
  5880. </method>
  5881. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5882. abstract="false" native="false" synchronized="false"
  5883. static="false" final="false" visibility="public"
  5884. deprecated="not deprecated">
  5885. <param name="pathStr" type="java.lang.String"/>
  5886. <param name="size" type="long"/>
  5887. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5888. <exception name="IOException" type="java.io.IOException"/>
  5889. <doc>
  5890. <![CDATA[Get a path from the local FS. Pass size as
  5891. SIZE_UNKNOWN if not known apriori. We
  5892. round-robin over the set of disks (via the configured dirs) and return
  5893. the first complete path which has enough space
  5894. @param pathStr the requested path (this will be created on the first
  5895. available disk)
  5896. @param size the size of the file that is going to be written
  5897. @param conf the Configuration object
  5898. @return the complete path to the file on a local disk
  5899. @throws IOException]]>
  5900. </doc>
  5901. </method>
  5902. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5903. abstract="false" native="false" synchronized="false"
  5904. static="false" final="false" visibility="public"
  5905. deprecated="not deprecated">
  5906. <param name="pathStr" type="java.lang.String"/>
  5907. <param name="size" type="long"/>
  5908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5909. <param name="checkWrite" type="boolean"/>
  5910. <exception name="IOException" type="java.io.IOException"/>
  5911. <doc>
  5912. <![CDATA[Get a path from the local FS. Pass size as
  5913. SIZE_UNKNOWN if not known apriori. We
  5914. round-robin over the set of disks (via the configured dirs) and return
  5915. the first complete path which has enough space
  5916. @param pathStr the requested path (this will be created on the first
  5917. available disk)
  5918. @param size the size of the file that is going to be written
  5919. @param conf the Configuration object
  5920. @param checkWrite ensure that the path is writable
  5921. @return the complete path to the file on a local disk
  5922. @throws IOException]]>
  5923. </doc>
  5924. </method>
  5925. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5926. abstract="false" native="false" synchronized="false"
  5927. static="false" final="false" visibility="public"
  5928. deprecated="not deprecated">
  5929. <param name="pathStr" type="java.lang.String"/>
  5930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5931. <exception name="IOException" type="java.io.IOException"/>
  5932. <doc>
  5933. <![CDATA[Get a path from the local FS for reading. We search through all the
  5934. configured dirs for the file's existence and return the complete
  5935. path to the file when we find one
  5936. @param pathStr the requested file (this will be searched)
  5937. @param conf the Configuration object
  5938. @return the complete path to the file on a local disk
  5939. @throws IOException]]>
  5940. </doc>
  5941. </method>
  5942. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5943. abstract="false" native="false" synchronized="false"
  5944. static="false" final="false" visibility="public"
  5945. deprecated="not deprecated">
  5946. <param name="pathStr" type="java.lang.String"/>
  5947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5948. <exception name="IOException" type="java.io.IOException"/>
  5949. <doc>
  5950. <![CDATA[Get all of the paths that currently exist in the working directories.
  5951. @param pathStr the path underneath the roots
  5952. @param conf the configuration to look up the roots in
  5953. @return all of the paths that exist under any of the roots
  5954. @throws IOException]]>
  5955. </doc>
  5956. </method>
  5957. <method name="createTmpFileForWrite" return="java.io.File"
  5958. abstract="false" native="false" synchronized="false"
  5959. static="false" final="false" visibility="public"
  5960. deprecated="not deprecated">
  5961. <param name="pathStr" type="java.lang.String"/>
  5962. <param name="size" type="long"/>
  5963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5964. <exception name="IOException" type="java.io.IOException"/>
  5965. <doc>
  5966. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5967. apriori. We round-robin over the set of disks (via the configured dirs)
  5968. and select the first complete path which has enough space. A file is
  5969. created on this directory. The file is guaranteed to go away when the
  5970. JVM exits.
  5971. @param pathStr prefix for the temporary file
  5972. @param size the size of the file that is going to be written
  5973. @param conf the Configuration object
  5974. @return a unique temporary file
  5975. @throws IOException]]>
  5976. </doc>
  5977. </method>
  5978. <method name="isContextValid" return="boolean"
  5979. abstract="false" native="false" synchronized="false"
  5980. static="true" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. <param name="contextCfgItemName" type="java.lang.String"/>
  5983. <doc>
  5984. <![CDATA[Method to check whether a context is valid
  5985. @param contextCfgItemName
  5986. @return true/false]]>
  5987. </doc>
  5988. </method>
  5989. <method name="ifExists" return="boolean"
  5990. abstract="false" native="false" synchronized="false"
  5991. static="false" final="false" visibility="public"
  5992. deprecated="not deprecated">
  5993. <param name="pathStr" type="java.lang.String"/>
  5994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5995. <doc>
  5996. <![CDATA[We search through all the configured dirs for the file's existence
  5997. and return true when we find
  5998. @param pathStr the requested file (this will be searched)
  5999. @param conf the Configuration object
  6000. @return true if files exist. false otherwise
  6001. @throws IOException]]>
  6002. </doc>
  6003. </method>
  6004. <field name="SIZE_UNKNOWN" type="int"
  6005. transient="false" volatile="false"
  6006. static="true" final="true" visibility="public"
  6007. deprecated="not deprecated">
  6008. <doc>
  6009. <![CDATA[Used when size of file to be allocated is unknown.]]>
  6010. </doc>
  6011. </field>
  6012. <doc>
  6013. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  6014. files. The way it works is that it is kept track what disk was last
  6015. allocated for a file write. For the current request, the next disk from
  6016. the set of disks would be allocated if the free space on the disk is
  6017. sufficient enough to accommodate the file that is being considered for
  6018. creation. If the space requirements cannot be met, the next disk in order
  6019. would be tried and so on till a disk is found with sufficient capacity.
  6020. Once a disk with sufficient space is identified, a check is done to make
  6021. sure that the disk is writable. Also, there is an API provided that doesn't
  6022. take the space requirements into consideration but just checks whether the
  6023. disk under consideration is writable (this should be used for cases where
  6024. the file size is not known apriori). An API is provided to read a path that
  6025. was created earlier. That API works by doing a scan of all the disks for the
  6026. input pathname.
  6027. This implementation also provides the functionality of having multiple
  6028. allocators per JVM (one for each unique functionality or context, like
  6029. mapred, dfs-client, etc.). It ensures that there is only one instance of
  6030. an allocator per context per JVM.
  6031. Note:
  6032. 1. The contexts referred above are actually the configuration items defined
  6033. in the Configuration class like "mapred.local.dir" (for which we want to
  6034. control the dir allocations). The context-strings are exactly those
  6035. configuration items.
  6036. 2. This implementation does not take into consideration cases where
  6037. a disk becomes read-only or goes out of space while a file is being written
  6038. to (disks are shared between multiple processes, and so the latter situation
  6039. is probable).
  6040. 3. In the class implementation, "Disk" is referred to as "Dir", which
  6041. actually points to the configured directory on the Disk which will be the
  6042. parent for all file write/read allocations.]]>
  6043. </doc>
  6044. </class>
  6045. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  6046. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  6047. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6048. abstract="false"
  6049. static="false" final="false" visibility="public"
  6050. deprecated="not deprecated">
  6051. <constructor name="LocalFileSystem"
  6052. static="false" final="false" visibility="public"
  6053. deprecated="not deprecated">
  6054. </constructor>
  6055. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. </constructor>
  6059. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6060. abstract="false" native="false" synchronized="false"
  6061. static="false" final="false" visibility="public"
  6062. deprecated="not deprecated">
  6063. </method>
  6064. <method name="exists" return="boolean"
  6065. abstract="false" native="false" synchronized="false"
  6066. static="false" final="false" visibility="public"
  6067. deprecated="not deprecated">
  6068. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6069. <exception name="IOException" type="java.io.IOException"/>
  6070. <doc>
  6071. <![CDATA[Get file status.]]>
  6072. </doc>
  6073. </method>
  6074. <method name="pathToFile" return="java.io.File"
  6075. abstract="false" native="false" synchronized="false"
  6076. static="false" final="false" visibility="public"
  6077. deprecated="not deprecated">
  6078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6079. <doc>
  6080. <![CDATA[Convert a path to a File.]]>
  6081. </doc>
  6082. </method>
  6083. <method name="copyFromLocalFile"
  6084. abstract="false" native="false" synchronized="false"
  6085. static="false" final="false" visibility="public"
  6086. deprecated="not deprecated">
  6087. <param name="delSrc" type="boolean"/>
  6088. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6089. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6090. <exception name="IOException" type="java.io.IOException"/>
  6091. </method>
  6092. <method name="copyToLocalFile"
  6093. abstract="false" native="false" synchronized="false"
  6094. static="false" final="false" visibility="public"
  6095. deprecated="not deprecated">
  6096. <param name="delSrc" type="boolean"/>
  6097. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6098. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6099. <exception name="IOException" type="java.io.IOException"/>
  6100. </method>
  6101. <method name="reportChecksumFailure" return="boolean"
  6102. abstract="false" native="false" synchronized="false"
  6103. static="false" final="false" visibility="public"
  6104. deprecated="not deprecated">
  6105. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6106. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6107. <param name="inPos" type="long"/>
  6108. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6109. <param name="sumsPos" type="long"/>
  6110. <doc>
  6111. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6112. storage will not be reused.]]>
  6113. </doc>
  6114. </method>
  6115. <doc>
  6116. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6117. </doc>
  6118. </class>
  6119. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6120. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6121. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6122. abstract="false"
  6123. static="false" final="false" visibility="public"
  6124. deprecated="not deprecated">
  6125. <constructor name="MD5MD5CRC32FileChecksum"
  6126. static="false" final="false" visibility="public"
  6127. deprecated="not deprecated">
  6128. <doc>
  6129. <![CDATA[Same as this(0, 0, null)]]>
  6130. </doc>
  6131. </constructor>
  6132. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6133. static="false" final="false" visibility="public"
  6134. deprecated="not deprecated">
  6135. <doc>
  6136. <![CDATA[Create a MD5FileChecksum]]>
  6137. </doc>
  6138. </constructor>
  6139. <method name="getAlgorithmName" return="java.lang.String"
  6140. abstract="false" native="false" synchronized="false"
  6141. static="false" final="false" visibility="public"
  6142. deprecated="not deprecated">
  6143. <doc>
  6144. <![CDATA[{@inheritDoc}]]>
  6145. </doc>
  6146. </method>
  6147. <method name="getLength" return="int"
  6148. abstract="false" native="false" synchronized="false"
  6149. static="false" final="false" visibility="public"
  6150. deprecated="not deprecated">
  6151. <doc>
  6152. <![CDATA[{@inheritDoc}]]>
  6153. </doc>
  6154. </method>
  6155. <method name="getBytes" return="byte[]"
  6156. abstract="false" native="false" synchronized="false"
  6157. static="false" final="false" visibility="public"
  6158. deprecated="not deprecated">
  6159. <doc>
  6160. <![CDATA[{@inheritDoc}]]>
  6161. </doc>
  6162. </method>
  6163. <method name="readFields"
  6164. abstract="false" native="false" synchronized="false"
  6165. static="false" final="false" visibility="public"
  6166. deprecated="not deprecated">
  6167. <param name="in" type="java.io.DataInput"/>
  6168. <exception name="IOException" type="java.io.IOException"/>
  6169. <doc>
  6170. <![CDATA[{@inheritDoc}]]>
  6171. </doc>
  6172. </method>
  6173. <method name="write"
  6174. abstract="false" native="false" synchronized="false"
  6175. static="false" final="false" visibility="public"
  6176. deprecated="not deprecated">
  6177. <param name="out" type="java.io.DataOutput"/>
  6178. <exception name="IOException" type="java.io.IOException"/>
  6179. <doc>
  6180. <![CDATA[{@inheritDoc}]]>
  6181. </doc>
  6182. </method>
  6183. <method name="write"
  6184. abstract="false" native="false" synchronized="false"
  6185. static="true" final="false" visibility="public"
  6186. deprecated="not deprecated">
  6187. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6188. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6189. <exception name="IOException" type="java.io.IOException"/>
  6190. <doc>
  6191. <![CDATA[Write that object to xml output.]]>
  6192. </doc>
  6193. </method>
  6194. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6195. abstract="false" native="false" synchronized="false"
  6196. static="true" final="false" visibility="public"
  6197. deprecated="not deprecated">
  6198. <param name="attrs" type="org.xml.sax.Attributes"/>
  6199. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6200. <doc>
  6201. <![CDATA[Return the object represented in the attributes.]]>
  6202. </doc>
  6203. </method>
  6204. <method name="toString" return="java.lang.String"
  6205. abstract="false" native="false" synchronized="false"
  6206. static="false" final="false" visibility="public"
  6207. deprecated="not deprecated">
  6208. <doc>
  6209. <![CDATA[{@inheritDoc}]]>
  6210. </doc>
  6211. </method>
  6212. <field name="LENGTH" type="int"
  6213. transient="false" volatile="false"
  6214. static="true" final="true" visibility="public"
  6215. deprecated="not deprecated">
  6216. </field>
  6217. <doc>
  6218. <![CDATA[MD5 of MD5 of CRC32.]]>
  6219. </doc>
  6220. </class>
  6221. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6222. <!-- start class org.apache.hadoop.fs.Path -->
  6223. <class name="Path" extends="java.lang.Object"
  6224. abstract="false"
  6225. static="false" final="false" visibility="public"
  6226. deprecated="not deprecated">
  6227. <implements name="java.lang.Comparable"/>
  6228. <constructor name="Path" type="java.lang.String, java.lang.String"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. <doc>
  6232. <![CDATA[Resolve a child path against a parent path.]]>
  6233. </doc>
  6234. </constructor>
  6235. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6236. static="false" final="false" visibility="public"
  6237. deprecated="not deprecated">
  6238. <doc>
  6239. <![CDATA[Resolve a child path against a parent path.]]>
  6240. </doc>
  6241. </constructor>
  6242. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <doc>
  6246. <![CDATA[Resolve a child path against a parent path.]]>
  6247. </doc>
  6248. </constructor>
  6249. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6250. static="false" final="false" visibility="public"
  6251. deprecated="not deprecated">
  6252. <doc>
  6253. <![CDATA[Resolve a child path against a parent path.]]>
  6254. </doc>
  6255. </constructor>
  6256. <constructor name="Path" type="java.lang.String"
  6257. static="false" final="false" visibility="public"
  6258. deprecated="not deprecated">
  6259. <doc>
  6260. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6261. unescaped elements and some additional normalization.]]>
  6262. </doc>
  6263. </constructor>
  6264. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6265. static="false" final="false" visibility="public"
  6266. deprecated="not deprecated">
  6267. <doc>
  6268. <![CDATA[Construct a Path from components.]]>
  6269. </doc>
  6270. </constructor>
  6271. <constructor name="Path" type="java.net.URI"
  6272. static="false" final="false" visibility="public"
  6273. deprecated="not deprecated">
  6274. <doc>
  6275. <![CDATA[Construct a path from a URI]]>
  6276. </doc>
  6277. </constructor>
  6278. <method name="toUri" return="java.net.URI"
  6279. abstract="false" native="false" synchronized="false"
  6280. static="false" final="false" visibility="public"
  6281. deprecated="not deprecated">
  6282. <doc>
  6283. <![CDATA[Convert this to a URI.]]>
  6284. </doc>
  6285. </method>
  6286. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6287. abstract="false" native="false" synchronized="false"
  6288. static="false" final="false" visibility="public"
  6289. deprecated="not deprecated">
  6290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6291. <exception name="IOException" type="java.io.IOException"/>
  6292. <doc>
  6293. <![CDATA[Return the FileSystem that owns this Path.]]>
  6294. </doc>
  6295. </method>
  6296. <method name="isAbsolute" return="boolean"
  6297. abstract="false" native="false" synchronized="false"
  6298. static="false" final="false" visibility="public"
  6299. deprecated="not deprecated">
  6300. <doc>
  6301. <![CDATA[True if the directory of this path is absolute.]]>
  6302. </doc>
  6303. </method>
  6304. <method name="getName" return="java.lang.String"
  6305. abstract="false" native="false" synchronized="false"
  6306. static="false" final="false" visibility="public"
  6307. deprecated="not deprecated">
  6308. <doc>
  6309. <![CDATA[Returns the final component of this path.]]>
  6310. </doc>
  6311. </method>
  6312. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6313. abstract="false" native="false" synchronized="false"
  6314. static="false" final="false" visibility="public"
  6315. deprecated="not deprecated">
  6316. <doc>
  6317. <![CDATA[Returns the parent of a path or null if at root.]]>
  6318. </doc>
  6319. </method>
  6320. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6321. abstract="false" native="false" synchronized="false"
  6322. static="false" final="false" visibility="public"
  6323. deprecated="not deprecated">
  6324. <param name="suffix" type="java.lang.String"/>
  6325. <doc>
  6326. <![CDATA[Adds a suffix to the final name in the path.]]>
  6327. </doc>
  6328. </method>
  6329. <method name="toString" return="java.lang.String"
  6330. abstract="false" native="false" synchronized="false"
  6331. static="false" final="false" visibility="public"
  6332. deprecated="not deprecated">
  6333. </method>
  6334. <method name="equals" return="boolean"
  6335. abstract="false" native="false" synchronized="false"
  6336. static="false" final="false" visibility="public"
  6337. deprecated="not deprecated">
  6338. <param name="o" type="java.lang.Object"/>
  6339. </method>
  6340. <method name="hashCode" return="int"
  6341. abstract="false" native="false" synchronized="false"
  6342. static="false" final="false" visibility="public"
  6343. deprecated="not deprecated">
  6344. </method>
  6345. <method name="compareTo" return="int"
  6346. abstract="false" native="false" synchronized="false"
  6347. static="false" final="false" visibility="public"
  6348. deprecated="not deprecated">
  6349. <param name="o" type="java.lang.Object"/>
  6350. </method>
  6351. <method name="depth" return="int"
  6352. abstract="false" native="false" synchronized="false"
  6353. static="false" final="false" visibility="public"
  6354. deprecated="not deprecated">
  6355. <doc>
  6356. <![CDATA[Return the number of elements in this path.]]>
  6357. </doc>
  6358. </method>
  6359. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6360. abstract="false" native="false" synchronized="false"
  6361. static="false" final="false" visibility="public"
  6362. deprecated="not deprecated">
  6363. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6364. <doc>
  6365. <![CDATA[Returns a qualified path object.]]>
  6366. </doc>
  6367. </method>
  6368. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6369. abstract="false" native="false" synchronized="false"
  6370. static="false" final="false" visibility="public"
  6371. deprecated="not deprecated">
  6372. <param name="defaultUri" type="java.net.URI"/>
  6373. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6374. <doc>
  6375. <![CDATA[Returns a qualified path object.]]>
  6376. </doc>
  6377. </method>
  6378. <field name="SEPARATOR" type="java.lang.String"
  6379. transient="false" volatile="false"
  6380. static="true" final="true" visibility="public"
  6381. deprecated="not deprecated">
  6382. <doc>
  6383. <![CDATA[The directory separator, a slash.]]>
  6384. </doc>
  6385. </field>
  6386. <field name="SEPARATOR_CHAR" type="char"
  6387. transient="false" volatile="false"
  6388. static="true" final="true" visibility="public"
  6389. deprecated="not deprecated">
  6390. </field>
  6391. <field name="CUR_DIR" type="java.lang.String"
  6392. transient="false" volatile="false"
  6393. static="true" final="true" visibility="public"
  6394. deprecated="not deprecated">
  6395. </field>
  6396. <doc>
  6397. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6398. Path strings use slash as the directory separator. A path string is
  6399. absolute if it begins with a slash.]]>
  6400. </doc>
  6401. </class>
  6402. <!-- end class org.apache.hadoop.fs.Path -->
  6403. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6404. <interface name="PathFilter" abstract="true"
  6405. static="false" final="false" visibility="public"
  6406. deprecated="not deprecated">
  6407. <method name="accept" return="boolean"
  6408. abstract="false" native="false" synchronized="false"
  6409. static="false" final="false" visibility="public"
  6410. deprecated="not deprecated">
  6411. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6412. <doc>
  6413. <![CDATA[Tests whether or not the specified abstract pathname should be
  6414. included in a pathname list.
  6415. @param path The abstract pathname to be tested
  6416. @return <code>true</code> if and only if <code>pathname</code>
  6417. should be included]]>
  6418. </doc>
  6419. </method>
  6420. </interface>
  6421. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6422. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6423. <interface name="PositionedReadable" abstract="true"
  6424. static="false" final="false" visibility="public"
  6425. deprecated="not deprecated">
  6426. <method name="read" return="int"
  6427. abstract="false" native="false" synchronized="false"
  6428. static="false" final="false" visibility="public"
  6429. deprecated="not deprecated">
  6430. <param name="position" type="long"/>
  6431. <param name="buffer" type="byte[]"/>
  6432. <param name="offset" type="int"/>
  6433. <param name="length" type="int"/>
  6434. <exception name="IOException" type="java.io.IOException"/>
  6435. <doc>
  6436. <![CDATA[Read upto the specified number of bytes, from a given
  6437. position within a file, and return the number of bytes read. This does not
  6438. change the current offset of a file, and is thread-safe.]]>
  6439. </doc>
  6440. </method>
  6441. <method name="readFully"
  6442. abstract="false" native="false" synchronized="false"
  6443. static="false" final="false" visibility="public"
  6444. deprecated="not deprecated">
  6445. <param name="position" type="long"/>
  6446. <param name="buffer" type="byte[]"/>
  6447. <param name="offset" type="int"/>
  6448. <param name="length" type="int"/>
  6449. <exception name="IOException" type="java.io.IOException"/>
  6450. <doc>
  6451. <![CDATA[Read the specified number of bytes, from a given
  6452. position within a file. This does not
  6453. change the current offset of a file, and is thread-safe.]]>
  6454. </doc>
  6455. </method>
  6456. <method name="readFully"
  6457. abstract="false" native="false" synchronized="false"
  6458. static="false" final="false" visibility="public"
  6459. deprecated="not deprecated">
  6460. <param name="position" type="long"/>
  6461. <param name="buffer" type="byte[]"/>
  6462. <exception name="IOException" type="java.io.IOException"/>
  6463. <doc>
  6464. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6465. position within a file. This does not
  6466. change the current offset of a file, and is thread-safe.]]>
  6467. </doc>
  6468. </method>
  6469. <doc>
  6470. <![CDATA[Stream that permits positional reading.]]>
  6471. </doc>
  6472. </interface>
  6473. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6474. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6475. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6476. abstract="false"
  6477. static="false" final="false" visibility="public"
  6478. deprecated="not deprecated">
  6479. <constructor name="RawLocalFileSystem"
  6480. static="false" final="false" visibility="public"
  6481. deprecated="not deprecated">
  6482. </constructor>
  6483. <method name="pathToFile" return="java.io.File"
  6484. abstract="false" native="false" synchronized="false"
  6485. static="false" final="false" visibility="public"
  6486. deprecated="not deprecated">
  6487. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6488. <doc>
  6489. <![CDATA[Convert a path to a File.]]>
  6490. </doc>
  6491. </method>
  6492. <method name="getUri" return="java.net.URI"
  6493. abstract="false" native="false" synchronized="false"
  6494. static="false" final="false" visibility="public"
  6495. deprecated="not deprecated">
  6496. </method>
  6497. <method name="initialize"
  6498. abstract="false" native="false" synchronized="false"
  6499. static="false" final="false" visibility="public"
  6500. deprecated="not deprecated">
  6501. <param name="uri" type="java.net.URI"/>
  6502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6503. <exception name="IOException" type="java.io.IOException"/>
  6504. </method>
  6505. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6506. abstract="false" native="false" synchronized="false"
  6507. static="false" final="false" visibility="public"
  6508. deprecated="not deprecated">
  6509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6510. <param name="bufferSize" type="int"/>
  6511. <exception name="IOException" type="java.io.IOException"/>
  6512. </method>
  6513. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6514. abstract="false" native="false" synchronized="false"
  6515. static="false" final="false" visibility="public"
  6516. deprecated="not deprecated">
  6517. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6518. <param name="bufferSize" type="int"/>
  6519. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6520. <exception name="IOException" type="java.io.IOException"/>
  6521. <doc>
  6522. <![CDATA[{@inheritDoc}]]>
  6523. </doc>
  6524. </method>
  6525. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6526. abstract="false" native="false" synchronized="false"
  6527. static="false" final="false" visibility="public"
  6528. deprecated="not deprecated">
  6529. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6530. <param name="overwrite" type="boolean"/>
  6531. <param name="bufferSize" type="int"/>
  6532. <param name="replication" type="short"/>
  6533. <param name="blockSize" type="long"/>
  6534. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6535. <exception name="IOException" type="java.io.IOException"/>
  6536. <doc>
  6537. <![CDATA[{@inheritDoc}]]>
  6538. </doc>
  6539. </method>
  6540. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6541. abstract="false" native="false" synchronized="false"
  6542. static="false" final="false" visibility="public"
  6543. deprecated="not deprecated">
  6544. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6545. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6546. <param name="overwrite" type="boolean"/>
  6547. <param name="bufferSize" type="int"/>
  6548. <param name="replication" type="short"/>
  6549. <param name="blockSize" type="long"/>
  6550. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6551. <exception name="IOException" type="java.io.IOException"/>
  6552. <doc>
  6553. <![CDATA[{@inheritDoc}]]>
  6554. </doc>
  6555. </method>
  6556. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6557. abstract="false" native="false" synchronized="false"
  6558. static="false" final="false" visibility="public"
  6559. deprecated="not deprecated">
  6560. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6561. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6562. <param name="overwrite" type="boolean"/>
  6563. <param name="bufferSize" type="int"/>
  6564. <param name="replication" type="short"/>
  6565. <param name="blockSize" type="long"/>
  6566. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6567. <exception name="IOException" type="java.io.IOException"/>
  6568. <doc>
  6569. <![CDATA[{@inheritDoc}]]>
  6570. </doc>
  6571. </method>
  6572. <method name="rename" return="boolean"
  6573. abstract="false" native="false" synchronized="false"
  6574. static="false" final="false" visibility="public"
  6575. deprecated="not deprecated">
  6576. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6577. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6578. <exception name="IOException" type="java.io.IOException"/>
  6579. </method>
  6580. <method name="delete" return="boolean"
  6581. abstract="false" native="false" synchronized="false"
  6582. static="false" final="false" visibility="public"
  6583. deprecated="not deprecated">
  6584. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6585. <exception name="IOException" type="java.io.IOException"/>
  6586. </method>
  6587. <method name="delete" return="boolean"
  6588. abstract="false" native="false" synchronized="false"
  6589. static="false" final="false" visibility="public"
  6590. deprecated="not deprecated">
  6591. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6592. <param name="recursive" type="boolean"/>
  6593. <exception name="IOException" type="java.io.IOException"/>
  6594. </method>
  6595. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6596. abstract="false" native="false" synchronized="false"
  6597. static="false" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6600. <exception name="IOException" type="java.io.IOException"/>
  6601. </method>
  6602. <method name="mkdirs" return="boolean"
  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. <exception name="IOException" type="java.io.IOException"/>
  6608. <doc>
  6609. <![CDATA[Creates the specified directory hierarchy. Does not
  6610. treat existence as an error.]]>
  6611. </doc>
  6612. </method>
  6613. <method name="mkdirs" return="boolean"
  6614. abstract="false" native="false" synchronized="false"
  6615. static="false" final="false" visibility="public"
  6616. deprecated="not deprecated">
  6617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6618. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6619. <exception name="IOException" type="java.io.IOException"/>
  6620. <doc>
  6621. <![CDATA[{@inheritDoc}]]>
  6622. </doc>
  6623. </method>
  6624. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6625. abstract="false" native="false" synchronized="false"
  6626. static="false" final="false" visibility="public"
  6627. deprecated="not deprecated">
  6628. </method>
  6629. <method name="setWorkingDirectory"
  6630. abstract="false" native="false" synchronized="false"
  6631. static="false" final="false" visibility="public"
  6632. deprecated="not deprecated">
  6633. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6634. <doc>
  6635. <![CDATA[Set the working directory to the given directory.]]>
  6636. </doc>
  6637. </method>
  6638. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6639. abstract="false" native="false" synchronized="false"
  6640. static="false" final="false" visibility="public"
  6641. deprecated="not deprecated">
  6642. </method>
  6643. <method name="moveFromLocalFile"
  6644. abstract="false" native="false" synchronized="false"
  6645. static="false" final="false" visibility="public"
  6646. deprecated="not deprecated">
  6647. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6648. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6649. <exception name="IOException" type="java.io.IOException"/>
  6650. </method>
  6651. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6652. abstract="false" native="false" synchronized="false"
  6653. static="false" final="false" visibility="public"
  6654. deprecated="not deprecated">
  6655. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6656. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6657. <exception name="IOException" type="java.io.IOException"/>
  6658. </method>
  6659. <method name="completeLocalOutput"
  6660. abstract="false" native="false" synchronized="false"
  6661. static="false" final="false" visibility="public"
  6662. deprecated="not deprecated">
  6663. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6664. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6665. <exception name="IOException" type="java.io.IOException"/>
  6666. </method>
  6667. <method name="close"
  6668. abstract="false" native="false" synchronized="false"
  6669. static="false" final="false" visibility="public"
  6670. deprecated="not deprecated">
  6671. <exception name="IOException" type="java.io.IOException"/>
  6672. </method>
  6673. <method name="toString" return="java.lang.String"
  6674. abstract="false" native="false" synchronized="false"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. </method>
  6678. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6679. abstract="false" native="false" synchronized="false"
  6680. static="false" final="false" visibility="public"
  6681. deprecated="not deprecated">
  6682. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6683. <exception name="IOException" type="java.io.IOException"/>
  6684. </method>
  6685. <method name="setOwner"
  6686. abstract="false" native="false" synchronized="false"
  6687. static="false" final="false" visibility="public"
  6688. deprecated="not deprecated">
  6689. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6690. <param name="username" type="java.lang.String"/>
  6691. <param name="groupname" type="java.lang.String"/>
  6692. <exception name="IOException" type="java.io.IOException"/>
  6693. <doc>
  6694. <![CDATA[Use the command chown to set owner.]]>
  6695. </doc>
  6696. </method>
  6697. <method name="setPermission"
  6698. abstract="false" native="false" synchronized="false"
  6699. static="false" final="false" visibility="public"
  6700. deprecated="not deprecated">
  6701. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6702. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6703. <exception name="IOException" type="java.io.IOException"/>
  6704. <doc>
  6705. <![CDATA[Use the command chmod to set permission.]]>
  6706. </doc>
  6707. </method>
  6708. <doc>
  6709. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6710. </doc>
  6711. </class>
  6712. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6713. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6714. <interface name="Seekable" abstract="true"
  6715. static="false" final="false" visibility="public"
  6716. deprecated="not deprecated">
  6717. <method name="seek"
  6718. abstract="false" native="false" synchronized="false"
  6719. static="false" final="false" visibility="public"
  6720. deprecated="not deprecated">
  6721. <param name="pos" type="long"/>
  6722. <exception name="IOException" type="java.io.IOException"/>
  6723. <doc>
  6724. <![CDATA[Seek to the given offset from the start of the file.
  6725. The next read() will be from that location. Can't
  6726. seek past the end of the file.]]>
  6727. </doc>
  6728. </method>
  6729. <method name="getPos" return="long"
  6730. abstract="false" native="false" synchronized="false"
  6731. static="false" final="false" visibility="public"
  6732. deprecated="not deprecated">
  6733. <exception name="IOException" type="java.io.IOException"/>
  6734. <doc>
  6735. <![CDATA[Return the current offset from the start of the file]]>
  6736. </doc>
  6737. </method>
  6738. <method name="seekToNewSource" return="boolean"
  6739. abstract="false" native="false" synchronized="false"
  6740. static="false" final="false" visibility="public"
  6741. deprecated="not deprecated">
  6742. <param name="targetPos" type="long"/>
  6743. <exception name="IOException" type="java.io.IOException"/>
  6744. <doc>
  6745. <![CDATA[Seeks a different copy of the data. Returns true if
  6746. found a new source, false otherwise.]]>
  6747. </doc>
  6748. </method>
  6749. <doc>
  6750. <![CDATA[Stream that permits seeking.]]>
  6751. </doc>
  6752. </interface>
  6753. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6754. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6755. <interface name="Syncable" abstract="true"
  6756. static="false" final="false" visibility="public"
  6757. deprecated="not deprecated">
  6758. <method name="sync"
  6759. abstract="false" native="false" synchronized="false"
  6760. static="false" final="false" visibility="public"
  6761. deprecated="not deprecated">
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Synchronize all buffer with the underlying devices.
  6765. @throws IOException]]>
  6766. </doc>
  6767. </method>
  6768. <doc>
  6769. <![CDATA[This interface declare the sync() operation.]]>
  6770. </doc>
  6771. </interface>
  6772. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6773. <!-- start class org.apache.hadoop.fs.Trash -->
  6774. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6775. abstract="false"
  6776. static="false" final="false" visibility="public"
  6777. deprecated="not deprecated">
  6778. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6779. static="false" final="false" visibility="public"
  6780. deprecated="not deprecated">
  6781. <exception name="IOException" type="java.io.IOException"/>
  6782. <doc>
  6783. <![CDATA[Construct a trash can accessor.
  6784. @param conf a Configuration]]>
  6785. </doc>
  6786. </constructor>
  6787. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6788. static="false" final="false" visibility="public"
  6789. deprecated="not deprecated">
  6790. <exception name="IOException" type="java.io.IOException"/>
  6791. <doc>
  6792. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6793. </doc>
  6794. </constructor>
  6795. <method name="moveToTrash" return="boolean"
  6796. abstract="false" native="false" synchronized="false"
  6797. static="false" final="false" visibility="public"
  6798. deprecated="not deprecated">
  6799. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6800. <exception name="IOException" type="java.io.IOException"/>
  6801. <doc>
  6802. <![CDATA[Move a file or directory to the current trash directory.
  6803. @return false if the item is already in the trash or trash is disabled]]>
  6804. </doc>
  6805. </method>
  6806. <method name="checkpoint"
  6807. abstract="false" native="false" synchronized="false"
  6808. static="false" final="false" visibility="public"
  6809. deprecated="not deprecated">
  6810. <exception name="IOException" type="java.io.IOException"/>
  6811. <doc>
  6812. <![CDATA[Create a trash checkpoint.]]>
  6813. </doc>
  6814. </method>
  6815. <method name="expunge"
  6816. abstract="false" native="false" synchronized="false"
  6817. static="false" final="false" visibility="public"
  6818. deprecated="not deprecated">
  6819. <exception name="IOException" type="java.io.IOException"/>
  6820. <doc>
  6821. <![CDATA[Delete old checkpoints.]]>
  6822. </doc>
  6823. </method>
  6824. <method name="getEmptier" return="java.lang.Runnable"
  6825. abstract="false" native="false" synchronized="false"
  6826. static="false" final="false" visibility="public"
  6827. deprecated="not deprecated">
  6828. <exception name="IOException" type="java.io.IOException"/>
  6829. <doc>
  6830. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6831. users, intended to be run by the superuser. Only one checkpoint is kept
  6832. at a time.]]>
  6833. </doc>
  6834. </method>
  6835. <method name="main"
  6836. abstract="false" native="false" synchronized="false"
  6837. static="true" final="false" visibility="public"
  6838. deprecated="not deprecated">
  6839. <param name="args" type="java.lang.String[]"/>
  6840. <exception name="Exception" type="java.lang.Exception"/>
  6841. <doc>
  6842. <![CDATA[Run an emptier.]]>
  6843. </doc>
  6844. </method>
  6845. <doc>
  6846. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6847. directory, a subdirectory of their home directory named ".Trash". Files are
  6848. initially moved to a <i>current</i> sub-directory of the trash directory.
  6849. Within that sub-directory their original path is preserved. Periodically
  6850. one may checkpoint the current trash and remove older checkpoints. (This
  6851. design permits trash management without enumeration of the full trash
  6852. content, without date support in the filesystem, and without clock
  6853. synchronization.)]]>
  6854. </doc>
  6855. </class>
  6856. <!-- end class org.apache.hadoop.fs.Trash -->
  6857. </package>
  6858. <package name="org.apache.hadoop.fs.ftp">
  6859. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6860. <class name="FTPException" extends="java.lang.RuntimeException"
  6861. abstract="false"
  6862. static="false" final="false" visibility="public"
  6863. deprecated="not deprecated">
  6864. <constructor name="FTPException" type="java.lang.String"
  6865. static="false" final="false" visibility="public"
  6866. deprecated="not deprecated">
  6867. </constructor>
  6868. <constructor name="FTPException" type="java.lang.Throwable"
  6869. static="false" final="false" visibility="public"
  6870. deprecated="not deprecated">
  6871. </constructor>
  6872. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6873. static="false" final="false" visibility="public"
  6874. deprecated="not deprecated">
  6875. </constructor>
  6876. <doc>
  6877. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6878. </doc>
  6879. </class>
  6880. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6881. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6882. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6883. abstract="false"
  6884. static="false" final="false" visibility="public"
  6885. deprecated="not deprecated">
  6886. <constructor name="FTPFileSystem"
  6887. static="false" final="false" visibility="public"
  6888. deprecated="not deprecated">
  6889. </constructor>
  6890. <method name="initialize"
  6891. abstract="false" native="false" synchronized="false"
  6892. static="false" final="false" visibility="public"
  6893. deprecated="not deprecated">
  6894. <param name="uri" type="java.net.URI"/>
  6895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6896. <exception name="IOException" type="java.io.IOException"/>
  6897. </method>
  6898. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6899. abstract="false" native="false" synchronized="false"
  6900. static="false" final="false" visibility="public"
  6901. deprecated="not deprecated">
  6902. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6903. <param name="bufferSize" type="int"/>
  6904. <exception name="IOException" type="java.io.IOException"/>
  6905. </method>
  6906. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6907. abstract="false" native="false" synchronized="false"
  6908. static="false" final="false" visibility="public"
  6909. deprecated="not deprecated">
  6910. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6911. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6912. <param name="overwrite" type="boolean"/>
  6913. <param name="bufferSize" type="int"/>
  6914. <param name="replication" type="short"/>
  6915. <param name="blockSize" type="long"/>
  6916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6917. <exception name="IOException" type="java.io.IOException"/>
  6918. <doc>
  6919. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6920. this class or else the invocation will block.]]>
  6921. </doc>
  6922. </method>
  6923. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6924. abstract="false" native="false" synchronized="false"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6928. <param name="bufferSize" type="int"/>
  6929. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6930. <exception name="IOException" type="java.io.IOException"/>
  6931. <doc>
  6932. <![CDATA[This optional operation is not yet supported.]]>
  6933. </doc>
  6934. </method>
  6935. <method name="delete" return="boolean"
  6936. abstract="false" native="false" synchronized="false"
  6937. static="false" final="false" visibility="public"
  6938. deprecated="Use delete(Path, boolean) instead">
  6939. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6940. <exception name="IOException" type="java.io.IOException"/>
  6941. <doc>
  6942. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6943. </doc>
  6944. </method>
  6945. <method name="delete" return="boolean"
  6946. abstract="false" native="false" synchronized="false"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6950. <param name="recursive" type="boolean"/>
  6951. <exception name="IOException" type="java.io.IOException"/>
  6952. </method>
  6953. <method name="getUri" return="java.net.URI"
  6954. abstract="false" native="false" synchronized="false"
  6955. static="false" final="false" visibility="public"
  6956. deprecated="not deprecated">
  6957. </method>
  6958. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6959. abstract="false" native="false" synchronized="false"
  6960. static="false" final="false" visibility="public"
  6961. deprecated="not deprecated">
  6962. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6963. <exception name="IOException" type="java.io.IOException"/>
  6964. </method>
  6965. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6966. abstract="false" native="false" synchronized="false"
  6967. static="false" final="false" visibility="public"
  6968. deprecated="not deprecated">
  6969. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6970. <exception name="IOException" type="java.io.IOException"/>
  6971. </method>
  6972. <method name="mkdirs" return="boolean"
  6973. abstract="false" native="false" synchronized="false"
  6974. static="false" final="false" visibility="public"
  6975. deprecated="not deprecated">
  6976. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6977. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6978. <exception name="IOException" type="java.io.IOException"/>
  6979. </method>
  6980. <method name="rename" return="boolean"
  6981. abstract="false" native="false" synchronized="false"
  6982. static="false" final="false" visibility="public"
  6983. deprecated="not deprecated">
  6984. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6985. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6986. <exception name="IOException" type="java.io.IOException"/>
  6987. </method>
  6988. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6989. abstract="false" native="false" synchronized="false"
  6990. static="false" final="false" visibility="public"
  6991. deprecated="not deprecated">
  6992. </method>
  6993. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6994. abstract="false" native="false" synchronized="false"
  6995. static="false" final="false" visibility="public"
  6996. deprecated="not deprecated">
  6997. </method>
  6998. <method name="setWorkingDirectory"
  6999. abstract="false" native="false" synchronized="false"
  7000. static="false" final="false" visibility="public"
  7001. deprecated="not deprecated">
  7002. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7003. </method>
  7004. <field name="LOG" type="org.apache.commons.logging.Log"
  7005. transient="false" volatile="false"
  7006. static="true" final="true" visibility="public"
  7007. deprecated="not deprecated">
  7008. </field>
  7009. <field name="DEFAULT_BUFFER_SIZE" type="int"
  7010. transient="false" volatile="false"
  7011. static="true" final="true" visibility="public"
  7012. deprecated="not deprecated">
  7013. </field>
  7014. <field name="DEFAULT_BLOCK_SIZE" type="int"
  7015. transient="false" volatile="false"
  7016. static="true" final="true" visibility="public"
  7017. deprecated="not deprecated">
  7018. </field>
  7019. <doc>
  7020. <![CDATA[<p>
  7021. A {@link FileSystem} backed by an FTP client provided by <a
  7022. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  7023. </p>]]>
  7024. </doc>
  7025. </class>
  7026. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7027. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7028. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  7029. abstract="false"
  7030. static="false" final="false" visibility="public"
  7031. deprecated="not deprecated">
  7032. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. </constructor>
  7036. <method name="getPos" return="long"
  7037. abstract="false" native="false" synchronized="false"
  7038. static="false" final="false" visibility="public"
  7039. deprecated="not deprecated">
  7040. <exception name="IOException" type="java.io.IOException"/>
  7041. </method>
  7042. <method name="seek"
  7043. abstract="false" native="false" synchronized="false"
  7044. static="false" final="false" visibility="public"
  7045. deprecated="not deprecated">
  7046. <param name="pos" type="long"/>
  7047. <exception name="IOException" type="java.io.IOException"/>
  7048. </method>
  7049. <method name="seekToNewSource" return="boolean"
  7050. abstract="false" native="false" synchronized="false"
  7051. static="false" final="false" visibility="public"
  7052. deprecated="not deprecated">
  7053. <param name="targetPos" type="long"/>
  7054. <exception name="IOException" type="java.io.IOException"/>
  7055. </method>
  7056. <method name="read" return="int"
  7057. abstract="false" native="false" synchronized="true"
  7058. static="false" final="false" visibility="public"
  7059. deprecated="not deprecated">
  7060. <exception name="IOException" type="java.io.IOException"/>
  7061. </method>
  7062. <method name="read" return="int"
  7063. abstract="false" native="false" synchronized="true"
  7064. static="false" final="false" visibility="public"
  7065. deprecated="not deprecated">
  7066. <param name="buf" type="byte[]"/>
  7067. <param name="off" type="int"/>
  7068. <param name="len" type="int"/>
  7069. <exception name="IOException" type="java.io.IOException"/>
  7070. </method>
  7071. <method name="close"
  7072. abstract="false" native="false" synchronized="true"
  7073. static="false" final="false" visibility="public"
  7074. deprecated="not deprecated">
  7075. <exception name="IOException" type="java.io.IOException"/>
  7076. </method>
  7077. <method name="markSupported" return="boolean"
  7078. abstract="false" native="false" synchronized="false"
  7079. static="false" final="false" visibility="public"
  7080. deprecated="not deprecated">
  7081. </method>
  7082. <method name="mark"
  7083. abstract="false" native="false" synchronized="false"
  7084. static="false" final="false" visibility="public"
  7085. deprecated="not deprecated">
  7086. <param name="readLimit" type="int"/>
  7087. </method>
  7088. <method name="reset"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <exception name="IOException" type="java.io.IOException"/>
  7093. </method>
  7094. </class>
  7095. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7096. </package>
  7097. <package name="org.apache.hadoop.fs.kfs">
  7098. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7099. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7100. abstract="false"
  7101. static="false" final="false" visibility="public"
  7102. deprecated="not deprecated">
  7103. <constructor name="KosmosFileSystem"
  7104. static="false" final="false" visibility="public"
  7105. deprecated="not deprecated">
  7106. </constructor>
  7107. <method name="getUri" return="java.net.URI"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. </method>
  7112. <method name="initialize"
  7113. abstract="false" native="false" synchronized="false"
  7114. static="false" final="false" visibility="public"
  7115. deprecated="not deprecated">
  7116. <param name="uri" type="java.net.URI"/>
  7117. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7118. <exception name="IOException" type="java.io.IOException"/>
  7119. </method>
  7120. <method name="getName" return="java.lang.String"
  7121. abstract="false" native="false" synchronized="false"
  7122. static="false" final="false" visibility="public"
  7123. deprecated="not deprecated">
  7124. </method>
  7125. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7126. abstract="false" native="false" synchronized="false"
  7127. static="false" final="false" visibility="public"
  7128. deprecated="not deprecated">
  7129. </method>
  7130. <method name="setWorkingDirectory"
  7131. abstract="false" native="false" synchronized="false"
  7132. static="false" final="false" visibility="public"
  7133. deprecated="not deprecated">
  7134. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7135. </method>
  7136. <method name="mkdirs" return="boolean"
  7137. abstract="false" native="false" synchronized="false"
  7138. static="false" final="false" visibility="public"
  7139. deprecated="not deprecated">
  7140. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7141. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7142. <exception name="IOException" type="java.io.IOException"/>
  7143. </method>
  7144. <method name="isDirectory" return="boolean"
  7145. abstract="false" native="false" synchronized="false"
  7146. static="false" final="false" visibility="public"
  7147. deprecated="not deprecated">
  7148. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7149. <exception name="IOException" type="java.io.IOException"/>
  7150. </method>
  7151. <method name="isFile" return="boolean"
  7152. abstract="false" native="false" synchronized="false"
  7153. static="false" final="false" visibility="public"
  7154. deprecated="not deprecated">
  7155. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7156. <exception name="IOException" type="java.io.IOException"/>
  7157. </method>
  7158. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7159. abstract="false" native="false" synchronized="false"
  7160. static="false" final="false" visibility="public"
  7161. deprecated="not deprecated">
  7162. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7163. <exception name="IOException" type="java.io.IOException"/>
  7164. </method>
  7165. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7166. abstract="false" native="false" synchronized="false"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7170. <exception name="IOException" type="java.io.IOException"/>
  7171. </method>
  7172. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7173. abstract="false" native="false" synchronized="false"
  7174. static="false" final="false" visibility="public"
  7175. deprecated="not deprecated">
  7176. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7177. <param name="bufferSize" type="int"/>
  7178. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7179. <exception name="IOException" type="java.io.IOException"/>
  7180. <doc>
  7181. <![CDATA[This optional operation is not yet supported.]]>
  7182. </doc>
  7183. </method>
  7184. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7185. abstract="false" native="false" synchronized="false"
  7186. static="false" final="false" visibility="public"
  7187. deprecated="not deprecated">
  7188. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7189. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7190. <param name="overwrite" type="boolean"/>
  7191. <param name="bufferSize" type="int"/>
  7192. <param name="replication" type="short"/>
  7193. <param name="blockSize" type="long"/>
  7194. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7195. <exception name="IOException" type="java.io.IOException"/>
  7196. </method>
  7197. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  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. <param name="bufferSize" type="int"/>
  7203. <exception name="IOException" type="java.io.IOException"/>
  7204. </method>
  7205. <method name="rename" return="boolean"
  7206. abstract="false" native="false" synchronized="false"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7210. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7211. <exception name="IOException" type="java.io.IOException"/>
  7212. </method>
  7213. <method name="delete" return="boolean"
  7214. abstract="false" native="false" synchronized="false"
  7215. static="false" final="false" visibility="public"
  7216. deprecated="not deprecated">
  7217. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7218. <param name="recursive" type="boolean"/>
  7219. <exception name="IOException" type="java.io.IOException"/>
  7220. </method>
  7221. <method name="delete" return="boolean"
  7222. abstract="false" native="false" synchronized="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7226. <exception name="IOException" type="java.io.IOException"/>
  7227. </method>
  7228. <method name="getLength" return="long"
  7229. abstract="false" native="false" synchronized="false"
  7230. static="false" final="false" visibility="public"
  7231. deprecated="not deprecated">
  7232. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7233. <exception name="IOException" type="java.io.IOException"/>
  7234. </method>
  7235. <method name="getReplication" return="short"
  7236. abstract="false" native="false" synchronized="false"
  7237. static="false" final="false" visibility="public"
  7238. deprecated="not deprecated">
  7239. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7240. <exception name="IOException" type="java.io.IOException"/>
  7241. </method>
  7242. <method name="getDefaultReplication" return="short"
  7243. abstract="false" native="false" synchronized="false"
  7244. static="false" final="false" visibility="public"
  7245. deprecated="not deprecated">
  7246. </method>
  7247. <method name="setReplication" return="boolean"
  7248. abstract="false" native="false" synchronized="false"
  7249. static="false" final="false" visibility="public"
  7250. deprecated="not deprecated">
  7251. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7252. <param name="replication" type="short"/>
  7253. <exception name="IOException" type="java.io.IOException"/>
  7254. </method>
  7255. <method name="getDefaultBlockSize" return="long"
  7256. abstract="false" native="false" synchronized="false"
  7257. static="false" final="false" visibility="public"
  7258. deprecated="not deprecated">
  7259. </method>
  7260. <method name="lock"
  7261. abstract="false" native="false" synchronized="false"
  7262. static="false" final="false" visibility="public"
  7263. deprecated="not deprecated">
  7264. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7265. <param name="shared" type="boolean"/>
  7266. <exception name="IOException" type="java.io.IOException"/>
  7267. </method>
  7268. <method name="release"
  7269. abstract="false" native="false" synchronized="false"
  7270. static="false" final="false" visibility="public"
  7271. deprecated="not deprecated">
  7272. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7273. <exception name="IOException" type="java.io.IOException"/>
  7274. </method>
  7275. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7276. abstract="false" native="false" synchronized="false"
  7277. static="false" final="false" visibility="public"
  7278. deprecated="not deprecated">
  7279. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7280. <param name="start" type="long"/>
  7281. <param name="len" type="long"/>
  7282. <exception name="IOException" type="java.io.IOException"/>
  7283. <doc>
  7284. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7285. locations of the various chunks of the file file from KFS.]]>
  7286. </doc>
  7287. </method>
  7288. <method name="copyFromLocalFile"
  7289. abstract="false" native="false" synchronized="false"
  7290. static="false" final="false" visibility="public"
  7291. deprecated="not deprecated">
  7292. <param name="delSrc" type="boolean"/>
  7293. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7294. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7295. <exception name="IOException" type="java.io.IOException"/>
  7296. </method>
  7297. <method name="copyToLocalFile"
  7298. abstract="false" native="false" synchronized="false"
  7299. static="false" final="false" visibility="public"
  7300. deprecated="not deprecated">
  7301. <param name="delSrc" type="boolean"/>
  7302. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7303. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7304. <exception name="IOException" type="java.io.IOException"/>
  7305. </method>
  7306. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7307. abstract="false" native="false" synchronized="false"
  7308. static="false" final="false" visibility="public"
  7309. deprecated="not deprecated">
  7310. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7311. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7312. <exception name="IOException" type="java.io.IOException"/>
  7313. </method>
  7314. <method name="completeLocalOutput"
  7315. abstract="false" native="false" synchronized="false"
  7316. static="false" final="false" visibility="public"
  7317. deprecated="not deprecated">
  7318. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7319. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7320. <exception name="IOException" type="java.io.IOException"/>
  7321. </method>
  7322. <doc>
  7323. <![CDATA[A FileSystem backed by KFS.]]>
  7324. </doc>
  7325. </class>
  7326. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7327. </package>
  7328. <package name="org.apache.hadoop.fs.permission">
  7329. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7330. <class name="AccessControlException" extends="java.io.IOException"
  7331. abstract="false"
  7332. static="false" final="false" visibility="public"
  7333. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7334. instead.">
  7335. <constructor name="AccessControlException"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <doc>
  7339. <![CDATA[Default constructor is needed for unwrapping from
  7340. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7341. </doc>
  7342. </constructor>
  7343. <constructor name="AccessControlException" type="java.lang.String"
  7344. static="false" final="false" visibility="public"
  7345. deprecated="not deprecated">
  7346. <doc>
  7347. <![CDATA[Constructs an {@link AccessControlException}
  7348. with the specified detail message.
  7349. @param s the detail message.]]>
  7350. </doc>
  7351. </constructor>
  7352. <constructor name="AccessControlException" type="java.lang.Throwable"
  7353. static="false" final="false" visibility="public"
  7354. deprecated="not deprecated">
  7355. <doc>
  7356. <![CDATA[Constructs a new exception with the specified cause and a detail
  7357. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7358. typically contains the class and detail message of <tt>cause</tt>).
  7359. @param cause the cause (which is saved for later retrieval by the
  7360. {@link #getCause()} method). (A <tt>null</tt> value is
  7361. permitted, and indicates that the cause is nonexistent or
  7362. unknown.)]]>
  7363. </doc>
  7364. </constructor>
  7365. <doc>
  7366. <![CDATA[An exception class for access control related issues.
  7367. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7368. instead.]]>
  7369. </doc>
  7370. </class>
  7371. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7372. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7373. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7374. abstract="false"
  7375. static="false" final="false" visibility="public"
  7376. deprecated="not deprecated">
  7377. <constructor name="ChmodParser" type="java.lang.String"
  7378. static="false" final="false" visibility="public"
  7379. deprecated="not deprecated">
  7380. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7381. </constructor>
  7382. <method name="applyNewPermission" return="short"
  7383. abstract="false" native="false" synchronized="false"
  7384. static="false" final="false" visibility="public"
  7385. deprecated="not deprecated">
  7386. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7387. <doc>
  7388. <![CDATA[Apply permission against specified file and determine what the
  7389. new mode would be
  7390. @param file File against which to apply mode
  7391. @return File's new mode if applied.]]>
  7392. </doc>
  7393. </method>
  7394. <doc>
  7395. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7396. mode against an existing file.]]>
  7397. </doc>
  7398. </class>
  7399. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7400. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7401. <class name="FsAction" extends="java.lang.Enum"
  7402. abstract="false"
  7403. static="false" final="true" visibility="public"
  7404. deprecated="not deprecated">
  7405. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7406. abstract="false" native="false" synchronized="false"
  7407. static="true" final="false" visibility="public"
  7408. deprecated="not deprecated">
  7409. </method>
  7410. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7411. abstract="false" native="false" synchronized="false"
  7412. static="true" final="false" visibility="public"
  7413. deprecated="not deprecated">
  7414. <param name="name" type="java.lang.String"/>
  7415. </method>
  7416. <method name="implies" return="boolean"
  7417. abstract="false" native="false" synchronized="false"
  7418. static="false" final="false" visibility="public"
  7419. deprecated="not deprecated">
  7420. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7421. <doc>
  7422. <![CDATA[Return true if this action implies that action.
  7423. @param that]]>
  7424. </doc>
  7425. </method>
  7426. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7427. abstract="false" native="false" synchronized="false"
  7428. static="false" final="false" visibility="public"
  7429. deprecated="not deprecated">
  7430. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7431. <doc>
  7432. <![CDATA[AND operation.]]>
  7433. </doc>
  7434. </method>
  7435. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7436. abstract="false" native="false" synchronized="false"
  7437. static="false" final="false" visibility="public"
  7438. deprecated="not deprecated">
  7439. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7440. <doc>
  7441. <![CDATA[OR operation.]]>
  7442. </doc>
  7443. </method>
  7444. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7445. abstract="false" native="false" synchronized="false"
  7446. static="false" final="false" visibility="public"
  7447. deprecated="not deprecated">
  7448. <doc>
  7449. <![CDATA[NOT operation.]]>
  7450. </doc>
  7451. </method>
  7452. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7453. transient="false" volatile="false"
  7454. static="true" final="true" visibility="public"
  7455. deprecated="not deprecated">
  7456. </field>
  7457. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7458. transient="false" volatile="false"
  7459. static="true" final="true" visibility="public"
  7460. deprecated="not deprecated">
  7461. </field>
  7462. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7463. transient="false" volatile="false"
  7464. static="true" final="true" visibility="public"
  7465. deprecated="not deprecated">
  7466. </field>
  7467. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7468. transient="false" volatile="false"
  7469. static="true" final="true" visibility="public"
  7470. deprecated="not deprecated">
  7471. </field>
  7472. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7473. transient="false" volatile="false"
  7474. static="true" final="true" visibility="public"
  7475. deprecated="not deprecated">
  7476. </field>
  7477. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7478. transient="false" volatile="false"
  7479. static="true" final="true" visibility="public"
  7480. deprecated="not deprecated">
  7481. </field>
  7482. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7483. transient="false" volatile="false"
  7484. static="true" final="true" visibility="public"
  7485. deprecated="not deprecated">
  7486. </field>
  7487. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7488. transient="false" volatile="false"
  7489. static="true" final="true" visibility="public"
  7490. deprecated="not deprecated">
  7491. </field>
  7492. <field name="SYMBOL" type="java.lang.String"
  7493. transient="false" volatile="false"
  7494. static="false" final="true" visibility="public"
  7495. deprecated="not deprecated">
  7496. <doc>
  7497. <![CDATA[Symbolic representation]]>
  7498. </doc>
  7499. </field>
  7500. <doc>
  7501. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7502. </doc>
  7503. </class>
  7504. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7505. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7506. <class name="FsPermission" extends="java.lang.Object"
  7507. abstract="false"
  7508. static="false" final="false" visibility="public"
  7509. deprecated="not deprecated">
  7510. <implements name="org.apache.hadoop.io.Writable"/>
  7511. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7512. static="false" final="false" visibility="public"
  7513. deprecated="not deprecated">
  7514. <doc>
  7515. <![CDATA[Construct by the given {@link FsAction}.
  7516. @param u user action
  7517. @param g group action
  7518. @param o other action]]>
  7519. </doc>
  7520. </constructor>
  7521. <constructor name="FsPermission" type="short"
  7522. static="false" final="false" visibility="public"
  7523. deprecated="not deprecated">
  7524. <doc>
  7525. <![CDATA[Construct by the given mode.
  7526. @param mode
  7527. @see #toShort()]]>
  7528. </doc>
  7529. </constructor>
  7530. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7531. static="false" final="false" visibility="public"
  7532. deprecated="not deprecated">
  7533. <doc>
  7534. <![CDATA[Copy constructor
  7535. @param other other permission]]>
  7536. </doc>
  7537. </constructor>
  7538. <constructor name="FsPermission" type="java.lang.String"
  7539. static="false" final="false" visibility="public"
  7540. deprecated="not deprecated">
  7541. <doc>
  7542. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7543. @param mode mode as a string, either in octal or symbolic format
  7544. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7545. </doc>
  7546. </constructor>
  7547. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7548. abstract="false" native="false" synchronized="false"
  7549. static="true" final="false" visibility="public"
  7550. deprecated="not deprecated">
  7551. <param name="permission" type="short"/>
  7552. <doc>
  7553. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7554. </doc>
  7555. </method>
  7556. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7557. abstract="false" native="false" synchronized="false"
  7558. static="false" final="false" visibility="public"
  7559. deprecated="not deprecated">
  7560. <doc>
  7561. <![CDATA[Return user {@link FsAction}.]]>
  7562. </doc>
  7563. </method>
  7564. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7565. abstract="false" native="false" synchronized="false"
  7566. static="false" final="false" visibility="public"
  7567. deprecated="not deprecated">
  7568. <doc>
  7569. <![CDATA[Return group {@link FsAction}.]]>
  7570. </doc>
  7571. </method>
  7572. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7573. abstract="false" native="false" synchronized="false"
  7574. static="false" final="false" visibility="public"
  7575. deprecated="not deprecated">
  7576. <doc>
  7577. <![CDATA[Return other {@link FsAction}.]]>
  7578. </doc>
  7579. </method>
  7580. <method name="fromShort"
  7581. abstract="false" native="false" synchronized="false"
  7582. static="false" final="false" visibility="public"
  7583. deprecated="not deprecated">
  7584. <param name="n" type="short"/>
  7585. </method>
  7586. <method name="write"
  7587. abstract="false" native="false" synchronized="false"
  7588. static="false" final="false" visibility="public"
  7589. deprecated="not deprecated">
  7590. <param name="out" type="java.io.DataOutput"/>
  7591. <exception name="IOException" type="java.io.IOException"/>
  7592. <doc>
  7593. <![CDATA[{@inheritDoc}]]>
  7594. </doc>
  7595. </method>
  7596. <method name="readFields"
  7597. abstract="false" native="false" synchronized="false"
  7598. static="false" final="false" visibility="public"
  7599. deprecated="not deprecated">
  7600. <param name="in" type="java.io.DataInput"/>
  7601. <exception name="IOException" type="java.io.IOException"/>
  7602. <doc>
  7603. <![CDATA[{@inheritDoc}]]>
  7604. </doc>
  7605. </method>
  7606. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7607. abstract="false" native="false" synchronized="false"
  7608. static="true" final="false" visibility="public"
  7609. deprecated="not deprecated">
  7610. <param name="in" type="java.io.DataInput"/>
  7611. <exception name="IOException" type="java.io.IOException"/>
  7612. <doc>
  7613. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7614. </doc>
  7615. </method>
  7616. <method name="toShort" return="short"
  7617. abstract="false" native="false" synchronized="false"
  7618. static="false" final="false" visibility="public"
  7619. deprecated="not deprecated">
  7620. <doc>
  7621. <![CDATA[Encode the object to a short.]]>
  7622. </doc>
  7623. </method>
  7624. <method name="equals" return="boolean"
  7625. abstract="false" native="false" synchronized="false"
  7626. static="false" final="false" visibility="public"
  7627. deprecated="not deprecated">
  7628. <param name="obj" type="java.lang.Object"/>
  7629. <doc>
  7630. <![CDATA[{@inheritDoc}]]>
  7631. </doc>
  7632. </method>
  7633. <method name="hashCode" return="int"
  7634. abstract="false" native="false" synchronized="false"
  7635. static="false" final="false" visibility="public"
  7636. deprecated="not deprecated">
  7637. <doc>
  7638. <![CDATA[{@inheritDoc}]]>
  7639. </doc>
  7640. </method>
  7641. <method name="toString" return="java.lang.String"
  7642. abstract="false" native="false" synchronized="false"
  7643. static="false" final="false" visibility="public"
  7644. deprecated="not deprecated">
  7645. <doc>
  7646. <![CDATA[{@inheritDoc}]]>
  7647. </doc>
  7648. </method>
  7649. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7650. abstract="false" native="false" synchronized="false"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7654. <doc>
  7655. <![CDATA[Apply a umask to this permission and return a new one]]>
  7656. </doc>
  7657. </method>
  7658. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7659. abstract="false" native="false" synchronized="false"
  7660. static="true" final="false" visibility="public"
  7661. deprecated="not deprecated">
  7662. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7663. <doc>
  7664. <![CDATA[Get the user file creation mask (umask)
  7665. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7666. or octal.
  7667. Symbolic umask is applied relative to file mode creation mask;
  7668. the permission op characters '+' clears the corresponding bit in the mask,
  7669. '-' sets bits in the mask.
  7670. Octal umask, the specified bits are set in the file mode creation mask.
  7671. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7672. </doc>
  7673. </method>
  7674. <method name="setUMask"
  7675. abstract="false" native="false" synchronized="false"
  7676. static="true" final="false" visibility="public"
  7677. deprecated="not deprecated">
  7678. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7679. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7680. <doc>
  7681. <![CDATA[Set the user file creation mask (umask)]]>
  7682. </doc>
  7683. </method>
  7684. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7685. abstract="false" native="false" synchronized="false"
  7686. static="true" final="false" visibility="public"
  7687. deprecated="not deprecated">
  7688. <doc>
  7689. <![CDATA[Get the default permission.]]>
  7690. </doc>
  7691. </method>
  7692. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7693. abstract="false" native="false" synchronized="false"
  7694. static="true" final="false" visibility="public"
  7695. deprecated="not deprecated">
  7696. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7697. <doc>
  7698. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7699. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7700. </doc>
  7701. </method>
  7702. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7703. transient="false" volatile="false"
  7704. static="true" final="true" visibility="public"
  7705. deprecated="not deprecated">
  7706. <doc>
  7707. <![CDATA[umask property label]]>
  7708. </doc>
  7709. </field>
  7710. <field name="UMASK_LABEL" type="java.lang.String"
  7711. transient="false" volatile="false"
  7712. static="true" final="true" visibility="public"
  7713. deprecated="not deprecated">
  7714. </field>
  7715. <field name="DEFAULT_UMASK" type="int"
  7716. transient="false" volatile="false"
  7717. static="true" final="true" visibility="public"
  7718. deprecated="not deprecated">
  7719. </field>
  7720. <doc>
  7721. <![CDATA[A class for file/directory permissions.]]>
  7722. </doc>
  7723. </class>
  7724. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7725. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7726. <class name="PermissionStatus" extends="java.lang.Object"
  7727. abstract="false"
  7728. static="false" final="false" visibility="public"
  7729. deprecated="not deprecated">
  7730. <implements name="org.apache.hadoop.io.Writable"/>
  7731. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <doc>
  7735. <![CDATA[Constructor]]>
  7736. </doc>
  7737. </constructor>
  7738. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7739. abstract="false" native="false" synchronized="false"
  7740. static="true" final="false" visibility="public"
  7741. deprecated="not deprecated">
  7742. <param name="user" type="java.lang.String"/>
  7743. <param name="group" type="java.lang.String"/>
  7744. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7745. <doc>
  7746. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7747. </doc>
  7748. </method>
  7749. <method name="getUserName" return="java.lang.String"
  7750. abstract="false" native="false" synchronized="false"
  7751. static="false" final="false" visibility="public"
  7752. deprecated="not deprecated">
  7753. <doc>
  7754. <![CDATA[Return user name]]>
  7755. </doc>
  7756. </method>
  7757. <method name="getGroupName" return="java.lang.String"
  7758. abstract="false" native="false" synchronized="false"
  7759. static="false" final="false" visibility="public"
  7760. deprecated="not deprecated">
  7761. <doc>
  7762. <![CDATA[Return group name]]>
  7763. </doc>
  7764. </method>
  7765. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7766. abstract="false" native="false" synchronized="false"
  7767. static="false" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <doc>
  7770. <![CDATA[Return permission]]>
  7771. </doc>
  7772. </method>
  7773. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7774. abstract="false" native="false" synchronized="false"
  7775. static="false" final="false" visibility="public"
  7776. deprecated="not deprecated">
  7777. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7778. <doc>
  7779. <![CDATA[Apply umask.
  7780. @see FsPermission#applyUMask(FsPermission)]]>
  7781. </doc>
  7782. </method>
  7783. <method name="readFields"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="public"
  7786. deprecated="not deprecated">
  7787. <param name="in" type="java.io.DataInput"/>
  7788. <exception name="IOException" type="java.io.IOException"/>
  7789. <doc>
  7790. <![CDATA[{@inheritDoc}]]>
  7791. </doc>
  7792. </method>
  7793. <method name="write"
  7794. abstract="false" native="false" synchronized="false"
  7795. static="false" final="false" visibility="public"
  7796. deprecated="not deprecated">
  7797. <param name="out" type="java.io.DataOutput"/>
  7798. <exception name="IOException" type="java.io.IOException"/>
  7799. <doc>
  7800. <![CDATA[{@inheritDoc}]]>
  7801. </doc>
  7802. </method>
  7803. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7804. abstract="false" native="false" synchronized="false"
  7805. static="true" final="false" visibility="public"
  7806. deprecated="not deprecated">
  7807. <param name="in" type="java.io.DataInput"/>
  7808. <exception name="IOException" type="java.io.IOException"/>
  7809. <doc>
  7810. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7811. </doc>
  7812. </method>
  7813. <method name="write"
  7814. abstract="false" native="false" synchronized="false"
  7815. static="true" final="false" visibility="public"
  7816. deprecated="not deprecated">
  7817. <param name="out" type="java.io.DataOutput"/>
  7818. <param name="username" type="java.lang.String"/>
  7819. <param name="groupname" type="java.lang.String"/>
  7820. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7821. <exception name="IOException" type="java.io.IOException"/>
  7822. <doc>
  7823. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7824. </doc>
  7825. </method>
  7826. <method name="toString" return="java.lang.String"
  7827. abstract="false" native="false" synchronized="false"
  7828. static="false" final="false" visibility="public"
  7829. deprecated="not deprecated">
  7830. <doc>
  7831. <![CDATA[{@inheritDoc}]]>
  7832. </doc>
  7833. </method>
  7834. <doc>
  7835. <![CDATA[Store permission related information.]]>
  7836. </doc>
  7837. </class>
  7838. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7839. </package>
  7840. <package name="org.apache.hadoop.fs.s3">
  7841. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7842. <class name="Block" extends="java.lang.Object"
  7843. abstract="false"
  7844. static="false" final="false" visibility="public"
  7845. deprecated="not deprecated">
  7846. <constructor name="Block" type="long, long"
  7847. static="false" final="false" visibility="public"
  7848. deprecated="not deprecated">
  7849. </constructor>
  7850. <method name="getId" return="long"
  7851. abstract="false" native="false" synchronized="false"
  7852. static="false" final="false" visibility="public"
  7853. deprecated="not deprecated">
  7854. </method>
  7855. <method name="getLength" return="long"
  7856. abstract="false" native="false" synchronized="false"
  7857. static="false" final="false" visibility="public"
  7858. deprecated="not deprecated">
  7859. </method>
  7860. <method name="toString" return="java.lang.String"
  7861. abstract="false" native="false" synchronized="false"
  7862. static="false" final="false" visibility="public"
  7863. deprecated="not deprecated">
  7864. </method>
  7865. <doc>
  7866. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7867. </doc>
  7868. </class>
  7869. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7870. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7871. <interface name="FileSystemStore" abstract="true"
  7872. static="false" final="false" visibility="public"
  7873. deprecated="not deprecated">
  7874. <method name="initialize"
  7875. abstract="false" native="false" synchronized="false"
  7876. static="false" final="false" visibility="public"
  7877. deprecated="not deprecated">
  7878. <param name="uri" type="java.net.URI"/>
  7879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7880. <exception name="IOException" type="java.io.IOException"/>
  7881. </method>
  7882. <method name="getVersion" return="java.lang.String"
  7883. abstract="false" native="false" synchronized="false"
  7884. static="false" final="false" visibility="public"
  7885. deprecated="not deprecated">
  7886. <exception name="IOException" type="java.io.IOException"/>
  7887. </method>
  7888. <method name="storeINode"
  7889. abstract="false" native="false" synchronized="false"
  7890. static="false" final="false" visibility="public"
  7891. deprecated="not deprecated">
  7892. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7893. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7894. <exception name="IOException" type="java.io.IOException"/>
  7895. </method>
  7896. <method name="storeBlock"
  7897. abstract="false" native="false" synchronized="false"
  7898. static="false" final="false" visibility="public"
  7899. deprecated="not deprecated">
  7900. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7901. <param name="file" type="java.io.File"/>
  7902. <exception name="IOException" type="java.io.IOException"/>
  7903. </method>
  7904. <method name="inodeExists" return="boolean"
  7905. abstract="false" native="false" synchronized="false"
  7906. static="false" final="false" visibility="public"
  7907. deprecated="not deprecated">
  7908. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7909. <exception name="IOException" type="java.io.IOException"/>
  7910. </method>
  7911. <method name="blockExists" return="boolean"
  7912. abstract="false" native="false" synchronized="false"
  7913. static="false" final="false" visibility="public"
  7914. deprecated="not deprecated">
  7915. <param name="blockId" type="long"/>
  7916. <exception name="IOException" type="java.io.IOException"/>
  7917. </method>
  7918. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7919. abstract="false" native="false" synchronized="false"
  7920. static="false" final="false" visibility="public"
  7921. deprecated="not deprecated">
  7922. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7923. <exception name="IOException" type="java.io.IOException"/>
  7924. </method>
  7925. <method name="retrieveBlock" return="java.io.File"
  7926. abstract="false" native="false" synchronized="false"
  7927. static="false" final="false" visibility="public"
  7928. deprecated="not deprecated">
  7929. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7930. <param name="byteRangeStart" type="long"/>
  7931. <exception name="IOException" type="java.io.IOException"/>
  7932. </method>
  7933. <method name="deleteINode"
  7934. abstract="false" native="false" synchronized="false"
  7935. static="false" final="false" visibility="public"
  7936. deprecated="not deprecated">
  7937. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7938. <exception name="IOException" type="java.io.IOException"/>
  7939. </method>
  7940. <method name="deleteBlock"
  7941. abstract="false" native="false" synchronized="false"
  7942. static="false" final="false" visibility="public"
  7943. deprecated="not deprecated">
  7944. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7945. <exception name="IOException" type="java.io.IOException"/>
  7946. </method>
  7947. <method name="listSubPaths" return="java.util.Set"
  7948. abstract="false" native="false" synchronized="false"
  7949. static="false" final="false" visibility="public"
  7950. deprecated="not deprecated">
  7951. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7952. <exception name="IOException" type="java.io.IOException"/>
  7953. </method>
  7954. <method name="listDeepSubPaths" return="java.util.Set"
  7955. abstract="false" native="false" synchronized="false"
  7956. static="false" final="false" visibility="public"
  7957. deprecated="not deprecated">
  7958. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7959. <exception name="IOException" type="java.io.IOException"/>
  7960. </method>
  7961. <method name="purge"
  7962. abstract="false" native="false" synchronized="false"
  7963. static="false" final="false" visibility="public"
  7964. deprecated="not deprecated">
  7965. <exception name="IOException" type="java.io.IOException"/>
  7966. <doc>
  7967. <![CDATA[Delete everything. Used for testing.
  7968. @throws IOException]]>
  7969. </doc>
  7970. </method>
  7971. <method name="dump"
  7972. abstract="false" native="false" synchronized="false"
  7973. static="false" final="false" visibility="public"
  7974. deprecated="not deprecated">
  7975. <exception name="IOException" type="java.io.IOException"/>
  7976. <doc>
  7977. <![CDATA[Diagnostic method to dump all INodes to the console.
  7978. @throws IOException]]>
  7979. </doc>
  7980. </method>
  7981. <doc>
  7982. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7983. </doc>
  7984. </interface>
  7985. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7986. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7987. <class name="INode" extends="java.lang.Object"
  7988. abstract="false"
  7989. static="false" final="false" visibility="public"
  7990. deprecated="not deprecated">
  7991. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7992. static="false" final="false" visibility="public"
  7993. deprecated="not deprecated">
  7994. </constructor>
  7995. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7996. abstract="false" native="false" synchronized="false"
  7997. static="false" final="false" visibility="public"
  7998. deprecated="not deprecated">
  7999. </method>
  8000. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  8001. abstract="false" native="false" synchronized="false"
  8002. static="false" final="false" visibility="public"
  8003. deprecated="not deprecated">
  8004. </method>
  8005. <method name="isDirectory" return="boolean"
  8006. abstract="false" native="false" synchronized="false"
  8007. static="false" final="false" visibility="public"
  8008. deprecated="not deprecated">
  8009. </method>
  8010. <method name="isFile" return="boolean"
  8011. abstract="false" native="false" synchronized="false"
  8012. static="false" final="false" visibility="public"
  8013. deprecated="not deprecated">
  8014. </method>
  8015. <method name="getSerializedLength" return="long"
  8016. abstract="false" native="false" synchronized="false"
  8017. static="false" final="false" visibility="public"
  8018. deprecated="not deprecated">
  8019. </method>
  8020. <method name="serialize" return="java.io.InputStream"
  8021. abstract="false" native="false" synchronized="false"
  8022. static="false" final="false" visibility="public"
  8023. deprecated="not deprecated">
  8024. <exception name="IOException" type="java.io.IOException"/>
  8025. </method>
  8026. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  8027. abstract="false" native="false" synchronized="false"
  8028. static="true" final="false" visibility="public"
  8029. deprecated="not deprecated">
  8030. <param name="in" type="java.io.InputStream"/>
  8031. <exception name="IOException" type="java.io.IOException"/>
  8032. </method>
  8033. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  8034. transient="false" volatile="false"
  8035. static="true" final="true" visibility="public"
  8036. deprecated="not deprecated">
  8037. </field>
  8038. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  8039. transient="false" volatile="false"
  8040. static="true" final="true" visibility="public"
  8041. deprecated="not deprecated">
  8042. </field>
  8043. <doc>
  8044. <![CDATA[Holds file metadata including type (regular file, or directory),
  8045. and the list of blocks that are pointers to the data.]]>
  8046. </doc>
  8047. </class>
  8048. <!-- end class org.apache.hadoop.fs.s3.INode -->
  8049. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8050. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8051. abstract="false"
  8052. static="false" final="false" visibility="public"
  8053. deprecated="not deprecated">
  8054. <implements name="org.apache.hadoop.util.Tool"/>
  8055. <constructor name="MigrationTool"
  8056. static="false" final="false" visibility="public"
  8057. deprecated="not deprecated">
  8058. </constructor>
  8059. <method name="main"
  8060. abstract="false" native="false" synchronized="false"
  8061. static="true" final="false" visibility="public"
  8062. deprecated="not deprecated">
  8063. <param name="args" type="java.lang.String[]"/>
  8064. <exception name="Exception" type="java.lang.Exception"/>
  8065. </method>
  8066. <method name="run" return="int"
  8067. abstract="false" native="false" synchronized="false"
  8068. static="false" final="false" visibility="public"
  8069. deprecated="not deprecated">
  8070. <param name="args" type="java.lang.String[]"/>
  8071. <exception name="Exception" type="java.lang.Exception"/>
  8072. </method>
  8073. <method name="initialize"
  8074. abstract="false" native="false" synchronized="false"
  8075. static="false" final="false" visibility="public"
  8076. deprecated="not deprecated">
  8077. <param name="uri" type="java.net.URI"/>
  8078. <exception name="IOException" type="java.io.IOException"/>
  8079. </method>
  8080. <doc>
  8081. <![CDATA[<p>
  8082. This class is a tool for migrating data from an older to a newer version
  8083. of an S3 filesystem.
  8084. </p>
  8085. <p>
  8086. All files in the filesystem are migrated by re-writing the block metadata
  8087. - no datafiles are touched.
  8088. </p>]]>
  8089. </doc>
  8090. </class>
  8091. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8092. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8093. <class name="S3Credentials" extends="java.lang.Object"
  8094. abstract="false"
  8095. static="false" final="false" visibility="public"
  8096. deprecated="not deprecated">
  8097. <constructor name="S3Credentials"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. </constructor>
  8101. <method name="initialize"
  8102. abstract="false" native="false" synchronized="false"
  8103. static="false" final="false" visibility="public"
  8104. deprecated="not deprecated">
  8105. <param name="uri" type="java.net.URI"/>
  8106. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8107. <doc>
  8108. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8109. determined.]]>
  8110. </doc>
  8111. </method>
  8112. <method name="getAccessKey" return="java.lang.String"
  8113. abstract="false" native="false" synchronized="false"
  8114. static="false" final="false" visibility="public"
  8115. deprecated="not deprecated">
  8116. </method>
  8117. <method name="getSecretAccessKey" return="java.lang.String"
  8118. abstract="false" native="false" synchronized="false"
  8119. static="false" final="false" visibility="public"
  8120. deprecated="not deprecated">
  8121. </method>
  8122. <doc>
  8123. <![CDATA[<p>
  8124. Extracts AWS credentials from the filesystem URI or configuration.
  8125. </p>]]>
  8126. </doc>
  8127. </class>
  8128. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8129. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8130. <class name="S3Exception" extends="java.lang.RuntimeException"
  8131. abstract="false"
  8132. static="false" final="false" visibility="public"
  8133. deprecated="not deprecated">
  8134. <constructor name="S3Exception" type="java.lang.Throwable"
  8135. static="false" final="false" visibility="public"
  8136. deprecated="not deprecated">
  8137. </constructor>
  8138. <doc>
  8139. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8140. </doc>
  8141. </class>
  8142. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8143. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8144. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8145. abstract="false"
  8146. static="false" final="false" visibility="public"
  8147. deprecated="not deprecated">
  8148. <constructor name="S3FileSystem"
  8149. static="false" final="false" visibility="public"
  8150. deprecated="not deprecated">
  8151. </constructor>
  8152. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8153. static="false" final="false" visibility="public"
  8154. deprecated="not deprecated">
  8155. </constructor>
  8156. <method name="getUri" return="java.net.URI"
  8157. abstract="false" native="false" synchronized="false"
  8158. static="false" final="false" visibility="public"
  8159. deprecated="not deprecated">
  8160. </method>
  8161. <method name="initialize"
  8162. abstract="false" native="false" synchronized="false"
  8163. static="false" final="false" visibility="public"
  8164. deprecated="not deprecated">
  8165. <param name="uri" type="java.net.URI"/>
  8166. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8167. <exception name="IOException" type="java.io.IOException"/>
  8168. </method>
  8169. <method name="getName" return="java.lang.String"
  8170. abstract="false" native="false" synchronized="false"
  8171. static="false" final="false" visibility="public"
  8172. deprecated="not deprecated">
  8173. </method>
  8174. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8175. abstract="false" native="false" synchronized="false"
  8176. static="false" final="false" visibility="public"
  8177. deprecated="not deprecated">
  8178. </method>
  8179. <method name="setWorkingDirectory"
  8180. abstract="false" native="false" synchronized="false"
  8181. static="false" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8184. </method>
  8185. <method name="mkdirs" return="boolean"
  8186. abstract="false" native="false" synchronized="false"
  8187. static="false" final="false" visibility="public"
  8188. deprecated="not deprecated">
  8189. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8190. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8191. <exception name="IOException" type="java.io.IOException"/>
  8192. <doc>
  8193. <![CDATA[@param permission Currently ignored.]]>
  8194. </doc>
  8195. </method>
  8196. <method name="isFile" return="boolean"
  8197. abstract="false" native="false" synchronized="false"
  8198. static="false" final="false" visibility="public"
  8199. deprecated="not deprecated">
  8200. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8201. <exception name="IOException" type="java.io.IOException"/>
  8202. </method>
  8203. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8204. abstract="false" native="false" synchronized="false"
  8205. static="false" final="false" visibility="public"
  8206. deprecated="not deprecated">
  8207. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8208. <exception name="IOException" type="java.io.IOException"/>
  8209. </method>
  8210. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8211. abstract="false" native="false" synchronized="false"
  8212. static="false" final="false" visibility="public"
  8213. deprecated="not deprecated">
  8214. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8215. <param name="bufferSize" type="int"/>
  8216. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8217. <exception name="IOException" type="java.io.IOException"/>
  8218. <doc>
  8219. <![CDATA[This optional operation is not yet supported.]]>
  8220. </doc>
  8221. </method>
  8222. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8223. abstract="false" native="false" synchronized="false"
  8224. static="false" final="false" visibility="public"
  8225. deprecated="not deprecated">
  8226. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8227. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8228. <param name="overwrite" type="boolean"/>
  8229. <param name="bufferSize" type="int"/>
  8230. <param name="replication" type="short"/>
  8231. <param name="blockSize" type="long"/>
  8232. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8233. <exception name="IOException" type="java.io.IOException"/>
  8234. <doc>
  8235. <![CDATA[@param permission Currently ignored.]]>
  8236. </doc>
  8237. </method>
  8238. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8239. abstract="false" native="false" synchronized="false"
  8240. static="false" final="false" visibility="public"
  8241. deprecated="not deprecated">
  8242. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8243. <param name="bufferSize" type="int"/>
  8244. <exception name="IOException" type="java.io.IOException"/>
  8245. </method>
  8246. <method name="rename" return="boolean"
  8247. abstract="false" native="false" synchronized="false"
  8248. static="false" final="false" visibility="public"
  8249. deprecated="not deprecated">
  8250. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8251. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8252. <exception name="IOException" type="java.io.IOException"/>
  8253. </method>
  8254. <method name="delete" return="boolean"
  8255. abstract="false" native="false" synchronized="false"
  8256. static="false" final="false" visibility="public"
  8257. deprecated="not deprecated">
  8258. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8259. <param name="recursive" type="boolean"/>
  8260. <exception name="IOException" type="java.io.IOException"/>
  8261. </method>
  8262. <method name="delete" return="boolean"
  8263. abstract="false" native="false" synchronized="false"
  8264. static="false" final="false" visibility="public"
  8265. deprecated="not deprecated">
  8266. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8267. <exception name="IOException" type="java.io.IOException"/>
  8268. </method>
  8269. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8270. abstract="false" native="false" synchronized="false"
  8271. static="false" final="false" visibility="public"
  8272. deprecated="not deprecated">
  8273. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8274. <exception name="IOException" type="java.io.IOException"/>
  8275. <doc>
  8276. <![CDATA[FileStatus for S3 file systems.]]>
  8277. </doc>
  8278. </method>
  8279. <doc>
  8280. <![CDATA[<p>
  8281. A block-based {@link FileSystem} backed by
  8282. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8283. </p>
  8284. @see NativeS3FileSystem]]>
  8285. </doc>
  8286. </class>
  8287. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8288. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8289. <class name="S3FileSystemException" extends="java.io.IOException"
  8290. abstract="false"
  8291. static="false" final="false" visibility="public"
  8292. deprecated="not deprecated">
  8293. <constructor name="S3FileSystemException" type="java.lang.String"
  8294. static="false" final="false" visibility="public"
  8295. deprecated="not deprecated">
  8296. </constructor>
  8297. <doc>
  8298. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8299. </doc>
  8300. </class>
  8301. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8302. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8303. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8304. abstract="false"
  8305. static="false" final="false" visibility="public"
  8306. deprecated="not deprecated">
  8307. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8308. static="false" final="false" visibility="public"
  8309. deprecated="not deprecated">
  8310. </constructor>
  8311. <doc>
  8312. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8313. in {@link S3FileSystem}.]]>
  8314. </doc>
  8315. </class>
  8316. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8317. </package>
  8318. <package name="org.apache.hadoop.fs.s3native">
  8319. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8320. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8321. abstract="false"
  8322. static="false" final="false" visibility="public"
  8323. deprecated="not deprecated">
  8324. <constructor name="NativeS3FileSystem"
  8325. static="false" final="false" visibility="public"
  8326. deprecated="not deprecated">
  8327. </constructor>
  8328. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8329. static="false" final="false" visibility="public"
  8330. deprecated="not deprecated">
  8331. </constructor>
  8332. <method name="initialize"
  8333. abstract="false" native="false" synchronized="false"
  8334. static="false" final="false" visibility="public"
  8335. deprecated="not deprecated">
  8336. <param name="uri" type="java.net.URI"/>
  8337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8338. <exception name="IOException" type="java.io.IOException"/>
  8339. </method>
  8340. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8341. abstract="false" native="false" synchronized="false"
  8342. static="false" final="false" visibility="public"
  8343. deprecated="not deprecated">
  8344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8345. <param name="bufferSize" type="int"/>
  8346. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8347. <exception name="IOException" type="java.io.IOException"/>
  8348. <doc>
  8349. <![CDATA[This optional operation is not yet supported.]]>
  8350. </doc>
  8351. </method>
  8352. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8353. abstract="false" native="false" synchronized="false"
  8354. static="false" final="false" visibility="public"
  8355. deprecated="not deprecated">
  8356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8357. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8358. <param name="overwrite" type="boolean"/>
  8359. <param name="bufferSize" type="int"/>
  8360. <param name="replication" type="short"/>
  8361. <param name="blockSize" type="long"/>
  8362. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8363. <exception name="IOException" type="java.io.IOException"/>
  8364. </method>
  8365. <method name="delete" return="boolean"
  8366. abstract="false" native="false" synchronized="false"
  8367. static="false" final="false" visibility="public"
  8368. deprecated="not deprecated">
  8369. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8370. <exception name="IOException" type="java.io.IOException"/>
  8371. </method>
  8372. <method name="delete" return="boolean"
  8373. abstract="false" native="false" synchronized="false"
  8374. static="false" final="false" visibility="public"
  8375. deprecated="not deprecated">
  8376. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8377. <param name="recurse" type="boolean"/>
  8378. <exception name="IOException" type="java.io.IOException"/>
  8379. </method>
  8380. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. </method>
  8387. <method name="getUri" return="java.net.URI"
  8388. abstract="false" native="false" synchronized="false"
  8389. static="false" final="false" visibility="public"
  8390. deprecated="not deprecated">
  8391. </method>
  8392. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8393. abstract="false" native="false" synchronized="false"
  8394. static="false" final="false" visibility="public"
  8395. deprecated="not deprecated">
  8396. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8397. <exception name="IOException" type="java.io.IOException"/>
  8398. <doc>
  8399. <![CDATA[<p>
  8400. If <code>f</code> is a file, this method will make a single call to S3.
  8401. If <code>f</code> is a directory, this method will make a maximum of
  8402. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8403. files and directories contained directly in <code>f</code>.
  8404. </p>]]>
  8405. </doc>
  8406. </method>
  8407. <method name="mkdirs" return="boolean"
  8408. abstract="false" native="false" synchronized="false"
  8409. static="false" final="false" visibility="public"
  8410. deprecated="not deprecated">
  8411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8412. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8413. <exception name="IOException" type="java.io.IOException"/>
  8414. </method>
  8415. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8416. abstract="false" native="false" synchronized="false"
  8417. static="false" final="false" visibility="public"
  8418. deprecated="not deprecated">
  8419. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8420. <param name="bufferSize" type="int"/>
  8421. <exception name="IOException" type="java.io.IOException"/>
  8422. </method>
  8423. <method name="rename" return="boolean"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8428. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8429. <exception name="IOException" type="java.io.IOException"/>
  8430. </method>
  8431. <method name="setWorkingDirectory"
  8432. abstract="false" native="false" synchronized="false"
  8433. static="false" final="false" visibility="public"
  8434. deprecated="not deprecated">
  8435. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8436. <doc>
  8437. <![CDATA[Set the working directory to the given directory.]]>
  8438. </doc>
  8439. </method>
  8440. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8441. abstract="false" native="false" synchronized="false"
  8442. static="false" final="false" visibility="public"
  8443. deprecated="not deprecated">
  8444. </method>
  8445. <field name="LOG" type="org.apache.commons.logging.Log"
  8446. transient="false" volatile="false"
  8447. static="true" final="true" visibility="public"
  8448. deprecated="not deprecated">
  8449. </field>
  8450. <doc>
  8451. <![CDATA[<p>
  8452. A {@link FileSystem} for reading and writing files stored on
  8453. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8454. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8455. stores files on S3 in their
  8456. native form so they can be read by other S3 tools.
  8457. A note about directories. S3 of course has no "native" support for them.
  8458. The idiom we choose then is: for any directory created by this class,
  8459. we use an empty object "#{dirpath}_$folder$" as a marker.
  8460. Further, to interoperate with other S3 tools, we also accept the following:
  8461. - an object "#{dirpath}/' denoting a directory marker
  8462. - if there exists any objects with the prefix "#{dirpath}/", then the
  8463. directory is said to exist
  8464. - if both a file with the name of a directory and a marker for that
  8465. directory exists, then the *file masks the directory*, and the directory
  8466. is never returned.
  8467. </p>
  8468. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8469. </doc>
  8470. </class>
  8471. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8472. </package>
  8473. <package name="org.apache.hadoop.fs.shell">
  8474. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8475. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8476. abstract="true"
  8477. static="false" final="false" visibility="public"
  8478. deprecated="not deprecated">
  8479. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8480. static="false" final="false" visibility="protected"
  8481. deprecated="not deprecated">
  8482. <doc>
  8483. <![CDATA[Constructor]]>
  8484. </doc>
  8485. </constructor>
  8486. <method name="getCommandName" return="java.lang.String"
  8487. abstract="true" native="false" synchronized="false"
  8488. static="false" final="false" visibility="public"
  8489. deprecated="not deprecated">
  8490. <doc>
  8491. <![CDATA[Return the command's name excluding the leading character -]]>
  8492. </doc>
  8493. </method>
  8494. <method name="run"
  8495. abstract="true" native="false" synchronized="false"
  8496. static="false" final="false" visibility="protected"
  8497. deprecated="not deprecated">
  8498. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8499. <exception name="IOException" type="java.io.IOException"/>
  8500. <doc>
  8501. <![CDATA[Execute the command on the input path
  8502. @param path the input path
  8503. @throws IOException if any error occurs]]>
  8504. </doc>
  8505. </method>
  8506. <method name="runAll" return="int"
  8507. abstract="false" native="false" synchronized="false"
  8508. static="false" final="false" visibility="public"
  8509. deprecated="not deprecated">
  8510. <doc>
  8511. <![CDATA[For each source path, execute the command
  8512. @return 0 if it runs successfully; -1 if it fails]]>
  8513. </doc>
  8514. </method>
  8515. <field name="args" type="java.lang.String[]"
  8516. transient="false" volatile="false"
  8517. static="false" final="false" visibility="protected"
  8518. deprecated="not deprecated">
  8519. </field>
  8520. <doc>
  8521. <![CDATA[An abstract class for the execution of a file system command]]>
  8522. </doc>
  8523. </class>
  8524. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8525. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8526. <class name="CommandFormat" extends="java.lang.Object"
  8527. abstract="false"
  8528. static="false" final="false" visibility="public"
  8529. deprecated="not deprecated">
  8530. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8531. static="false" final="false" visibility="public"
  8532. deprecated="not deprecated">
  8533. <doc>
  8534. <![CDATA[constructor]]>
  8535. </doc>
  8536. </constructor>
  8537. <method name="parse" return="java.util.List"
  8538. abstract="false" native="false" synchronized="false"
  8539. static="false" final="false" visibility="public"
  8540. deprecated="not deprecated">
  8541. <param name="args" type="java.lang.String[]"/>
  8542. <param name="pos" type="int"/>
  8543. <doc>
  8544. <![CDATA[Parse parameters starting from the given position
  8545. @param args an array of input arguments
  8546. @param pos the position at which starts to parse
  8547. @return a list of parameters]]>
  8548. </doc>
  8549. </method>
  8550. <method name="getOpt" return="boolean"
  8551. abstract="false" native="false" synchronized="false"
  8552. static="false" final="false" visibility="public"
  8553. deprecated="not deprecated">
  8554. <param name="option" type="java.lang.String"/>
  8555. <doc>
  8556. <![CDATA[Return if the option is set or not
  8557. @param option String representation of an option
  8558. @return true is the option is set; false otherwise]]>
  8559. </doc>
  8560. </method>
  8561. <doc>
  8562. <![CDATA[Parse the args of a command and check the format of args.]]>
  8563. </doc>
  8564. </class>
  8565. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8566. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8567. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8568. abstract="false"
  8569. static="false" final="false" visibility="public"
  8570. deprecated="not deprecated">
  8571. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8572. static="false" final="false" visibility="public"
  8573. deprecated="not deprecated">
  8574. <doc>
  8575. <![CDATA[Constructor
  8576. @param cmd the count command
  8577. @param pos the starting index of the arguments]]>
  8578. </doc>
  8579. </constructor>
  8580. <method name="matches" return="boolean"
  8581. abstract="false" native="false" synchronized="false"
  8582. static="true" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="cmd" type="java.lang.String"/>
  8585. <doc>
  8586. <![CDATA[Check if a command is the count command
  8587. @param cmd A string representation of a command starting with "-"
  8588. @return true if this is a count command; false otherwise]]>
  8589. </doc>
  8590. </method>
  8591. <method name="getCommandName" return="java.lang.String"
  8592. abstract="false" native="false" synchronized="false"
  8593. static="false" final="false" visibility="public"
  8594. deprecated="not deprecated">
  8595. </method>
  8596. <method name="run"
  8597. abstract="false" native="false" synchronized="false"
  8598. static="false" final="false" visibility="protected"
  8599. deprecated="not deprecated">
  8600. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8601. <exception name="IOException" type="java.io.IOException"/>
  8602. </method>
  8603. <field name="NAME" type="java.lang.String"
  8604. transient="false" volatile="false"
  8605. static="true" final="true" visibility="public"
  8606. deprecated="not deprecated">
  8607. </field>
  8608. <field name="USAGE" type="java.lang.String"
  8609. transient="false" volatile="false"
  8610. static="true" final="true" visibility="public"
  8611. deprecated="not deprecated">
  8612. </field>
  8613. <field name="DESCRIPTION" type="java.lang.String"
  8614. transient="false" volatile="false"
  8615. static="true" final="true" visibility="public"
  8616. deprecated="not deprecated">
  8617. </field>
  8618. <doc>
  8619. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8620. </doc>
  8621. </class>
  8622. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8623. </package>
  8624. <package name="org.apache.hadoop.http">
  8625. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8626. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8627. abstract="false"
  8628. static="false" final="false" visibility="public"
  8629. deprecated="not deprecated">
  8630. <constructor name="AdminAuthorizedServlet"
  8631. static="false" final="false" visibility="public"
  8632. deprecated="not deprecated">
  8633. </constructor>
  8634. <method name="doGet"
  8635. abstract="false" native="false" synchronized="false"
  8636. static="false" final="false" visibility="protected"
  8637. deprecated="not deprecated">
  8638. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8639. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8640. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8641. <exception name="IOException" type="java.io.IOException"/>
  8642. </method>
  8643. <doc>
  8644. <![CDATA[General servlet which is admin-authorized.]]>
  8645. </doc>
  8646. </class>
  8647. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8648. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8649. <interface name="FilterContainer" abstract="true"
  8650. static="false" final="false" visibility="public"
  8651. deprecated="not deprecated">
  8652. <method name="addFilter"
  8653. abstract="false" native="false" synchronized="false"
  8654. static="false" final="false" visibility="public"
  8655. deprecated="not deprecated">
  8656. <param name="name" type="java.lang.String"/>
  8657. <param name="classname" type="java.lang.String"/>
  8658. <param name="parameters" type="java.util.Map"/>
  8659. <doc>
  8660. <![CDATA[Add a filter to the container.
  8661. @param name Filter name
  8662. @param classname Filter class name
  8663. @param parameters a map from parameter names to initial values]]>
  8664. </doc>
  8665. </method>
  8666. <method name="addGlobalFilter"
  8667. abstract="false" native="false" synchronized="false"
  8668. static="false" final="false" visibility="public"
  8669. deprecated="not deprecated">
  8670. <param name="name" type="java.lang.String"/>
  8671. <param name="classname" type="java.lang.String"/>
  8672. <param name="parameters" type="java.util.Map"/>
  8673. <doc>
  8674. <![CDATA[Add a global filter to the container.
  8675. @param name filter name
  8676. @param classname filter class name
  8677. @param parameters a map from parameter names to initial values]]>
  8678. </doc>
  8679. </method>
  8680. <doc>
  8681. <![CDATA[A container class for javax.servlet.Filter.]]>
  8682. </doc>
  8683. </interface>
  8684. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8685. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8686. <class name="FilterInitializer" extends="java.lang.Object"
  8687. abstract="true"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <constructor name="FilterInitializer"
  8691. static="false" final="false" visibility="public"
  8692. deprecated="not deprecated">
  8693. </constructor>
  8694. <method name="initFilter"
  8695. abstract="true" native="false" synchronized="false"
  8696. static="false" final="false" visibility="public"
  8697. deprecated="not deprecated">
  8698. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8700. <doc>
  8701. <![CDATA[Initialize a Filter to a FilterContainer.
  8702. @param container The filter container
  8703. @param conf Configuration for run-time parameters]]>
  8704. </doc>
  8705. </method>
  8706. <doc>
  8707. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8708. </doc>
  8709. </class>
  8710. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8711. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8712. <class name="HtmlQuoting" extends="java.lang.Object"
  8713. abstract="false"
  8714. static="false" final="false" visibility="public"
  8715. deprecated="not deprecated">
  8716. <constructor name="HtmlQuoting"
  8717. static="false" final="false" visibility="public"
  8718. deprecated="not deprecated">
  8719. </constructor>
  8720. <method name="needsQuoting" return="boolean"
  8721. abstract="false" native="false" synchronized="false"
  8722. static="true" final="false" visibility="public"
  8723. deprecated="not deprecated">
  8724. <param name="data" type="byte[]"/>
  8725. <param name="off" type="int"/>
  8726. <param name="len" type="int"/>
  8727. <doc>
  8728. <![CDATA[Does the given string need to be quoted?
  8729. @param data the string to check
  8730. @param off the starting position
  8731. @param len the number of bytes to check
  8732. @return does the string contain any of the active html characters?]]>
  8733. </doc>
  8734. </method>
  8735. <method name="needsQuoting" return="boolean"
  8736. abstract="false" native="false" synchronized="false"
  8737. static="true" final="false" visibility="public"
  8738. deprecated="not deprecated">
  8739. <param name="str" type="java.lang.String"/>
  8740. <doc>
  8741. <![CDATA[Does the given string need to be quoted?
  8742. @param str the string to check
  8743. @return does the string contain any of the active html characters?]]>
  8744. </doc>
  8745. </method>
  8746. <method name="quoteHtmlChars"
  8747. abstract="false" native="false" synchronized="false"
  8748. static="true" final="false" visibility="public"
  8749. deprecated="not deprecated">
  8750. <param name="output" type="java.io.OutputStream"/>
  8751. <param name="buffer" type="byte[]"/>
  8752. <param name="off" type="int"/>
  8753. <param name="len" type="int"/>
  8754. <exception name="IOException" type="java.io.IOException"/>
  8755. <doc>
  8756. <![CDATA[Quote all of the active HTML characters in the given string as they
  8757. are added to the buffer.
  8758. @param output the stream to write the output to
  8759. @param buffer the byte array to take the characters from
  8760. @param off the index of the first byte to quote
  8761. @param len the number of bytes to quote]]>
  8762. </doc>
  8763. </method>
  8764. <method name="quoteHtmlChars" return="java.lang.String"
  8765. abstract="false" native="false" synchronized="false"
  8766. static="true" final="false" visibility="public"
  8767. deprecated="not deprecated">
  8768. <param name="item" type="java.lang.String"/>
  8769. <doc>
  8770. <![CDATA[Quote the given item to make it html-safe.
  8771. @param item the string to quote
  8772. @return the quoted string]]>
  8773. </doc>
  8774. </method>
  8775. <method name="quoteOutputStream" return="java.io.OutputStream"
  8776. abstract="false" native="false" synchronized="false"
  8777. static="true" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <param name="out" type="java.io.OutputStream"/>
  8780. <exception name="IOException" type="java.io.IOException"/>
  8781. <doc>
  8782. <![CDATA[Return an output stream that quotes all of the output.
  8783. @param out the stream to write the quoted output to
  8784. @return a new stream that the application show write to
  8785. @throws IOException if the underlying output fails]]>
  8786. </doc>
  8787. </method>
  8788. <method name="unquoteHtmlChars" return="java.lang.String"
  8789. abstract="false" native="false" synchronized="false"
  8790. static="true" final="false" visibility="public"
  8791. deprecated="not deprecated">
  8792. <param name="item" type="java.lang.String"/>
  8793. <doc>
  8794. <![CDATA[Remove HTML quoting from a string.
  8795. @param item the string to unquote
  8796. @return the unquoted string]]>
  8797. </doc>
  8798. </method>
  8799. <method name="main"
  8800. abstract="false" native="false" synchronized="false"
  8801. static="true" final="false" visibility="public"
  8802. deprecated="not deprecated">
  8803. <param name="args" type="java.lang.String[]"/>
  8804. <exception name="Exception" type="java.lang.Exception"/>
  8805. </method>
  8806. <doc>
  8807. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8808. </doc>
  8809. </class>
  8810. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8811. <!-- start class org.apache.hadoop.http.HttpServer -->
  8812. <class name="HttpServer" extends="java.lang.Object"
  8813. abstract="false"
  8814. static="false" final="false" visibility="public"
  8815. deprecated="not deprecated">
  8816. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8817. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8818. static="false" final="false" visibility="public"
  8819. deprecated="not deprecated">
  8820. <exception name="IOException" type="java.io.IOException"/>
  8821. <doc>
  8822. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8823. </doc>
  8824. </constructor>
  8825. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8826. static="false" final="false" visibility="public"
  8827. deprecated="not deprecated">
  8828. <exception name="IOException" type="java.io.IOException"/>
  8829. </constructor>
  8830. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8831. static="false" final="false" visibility="public"
  8832. deprecated="not deprecated">
  8833. <exception name="IOException" type="java.io.IOException"/>
  8834. </constructor>
  8835. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8836. static="false" final="false" visibility="public"
  8837. deprecated="not deprecated">
  8838. <exception name="IOException" type="java.io.IOException"/>
  8839. <doc>
  8840. <![CDATA[Create a status server on the given port.
  8841. The jsp scripts are taken from src/webapps/<name>.
  8842. @param name The name of the server
  8843. @param port The port to use on the server
  8844. @param findPort whether the server should start at the given port and
  8845. increment by 1 until it finds a free port.
  8846. @param conf Configuration
  8847. @param adminsAcl {@link AccessControlList} of the admins]]>
  8848. </doc>
  8849. </constructor>
  8850. <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"
  8851. static="false" final="false" visibility="public"
  8852. deprecated="not deprecated">
  8853. <exception name="IOException" type="java.io.IOException"/>
  8854. </constructor>
  8855. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8856. abstract="false" native="false" synchronized="false"
  8857. static="false" final="false" visibility="public"
  8858. deprecated="not deprecated">
  8859. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8860. <exception name="IOException" type="java.io.IOException"/>
  8861. <doc>
  8862. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8863. provided. This wrapper and all subclasses must create at least one
  8864. listener.]]>
  8865. </doc>
  8866. </method>
  8867. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8868. abstract="false" native="false" synchronized="false"
  8869. static="true" final="false" visibility="public"
  8870. deprecated="not deprecated">
  8871. </method>
  8872. <method name="addDefaultApps"
  8873. abstract="false" native="false" synchronized="false"
  8874. static="false" final="false" visibility="protected"
  8875. deprecated="not deprecated">
  8876. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8877. <param name="appDir" type="java.lang.String"/>
  8878. <exception name="IOException" type="java.io.IOException"/>
  8879. <doc>
  8880. <![CDATA[Add default apps.
  8881. @param appDir The application directory
  8882. @throws IOException]]>
  8883. </doc>
  8884. </method>
  8885. <method name="addDefaultServlets"
  8886. abstract="false" native="false" synchronized="false"
  8887. static="false" final="false" visibility="protected"
  8888. deprecated="not deprecated">
  8889. <doc>
  8890. <![CDATA[Add default servlets.]]>
  8891. </doc>
  8892. </method>
  8893. <method name="addContext"
  8894. abstract="false" native="false" synchronized="false"
  8895. static="false" final="false" visibility="public"
  8896. deprecated="not deprecated">
  8897. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8898. <param name="isFiltered" type="boolean"/>
  8899. <exception name="IOException" type="java.io.IOException"/>
  8900. </method>
  8901. <method name="addContext"
  8902. abstract="false" native="false" synchronized="false"
  8903. static="false" final="false" visibility="protected"
  8904. deprecated="not deprecated">
  8905. <param name="pathSpec" type="java.lang.String"/>
  8906. <param name="dir" type="java.lang.String"/>
  8907. <param name="isFiltered" type="boolean"/>
  8908. <exception name="IOException" type="java.io.IOException"/>
  8909. <doc>
  8910. <![CDATA[Add a context
  8911. @param pathSpec The path spec for the context
  8912. @param dir The directory containing the context
  8913. @param isFiltered if true, the servlet is added to the filter path mapping
  8914. @throws IOException]]>
  8915. </doc>
  8916. </method>
  8917. <method name="setAttribute"
  8918. abstract="false" native="false" synchronized="false"
  8919. static="false" final="false" visibility="public"
  8920. deprecated="not deprecated">
  8921. <param name="name" type="java.lang.String"/>
  8922. <param name="value" type="java.lang.Object"/>
  8923. <doc>
  8924. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8925. pages as "application.getAttribute(name)".
  8926. @param name The name of the attribute
  8927. @param value The value of the attribute]]>
  8928. </doc>
  8929. </method>
  8930. <method name="setAttribute"
  8931. abstract="false" native="false" synchronized="false"
  8932. static="false" final="false" visibility="public"
  8933. deprecated="not deprecated">
  8934. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8935. <param name="name" type="java.lang.String"/>
  8936. <param name="value" type="java.lang.Object"/>
  8937. <doc>
  8938. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8939. pages as "application.getAttribute(name)".
  8940. @param context Context to add attribute
  8941. @param name The name of the attribute
  8942. @param value The value of the attribute]]>
  8943. </doc>
  8944. </method>
  8945. <method name="addJerseyResourcePackage"
  8946. abstract="false" native="false" synchronized="false"
  8947. static="false" final="false" visibility="public"
  8948. deprecated="not deprecated">
  8949. <param name="packageName" type="java.lang.String"/>
  8950. <param name="pathSpec" type="java.lang.String"/>
  8951. <doc>
  8952. <![CDATA[Add a Jersey resource package.
  8953. @param packageName The Java package name containing the Jersey resource.
  8954. @param pathSpec The path spec for the servlet]]>
  8955. </doc>
  8956. </method>
  8957. <method name="addServlet"
  8958. abstract="false" native="false" synchronized="false"
  8959. static="false" final="false" visibility="public"
  8960. deprecated="not deprecated">
  8961. <param name="name" type="java.lang.String"/>
  8962. <param name="pathSpec" type="java.lang.String"/>
  8963. <param name="clazz" type="java.lang.Class"/>
  8964. <doc>
  8965. <![CDATA[Add a servlet in the server.
  8966. @param name The name of the servlet (can be passed as null)
  8967. @param pathSpec The path spec for the servlet
  8968. @param clazz The servlet class]]>
  8969. </doc>
  8970. </method>
  8971. <method name="addInternalServlet"
  8972. abstract="false" native="false" synchronized="false"
  8973. static="false" final="false" visibility="public"
  8974. deprecated="this is a temporary method">
  8975. <param name="name" type="java.lang.String"/>
  8976. <param name="pathSpec" type="java.lang.String"/>
  8977. <param name="clazz" type="java.lang.Class"/>
  8978. <doc>
  8979. <![CDATA[Add an internal servlet in the server.
  8980. @param name The name of the servlet (can be passed as null)
  8981. @param pathSpec The path spec for the servlet
  8982. @param clazz The servlet class
  8983. @deprecated this is a temporary method]]>
  8984. </doc>
  8985. </method>
  8986. <method name="addInternalServlet"
  8987. abstract="false" native="false" synchronized="false"
  8988. static="false" final="false" visibility="public"
  8989. deprecated="not deprecated">
  8990. <param name="name" type="java.lang.String"/>
  8991. <param name="pathSpec" type="java.lang.String"/>
  8992. <param name="clazz" type="java.lang.Class"/>
  8993. <param name="requireAuth" type="boolean"/>
  8994. <param name="useKsslForAuth" type="boolean"/>
  8995. <doc>
  8996. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  8997. protect with Kerberos authentication.
  8998. Note: This method is to be used for adding servlets that facilitate
  8999. internal communication and not for user facing functionality. For
  9000. servlets added using this method, filters (except internal Kerberos
  9001. filters) are not enabled.
  9002. @param name The name of the servlet (can be passed as null)
  9003. @param pathSpec The path spec for the servlet
  9004. @param clazz The servlet class
  9005. @param requireAuth Require Kerberos authenticate to access servlet
  9006. @param useKsslForAuth true to use KSSL for auth, false to use SPNEGO]]>
  9007. </doc>
  9008. </method>
  9009. <method name="addFilter"
  9010. abstract="false" native="false" synchronized="false"
  9011. static="false" final="false" visibility="public"
  9012. deprecated="not deprecated">
  9013. <param name="name" type="java.lang.String"/>
  9014. <param name="classname" type="java.lang.String"/>
  9015. <param name="parameters" type="java.util.Map"/>
  9016. <doc>
  9017. <![CDATA[{@inheritDoc}]]>
  9018. </doc>
  9019. </method>
  9020. <method name="addGlobalFilter"
  9021. abstract="false" native="false" synchronized="false"
  9022. static="false" final="false" visibility="public"
  9023. deprecated="not deprecated">
  9024. <param name="name" type="java.lang.String"/>
  9025. <param name="classname" type="java.lang.String"/>
  9026. <param name="parameters" type="java.util.Map"/>
  9027. <doc>
  9028. <![CDATA[{@inheritDoc}]]>
  9029. </doc>
  9030. </method>
  9031. <method name="defineFilter"
  9032. abstract="false" native="false" synchronized="false"
  9033. static="false" final="false" visibility="protected"
  9034. deprecated="not deprecated">
  9035. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  9036. <param name="name" type="java.lang.String"/>
  9037. <param name="classname" type="java.lang.String"/>
  9038. <param name="parameters" type="java.util.Map"/>
  9039. <param name="urls" type="java.lang.String[]"/>
  9040. <doc>
  9041. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  9042. </doc>
  9043. </method>
  9044. <method name="addFilterPathMapping"
  9045. abstract="false" native="false" synchronized="false"
  9046. static="false" final="false" visibility="protected"
  9047. deprecated="not deprecated">
  9048. <param name="pathSpec" type="java.lang.String"/>
  9049. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  9050. <doc>
  9051. <![CDATA[Add the path spec to the filter path mapping.
  9052. @param pathSpec The path spec
  9053. @param webAppCtx The WebApplicationContext to add to]]>
  9054. </doc>
  9055. </method>
  9056. <method name="getAttribute" return="java.lang.Object"
  9057. abstract="false" native="false" synchronized="false"
  9058. static="false" final="false" visibility="public"
  9059. deprecated="not deprecated">
  9060. <param name="name" type="java.lang.String"/>
  9061. <doc>
  9062. <![CDATA[Get the value in the webapp context.
  9063. @param name The name of the attribute
  9064. @return The value of the attribute]]>
  9065. </doc>
  9066. </method>
  9067. <method name="getWebAppsPath" return="java.lang.String"
  9068. abstract="false" native="false" synchronized="false"
  9069. static="false" final="false" visibility="protected"
  9070. deprecated="not deprecated">
  9071. <exception name="IOException" type="java.io.IOException"/>
  9072. <doc>
  9073. <![CDATA[Get the pathname to the webapps files.
  9074. @return the pathname as a URL
  9075. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  9076. </doc>
  9077. </method>
  9078. <method name="getPort" return="int"
  9079. abstract="false" native="false" synchronized="false"
  9080. static="false" final="false" visibility="public"
  9081. deprecated="not deprecated">
  9082. <doc>
  9083. <![CDATA[Get the port that the server is on
  9084. @return the port]]>
  9085. </doc>
  9086. </method>
  9087. <method name="setThreads"
  9088. abstract="false" native="false" synchronized="false"
  9089. static="false" final="false" visibility="public"
  9090. deprecated="not deprecated">
  9091. <param name="min" type="int"/>
  9092. <param name="max" type="int"/>
  9093. <doc>
  9094. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9095. </doc>
  9096. </method>
  9097. <method name="addSslListener"
  9098. abstract="false" native="false" synchronized="false"
  9099. static="false" final="false" visibility="public"
  9100. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9101. <param name="addr" type="java.net.InetSocketAddress"/>
  9102. <param name="keystore" type="java.lang.String"/>
  9103. <param name="storPass" type="java.lang.String"/>
  9104. <param name="keyPass" type="java.lang.String"/>
  9105. <exception name="IOException" type="java.io.IOException"/>
  9106. <doc>
  9107. <![CDATA[Configure an ssl listener on the server.
  9108. @param addr address to listen on
  9109. @param keystore location of the keystore
  9110. @param storPass password for the keystore
  9111. @param keyPass password for the key
  9112. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9113. </doc>
  9114. </method>
  9115. <method name="addSslListener"
  9116. abstract="false" native="false" synchronized="false"
  9117. static="false" final="false" visibility="public"
  9118. deprecated="not deprecated">
  9119. <param name="addr" type="java.net.InetSocketAddress"/>
  9120. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9121. <param name="needClientAuth" type="boolean"/>
  9122. <exception name="IOException" type="java.io.IOException"/>
  9123. <doc>
  9124. <![CDATA[Configure an ssl listener on the server.
  9125. @param addr address to listen on
  9126. @param sslConf conf to retrieve ssl options
  9127. @param needClientAuth whether client authentication is required]]>
  9128. </doc>
  9129. </method>
  9130. <method name="addSslListener"
  9131. abstract="false" native="false" synchronized="false"
  9132. static="false" final="false" visibility="public"
  9133. deprecated="not deprecated">
  9134. <param name="addr" type="java.net.InetSocketAddress"/>
  9135. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9136. <param name="needCertsAuth" type="boolean"/>
  9137. <param name="needKrbAuth" type="boolean"/>
  9138. <exception name="IOException" type="java.io.IOException"/>
  9139. <doc>
  9140. <![CDATA[Configure an ssl listener on the server.
  9141. @param addr address to listen on
  9142. @param sslConf conf to retrieve ssl options
  9143. @param needCertsAuth whether x509 certificate authentication is required
  9144. @param needKrbAuth whether to allow kerberos auth]]>
  9145. </doc>
  9146. </method>
  9147. <method name="start"
  9148. abstract="false" native="false" synchronized="false"
  9149. static="false" final="false" visibility="public"
  9150. deprecated="not deprecated">
  9151. <exception name="IOException" type="java.io.IOException"/>
  9152. <doc>
  9153. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9154. </doc>
  9155. </method>
  9156. <method name="stop"
  9157. abstract="false" native="false" synchronized="false"
  9158. static="false" final="false" visibility="public"
  9159. deprecated="not deprecated">
  9160. <exception name="Exception" type="java.lang.Exception"/>
  9161. <doc>
  9162. <![CDATA[stop the server]]>
  9163. </doc>
  9164. </method>
  9165. <method name="join"
  9166. abstract="false" native="false" synchronized="false"
  9167. static="false" final="false" visibility="public"
  9168. deprecated="not deprecated">
  9169. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9170. </method>
  9171. <method name="hasAdministratorAccess" return="boolean"
  9172. abstract="false" native="false" synchronized="false"
  9173. static="true" final="false" visibility="public"
  9174. deprecated="not deprecated">
  9175. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9176. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9177. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9178. <exception name="IOException" type="java.io.IOException"/>
  9179. <doc>
  9180. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9181. it isn't the case, response will be modified to send an error to the user.
  9182. @param servletContext
  9183. @param request
  9184. @param response
  9185. @return true if admin-authorized, false otherwise
  9186. @throws IOException]]>
  9187. </doc>
  9188. </method>
  9189. <field name="LOG" type="org.apache.commons.logging.Log"
  9190. transient="false" volatile="false"
  9191. static="true" final="true" visibility="public"
  9192. deprecated="not deprecated">
  9193. </field>
  9194. <field name="SPNEGO_FILTER" type="java.lang.String"
  9195. transient="false" volatile="false"
  9196. static="true" final="true" visibility="public"
  9197. deprecated="not deprecated">
  9198. </field>
  9199. <field name="KRB5_FILTER" type="java.lang.String"
  9200. transient="false" volatile="false"
  9201. static="true" final="true" visibility="public"
  9202. deprecated="not deprecated">
  9203. </field>
  9204. <field name="webServer" type="org.mortbay.jetty.Server"
  9205. transient="false" volatile="false"
  9206. static="false" final="true" visibility="protected"
  9207. deprecated="not deprecated">
  9208. </field>
  9209. <field name="listener" type="org.mortbay.jetty.Connector"
  9210. transient="false" volatile="false"
  9211. static="false" final="true" visibility="protected"
  9212. deprecated="not deprecated">
  9213. </field>
  9214. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9215. transient="false" volatile="false"
  9216. static="false" final="true" visibility="protected"
  9217. deprecated="not deprecated">
  9218. </field>
  9219. <field name="findPort" type="boolean"
  9220. transient="false" volatile="false"
  9221. static="false" final="true" visibility="protected"
  9222. deprecated="not deprecated">
  9223. </field>
  9224. <field name="defaultContexts" type="java.util.Map"
  9225. transient="false" volatile="false"
  9226. static="false" final="true" visibility="protected"
  9227. deprecated="not deprecated">
  9228. </field>
  9229. <field name="filterNames" type="java.util.List"
  9230. transient="false" volatile="false"
  9231. static="false" final="true" visibility="protected"
  9232. deprecated="not deprecated">
  9233. </field>
  9234. <doc>
  9235. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9236. is to serve up status information for the server.
  9237. There are three contexts:
  9238. "/logs/" -> points to the log directory
  9239. "/static/" -> points to common static files (src/webapps/static)
  9240. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9241. </doc>
  9242. </class>
  9243. <!-- end class org.apache.hadoop.http.HttpServer -->
  9244. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9245. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9246. abstract="false"
  9247. static="true" final="false" visibility="public"
  9248. deprecated="not deprecated">
  9249. <implements name="javax.servlet.Filter"/>
  9250. <constructor name="HttpServer.QuotingInputFilter"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. </constructor>
  9254. <method name="init"
  9255. abstract="false" native="false" synchronized="false"
  9256. static="false" final="false" visibility="public"
  9257. deprecated="not deprecated">
  9258. <param name="config" type="javax.servlet.FilterConfig"/>
  9259. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9260. </method>
  9261. <method name="destroy"
  9262. abstract="false" native="false" synchronized="false"
  9263. static="false" final="false" visibility="public"
  9264. deprecated="not deprecated">
  9265. </method>
  9266. <method name="doFilter"
  9267. abstract="false" native="false" synchronized="false"
  9268. static="false" final="false" visibility="public"
  9269. deprecated="not deprecated">
  9270. <param name="request" type="javax.servlet.ServletRequest"/>
  9271. <param name="response" type="javax.servlet.ServletResponse"/>
  9272. <param name="chain" type="javax.servlet.FilterChain"/>
  9273. <exception name="IOException" type="java.io.IOException"/>
  9274. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9275. </method>
  9276. <doc>
  9277. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9278. parameter names and values. The goal is to quote the characters to make
  9279. all of the servlets resistant to cross-site scripting attacks.]]>
  9280. </doc>
  9281. </class>
  9282. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9283. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9284. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9285. abstract="false"
  9286. static="true" final="false" visibility="public"
  9287. deprecated="not deprecated">
  9288. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9289. static="false" final="false" visibility="public"
  9290. deprecated="not deprecated">
  9291. </constructor>
  9292. <method name="getParameterNames" return="java.util.Enumeration"
  9293. abstract="false" native="false" synchronized="false"
  9294. static="false" final="false" visibility="public"
  9295. deprecated="not deprecated">
  9296. <doc>
  9297. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9298. </doc>
  9299. </method>
  9300. <method name="getParameter" return="java.lang.String"
  9301. abstract="false" native="false" synchronized="false"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. <param name="name" type="java.lang.String"/>
  9305. <doc>
  9306. <![CDATA[Unquote the name and quote the value.]]>
  9307. </doc>
  9308. </method>
  9309. <method name="getParameterValues" return="java.lang.String[]"
  9310. abstract="false" native="false" synchronized="false"
  9311. static="false" final="false" visibility="public"
  9312. deprecated="not deprecated">
  9313. <param name="name" type="java.lang.String"/>
  9314. </method>
  9315. <method name="getParameterMap" return="java.util.Map"
  9316. abstract="false" native="false" synchronized="false"
  9317. static="false" final="false" visibility="public"
  9318. deprecated="not deprecated">
  9319. </method>
  9320. <method name="getRequestURL" return="java.lang.StringBuffer"
  9321. abstract="false" native="false" synchronized="false"
  9322. static="false" final="false" visibility="public"
  9323. deprecated="not deprecated">
  9324. <doc>
  9325. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9326. can't inject attacks.]]>
  9327. </doc>
  9328. </method>
  9329. <method name="getServerName" return="java.lang.String"
  9330. abstract="false" native="false" synchronized="false"
  9331. static="false" final="false" visibility="public"
  9332. deprecated="not deprecated">
  9333. <doc>
  9334. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9335. can't inject attacks.]]>
  9336. </doc>
  9337. </method>
  9338. </class>
  9339. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9340. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9341. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9342. abstract="false"
  9343. static="true" final="false" visibility="public"
  9344. deprecated="not deprecated">
  9345. <constructor name="HttpServer.StackServlet"
  9346. static="false" final="false" visibility="public"
  9347. deprecated="not deprecated">
  9348. </constructor>
  9349. <method name="doGet"
  9350. abstract="false" native="false" synchronized="false"
  9351. static="false" final="false" visibility="public"
  9352. deprecated="not deprecated">
  9353. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9354. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9355. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9356. <exception name="IOException" type="java.io.IOException"/>
  9357. </method>
  9358. <doc>
  9359. <![CDATA[A very simple servlet to serve up a text representation of the current
  9360. stack traces. It both returns the stacks to the caller and logs them.
  9361. Currently the stack traces are done sequentially rather than exactly the
  9362. same data.]]>
  9363. </doc>
  9364. </class>
  9365. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9366. </package>
  9367. <package name="org.apache.hadoop.http.lib">
  9368. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9369. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9370. abstract="false"
  9371. static="false" final="false" visibility="public"
  9372. deprecated="not deprecated">
  9373. <constructor name="StaticUserWebFilter"
  9374. static="false" final="false" visibility="public"
  9375. deprecated="not deprecated">
  9376. </constructor>
  9377. <method name="initFilter"
  9378. abstract="false" native="false" synchronized="false"
  9379. static="false" final="false" visibility="public"
  9380. deprecated="not deprecated">
  9381. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9382. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9383. </method>
  9384. <doc>
  9385. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9386. so that the web UI is usable for a secure cluster without authentication.]]>
  9387. </doc>
  9388. </class>
  9389. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9390. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9391. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9392. abstract="false"
  9393. static="true" final="false" visibility="public"
  9394. deprecated="not deprecated">
  9395. <implements name="javax.servlet.Filter"/>
  9396. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9397. static="false" final="false" visibility="public"
  9398. deprecated="not deprecated">
  9399. </constructor>
  9400. <method name="destroy"
  9401. abstract="false" native="false" synchronized="false"
  9402. static="false" final="false" visibility="public"
  9403. deprecated="not deprecated">
  9404. </method>
  9405. <method name="doFilter"
  9406. abstract="false" native="false" synchronized="false"
  9407. static="false" final="false" visibility="public"
  9408. deprecated="not deprecated">
  9409. <param name="request" type="javax.servlet.ServletRequest"/>
  9410. <param name="response" type="javax.servlet.ServletResponse"/>
  9411. <param name="chain" type="javax.servlet.FilterChain"/>
  9412. <exception name="IOException" type="java.io.IOException"/>
  9413. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9414. </method>
  9415. <method name="init"
  9416. abstract="false" native="false" synchronized="false"
  9417. static="false" final="false" visibility="public"
  9418. deprecated="not deprecated">
  9419. <param name="conf" type="javax.servlet.FilterConfig"/>
  9420. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9421. </method>
  9422. </class>
  9423. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9424. </package>
  9425. <package name="org.apache.hadoop.io">
  9426. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9427. <class name="AbstractMapWritable" extends="java.lang.Object"
  9428. abstract="true"
  9429. static="false" final="false" visibility="public"
  9430. deprecated="not deprecated">
  9431. <implements name="org.apache.hadoop.io.Writable"/>
  9432. <implements name="org.apache.hadoop.conf.Configurable"/>
  9433. <constructor name="AbstractMapWritable"
  9434. static="false" final="false" visibility="protected"
  9435. deprecated="not deprecated">
  9436. <doc>
  9437. <![CDATA[constructor.]]>
  9438. </doc>
  9439. </constructor>
  9440. <method name="addToMap"
  9441. abstract="false" native="false" synchronized="true"
  9442. static="false" final="false" visibility="protected"
  9443. deprecated="not deprecated">
  9444. <param name="clazz" type="java.lang.Class"/>
  9445. <doc>
  9446. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9447. </doc>
  9448. </method>
  9449. <method name="getClass" return="java.lang.Class"
  9450. abstract="false" native="false" synchronized="false"
  9451. static="false" final="false" visibility="protected"
  9452. deprecated="not deprecated">
  9453. <param name="id" type="byte"/>
  9454. <doc>
  9455. <![CDATA[@return the Class class for the specified id]]>
  9456. </doc>
  9457. </method>
  9458. <method name="getId" return="byte"
  9459. abstract="false" native="false" synchronized="false"
  9460. static="false" final="false" visibility="protected"
  9461. deprecated="not deprecated">
  9462. <param name="clazz" type="java.lang.Class"/>
  9463. <doc>
  9464. <![CDATA[@return the id for the specified Class]]>
  9465. </doc>
  9466. </method>
  9467. <method name="copy"
  9468. abstract="false" native="false" synchronized="true"
  9469. static="false" final="false" visibility="protected"
  9470. deprecated="not deprecated">
  9471. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9472. <doc>
  9473. <![CDATA[Used by child copy constructors.]]>
  9474. </doc>
  9475. </method>
  9476. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9477. abstract="false" native="false" synchronized="false"
  9478. static="false" final="false" visibility="public"
  9479. deprecated="not deprecated">
  9480. <doc>
  9481. <![CDATA[@return the conf]]>
  9482. </doc>
  9483. </method>
  9484. <method name="setConf"
  9485. abstract="false" native="false" synchronized="false"
  9486. static="false" final="false" visibility="public"
  9487. deprecated="not deprecated">
  9488. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9489. <doc>
  9490. <![CDATA[@param conf the conf to set]]>
  9491. </doc>
  9492. </method>
  9493. <method name="write"
  9494. abstract="false" native="false" synchronized="false"
  9495. static="false" final="false" visibility="public"
  9496. deprecated="not deprecated">
  9497. <param name="out" type="java.io.DataOutput"/>
  9498. <exception name="IOException" type="java.io.IOException"/>
  9499. <doc>
  9500. <![CDATA[{@inheritDoc}]]>
  9501. </doc>
  9502. </method>
  9503. <method name="readFields"
  9504. abstract="false" native="false" synchronized="false"
  9505. static="false" final="false" visibility="public"
  9506. deprecated="not deprecated">
  9507. <param name="in" type="java.io.DataInput"/>
  9508. <exception name="IOException" type="java.io.IOException"/>
  9509. <doc>
  9510. <![CDATA[{@inheritDoc}]]>
  9511. </doc>
  9512. </method>
  9513. <doc>
  9514. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9515. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9516. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9517. maps travel with the class instead of being static.
  9518. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9519. in any specific map instance.]]>
  9520. </doc>
  9521. </class>
  9522. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9523. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9524. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9525. abstract="false"
  9526. static="false" final="false" visibility="public"
  9527. deprecated="not deprecated">
  9528. <constructor name="ArrayFile"
  9529. static="false" final="false" visibility="protected"
  9530. deprecated="not deprecated">
  9531. </constructor>
  9532. <doc>
  9533. <![CDATA[A dense file-based mapping from integers to values.]]>
  9534. </doc>
  9535. </class>
  9536. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9537. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9538. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9539. abstract="false"
  9540. static="true" final="false" visibility="public"
  9541. deprecated="not deprecated">
  9542. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9543. static="false" final="false" visibility="public"
  9544. deprecated="not deprecated">
  9545. <exception name="IOException" type="java.io.IOException"/>
  9546. <doc>
  9547. <![CDATA[Construct an array reader for the named file.]]>
  9548. </doc>
  9549. </constructor>
  9550. <method name="seek"
  9551. abstract="false" native="false" synchronized="true"
  9552. static="false" final="false" visibility="public"
  9553. deprecated="not deprecated">
  9554. <param name="n" type="long"/>
  9555. <exception name="IOException" type="java.io.IOException"/>
  9556. <doc>
  9557. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9558. </doc>
  9559. </method>
  9560. <method name="next" return="org.apache.hadoop.io.Writable"
  9561. abstract="false" native="false" synchronized="true"
  9562. static="false" final="false" visibility="public"
  9563. deprecated="not deprecated">
  9564. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9565. <exception name="IOException" type="java.io.IOException"/>
  9566. <doc>
  9567. <![CDATA[Read and return the next value in the file.]]>
  9568. </doc>
  9569. </method>
  9570. <method name="key" return="long"
  9571. abstract="false" native="false" synchronized="true"
  9572. static="false" final="false" visibility="public"
  9573. deprecated="not deprecated">
  9574. <exception name="IOException" type="java.io.IOException"/>
  9575. <doc>
  9576. <![CDATA[Returns the key associated with the most recent call to {@link
  9577. #seek(long)}, {@link #next(Writable)}, or {@link
  9578. #get(long,Writable)}.]]>
  9579. </doc>
  9580. </method>
  9581. <method name="get" return="org.apache.hadoop.io.Writable"
  9582. abstract="false" native="false" synchronized="true"
  9583. static="false" final="false" visibility="public"
  9584. deprecated="not deprecated">
  9585. <param name="n" type="long"/>
  9586. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9587. <exception name="IOException" type="java.io.IOException"/>
  9588. <doc>
  9589. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9590. </doc>
  9591. </method>
  9592. <doc>
  9593. <![CDATA[Provide access to an existing array file.]]>
  9594. </doc>
  9595. </class>
  9596. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9597. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9598. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9599. abstract="false"
  9600. static="true" final="false" visibility="public"
  9601. deprecated="not deprecated">
  9602. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9603. static="false" final="false" visibility="public"
  9604. deprecated="not deprecated">
  9605. <exception name="IOException" type="java.io.IOException"/>
  9606. <doc>
  9607. <![CDATA[Create the named file for values of the named class.]]>
  9608. </doc>
  9609. </constructor>
  9610. <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"
  9611. static="false" final="false" visibility="public"
  9612. deprecated="not deprecated">
  9613. <exception name="IOException" type="java.io.IOException"/>
  9614. <doc>
  9615. <![CDATA[Create the named file for values of the named class.]]>
  9616. </doc>
  9617. </constructor>
  9618. <method name="append"
  9619. abstract="false" native="false" synchronized="true"
  9620. static="false" final="false" visibility="public"
  9621. deprecated="not deprecated">
  9622. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9623. <exception name="IOException" type="java.io.IOException"/>
  9624. <doc>
  9625. <![CDATA[Append a value to the file.]]>
  9626. </doc>
  9627. </method>
  9628. <doc>
  9629. <![CDATA[Write a new array file.]]>
  9630. </doc>
  9631. </class>
  9632. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9633. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9634. <class name="ArrayWritable" extends="java.lang.Object"
  9635. abstract="false"
  9636. static="false" final="false" visibility="public"
  9637. deprecated="not deprecated">
  9638. <implements name="org.apache.hadoop.io.Writable"/>
  9639. <constructor name="ArrayWritable" type="java.lang.Class"
  9640. static="false" final="false" visibility="public"
  9641. deprecated="not deprecated">
  9642. </constructor>
  9643. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9644. static="false" final="false" visibility="public"
  9645. deprecated="not deprecated">
  9646. </constructor>
  9647. <constructor name="ArrayWritable" type="java.lang.String[]"
  9648. static="false" final="false" visibility="public"
  9649. deprecated="not deprecated">
  9650. </constructor>
  9651. <method name="getValueClass" return="java.lang.Class"
  9652. abstract="false" native="false" synchronized="false"
  9653. static="false" final="false" visibility="public"
  9654. deprecated="not deprecated">
  9655. </method>
  9656. <method name="toStrings" return="java.lang.String[]"
  9657. abstract="false" native="false" synchronized="false"
  9658. static="false" final="false" visibility="public"
  9659. deprecated="not deprecated">
  9660. </method>
  9661. <method name="toArray" return="java.lang.Object"
  9662. abstract="false" native="false" synchronized="false"
  9663. static="false" final="false" visibility="public"
  9664. deprecated="not deprecated">
  9665. </method>
  9666. <method name="set"
  9667. abstract="false" native="false" synchronized="false"
  9668. static="false" final="false" visibility="public"
  9669. deprecated="not deprecated">
  9670. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9671. </method>
  9672. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9673. abstract="false" native="false" synchronized="false"
  9674. static="false" final="false" visibility="public"
  9675. deprecated="not deprecated">
  9676. </method>
  9677. <method name="readFields"
  9678. abstract="false" native="false" synchronized="false"
  9679. static="false" final="false" visibility="public"
  9680. deprecated="not deprecated">
  9681. <param name="in" type="java.io.DataInput"/>
  9682. <exception name="IOException" type="java.io.IOException"/>
  9683. </method>
  9684. <method name="write"
  9685. abstract="false" native="false" synchronized="false"
  9686. static="false" final="false" visibility="public"
  9687. deprecated="not deprecated">
  9688. <param name="out" type="java.io.DataOutput"/>
  9689. <exception name="IOException" type="java.io.IOException"/>
  9690. </method>
  9691. <doc>
  9692. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9693. writable must all be instances of the same class. If this writable will be
  9694. the input for a Reducer, you will need to create a subclass that sets the
  9695. value to be of the proper type.
  9696. For example:
  9697. <code>
  9698. public class IntArrayWritable extends ArrayWritable {
  9699. public IntArrayWritable() {
  9700. super(IntWritable.class);
  9701. }
  9702. }
  9703. </code>]]>
  9704. </doc>
  9705. </class>
  9706. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9707. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9708. <class name="BinaryComparable" extends="java.lang.Object"
  9709. abstract="true"
  9710. static="false" final="false" visibility="public"
  9711. deprecated="not deprecated">
  9712. <implements name="java.lang.Comparable"/>
  9713. <constructor name="BinaryComparable"
  9714. static="false" final="false" visibility="public"
  9715. deprecated="not deprecated">
  9716. </constructor>
  9717. <method name="getLength" return="int"
  9718. abstract="true" native="false" synchronized="false"
  9719. static="false" final="false" visibility="public"
  9720. deprecated="not deprecated">
  9721. <doc>
  9722. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9723. </doc>
  9724. </method>
  9725. <method name="getBytes" return="byte[]"
  9726. abstract="true" native="false" synchronized="false"
  9727. static="false" final="false" visibility="public"
  9728. deprecated="not deprecated">
  9729. <doc>
  9730. <![CDATA[Return representative byte array for this instance.]]>
  9731. </doc>
  9732. </method>
  9733. <method name="compareTo" return="int"
  9734. abstract="false" native="false" synchronized="false"
  9735. static="false" final="false" visibility="public"
  9736. deprecated="not deprecated">
  9737. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9738. <doc>
  9739. <![CDATA[Compare bytes from {#getBytes()}.
  9740. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9741. </doc>
  9742. </method>
  9743. <method name="compareTo" return="int"
  9744. abstract="false" native="false" synchronized="false"
  9745. static="false" final="false" visibility="public"
  9746. deprecated="not deprecated">
  9747. <param name="other" type="byte[]"/>
  9748. <param name="off" type="int"/>
  9749. <param name="len" type="int"/>
  9750. <doc>
  9751. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9752. </doc>
  9753. </method>
  9754. <method name="equals" return="boolean"
  9755. abstract="false" native="false" synchronized="false"
  9756. static="false" final="false" visibility="public"
  9757. deprecated="not deprecated">
  9758. <param name="other" type="java.lang.Object"/>
  9759. <doc>
  9760. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9761. </doc>
  9762. </method>
  9763. <method name="hashCode" return="int"
  9764. abstract="false" native="false" synchronized="false"
  9765. static="false" final="false" visibility="public"
  9766. deprecated="not deprecated">
  9767. <doc>
  9768. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9769. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9770. </doc>
  9771. </method>
  9772. <doc>
  9773. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9774. types supporting ordering/permutation by a representative set of bytes.]]>
  9775. </doc>
  9776. </class>
  9777. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9778. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9779. <class name="BloomMapFile" extends="java.lang.Object"
  9780. abstract="false"
  9781. static="false" final="false" visibility="public"
  9782. deprecated="not deprecated">
  9783. <constructor name="BloomMapFile"
  9784. static="false" final="false" visibility="public"
  9785. deprecated="not deprecated">
  9786. </constructor>
  9787. <method name="delete"
  9788. abstract="false" native="false" synchronized="false"
  9789. static="true" final="false" visibility="public"
  9790. deprecated="not deprecated">
  9791. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9792. <param name="name" type="java.lang.String"/>
  9793. <exception name="IOException" type="java.io.IOException"/>
  9794. </method>
  9795. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9796. transient="false" volatile="false"
  9797. static="true" final="true" visibility="public"
  9798. deprecated="not deprecated">
  9799. </field>
  9800. <field name="HASH_COUNT" type="int"
  9801. transient="false" volatile="false"
  9802. static="true" final="true" visibility="public"
  9803. deprecated="not deprecated">
  9804. </field>
  9805. <doc>
  9806. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9807. functionality. However, it uses dynamic Bloom filters to provide
  9808. quick membership test for keys, and it offers a fast version of
  9809. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9810. case of sparsely populated MapFile-s.]]>
  9811. </doc>
  9812. </class>
  9813. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9814. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9815. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9816. abstract="false"
  9817. static="true" final="false" visibility="public"
  9818. deprecated="not deprecated">
  9819. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9820. static="false" final="false" visibility="public"
  9821. deprecated="not deprecated">
  9822. <exception name="IOException" type="java.io.IOException"/>
  9823. </constructor>
  9824. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. <exception name="IOException" type="java.io.IOException"/>
  9828. </constructor>
  9829. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <exception name="IOException" type="java.io.IOException"/>
  9833. </constructor>
  9834. <method name="probablyHasKey" return="boolean"
  9835. abstract="false" native="false" synchronized="false"
  9836. static="false" final="false" visibility="public"
  9837. deprecated="not deprecated">
  9838. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9839. <exception name="IOException" type="java.io.IOException"/>
  9840. <doc>
  9841. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9842. performed using a Bloom filter, so the result has always non-zero
  9843. probability of false positives.
  9844. @param key key to check
  9845. @return false iff key doesn't exist, true if key probably exists.
  9846. @throws IOException]]>
  9847. </doc>
  9848. </method>
  9849. <method name="get" return="org.apache.hadoop.io.Writable"
  9850. abstract="false" native="false" synchronized="true"
  9851. static="false" final="false" visibility="public"
  9852. deprecated="not deprecated">
  9853. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9854. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9855. <exception name="IOException" type="java.io.IOException"/>
  9856. <doc>
  9857. <![CDATA[Fast version of the
  9858. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9859. it checks the Bloom filter for the existence of the key, and only if
  9860. present it performs the real get operation. This yields significant
  9861. performance improvements for get operations on sparsely populated files.]]>
  9862. </doc>
  9863. </method>
  9864. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9865. abstract="false" native="false" synchronized="false"
  9866. static="false" final="false" visibility="public"
  9867. deprecated="not deprecated">
  9868. <doc>
  9869. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9870. @return a Bloom filter (see {@link Filter})]]>
  9871. </doc>
  9872. </method>
  9873. </class>
  9874. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9875. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9876. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9877. abstract="false"
  9878. static="true" final="false" visibility="public"
  9879. deprecated="not deprecated">
  9880. <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"
  9881. static="false" final="false" visibility="public"
  9882. deprecated="not deprecated">
  9883. <exception name="IOException" type="java.io.IOException"/>
  9884. </constructor>
  9885. <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"
  9886. static="false" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. <exception name="IOException" type="java.io.IOException"/>
  9889. </constructor>
  9890. <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"
  9891. static="false" final="false" visibility="public"
  9892. deprecated="not deprecated">
  9893. <exception name="IOException" type="java.io.IOException"/>
  9894. </constructor>
  9895. <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"
  9896. static="false" final="false" visibility="public"
  9897. deprecated="not deprecated">
  9898. <exception name="IOException" type="java.io.IOException"/>
  9899. </constructor>
  9900. <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"
  9901. static="false" final="false" visibility="public"
  9902. deprecated="not deprecated">
  9903. <exception name="IOException" type="java.io.IOException"/>
  9904. </constructor>
  9905. <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"
  9906. static="false" final="false" visibility="public"
  9907. deprecated="not deprecated">
  9908. <exception name="IOException" type="java.io.IOException"/>
  9909. </constructor>
  9910. <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"
  9911. static="false" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <exception name="IOException" type="java.io.IOException"/>
  9914. </constructor>
  9915. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9916. static="false" final="false" visibility="public"
  9917. deprecated="not deprecated">
  9918. <exception name="IOException" type="java.io.IOException"/>
  9919. </constructor>
  9920. <method name="append"
  9921. abstract="false" native="false" synchronized="true"
  9922. static="false" final="false" visibility="public"
  9923. deprecated="not deprecated">
  9924. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9925. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9926. <exception name="IOException" type="java.io.IOException"/>
  9927. </method>
  9928. <method name="close"
  9929. abstract="false" native="false" synchronized="true"
  9930. static="false" final="false" visibility="public"
  9931. deprecated="not deprecated">
  9932. <exception name="IOException" type="java.io.IOException"/>
  9933. </method>
  9934. </class>
  9935. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9936. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9937. <class name="BooleanWritable" extends="java.lang.Object"
  9938. abstract="false"
  9939. static="false" final="false" visibility="public"
  9940. deprecated="not deprecated">
  9941. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9942. <constructor name="BooleanWritable"
  9943. static="false" final="false" visibility="public"
  9944. deprecated="not deprecated">
  9945. </constructor>
  9946. <constructor name="BooleanWritable" type="boolean"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="not deprecated">
  9949. </constructor>
  9950. <method name="set"
  9951. abstract="false" native="false" synchronized="false"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. <param name="value" type="boolean"/>
  9955. <doc>
  9956. <![CDATA[Set the value of the BooleanWritable]]>
  9957. </doc>
  9958. </method>
  9959. <method name="get" return="boolean"
  9960. abstract="false" native="false" synchronized="false"
  9961. static="false" final="false" visibility="public"
  9962. deprecated="not deprecated">
  9963. <doc>
  9964. <![CDATA[Returns the value of the BooleanWritable]]>
  9965. </doc>
  9966. </method>
  9967. <method name="readFields"
  9968. abstract="false" native="false" synchronized="false"
  9969. static="false" final="false" visibility="public"
  9970. deprecated="not deprecated">
  9971. <param name="in" type="java.io.DataInput"/>
  9972. <exception name="IOException" type="java.io.IOException"/>
  9973. </method>
  9974. <method name="write"
  9975. abstract="false" native="false" synchronized="false"
  9976. static="false" final="false" visibility="public"
  9977. deprecated="not deprecated">
  9978. <param name="out" type="java.io.DataOutput"/>
  9979. <exception name="IOException" type="java.io.IOException"/>
  9980. </method>
  9981. <method name="equals" return="boolean"
  9982. abstract="false" native="false" synchronized="false"
  9983. static="false" final="false" visibility="public"
  9984. deprecated="not deprecated">
  9985. <param name="o" type="java.lang.Object"/>
  9986. </method>
  9987. <method name="hashCode" return="int"
  9988. abstract="false" native="false" synchronized="false"
  9989. static="false" final="false" visibility="public"
  9990. deprecated="not deprecated">
  9991. </method>
  9992. <method name="compareTo" return="int"
  9993. abstract="false" native="false" synchronized="false"
  9994. static="false" final="false" visibility="public"
  9995. deprecated="not deprecated">
  9996. <param name="o" type="java.lang.Object"/>
  9997. </method>
  9998. <method name="toString" return="java.lang.String"
  9999. abstract="false" native="false" synchronized="false"
  10000. static="false" final="false" visibility="public"
  10001. deprecated="not deprecated">
  10002. </method>
  10003. <doc>
  10004. <![CDATA[A WritableComparable for booleans.]]>
  10005. </doc>
  10006. </class>
  10007. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  10008. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10009. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10010. abstract="false"
  10011. static="true" final="false" visibility="public"
  10012. deprecated="not deprecated">
  10013. <constructor name="BooleanWritable.Comparator"
  10014. static="false" final="false" visibility="public"
  10015. deprecated="not deprecated">
  10016. </constructor>
  10017. <method name="compare" return="int"
  10018. abstract="false" native="false" synchronized="false"
  10019. static="false" final="false" visibility="public"
  10020. deprecated="not deprecated">
  10021. <param name="b1" type="byte[]"/>
  10022. <param name="s1" type="int"/>
  10023. <param name="l1" type="int"/>
  10024. <param name="b2" type="byte[]"/>
  10025. <param name="s2" type="int"/>
  10026. <param name="l2" type="int"/>
  10027. </method>
  10028. <doc>
  10029. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  10030. </doc>
  10031. </class>
  10032. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10033. <!-- start class org.apache.hadoop.io.BytesWritable -->
  10034. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  10035. abstract="false"
  10036. static="false" final="false" visibility="public"
  10037. deprecated="not deprecated">
  10038. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10039. <constructor name="BytesWritable"
  10040. static="false" final="false" visibility="public"
  10041. deprecated="not deprecated">
  10042. <doc>
  10043. <![CDATA[Create a zero-size sequence.]]>
  10044. </doc>
  10045. </constructor>
  10046. <constructor name="BytesWritable" type="byte[]"
  10047. static="false" final="false" visibility="public"
  10048. deprecated="not deprecated">
  10049. <doc>
  10050. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  10051. @param bytes This array becomes the backing storage for the object.]]>
  10052. </doc>
  10053. </constructor>
  10054. <method name="getBytes" return="byte[]"
  10055. abstract="false" native="false" synchronized="false"
  10056. static="false" final="false" visibility="public"
  10057. deprecated="not deprecated">
  10058. <doc>
  10059. <![CDATA[Get the data from the BytesWritable.
  10060. @return The data is only valid between 0 and getLength() - 1.]]>
  10061. </doc>
  10062. </method>
  10063. <method name="get" return="byte[]"
  10064. abstract="false" native="false" synchronized="false"
  10065. static="false" final="false" visibility="public"
  10066. deprecated="Use {@link #getBytes()} instead.">
  10067. <doc>
  10068. <![CDATA[Get the data from the BytesWritable.
  10069. @deprecated Use {@link #getBytes()} instead.]]>
  10070. </doc>
  10071. </method>
  10072. <method name="getLength" return="int"
  10073. abstract="false" native="false" synchronized="false"
  10074. static="false" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <doc>
  10077. <![CDATA[Get the current size of the buffer.]]>
  10078. </doc>
  10079. </method>
  10080. <method name="getSize" return="int"
  10081. abstract="false" native="false" synchronized="false"
  10082. static="false" final="false" visibility="public"
  10083. deprecated="Use {@link #getLength()} instead.">
  10084. <doc>
  10085. <![CDATA[Get the current size of the buffer.
  10086. @deprecated Use {@link #getLength()} instead.]]>
  10087. </doc>
  10088. </method>
  10089. <method name="setSize"
  10090. abstract="false" native="false" synchronized="false"
  10091. static="false" final="false" visibility="public"
  10092. deprecated="not deprecated">
  10093. <param name="size" type="int"/>
  10094. <doc>
  10095. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10096. and any new values are undefined. The capacity is changed if it is
  10097. necessary.
  10098. @param size The new number of bytes]]>
  10099. </doc>
  10100. </method>
  10101. <method name="getCapacity" return="int"
  10102. abstract="false" native="false" synchronized="false"
  10103. static="false" final="false" visibility="public"
  10104. deprecated="not deprecated">
  10105. <doc>
  10106. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10107. resizing the backing storage.
  10108. @return The number of bytes]]>
  10109. </doc>
  10110. </method>
  10111. <method name="setCapacity"
  10112. abstract="false" native="false" synchronized="false"
  10113. static="false" final="false" visibility="public"
  10114. deprecated="not deprecated">
  10115. <param name="new_cap" type="int"/>
  10116. <doc>
  10117. <![CDATA[Change the capacity of the backing storage.
  10118. The data is preserved.
  10119. @param new_cap The new capacity in bytes.]]>
  10120. </doc>
  10121. </method>
  10122. <method name="set"
  10123. abstract="false" native="false" synchronized="false"
  10124. static="false" final="false" visibility="public"
  10125. deprecated="not deprecated">
  10126. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10127. <doc>
  10128. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10129. @param newData the value to set this BytesWritable to.]]>
  10130. </doc>
  10131. </method>
  10132. <method name="set"
  10133. abstract="false" native="false" synchronized="false"
  10134. static="false" final="false" visibility="public"
  10135. deprecated="not deprecated">
  10136. <param name="newData" type="byte[]"/>
  10137. <param name="offset" type="int"/>
  10138. <param name="length" type="int"/>
  10139. <doc>
  10140. <![CDATA[Set the value to a copy of the given byte range
  10141. @param newData the new values to copy in
  10142. @param offset the offset in newData to start at
  10143. @param length the number of bytes to copy]]>
  10144. </doc>
  10145. </method>
  10146. <method name="readFields"
  10147. abstract="false" native="false" synchronized="false"
  10148. static="false" final="false" visibility="public"
  10149. deprecated="not deprecated">
  10150. <param name="in" type="java.io.DataInput"/>
  10151. <exception name="IOException" type="java.io.IOException"/>
  10152. </method>
  10153. <method name="write"
  10154. abstract="false" native="false" synchronized="false"
  10155. static="false" final="false" visibility="public"
  10156. deprecated="not deprecated">
  10157. <param name="out" type="java.io.DataOutput"/>
  10158. <exception name="IOException" type="java.io.IOException"/>
  10159. </method>
  10160. <method name="hashCode" return="int"
  10161. abstract="false" native="false" synchronized="false"
  10162. static="false" final="false" visibility="public"
  10163. deprecated="not deprecated">
  10164. </method>
  10165. <method name="equals" return="boolean"
  10166. abstract="false" native="false" synchronized="false"
  10167. static="false" final="false" visibility="public"
  10168. deprecated="not deprecated">
  10169. <param name="right_obj" type="java.lang.Object"/>
  10170. <doc>
  10171. <![CDATA[Are the two byte sequences equal?]]>
  10172. </doc>
  10173. </method>
  10174. <method name="toString" return="java.lang.String"
  10175. abstract="false" native="false" synchronized="false"
  10176. static="false" final="false" visibility="public"
  10177. deprecated="not deprecated">
  10178. <doc>
  10179. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10180. </doc>
  10181. </method>
  10182. <doc>
  10183. <![CDATA[A byte sequence that is usable as a key or value.
  10184. It is resizable and distinguishes between the size of the seqeunce and
  10185. the current capacity. The hash function is the front of the md5 of the
  10186. buffer. The sort order is the same as memcmp.]]>
  10187. </doc>
  10188. </class>
  10189. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10190. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10191. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10192. abstract="false"
  10193. static="true" final="false" visibility="public"
  10194. deprecated="not deprecated">
  10195. <constructor name="BytesWritable.Comparator"
  10196. static="false" final="false" visibility="public"
  10197. deprecated="not deprecated">
  10198. </constructor>
  10199. <method name="compare" return="int"
  10200. abstract="false" native="false" synchronized="false"
  10201. static="false" final="false" visibility="public"
  10202. deprecated="not deprecated">
  10203. <param name="b1" type="byte[]"/>
  10204. <param name="s1" type="int"/>
  10205. <param name="l1" type="int"/>
  10206. <param name="b2" type="byte[]"/>
  10207. <param name="s2" type="int"/>
  10208. <param name="l2" type="int"/>
  10209. <doc>
  10210. <![CDATA[Compare the buffers in serialized form.]]>
  10211. </doc>
  10212. </method>
  10213. <doc>
  10214. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10215. </doc>
  10216. </class>
  10217. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10218. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10219. <class name="ByteWritable" extends="java.lang.Object"
  10220. abstract="false"
  10221. static="false" final="false" visibility="public"
  10222. deprecated="not deprecated">
  10223. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10224. <constructor name="ByteWritable"
  10225. static="false" final="false" visibility="public"
  10226. deprecated="not deprecated">
  10227. </constructor>
  10228. <constructor name="ByteWritable" type="byte"
  10229. static="false" final="false" visibility="public"
  10230. deprecated="not deprecated">
  10231. </constructor>
  10232. <method name="set"
  10233. abstract="false" native="false" synchronized="false"
  10234. static="false" final="false" visibility="public"
  10235. deprecated="not deprecated">
  10236. <param name="value" type="byte"/>
  10237. <doc>
  10238. <![CDATA[Set the value of this ByteWritable.]]>
  10239. </doc>
  10240. </method>
  10241. <method name="get" return="byte"
  10242. abstract="false" native="false" synchronized="false"
  10243. static="false" final="false" visibility="public"
  10244. deprecated="not deprecated">
  10245. <doc>
  10246. <![CDATA[Return the value of this ByteWritable.]]>
  10247. </doc>
  10248. </method>
  10249. <method name="readFields"
  10250. abstract="false" native="false" synchronized="false"
  10251. static="false" final="false" visibility="public"
  10252. deprecated="not deprecated">
  10253. <param name="in" type="java.io.DataInput"/>
  10254. <exception name="IOException" type="java.io.IOException"/>
  10255. </method>
  10256. <method name="write"
  10257. abstract="false" native="false" synchronized="false"
  10258. static="false" final="false" visibility="public"
  10259. deprecated="not deprecated">
  10260. <param name="out" type="java.io.DataOutput"/>
  10261. <exception name="IOException" type="java.io.IOException"/>
  10262. </method>
  10263. <method name="equals" return="boolean"
  10264. abstract="false" native="false" synchronized="false"
  10265. static="false" final="false" visibility="public"
  10266. deprecated="not deprecated">
  10267. <param name="o" type="java.lang.Object"/>
  10268. <doc>
  10269. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10270. </doc>
  10271. </method>
  10272. <method name="hashCode" return="int"
  10273. abstract="false" native="false" synchronized="false"
  10274. static="false" final="false" visibility="public"
  10275. deprecated="not deprecated">
  10276. </method>
  10277. <method name="compareTo" return="int"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="false" final="false" visibility="public"
  10280. deprecated="not deprecated">
  10281. <param name="o" type="java.lang.Object"/>
  10282. <doc>
  10283. <![CDATA[Compares two ByteWritables.]]>
  10284. </doc>
  10285. </method>
  10286. <method name="toString" return="java.lang.String"
  10287. abstract="false" native="false" synchronized="false"
  10288. static="false" final="false" visibility="public"
  10289. deprecated="not deprecated">
  10290. </method>
  10291. <doc>
  10292. <![CDATA[A WritableComparable for a single byte.]]>
  10293. </doc>
  10294. </class>
  10295. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10296. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10297. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10298. abstract="false"
  10299. static="true" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <constructor name="ByteWritable.Comparator"
  10302. static="false" final="false" visibility="public"
  10303. deprecated="not deprecated">
  10304. </constructor>
  10305. <method name="compare" return="int"
  10306. abstract="false" native="false" synchronized="false"
  10307. static="false" final="false" visibility="public"
  10308. deprecated="not deprecated">
  10309. <param name="b1" type="byte[]"/>
  10310. <param name="s1" type="int"/>
  10311. <param name="l1" type="int"/>
  10312. <param name="b2" type="byte[]"/>
  10313. <param name="s2" type="int"/>
  10314. <param name="l2" type="int"/>
  10315. </method>
  10316. <doc>
  10317. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10318. </doc>
  10319. </class>
  10320. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10321. <!-- start interface org.apache.hadoop.io.Closeable -->
  10322. <interface name="Closeable" abstract="true"
  10323. static="false" final="false" visibility="public"
  10324. deprecated="use java.io.Closeable">
  10325. <implements name="java.io.Closeable"/>
  10326. <doc>
  10327. <![CDATA[@deprecated use java.io.Closeable]]>
  10328. </doc>
  10329. </interface>
  10330. <!-- end interface org.apache.hadoop.io.Closeable -->
  10331. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10332. <class name="CompressedWritable" extends="java.lang.Object"
  10333. abstract="true"
  10334. static="false" final="false" visibility="public"
  10335. deprecated="not deprecated">
  10336. <implements name="org.apache.hadoop.io.Writable"/>
  10337. <constructor name="CompressedWritable"
  10338. static="false" final="false" visibility="public"
  10339. deprecated="not deprecated">
  10340. </constructor>
  10341. <method name="readFields"
  10342. abstract="false" native="false" synchronized="false"
  10343. static="false" final="true" visibility="public"
  10344. deprecated="not deprecated">
  10345. <param name="in" type="java.io.DataInput"/>
  10346. <exception name="IOException" type="java.io.IOException"/>
  10347. </method>
  10348. <method name="ensureInflated"
  10349. abstract="false" native="false" synchronized="false"
  10350. static="false" final="false" visibility="protected"
  10351. deprecated="not deprecated">
  10352. <doc>
  10353. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10354. has been uncompressed.]]>
  10355. </doc>
  10356. </method>
  10357. <method name="readFieldsCompressed"
  10358. abstract="true" native="false" synchronized="false"
  10359. static="false" final="false" visibility="protected"
  10360. deprecated="not deprecated">
  10361. <param name="in" type="java.io.DataInput"/>
  10362. <exception name="IOException" type="java.io.IOException"/>
  10363. <doc>
  10364. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10365. </doc>
  10366. </method>
  10367. <method name="write"
  10368. abstract="false" native="false" synchronized="false"
  10369. static="false" final="true" visibility="public"
  10370. deprecated="not deprecated">
  10371. <param name="out" type="java.io.DataOutput"/>
  10372. <exception name="IOException" type="java.io.IOException"/>
  10373. </method>
  10374. <method name="writeCompressed"
  10375. abstract="true" native="false" synchronized="false"
  10376. static="false" final="false" visibility="protected"
  10377. deprecated="not deprecated">
  10378. <param name="out" type="java.io.DataOutput"/>
  10379. <exception name="IOException" type="java.io.IOException"/>
  10380. <doc>
  10381. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10382. </doc>
  10383. </method>
  10384. <doc>
  10385. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10386. inflate on field access. This is useful for large objects whose fields are
  10387. not be altered during a map or reduce operation: leaving the field data
  10388. compressed makes copying the instance from one file to another much
  10389. faster.]]>
  10390. </doc>
  10391. </class>
  10392. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10393. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10394. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10395. abstract="false"
  10396. static="false" final="false" visibility="public"
  10397. deprecated="not deprecated">
  10398. <constructor name="DataInputBuffer"
  10399. static="false" final="false" visibility="public"
  10400. deprecated="not deprecated">
  10401. <doc>
  10402. <![CDATA[Constructs a new empty buffer.]]>
  10403. </doc>
  10404. </constructor>
  10405. <method name="reset"
  10406. abstract="false" native="false" synchronized="false"
  10407. static="false" final="false" visibility="public"
  10408. deprecated="not deprecated">
  10409. <param name="input" type="byte[]"/>
  10410. <param name="length" type="int"/>
  10411. <doc>
  10412. <![CDATA[Resets the data that the buffer reads.]]>
  10413. </doc>
  10414. </method>
  10415. <method name="reset"
  10416. abstract="false" native="false" synchronized="false"
  10417. static="false" final="false" visibility="public"
  10418. deprecated="not deprecated">
  10419. <param name="input" type="byte[]"/>
  10420. <param name="start" type="int"/>
  10421. <param name="length" type="int"/>
  10422. <doc>
  10423. <![CDATA[Resets the data that the buffer reads.]]>
  10424. </doc>
  10425. </method>
  10426. <method name="getData" return="byte[]"
  10427. abstract="false" native="false" synchronized="false"
  10428. static="false" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. </method>
  10431. <method name="getPosition" return="int"
  10432. abstract="false" native="false" synchronized="false"
  10433. static="false" final="false" visibility="public"
  10434. deprecated="not deprecated">
  10435. <doc>
  10436. <![CDATA[Returns the current position in the input.]]>
  10437. </doc>
  10438. </method>
  10439. <method name="getLength" return="int"
  10440. abstract="false" native="false" synchronized="false"
  10441. static="false" final="false" visibility="public"
  10442. deprecated="not deprecated">
  10443. <doc>
  10444. <![CDATA[Returns the length of the input.]]>
  10445. </doc>
  10446. </method>
  10447. <doc>
  10448. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10449. buffer.
  10450. <p>This saves memory over creating a new DataInputStream and
  10451. ByteArrayInputStream each time data is read.
  10452. <p>Typical usage is something like the following:<pre>
  10453. DataInputBuffer buffer = new DataInputBuffer();
  10454. while (... loop condition ...) {
  10455. byte[] data = ... get data ...;
  10456. int dataLength = ... get data length ...;
  10457. buffer.reset(data, dataLength);
  10458. ... read buffer using DataInput methods ...
  10459. }
  10460. </pre>]]>
  10461. </doc>
  10462. </class>
  10463. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10464. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10465. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10466. abstract="false"
  10467. static="false" final="false" visibility="public"
  10468. deprecated="not deprecated">
  10469. <constructor name="DataOutputBuffer"
  10470. static="false" final="false" visibility="public"
  10471. deprecated="not deprecated">
  10472. <doc>
  10473. <![CDATA[Constructs a new empty buffer.]]>
  10474. </doc>
  10475. </constructor>
  10476. <constructor name="DataOutputBuffer" type="int"
  10477. static="false" final="false" visibility="public"
  10478. deprecated="not deprecated">
  10479. </constructor>
  10480. <method name="getData" return="byte[]"
  10481. abstract="false" native="false" synchronized="false"
  10482. static="false" final="false" visibility="public"
  10483. deprecated="not deprecated">
  10484. <doc>
  10485. <![CDATA[Returns the current contents of the buffer.
  10486. Data is only valid to {@link #getLength()}.]]>
  10487. </doc>
  10488. </method>
  10489. <method name="getLength" return="int"
  10490. abstract="false" native="false" synchronized="false"
  10491. static="false" final="false" visibility="public"
  10492. deprecated="not deprecated">
  10493. <doc>
  10494. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10495. </doc>
  10496. </method>
  10497. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10498. abstract="false" native="false" synchronized="false"
  10499. static="false" final="false" visibility="public"
  10500. deprecated="not deprecated">
  10501. <doc>
  10502. <![CDATA[Resets the buffer to empty.]]>
  10503. </doc>
  10504. </method>
  10505. <method name="write"
  10506. abstract="false" native="false" synchronized="false"
  10507. static="false" final="false" visibility="public"
  10508. deprecated="not deprecated">
  10509. <param name="in" type="java.io.DataInput"/>
  10510. <param name="length" type="int"/>
  10511. <exception name="IOException" type="java.io.IOException"/>
  10512. <doc>
  10513. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10514. </doc>
  10515. </method>
  10516. <method name="writeTo"
  10517. abstract="false" native="false" synchronized="false"
  10518. static="false" final="false" visibility="public"
  10519. deprecated="not deprecated">
  10520. <param name="out" type="java.io.OutputStream"/>
  10521. <exception name="IOException" type="java.io.IOException"/>
  10522. <doc>
  10523. <![CDATA[Write to a file stream]]>
  10524. </doc>
  10525. </method>
  10526. <doc>
  10527. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10528. buffer.
  10529. <p>This saves memory over creating a new DataOutputStream and
  10530. ByteArrayOutputStream each time data is written.
  10531. <p>Typical usage is something like the following:<pre>
  10532. DataOutputBuffer buffer = new DataOutputBuffer();
  10533. while (... loop condition ...) {
  10534. buffer.reset();
  10535. ... write buffer using DataOutput methods ...
  10536. byte[] data = buffer.getData();
  10537. int dataLength = buffer.getLength();
  10538. ... write data to its ultimate destination ...
  10539. }
  10540. </pre>]]>
  10541. </doc>
  10542. </class>
  10543. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10544. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10545. <class name="DefaultStringifier" extends="java.lang.Object"
  10546. abstract="false"
  10547. static="false" final="false" visibility="public"
  10548. deprecated="not deprecated">
  10549. <implements name="org.apache.hadoop.io.Stringifier"/>
  10550. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10551. static="false" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. </constructor>
  10554. <method name="fromString" return="java.lang.Object"
  10555. abstract="false" native="false" synchronized="false"
  10556. static="false" final="false" visibility="public"
  10557. deprecated="not deprecated">
  10558. <param name="str" type="java.lang.String"/>
  10559. <exception name="IOException" type="java.io.IOException"/>
  10560. </method>
  10561. <method name="toString" return="java.lang.String"
  10562. abstract="false" native="false" synchronized="false"
  10563. static="false" final="false" visibility="public"
  10564. deprecated="not deprecated">
  10565. <param name="obj" type="java.lang.Object"/>
  10566. <exception name="IOException" type="java.io.IOException"/>
  10567. </method>
  10568. <method name="close"
  10569. abstract="false" native="false" synchronized="false"
  10570. static="false" final="false" visibility="public"
  10571. deprecated="not deprecated">
  10572. <exception name="IOException" type="java.io.IOException"/>
  10573. </method>
  10574. <method name="store"
  10575. abstract="false" native="false" synchronized="false"
  10576. static="true" final="false" visibility="public"
  10577. deprecated="not deprecated">
  10578. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10579. <param name="item" type="java.lang.Object"/>
  10580. <param name="keyName" type="java.lang.String"/>
  10581. <exception name="IOException" type="java.io.IOException"/>
  10582. <doc>
  10583. <![CDATA[Stores the item in the configuration with the given keyName.
  10584. @param <K> the class of the item
  10585. @param conf the configuration to store
  10586. @param item the object to be stored
  10587. @param keyName the name of the key to use
  10588. @throws IOException : forwards Exceptions from the underlying
  10589. {@link Serialization} classes.]]>
  10590. </doc>
  10591. </method>
  10592. <method name="load" return="java.lang.Object"
  10593. abstract="false" native="false" synchronized="false"
  10594. static="true" final="false" visibility="public"
  10595. deprecated="not deprecated">
  10596. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10597. <param name="keyName" type="java.lang.String"/>
  10598. <param name="itemClass" type="java.lang.Class"/>
  10599. <exception name="IOException" type="java.io.IOException"/>
  10600. <doc>
  10601. <![CDATA[Restores the object from the configuration.
  10602. @param <K> the class of the item
  10603. @param conf the configuration to use
  10604. @param keyName the name of the key to use
  10605. @param itemClass the class of the item
  10606. @return restored object
  10607. @throws IOException : forwards Exceptions from the underlying
  10608. {@link Serialization} classes.]]>
  10609. </doc>
  10610. </method>
  10611. <method name="storeArray"
  10612. abstract="false" native="false" synchronized="false"
  10613. static="true" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10616. <param name="items" type="java.lang.Object[]"/>
  10617. <param name="keyName" type="java.lang.String"/>
  10618. <exception name="IOException" type="java.io.IOException"/>
  10619. <doc>
  10620. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10621. @param <K> the class of the item
  10622. @param conf the configuration to use
  10623. @param items the objects to be stored
  10624. @param keyName the name of the key to use
  10625. @throws IndexOutOfBoundsException if the items array is empty
  10626. @throws IOException : forwards Exceptions from the underlying
  10627. {@link Serialization} classes.]]>
  10628. </doc>
  10629. </method>
  10630. <method name="loadArray" return="java.lang.Object[]"
  10631. abstract="false" native="false" synchronized="false"
  10632. static="true" final="false" visibility="public"
  10633. deprecated="not deprecated">
  10634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10635. <param name="keyName" type="java.lang.String"/>
  10636. <param name="itemClass" type="java.lang.Class"/>
  10637. <exception name="IOException" type="java.io.IOException"/>
  10638. <doc>
  10639. <![CDATA[Restores the array of objects from the configuration.
  10640. @param <K> the class of the item
  10641. @param conf the configuration to use
  10642. @param keyName the name of the key to use
  10643. @param itemClass the class of the item
  10644. @return restored object
  10645. @throws IOException : forwards Exceptions from the underlying
  10646. {@link Serialization} classes.]]>
  10647. </doc>
  10648. </method>
  10649. <doc>
  10650. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10651. interface which stringifies the objects using base64 encoding of the
  10652. serialized version of the objects. The {@link Serializer} and
  10653. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10654. <br>
  10655. DefaultStringifier offers convenience methods to store/load objects to/from
  10656. the configuration.
  10657. @param <T> the class of the objects to stringify]]>
  10658. </doc>
  10659. </class>
  10660. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10661. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10662. <class name="DoubleWritable" extends="java.lang.Object"
  10663. abstract="false"
  10664. static="false" final="false" visibility="public"
  10665. deprecated="not deprecated">
  10666. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10667. <constructor name="DoubleWritable"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. </constructor>
  10671. <constructor name="DoubleWritable" type="double"
  10672. static="false" final="false" visibility="public"
  10673. deprecated="not deprecated">
  10674. </constructor>
  10675. <method name="readFields"
  10676. abstract="false" native="false" synchronized="false"
  10677. static="false" final="false" visibility="public"
  10678. deprecated="not deprecated">
  10679. <param name="in" type="java.io.DataInput"/>
  10680. <exception name="IOException" type="java.io.IOException"/>
  10681. </method>
  10682. <method name="write"
  10683. abstract="false" native="false" synchronized="false"
  10684. static="false" final="false" visibility="public"
  10685. deprecated="not deprecated">
  10686. <param name="out" type="java.io.DataOutput"/>
  10687. <exception name="IOException" type="java.io.IOException"/>
  10688. </method>
  10689. <method name="set"
  10690. abstract="false" native="false" synchronized="false"
  10691. static="false" final="false" visibility="public"
  10692. deprecated="not deprecated">
  10693. <param name="value" type="double"/>
  10694. </method>
  10695. <method name="get" return="double"
  10696. abstract="false" native="false" synchronized="false"
  10697. static="false" final="false" visibility="public"
  10698. deprecated="not deprecated">
  10699. </method>
  10700. <method name="equals" return="boolean"
  10701. abstract="false" native="false" synchronized="false"
  10702. static="false" final="false" visibility="public"
  10703. deprecated="not deprecated">
  10704. <param name="o" type="java.lang.Object"/>
  10705. <doc>
  10706. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10707. </doc>
  10708. </method>
  10709. <method name="hashCode" return="int"
  10710. abstract="false" native="false" synchronized="false"
  10711. static="false" final="false" visibility="public"
  10712. deprecated="not deprecated">
  10713. </method>
  10714. <method name="compareTo" return="int"
  10715. abstract="false" native="false" synchronized="false"
  10716. static="false" final="false" visibility="public"
  10717. deprecated="not deprecated">
  10718. <param name="o" type="java.lang.Object"/>
  10719. </method>
  10720. <method name="toString" return="java.lang.String"
  10721. abstract="false" native="false" synchronized="false"
  10722. static="false" final="false" visibility="public"
  10723. deprecated="not deprecated">
  10724. </method>
  10725. <doc>
  10726. <![CDATA[Writable for Double values.]]>
  10727. </doc>
  10728. </class>
  10729. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10730. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10731. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10732. abstract="false"
  10733. static="true" final="false" visibility="public"
  10734. deprecated="not deprecated">
  10735. <constructor name="DoubleWritable.Comparator"
  10736. static="false" final="false" visibility="public"
  10737. deprecated="not deprecated">
  10738. </constructor>
  10739. <method name="compare" return="int"
  10740. abstract="false" native="false" synchronized="false"
  10741. static="false" final="false" visibility="public"
  10742. deprecated="not deprecated">
  10743. <param name="b1" type="byte[]"/>
  10744. <param name="s1" type="int"/>
  10745. <param name="l1" type="int"/>
  10746. <param name="b2" type="byte[]"/>
  10747. <param name="s2" type="int"/>
  10748. <param name="l2" type="int"/>
  10749. </method>
  10750. <doc>
  10751. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10752. </doc>
  10753. </class>
  10754. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10755. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10756. <class name="FloatWritable" extends="java.lang.Object"
  10757. abstract="false"
  10758. static="false" final="false" visibility="public"
  10759. deprecated="not deprecated">
  10760. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10761. <constructor name="FloatWritable"
  10762. static="false" final="false" visibility="public"
  10763. deprecated="not deprecated">
  10764. </constructor>
  10765. <constructor name="FloatWritable" type="float"
  10766. static="false" final="false" visibility="public"
  10767. deprecated="not deprecated">
  10768. </constructor>
  10769. <method name="set"
  10770. abstract="false" native="false" synchronized="false"
  10771. static="false" final="false" visibility="public"
  10772. deprecated="not deprecated">
  10773. <param name="value" type="float"/>
  10774. <doc>
  10775. <![CDATA[Set the value of this FloatWritable.]]>
  10776. </doc>
  10777. </method>
  10778. <method name="get" return="float"
  10779. abstract="false" native="false" synchronized="false"
  10780. static="false" final="false" visibility="public"
  10781. deprecated="not deprecated">
  10782. <doc>
  10783. <![CDATA[Return the value of this FloatWritable.]]>
  10784. </doc>
  10785. </method>
  10786. <method name="readFields"
  10787. abstract="false" native="false" synchronized="false"
  10788. static="false" final="false" visibility="public"
  10789. deprecated="not deprecated">
  10790. <param name="in" type="java.io.DataInput"/>
  10791. <exception name="IOException" type="java.io.IOException"/>
  10792. </method>
  10793. <method name="write"
  10794. abstract="false" native="false" synchronized="false"
  10795. static="false" final="false" visibility="public"
  10796. deprecated="not deprecated">
  10797. <param name="out" type="java.io.DataOutput"/>
  10798. <exception name="IOException" type="java.io.IOException"/>
  10799. </method>
  10800. <method name="equals" return="boolean"
  10801. abstract="false" native="false" synchronized="false"
  10802. static="false" final="false" visibility="public"
  10803. deprecated="not deprecated">
  10804. <param name="o" type="java.lang.Object"/>
  10805. <doc>
  10806. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10807. </doc>
  10808. </method>
  10809. <method name="hashCode" return="int"
  10810. abstract="false" native="false" synchronized="false"
  10811. static="false" final="false" visibility="public"
  10812. deprecated="not deprecated">
  10813. </method>
  10814. <method name="compareTo" return="int"
  10815. abstract="false" native="false" synchronized="false"
  10816. static="false" final="false" visibility="public"
  10817. deprecated="not deprecated">
  10818. <param name="o" type="java.lang.Object"/>
  10819. <doc>
  10820. <![CDATA[Compares two FloatWritables.]]>
  10821. </doc>
  10822. </method>
  10823. <method name="toString" return="java.lang.String"
  10824. abstract="false" native="false" synchronized="false"
  10825. static="false" final="false" visibility="public"
  10826. deprecated="not deprecated">
  10827. </method>
  10828. <doc>
  10829. <![CDATA[A WritableComparable for floats.]]>
  10830. </doc>
  10831. </class>
  10832. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10833. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10834. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10835. abstract="false"
  10836. static="true" final="false" visibility="public"
  10837. deprecated="not deprecated">
  10838. <constructor name="FloatWritable.Comparator"
  10839. static="false" final="false" visibility="public"
  10840. deprecated="not deprecated">
  10841. </constructor>
  10842. <method name="compare" return="int"
  10843. abstract="false" native="false" synchronized="false"
  10844. static="false" final="false" visibility="public"
  10845. deprecated="not deprecated">
  10846. <param name="b1" type="byte[]"/>
  10847. <param name="s1" type="int"/>
  10848. <param name="l1" type="int"/>
  10849. <param name="b2" type="byte[]"/>
  10850. <param name="s2" type="int"/>
  10851. <param name="l2" type="int"/>
  10852. </method>
  10853. <doc>
  10854. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10855. </doc>
  10856. </class>
  10857. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10858. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10859. <class name="GenericWritable" extends="java.lang.Object"
  10860. abstract="true"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. <implements name="org.apache.hadoop.io.Writable"/>
  10864. <implements name="org.apache.hadoop.conf.Configurable"/>
  10865. <constructor name="GenericWritable"
  10866. static="false" final="false" visibility="public"
  10867. deprecated="not deprecated">
  10868. </constructor>
  10869. <method name="set"
  10870. abstract="false" native="false" synchronized="false"
  10871. static="false" final="false" visibility="public"
  10872. deprecated="not deprecated">
  10873. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10874. <doc>
  10875. <![CDATA[Set the instance that is wrapped.
  10876. @param obj]]>
  10877. </doc>
  10878. </method>
  10879. <method name="get" return="org.apache.hadoop.io.Writable"
  10880. abstract="false" native="false" synchronized="false"
  10881. static="false" final="false" visibility="public"
  10882. deprecated="not deprecated">
  10883. <doc>
  10884. <![CDATA[Return the wrapped instance.]]>
  10885. </doc>
  10886. </method>
  10887. <method name="toString" return="java.lang.String"
  10888. abstract="false" native="false" synchronized="false"
  10889. static="false" final="false" visibility="public"
  10890. deprecated="not deprecated">
  10891. </method>
  10892. <method name="readFields"
  10893. abstract="false" native="false" synchronized="false"
  10894. static="false" final="false" visibility="public"
  10895. deprecated="not deprecated">
  10896. <param name="in" type="java.io.DataInput"/>
  10897. <exception name="IOException" type="java.io.IOException"/>
  10898. </method>
  10899. <method name="write"
  10900. abstract="false" native="false" synchronized="false"
  10901. static="false" final="false" visibility="public"
  10902. deprecated="not deprecated">
  10903. <param name="out" type="java.io.DataOutput"/>
  10904. <exception name="IOException" type="java.io.IOException"/>
  10905. </method>
  10906. <method name="getTypes" return="java.lang.Class[]"
  10907. abstract="true" native="false" synchronized="false"
  10908. static="false" final="false" visibility="protected"
  10909. deprecated="not deprecated">
  10910. <doc>
  10911. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10912. to return a constant array of classes.]]>
  10913. </doc>
  10914. </method>
  10915. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10916. abstract="false" native="false" synchronized="false"
  10917. static="false" final="false" visibility="public"
  10918. deprecated="not deprecated">
  10919. </method>
  10920. <method name="setConf"
  10921. abstract="false" native="false" synchronized="false"
  10922. static="false" final="false" visibility="public"
  10923. deprecated="not deprecated">
  10924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10925. </method>
  10926. <doc>
  10927. <![CDATA[A wrapper for Writable instances.
  10928. <p>
  10929. When two sequence files, which have same Key type but different Value
  10930. types, are mapped out to reduce, multiple Value types is not allowed.
  10931. In this case, this class can help you wrap instances with different types.
  10932. </p>
  10933. <p>
  10934. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10935. because <code>ObjectWritable</code> will append the class declaration as a String
  10936. into the output file in every Key-Value pair.
  10937. </p>
  10938. <p>
  10939. Generic Writable implements {@link Configurable} interface, so that it will be
  10940. configured by the framework. The configuration is passed to the wrapped objects
  10941. implementing {@link Configurable} interface <i>before deserialization</i>.
  10942. </p>
  10943. how to use it: <br>
  10944. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10945. 2. Implements the abstract method <code>getTypes()</code>, defines
  10946. the classes which will be wrapped in GenericObject in application.
  10947. Attention: this classes defined in <code>getTypes()</code> method, must
  10948. implement <code>Writable</code> interface.
  10949. <br><br>
  10950. The code looks like this:
  10951. <blockquote><pre>
  10952. public class GenericObject extends GenericWritable {
  10953. private static Class[] CLASSES = {
  10954. ClassType1.class,
  10955. ClassType2.class,
  10956. ClassType3.class,
  10957. };
  10958. protected Class[] getTypes() {
  10959. return CLASSES;
  10960. }
  10961. }
  10962. </pre></blockquote>
  10963. @since Nov 8, 2006]]>
  10964. </doc>
  10965. </class>
  10966. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10967. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10968. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10969. abstract="false"
  10970. static="false" final="false" visibility="public"
  10971. deprecated="not deprecated">
  10972. <constructor name="InputBuffer"
  10973. static="false" final="false" visibility="public"
  10974. deprecated="not deprecated">
  10975. <doc>
  10976. <![CDATA[Constructs a new empty buffer.]]>
  10977. </doc>
  10978. </constructor>
  10979. <method name="reset"
  10980. abstract="false" native="false" synchronized="false"
  10981. static="false" final="false" visibility="public"
  10982. deprecated="not deprecated">
  10983. <param name="input" type="byte[]"/>
  10984. <param name="length" type="int"/>
  10985. <doc>
  10986. <![CDATA[Resets the data that the buffer reads.]]>
  10987. </doc>
  10988. </method>
  10989. <method name="reset"
  10990. abstract="false" native="false" synchronized="false"
  10991. static="false" final="false" visibility="public"
  10992. deprecated="not deprecated">
  10993. <param name="input" type="byte[]"/>
  10994. <param name="start" type="int"/>
  10995. <param name="length" type="int"/>
  10996. <doc>
  10997. <![CDATA[Resets the data that the buffer reads.]]>
  10998. </doc>
  10999. </method>
  11000. <method name="getPosition" return="int"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="false" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. <doc>
  11005. <![CDATA[Returns the current position in the input.]]>
  11006. </doc>
  11007. </method>
  11008. <method name="getLength" return="int"
  11009. abstract="false" native="false" synchronized="false"
  11010. static="false" final="false" visibility="public"
  11011. deprecated="not deprecated">
  11012. <doc>
  11013. <![CDATA[Returns the length of the input.]]>
  11014. </doc>
  11015. </method>
  11016. <doc>
  11017. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  11018. buffer.
  11019. <p>This saves memory over creating a new InputStream and
  11020. ByteArrayInputStream each time data is read.
  11021. <p>Typical usage is something like the following:<pre>
  11022. InputBuffer buffer = new InputBuffer();
  11023. while (... loop condition ...) {
  11024. byte[] data = ... get data ...;
  11025. int dataLength = ... get data length ...;
  11026. buffer.reset(data, dataLength);
  11027. ... read buffer using InputStream methods ...
  11028. }
  11029. </pre>
  11030. @see DataInputBuffer
  11031. @see DataOutput]]>
  11032. </doc>
  11033. </class>
  11034. <!-- end class org.apache.hadoop.io.InputBuffer -->
  11035. <!-- start class org.apache.hadoop.io.IntWritable -->
  11036. <class name="IntWritable" extends="java.lang.Object"
  11037. abstract="false"
  11038. static="false" final="false" visibility="public"
  11039. deprecated="not deprecated">
  11040. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11041. <constructor name="IntWritable"
  11042. static="false" final="false" visibility="public"
  11043. deprecated="not deprecated">
  11044. </constructor>
  11045. <constructor name="IntWritable" type="int"
  11046. static="false" final="false" visibility="public"
  11047. deprecated="not deprecated">
  11048. </constructor>
  11049. <method name="set"
  11050. abstract="false" native="false" synchronized="false"
  11051. static="false" final="false" visibility="public"
  11052. deprecated="not deprecated">
  11053. <param name="value" type="int"/>
  11054. <doc>
  11055. <![CDATA[Set the value of this IntWritable.]]>
  11056. </doc>
  11057. </method>
  11058. <method name="get" return="int"
  11059. abstract="false" native="false" synchronized="false"
  11060. static="false" final="false" visibility="public"
  11061. deprecated="not deprecated">
  11062. <doc>
  11063. <![CDATA[Return the value of this IntWritable.]]>
  11064. </doc>
  11065. </method>
  11066. <method name="readFields"
  11067. abstract="false" native="false" synchronized="false"
  11068. static="false" final="false" visibility="public"
  11069. deprecated="not deprecated">
  11070. <param name="in" type="java.io.DataInput"/>
  11071. <exception name="IOException" type="java.io.IOException"/>
  11072. </method>
  11073. <method name="write"
  11074. abstract="false" native="false" synchronized="false"
  11075. static="false" final="false" visibility="public"
  11076. deprecated="not deprecated">
  11077. <param name="out" type="java.io.DataOutput"/>
  11078. <exception name="IOException" type="java.io.IOException"/>
  11079. </method>
  11080. <method name="equals" return="boolean"
  11081. abstract="false" native="false" synchronized="false"
  11082. static="false" final="false" visibility="public"
  11083. deprecated="not deprecated">
  11084. <param name="o" type="java.lang.Object"/>
  11085. <doc>
  11086. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11087. </doc>
  11088. </method>
  11089. <method name="hashCode" return="int"
  11090. abstract="false" native="false" synchronized="false"
  11091. static="false" final="false" visibility="public"
  11092. deprecated="not deprecated">
  11093. </method>
  11094. <method name="compareTo" return="int"
  11095. abstract="false" native="false" synchronized="false"
  11096. static="false" final="false" visibility="public"
  11097. deprecated="not deprecated">
  11098. <param name="o" type="java.lang.Object"/>
  11099. <doc>
  11100. <![CDATA[Compares two IntWritables.]]>
  11101. </doc>
  11102. </method>
  11103. <method name="toString" return="java.lang.String"
  11104. abstract="false" native="false" synchronized="false"
  11105. static="false" final="false" visibility="public"
  11106. deprecated="not deprecated">
  11107. </method>
  11108. <doc>
  11109. <![CDATA[A WritableComparable for ints.]]>
  11110. </doc>
  11111. </class>
  11112. <!-- end class org.apache.hadoop.io.IntWritable -->
  11113. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11114. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11115. abstract="false"
  11116. static="true" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <constructor name="IntWritable.Comparator"
  11119. static="false" final="false" visibility="public"
  11120. deprecated="not deprecated">
  11121. </constructor>
  11122. <method name="compare" return="int"
  11123. abstract="false" native="false" synchronized="false"
  11124. static="false" final="false" visibility="public"
  11125. deprecated="not deprecated">
  11126. <param name="b1" type="byte[]"/>
  11127. <param name="s1" type="int"/>
  11128. <param name="l1" type="int"/>
  11129. <param name="b2" type="byte[]"/>
  11130. <param name="s2" type="int"/>
  11131. <param name="l2" type="int"/>
  11132. </method>
  11133. <doc>
  11134. <![CDATA[A Comparator optimized for IntWritable.]]>
  11135. </doc>
  11136. </class>
  11137. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11138. <!-- start class org.apache.hadoop.io.IOUtils -->
  11139. <class name="IOUtils" extends="java.lang.Object"
  11140. abstract="false"
  11141. static="false" final="false" visibility="public"
  11142. deprecated="not deprecated">
  11143. <constructor name="IOUtils"
  11144. static="false" final="false" visibility="public"
  11145. deprecated="not deprecated">
  11146. </constructor>
  11147. <method name="copyBytes"
  11148. abstract="false" native="false" synchronized="false"
  11149. static="true" final="false" visibility="public"
  11150. deprecated="not deprecated">
  11151. <param name="in" type="java.io.InputStream"/>
  11152. <param name="out" type="java.io.OutputStream"/>
  11153. <param name="buffSize" type="int"/>
  11154. <param name="close" type="boolean"/>
  11155. <exception name="IOException" type="java.io.IOException"/>
  11156. <doc>
  11157. <![CDATA[Copies from one stream to another.
  11158. @param in InputStrem to read from
  11159. @param out OutputStream to write to
  11160. @param buffSize the size of the buffer
  11161. @param close whether or not close the InputStream and
  11162. OutputStream at the end. The streams are closed in the finally clause.]]>
  11163. </doc>
  11164. </method>
  11165. <method name="copyBytes"
  11166. abstract="false" native="false" synchronized="false"
  11167. static="true" final="false" visibility="public"
  11168. deprecated="not deprecated">
  11169. <param name="in" type="java.io.InputStream"/>
  11170. <param name="out" type="java.io.OutputStream"/>
  11171. <param name="buffSize" type="int"/>
  11172. <exception name="IOException" type="java.io.IOException"/>
  11173. <doc>
  11174. <![CDATA[Copies from one stream to another.
  11175. @param in InputStrem to read from
  11176. @param out OutputStream to write to
  11177. @param buffSize the size of the buffer]]>
  11178. </doc>
  11179. </method>
  11180. <method name="copyBytes"
  11181. abstract="false" native="false" synchronized="false"
  11182. static="true" final="false" visibility="public"
  11183. deprecated="not deprecated">
  11184. <param name="in" type="java.io.InputStream"/>
  11185. <param name="out" type="java.io.OutputStream"/>
  11186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11187. <exception name="IOException" type="java.io.IOException"/>
  11188. <doc>
  11189. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11190. at the end</strong>.
  11191. @param in InputStrem to read from
  11192. @param out OutputStream to write to
  11193. @param conf the Configuration object]]>
  11194. </doc>
  11195. </method>
  11196. <method name="copyBytes"
  11197. abstract="false" native="false" synchronized="false"
  11198. static="true" final="false" visibility="public"
  11199. deprecated="not deprecated">
  11200. <param name="in" type="java.io.InputStream"/>
  11201. <param name="out" type="java.io.OutputStream"/>
  11202. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11203. <param name="close" type="boolean"/>
  11204. <exception name="IOException" type="java.io.IOException"/>
  11205. <doc>
  11206. <![CDATA[Copies from one stream to another.
  11207. @param in InputStrem to read from
  11208. @param out OutputStream to write to
  11209. @param conf the Configuration object
  11210. @param close whether or not close the InputStream and
  11211. OutputStream at the end. The streams are closed in the finally clause.]]>
  11212. </doc>
  11213. </method>
  11214. <method name="copyBytes"
  11215. abstract="false" native="false" synchronized="false"
  11216. static="true" final="false" visibility="public"
  11217. deprecated="not deprecated">
  11218. <param name="in" type="java.io.InputStream"/>
  11219. <param name="out" type="java.io.OutputStream"/>
  11220. <param name="length" type="long"/>
  11221. <param name="bufferSize" type="int"/>
  11222. <param name="close" type="boolean"/>
  11223. <exception name="IOException" type="java.io.IOException"/>
  11224. <doc>
  11225. <![CDATA[Copies the specified length of bytes from in to out.
  11226. @param in InputStream to read from
  11227. @param out OutputStream to write to
  11228. @param length number of bytes to copy
  11229. @param bufferSize the size of the buffer
  11230. @param close whether to close the streams
  11231. @throws IOException if bytes can not be read or written]]>
  11232. </doc>
  11233. </method>
  11234. <method name="readFully"
  11235. abstract="false" native="false" synchronized="false"
  11236. static="true" final="false" visibility="public"
  11237. deprecated="not deprecated">
  11238. <param name="in" type="java.io.InputStream"/>
  11239. <param name="buf" type="byte[]"/>
  11240. <param name="off" type="int"/>
  11241. <param name="len" type="int"/>
  11242. <exception name="IOException" type="java.io.IOException"/>
  11243. <doc>
  11244. <![CDATA[Reads len bytes in a loop.
  11245. @param in The InputStream to read from
  11246. @param buf The buffer to fill
  11247. @param off offset from the buffer
  11248. @param len the length of bytes to read
  11249. @throws IOException if it could not read requested number of bytes
  11250. for any reason (including EOF)]]>
  11251. </doc>
  11252. </method>
  11253. <method name="readFileChannelFully"
  11254. abstract="false" native="false" synchronized="false"
  11255. static="true" final="false" visibility="public"
  11256. deprecated="not deprecated">
  11257. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11258. <param name="buf" type="byte[]"/>
  11259. <param name="off" type="int"/>
  11260. <param name="len" type="int"/>
  11261. <exception name="IOException" type="java.io.IOException"/>
  11262. <doc>
  11263. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11264. @param fileChannel a FileChannel to read len bytes into buf
  11265. @param buf The buffer to fill
  11266. @param off offset from the buffer
  11267. @param len the length of bytes to read
  11268. @throws IOException if it could not read requested number of bytes
  11269. for any reason (including EOF)]]>
  11270. </doc>
  11271. </method>
  11272. <method name="skipFully"
  11273. abstract="false" native="false" synchronized="false"
  11274. static="true" final="false" visibility="public"
  11275. deprecated="not deprecated">
  11276. <param name="in" type="java.io.InputStream"/>
  11277. <param name="len" type="long"/>
  11278. <exception name="IOException" type="java.io.IOException"/>
  11279. <doc>
  11280. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11281. @param in The InputStream to skip bytes from
  11282. @param len number of bytes to skip.
  11283. @throws IOException if it could not skip requested number of bytes
  11284. for any reason (including EOF)]]>
  11285. </doc>
  11286. </method>
  11287. <method name="cleanup"
  11288. abstract="false" native="false" synchronized="false"
  11289. static="true" final="false" visibility="public"
  11290. deprecated="not deprecated">
  11291. <param name="log" type="org.apache.commons.logging.Log"/>
  11292. <param name="closeables" type="java.io.Closeable[]"/>
  11293. <doc>
  11294. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11295. null pointers. Must only be used for cleanup in exception handlers.
  11296. @param log the log to record problems to at debug level. Can be null.
  11297. @param closeables the objects to close]]>
  11298. </doc>
  11299. </method>
  11300. <method name="closeStream"
  11301. abstract="false" native="false" synchronized="false"
  11302. static="true" final="false" visibility="public"
  11303. deprecated="not deprecated">
  11304. <param name="stream" type="java.io.Closeable"/>
  11305. <doc>
  11306. <![CDATA[Closes the stream ignoring {@link IOException}.
  11307. Must only be called in cleaning up from exception handlers.
  11308. @param stream the Stream to close]]>
  11309. </doc>
  11310. </method>
  11311. <method name="closeSocket"
  11312. abstract="false" native="false" synchronized="false"
  11313. static="true" final="false" visibility="public"
  11314. deprecated="not deprecated">
  11315. <param name="sock" type="java.net.Socket"/>
  11316. <doc>
  11317. <![CDATA[Closes the socket ignoring {@link IOException}
  11318. @param sock the Socket to close]]>
  11319. </doc>
  11320. </method>
  11321. <doc>
  11322. <![CDATA[An utility class for I/O related functionality.]]>
  11323. </doc>
  11324. </class>
  11325. <!-- end class org.apache.hadoop.io.IOUtils -->
  11326. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11327. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11328. abstract="false"
  11329. static="true" final="false" visibility="public"
  11330. deprecated="not deprecated">
  11331. <constructor name="IOUtils.NullOutputStream"
  11332. static="false" final="false" visibility="public"
  11333. deprecated="not deprecated">
  11334. </constructor>
  11335. <method name="write"
  11336. abstract="false" native="false" synchronized="false"
  11337. static="false" final="false" visibility="public"
  11338. deprecated="not deprecated">
  11339. <param name="b" type="byte[]"/>
  11340. <param name="off" type="int"/>
  11341. <param name="len" type="int"/>
  11342. <exception name="IOException" type="java.io.IOException"/>
  11343. </method>
  11344. <method name="write"
  11345. abstract="false" native="false" synchronized="false"
  11346. static="false" final="false" visibility="public"
  11347. deprecated="not deprecated">
  11348. <param name="b" type="int"/>
  11349. <exception name="IOException" type="java.io.IOException"/>
  11350. </method>
  11351. <doc>
  11352. <![CDATA[/dev/null of OutputStreams.]]>
  11353. </doc>
  11354. </class>
  11355. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11356. <!-- start class org.apache.hadoop.io.LongWritable -->
  11357. <class name="LongWritable" extends="java.lang.Object"
  11358. abstract="false"
  11359. static="false" final="false" visibility="public"
  11360. deprecated="not deprecated">
  11361. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11362. <constructor name="LongWritable"
  11363. static="false" final="false" visibility="public"
  11364. deprecated="not deprecated">
  11365. </constructor>
  11366. <constructor name="LongWritable" type="long"
  11367. static="false" final="false" visibility="public"
  11368. deprecated="not deprecated">
  11369. </constructor>
  11370. <method name="set"
  11371. abstract="false" native="false" synchronized="false"
  11372. static="false" final="false" visibility="public"
  11373. deprecated="not deprecated">
  11374. <param name="value" type="long"/>
  11375. <doc>
  11376. <![CDATA[Set the value of this LongWritable.]]>
  11377. </doc>
  11378. </method>
  11379. <method name="get" return="long"
  11380. abstract="false" native="false" synchronized="false"
  11381. static="false" final="false" visibility="public"
  11382. deprecated="not deprecated">
  11383. <doc>
  11384. <![CDATA[Return the value of this LongWritable.]]>
  11385. </doc>
  11386. </method>
  11387. <method name="readFields"
  11388. abstract="false" native="false" synchronized="false"
  11389. static="false" final="false" visibility="public"
  11390. deprecated="not deprecated">
  11391. <param name="in" type="java.io.DataInput"/>
  11392. <exception name="IOException" type="java.io.IOException"/>
  11393. </method>
  11394. <method name="write"
  11395. abstract="false" native="false" synchronized="false"
  11396. static="false" final="false" visibility="public"
  11397. deprecated="not deprecated">
  11398. <param name="out" type="java.io.DataOutput"/>
  11399. <exception name="IOException" type="java.io.IOException"/>
  11400. </method>
  11401. <method name="equals" return="boolean"
  11402. abstract="false" native="false" synchronized="false"
  11403. static="false" final="false" visibility="public"
  11404. deprecated="not deprecated">
  11405. <param name="o" type="java.lang.Object"/>
  11406. <doc>
  11407. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11408. </doc>
  11409. </method>
  11410. <method name="hashCode" return="int"
  11411. abstract="false" native="false" synchronized="false"
  11412. static="false" final="false" visibility="public"
  11413. deprecated="not deprecated">
  11414. </method>
  11415. <method name="compareTo" return="int"
  11416. abstract="false" native="false" synchronized="false"
  11417. static="false" final="false" visibility="public"
  11418. deprecated="not deprecated">
  11419. <param name="o" type="java.lang.Object"/>
  11420. <doc>
  11421. <![CDATA[Compares two LongWritables.]]>
  11422. </doc>
  11423. </method>
  11424. <method name="toString" return="java.lang.String"
  11425. abstract="false" native="false" synchronized="false"
  11426. static="false" final="false" visibility="public"
  11427. deprecated="not deprecated">
  11428. </method>
  11429. <doc>
  11430. <![CDATA[A WritableComparable for longs.]]>
  11431. </doc>
  11432. </class>
  11433. <!-- end class org.apache.hadoop.io.LongWritable -->
  11434. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11435. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11436. abstract="false"
  11437. static="true" final="false" visibility="public"
  11438. deprecated="not deprecated">
  11439. <constructor name="LongWritable.Comparator"
  11440. static="false" final="false" visibility="public"
  11441. deprecated="not deprecated">
  11442. </constructor>
  11443. <method name="compare" return="int"
  11444. abstract="false" native="false" synchronized="false"
  11445. static="false" final="false" visibility="public"
  11446. deprecated="not deprecated">
  11447. <param name="b1" type="byte[]"/>
  11448. <param name="s1" type="int"/>
  11449. <param name="l1" type="int"/>
  11450. <param name="b2" type="byte[]"/>
  11451. <param name="s2" type="int"/>
  11452. <param name="l2" type="int"/>
  11453. </method>
  11454. <doc>
  11455. <![CDATA[A Comparator optimized for LongWritable.]]>
  11456. </doc>
  11457. </class>
  11458. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11459. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11460. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11461. abstract="false"
  11462. static="true" final="false" visibility="public"
  11463. deprecated="not deprecated">
  11464. <constructor name="LongWritable.DecreasingComparator"
  11465. static="false" final="false" visibility="public"
  11466. deprecated="not deprecated">
  11467. </constructor>
  11468. <method name="compare" return="int"
  11469. abstract="false" native="false" synchronized="false"
  11470. static="false" final="false" visibility="public"
  11471. deprecated="not deprecated">
  11472. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11473. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11474. </method>
  11475. <method name="compare" return="int"
  11476. abstract="false" native="false" synchronized="false"
  11477. static="false" final="false" visibility="public"
  11478. deprecated="not deprecated">
  11479. <param name="b1" type="byte[]"/>
  11480. <param name="s1" type="int"/>
  11481. <param name="l1" type="int"/>
  11482. <param name="b2" type="byte[]"/>
  11483. <param name="s2" type="int"/>
  11484. <param name="l2" type="int"/>
  11485. </method>
  11486. <doc>
  11487. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11488. </doc>
  11489. </class>
  11490. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11491. <!-- start class org.apache.hadoop.io.MapFile -->
  11492. <class name="MapFile" extends="java.lang.Object"
  11493. abstract="false"
  11494. static="false" final="false" visibility="public"
  11495. deprecated="not deprecated">
  11496. <constructor name="MapFile"
  11497. static="false" final="false" visibility="protected"
  11498. deprecated="not deprecated">
  11499. </constructor>
  11500. <method name="rename"
  11501. abstract="false" native="false" synchronized="false"
  11502. static="true" final="false" visibility="public"
  11503. deprecated="not deprecated">
  11504. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11505. <param name="oldName" type="java.lang.String"/>
  11506. <param name="newName" type="java.lang.String"/>
  11507. <exception name="IOException" type="java.io.IOException"/>
  11508. <doc>
  11509. <![CDATA[Renames an existing map directory.]]>
  11510. </doc>
  11511. </method>
  11512. <method name="delete"
  11513. abstract="false" native="false" synchronized="false"
  11514. static="true" final="false" visibility="public"
  11515. deprecated="not deprecated">
  11516. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11517. <param name="name" type="java.lang.String"/>
  11518. <exception name="IOException" type="java.io.IOException"/>
  11519. <doc>
  11520. <![CDATA[Deletes the named map file.]]>
  11521. </doc>
  11522. </method>
  11523. <method name="fix" return="long"
  11524. abstract="false" native="false" synchronized="false"
  11525. static="true" final="false" visibility="public"
  11526. deprecated="not deprecated">
  11527. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11528. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11529. <param name="keyClass" type="java.lang.Class"/>
  11530. <param name="valueClass" type="java.lang.Class"/>
  11531. <param name="dryrun" type="boolean"/>
  11532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11533. <exception name="Exception" type="java.lang.Exception"/>
  11534. <doc>
  11535. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11536. @param fs filesystem
  11537. @param dir directory containing the MapFile data and index
  11538. @param keyClass key class (has to be a subclass of Writable)
  11539. @param valueClass value class (has to be a subclass of Writable)
  11540. @param dryrun do not perform any changes, just report what needs to be done
  11541. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11542. @throws Exception]]>
  11543. </doc>
  11544. </method>
  11545. <method name="main"
  11546. abstract="false" native="false" synchronized="false"
  11547. static="true" final="false" visibility="public"
  11548. deprecated="not deprecated">
  11549. <param name="args" type="java.lang.String[]"/>
  11550. <exception name="Exception" type="java.lang.Exception"/>
  11551. </method>
  11552. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11553. transient="false" volatile="false"
  11554. static="true" final="true" visibility="public"
  11555. deprecated="not deprecated">
  11556. <doc>
  11557. <![CDATA[The name of the index file.]]>
  11558. </doc>
  11559. </field>
  11560. <field name="DATA_FILE_NAME" type="java.lang.String"
  11561. transient="false" volatile="false"
  11562. static="true" final="true" visibility="public"
  11563. deprecated="not deprecated">
  11564. <doc>
  11565. <![CDATA[The name of the data file.]]>
  11566. </doc>
  11567. </field>
  11568. <doc>
  11569. <![CDATA[A file-based map from keys to values.
  11570. <p>A map is a directory containing two files, the <code>data</code> file,
  11571. containing all keys and values in the map, and a smaller <code>index</code>
  11572. file, containing a fraction of the keys. The fraction is determined by
  11573. {@link Writer#getIndexInterval()}.
  11574. <p>The index file is read entirely into memory. Thus key implementations
  11575. should try to keep themselves small.
  11576. <p>Map files are created by adding entries in-order. To maintain a large
  11577. database, perform updates by copying the previous version of a database and
  11578. merging in a sorted change list, to create a new version of the database in
  11579. a new file. Sorting large change lists can be done with {@link
  11580. SequenceFile.Sorter}.]]>
  11581. </doc>
  11582. </class>
  11583. <!-- end class org.apache.hadoop.io.MapFile -->
  11584. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11585. <class name="MapFile.Reader" extends="java.lang.Object"
  11586. abstract="false"
  11587. static="true" final="false" visibility="public"
  11588. deprecated="not deprecated">
  11589. <implements name="java.io.Closeable"/>
  11590. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11591. static="false" final="false" visibility="public"
  11592. deprecated="not deprecated">
  11593. <exception name="IOException" type="java.io.IOException"/>
  11594. <doc>
  11595. <![CDATA[Construct a map reader for the named map.]]>
  11596. </doc>
  11597. </constructor>
  11598. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11599. static="false" final="false" visibility="public"
  11600. deprecated="not deprecated">
  11601. <exception name="IOException" type="java.io.IOException"/>
  11602. <doc>
  11603. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11604. </doc>
  11605. </constructor>
  11606. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11607. static="false" final="false" visibility="protected"
  11608. deprecated="not deprecated">
  11609. <exception name="IOException" type="java.io.IOException"/>
  11610. <doc>
  11611. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11612. initialization is complete.
  11613. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11614. </doc>
  11615. </constructor>
  11616. <method name="getKeyClass" return="java.lang.Class"
  11617. abstract="false" native="false" synchronized="false"
  11618. static="false" final="false" visibility="public"
  11619. deprecated="not deprecated">
  11620. <doc>
  11621. <![CDATA[Returns the class of keys in this file.]]>
  11622. </doc>
  11623. </method>
  11624. <method name="getValueClass" return="java.lang.Class"
  11625. abstract="false" native="false" synchronized="false"
  11626. static="false" final="false" visibility="public"
  11627. deprecated="not deprecated">
  11628. <doc>
  11629. <![CDATA[Returns the class of values in this file.]]>
  11630. </doc>
  11631. </method>
  11632. <method name="open"
  11633. abstract="false" native="false" synchronized="true"
  11634. static="false" final="false" visibility="protected"
  11635. deprecated="not deprecated">
  11636. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11637. <param name="dirName" type="java.lang.String"/>
  11638. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11640. <exception name="IOException" type="java.io.IOException"/>
  11641. </method>
  11642. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11643. abstract="false" native="false" synchronized="false"
  11644. static="false" final="false" visibility="protected"
  11645. deprecated="not deprecated">
  11646. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11647. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11648. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11649. <exception name="IOException" type="java.io.IOException"/>
  11650. <doc>
  11651. <![CDATA[Override this method to specialize the type of
  11652. {@link SequenceFile.Reader} returned.]]>
  11653. </doc>
  11654. </method>
  11655. <method name="reset"
  11656. abstract="false" native="false" synchronized="true"
  11657. static="false" final="false" visibility="public"
  11658. deprecated="not deprecated">
  11659. <exception name="IOException" type="java.io.IOException"/>
  11660. <doc>
  11661. <![CDATA[Re-positions the reader before its first key.]]>
  11662. </doc>
  11663. </method>
  11664. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11665. abstract="false" native="false" synchronized="true"
  11666. static="false" final="false" visibility="public"
  11667. deprecated="not deprecated">
  11668. <exception name="IOException" type="java.io.IOException"/>
  11669. <doc>
  11670. <![CDATA[Get the key at approximately the middle of the file.
  11671. @throws IOException]]>
  11672. </doc>
  11673. </method>
  11674. <method name="finalKey"
  11675. abstract="false" native="false" synchronized="true"
  11676. static="false" final="false" visibility="public"
  11677. deprecated="not deprecated">
  11678. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11679. <exception name="IOException" type="java.io.IOException"/>
  11680. <doc>
  11681. <![CDATA[Reads the final key from the file.
  11682. @param key key to read into]]>
  11683. </doc>
  11684. </method>
  11685. <method name="seek" return="boolean"
  11686. abstract="false" native="false" synchronized="true"
  11687. static="false" final="false" visibility="public"
  11688. deprecated="not deprecated">
  11689. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11690. <exception name="IOException" type="java.io.IOException"/>
  11691. <doc>
  11692. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11693. first entry after the named key. Returns true iff the named key exists
  11694. in this map.]]>
  11695. </doc>
  11696. </method>
  11697. <method name="next" return="boolean"
  11698. abstract="false" native="false" synchronized="true"
  11699. static="false" final="false" visibility="public"
  11700. deprecated="not deprecated">
  11701. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11702. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11703. <exception name="IOException" type="java.io.IOException"/>
  11704. <doc>
  11705. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11706. <code>val</code>. Returns true if such a pair exists and false when at
  11707. the end of the map]]>
  11708. </doc>
  11709. </method>
  11710. <method name="get" return="org.apache.hadoop.io.Writable"
  11711. abstract="false" native="false" synchronized="true"
  11712. static="false" final="false" visibility="public"
  11713. deprecated="not deprecated">
  11714. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11715. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11716. <exception name="IOException" type="java.io.IOException"/>
  11717. <doc>
  11718. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11719. </doc>
  11720. </method>
  11721. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11722. abstract="false" native="false" synchronized="true"
  11723. static="false" final="false" visibility="public"
  11724. deprecated="not deprecated">
  11725. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11726. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11727. <exception name="IOException" type="java.io.IOException"/>
  11728. <doc>
  11729. <![CDATA[Finds the record that is the closest match to the specified key.
  11730. Returns <code>key</code> or if it does not exist, at the first entry
  11731. after the named key.
  11732. - * @param key - key that we're trying to find
  11733. - * @param val - data value if key is found
  11734. - * @return - the key that was the closest match or null if eof.]]>
  11735. </doc>
  11736. </method>
  11737. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11738. abstract="false" native="false" synchronized="true"
  11739. static="false" final="false" visibility="public"
  11740. deprecated="not deprecated">
  11741. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11742. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11743. <param name="before" type="boolean"/>
  11744. <exception name="IOException" type="java.io.IOException"/>
  11745. <doc>
  11746. <![CDATA[Finds the record that is the closest match to the specified key.
  11747. @param key - key that we're trying to find
  11748. @param val - data value if key is found
  11749. @param before - IF true, and <code>key</code> does not exist, return
  11750. the first entry that falls just before the <code>key</code>. Otherwise,
  11751. return the record that sorts just after.
  11752. @return - the key that was the closest match or null if eof.]]>
  11753. </doc>
  11754. </method>
  11755. <method name="close"
  11756. abstract="false" native="false" synchronized="true"
  11757. static="false" final="false" visibility="public"
  11758. deprecated="not deprecated">
  11759. <exception name="IOException" type="java.io.IOException"/>
  11760. <doc>
  11761. <![CDATA[Close the map.]]>
  11762. </doc>
  11763. </method>
  11764. <doc>
  11765. <![CDATA[Provide access to an existing map.]]>
  11766. </doc>
  11767. </class>
  11768. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11769. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11770. <class name="MapFile.Writer" extends="java.lang.Object"
  11771. abstract="false"
  11772. static="true" final="false" visibility="public"
  11773. deprecated="not deprecated">
  11774. <implements name="java.io.Closeable"/>
  11775. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11776. static="false" final="false" visibility="public"
  11777. deprecated="not deprecated">
  11778. <exception name="IOException" type="java.io.IOException"/>
  11779. <doc>
  11780. <![CDATA[Create the named map for keys of the named class.]]>
  11781. </doc>
  11782. </constructor>
  11783. <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"
  11784. static="false" final="false" visibility="public"
  11785. deprecated="not deprecated">
  11786. <exception name="IOException" type="java.io.IOException"/>
  11787. <doc>
  11788. <![CDATA[Create the named map for keys of the named class.]]>
  11789. </doc>
  11790. </constructor>
  11791. <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"
  11792. static="false" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <exception name="IOException" type="java.io.IOException"/>
  11795. <doc>
  11796. <![CDATA[Create the named map for keys of the named class.]]>
  11797. </doc>
  11798. </constructor>
  11799. <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"
  11800. static="false" final="false" visibility="public"
  11801. deprecated="not deprecated">
  11802. <exception name="IOException" type="java.io.IOException"/>
  11803. <doc>
  11804. <![CDATA[Create the named map for keys of the named class.]]>
  11805. </doc>
  11806. </constructor>
  11807. <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"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <exception name="IOException" type="java.io.IOException"/>
  11811. <doc>
  11812. <![CDATA[Create the named map using the named key comparator.]]>
  11813. </doc>
  11814. </constructor>
  11815. <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"
  11816. static="false" final="false" visibility="public"
  11817. deprecated="not deprecated">
  11818. <exception name="IOException" type="java.io.IOException"/>
  11819. <doc>
  11820. <![CDATA[Create the named map using the named key comparator.]]>
  11821. </doc>
  11822. </constructor>
  11823. <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"
  11824. static="false" final="false" visibility="public"
  11825. deprecated="not deprecated">
  11826. <exception name="IOException" type="java.io.IOException"/>
  11827. <doc>
  11828. <![CDATA[Create the named map using the named key comparator.]]>
  11829. </doc>
  11830. </constructor>
  11831. <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"
  11832. static="false" final="false" visibility="public"
  11833. deprecated="not deprecated">
  11834. <exception name="IOException" type="java.io.IOException"/>
  11835. <doc>
  11836. <![CDATA[Create the named map using the named key comparator.]]>
  11837. </doc>
  11838. </constructor>
  11839. <method name="getIndexInterval" return="int"
  11840. abstract="false" native="false" synchronized="false"
  11841. static="false" final="false" visibility="public"
  11842. deprecated="not deprecated">
  11843. <doc>
  11844. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11845. </doc>
  11846. </method>
  11847. <method name="setIndexInterval"
  11848. abstract="false" native="false" synchronized="false"
  11849. static="false" final="false" visibility="public"
  11850. deprecated="not deprecated">
  11851. <param name="interval" type="int"/>
  11852. <doc>
  11853. <![CDATA[Sets the index interval.
  11854. @see #getIndexInterval()]]>
  11855. </doc>
  11856. </method>
  11857. <method name="setIndexInterval"
  11858. abstract="false" native="false" synchronized="false"
  11859. static="true" final="false" visibility="public"
  11860. deprecated="not deprecated">
  11861. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11862. <param name="interval" type="int"/>
  11863. <doc>
  11864. <![CDATA[Sets the index interval and stores it in conf
  11865. @see #getIndexInterval()]]>
  11866. </doc>
  11867. </method>
  11868. <method name="close"
  11869. abstract="false" native="false" synchronized="true"
  11870. static="false" final="false" visibility="public"
  11871. deprecated="not deprecated">
  11872. <exception name="IOException" type="java.io.IOException"/>
  11873. <doc>
  11874. <![CDATA[Close the map.]]>
  11875. </doc>
  11876. </method>
  11877. <method name="append"
  11878. abstract="false" native="false" synchronized="true"
  11879. static="false" final="false" visibility="public"
  11880. deprecated="not deprecated">
  11881. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11882. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11883. <exception name="IOException" type="java.io.IOException"/>
  11884. <doc>
  11885. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11886. to the previous key added to the map.]]>
  11887. </doc>
  11888. </method>
  11889. <doc>
  11890. <![CDATA[Writes a new map.]]>
  11891. </doc>
  11892. </class>
  11893. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11894. <!-- start class org.apache.hadoop.io.MapWritable -->
  11895. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11896. abstract="false"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. <implements name="java.util.Map"/>
  11900. <constructor name="MapWritable"
  11901. static="false" final="false" visibility="public"
  11902. deprecated="not deprecated">
  11903. <doc>
  11904. <![CDATA[Default constructor.]]>
  11905. </doc>
  11906. </constructor>
  11907. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11908. static="false" final="false" visibility="public"
  11909. deprecated="not deprecated">
  11910. <doc>
  11911. <![CDATA[Copy constructor.
  11912. @param other the map to copy from]]>
  11913. </doc>
  11914. </constructor>
  11915. <method name="clear"
  11916. abstract="false" native="false" synchronized="false"
  11917. static="false" final="false" visibility="public"
  11918. deprecated="not deprecated">
  11919. <doc>
  11920. <![CDATA[{@inheritDoc}]]>
  11921. </doc>
  11922. </method>
  11923. <method name="containsKey" return="boolean"
  11924. abstract="false" native="false" synchronized="false"
  11925. static="false" final="false" visibility="public"
  11926. deprecated="not deprecated">
  11927. <param name="key" type="java.lang.Object"/>
  11928. <doc>
  11929. <![CDATA[{@inheritDoc}]]>
  11930. </doc>
  11931. </method>
  11932. <method name="containsValue" return="boolean"
  11933. abstract="false" native="false" synchronized="false"
  11934. static="false" final="false" visibility="public"
  11935. deprecated="not deprecated">
  11936. <param name="value" type="java.lang.Object"/>
  11937. <doc>
  11938. <![CDATA[{@inheritDoc}]]>
  11939. </doc>
  11940. </method>
  11941. <method name="entrySet" return="java.util.Set"
  11942. abstract="false" native="false" synchronized="false"
  11943. static="false" final="false" visibility="public"
  11944. deprecated="not deprecated">
  11945. <doc>
  11946. <![CDATA[{@inheritDoc}]]>
  11947. </doc>
  11948. </method>
  11949. <method name="get" return="org.apache.hadoop.io.Writable"
  11950. abstract="false" native="false" synchronized="false"
  11951. static="false" final="false" visibility="public"
  11952. deprecated="not deprecated">
  11953. <param name="key" type="java.lang.Object"/>
  11954. <doc>
  11955. <![CDATA[{@inheritDoc}]]>
  11956. </doc>
  11957. </method>
  11958. <method name="isEmpty" return="boolean"
  11959. abstract="false" native="false" synchronized="false"
  11960. static="false" final="false" visibility="public"
  11961. deprecated="not deprecated">
  11962. <doc>
  11963. <![CDATA[{@inheritDoc}]]>
  11964. </doc>
  11965. </method>
  11966. <method name="keySet" return="java.util.Set"
  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="put" return="org.apache.hadoop.io.Writable"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="false" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11979. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11980. <doc>
  11981. <![CDATA[{@inheritDoc}]]>
  11982. </doc>
  11983. </method>
  11984. <method name="putAll"
  11985. abstract="false" native="false" synchronized="false"
  11986. static="false" final="false" visibility="public"
  11987. deprecated="not deprecated">
  11988. <param name="t" type="java.util.Map"/>
  11989. <doc>
  11990. <![CDATA[{@inheritDoc}]]>
  11991. </doc>
  11992. </method>
  11993. <method name="remove" return="org.apache.hadoop.io.Writable"
  11994. abstract="false" native="false" synchronized="false"
  11995. static="false" final="false" visibility="public"
  11996. deprecated="not deprecated">
  11997. <param name="key" type="java.lang.Object"/>
  11998. <doc>
  11999. <![CDATA[{@inheritDoc}]]>
  12000. </doc>
  12001. </method>
  12002. <method name="size" return="int"
  12003. abstract="false" native="false" synchronized="false"
  12004. static="false" final="false" visibility="public"
  12005. deprecated="not deprecated">
  12006. <doc>
  12007. <![CDATA[{@inheritDoc}]]>
  12008. </doc>
  12009. </method>
  12010. <method name="values" return="java.util.Collection"
  12011. abstract="false" native="false" synchronized="false"
  12012. static="false" final="false" visibility="public"
  12013. deprecated="not deprecated">
  12014. <doc>
  12015. <![CDATA[{@inheritDoc}]]>
  12016. </doc>
  12017. </method>
  12018. <method name="write"
  12019. abstract="false" native="false" synchronized="false"
  12020. static="false" final="false" visibility="public"
  12021. deprecated="not deprecated">
  12022. <param name="out" type="java.io.DataOutput"/>
  12023. <exception name="IOException" type="java.io.IOException"/>
  12024. <doc>
  12025. <![CDATA[{@inheritDoc}]]>
  12026. </doc>
  12027. </method>
  12028. <method name="readFields"
  12029. abstract="false" native="false" synchronized="false"
  12030. static="false" final="false" visibility="public"
  12031. deprecated="not deprecated">
  12032. <param name="in" type="java.io.DataInput"/>
  12033. <exception name="IOException" type="java.io.IOException"/>
  12034. <doc>
  12035. <![CDATA[{@inheritDoc}]]>
  12036. </doc>
  12037. </method>
  12038. <doc>
  12039. <![CDATA[A Writable Map.]]>
  12040. </doc>
  12041. </class>
  12042. <!-- end class org.apache.hadoop.io.MapWritable -->
  12043. <!-- start class org.apache.hadoop.io.MD5Hash -->
  12044. <class name="MD5Hash" extends="java.lang.Object"
  12045. abstract="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12049. <constructor name="MD5Hash"
  12050. static="false" final="false" visibility="public"
  12051. deprecated="not deprecated">
  12052. <doc>
  12053. <![CDATA[Constructs an MD5Hash.]]>
  12054. </doc>
  12055. </constructor>
  12056. <constructor name="MD5Hash" type="java.lang.String"
  12057. static="false" final="false" visibility="public"
  12058. deprecated="not deprecated">
  12059. <doc>
  12060. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  12061. </doc>
  12062. </constructor>
  12063. <constructor name="MD5Hash" type="byte[]"
  12064. static="false" final="false" visibility="public"
  12065. deprecated="not deprecated">
  12066. <doc>
  12067. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  12068. </doc>
  12069. </constructor>
  12070. <method name="readFields"
  12071. abstract="false" native="false" synchronized="false"
  12072. static="false" final="false" visibility="public"
  12073. deprecated="not deprecated">
  12074. <param name="in" type="java.io.DataInput"/>
  12075. <exception name="IOException" type="java.io.IOException"/>
  12076. </method>
  12077. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12078. abstract="false" native="false" synchronized="false"
  12079. static="true" final="false" visibility="public"
  12080. deprecated="not deprecated">
  12081. <param name="in" type="java.io.DataInput"/>
  12082. <exception name="IOException" type="java.io.IOException"/>
  12083. <doc>
  12084. <![CDATA[Constructs, reads and returns an instance.]]>
  12085. </doc>
  12086. </method>
  12087. <method name="write"
  12088. abstract="false" native="false" synchronized="false"
  12089. static="false" final="false" visibility="public"
  12090. deprecated="not deprecated">
  12091. <param name="out" type="java.io.DataOutput"/>
  12092. <exception name="IOException" type="java.io.IOException"/>
  12093. </method>
  12094. <method name="set"
  12095. abstract="false" native="false" synchronized="false"
  12096. static="false" final="false" visibility="public"
  12097. deprecated="not deprecated">
  12098. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12099. <doc>
  12100. <![CDATA[Copy the contents of another instance into this instance.]]>
  12101. </doc>
  12102. </method>
  12103. <method name="getDigest" return="byte[]"
  12104. abstract="false" native="false" synchronized="false"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. <doc>
  12108. <![CDATA[Returns the digest bytes.]]>
  12109. </doc>
  12110. </method>
  12111. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12112. abstract="false" native="false" synchronized="false"
  12113. static="true" final="false" visibility="public"
  12114. deprecated="not deprecated">
  12115. <param name="data" type="byte[]"/>
  12116. <doc>
  12117. <![CDATA[Construct a hash value for a byte array.]]>
  12118. </doc>
  12119. </method>
  12120. <method name="getDigester" return="java.security.MessageDigest"
  12121. abstract="false" native="false" synchronized="false"
  12122. static="true" final="false" visibility="public"
  12123. deprecated="not deprecated">
  12124. <doc>
  12125. <![CDATA[Create a thread local MD5 digester]]>
  12126. </doc>
  12127. </method>
  12128. <method name="digest" 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.InputStream"/>
  12133. <exception name="IOException" type="java.io.IOException"/>
  12134. <doc>
  12135. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12136. </doc>
  12137. </method>
  12138. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12139. abstract="false" native="false" synchronized="false"
  12140. static="true" final="false" visibility="public"
  12141. deprecated="not deprecated">
  12142. <param name="data" type="byte[]"/>
  12143. <param name="start" type="int"/>
  12144. <param name="len" type="int"/>
  12145. <doc>
  12146. <![CDATA[Construct a hash value for a byte array.]]>
  12147. </doc>
  12148. </method>
  12149. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="true" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <param name="string" type="java.lang.String"/>
  12154. <doc>
  12155. <![CDATA[Construct a hash value for a String.]]>
  12156. </doc>
  12157. </method>
  12158. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12159. abstract="false" native="false" synchronized="false"
  12160. static="true" final="false" visibility="public"
  12161. deprecated="not deprecated">
  12162. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12163. <doc>
  12164. <![CDATA[Construct a hash value for a String.]]>
  12165. </doc>
  12166. </method>
  12167. <method name="halfDigest" return="long"
  12168. abstract="false" native="false" synchronized="false"
  12169. static="false" final="false" visibility="public"
  12170. deprecated="not deprecated">
  12171. <doc>
  12172. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12173. </doc>
  12174. </method>
  12175. <method name="quarterDigest" return="int"
  12176. abstract="false" native="false" synchronized="false"
  12177. static="false" final="false" visibility="public"
  12178. deprecated="not deprecated">
  12179. <doc>
  12180. <![CDATA[Return a 32-bit digest of the MD5.
  12181. @return the first 4 bytes of the md5]]>
  12182. </doc>
  12183. </method>
  12184. <method name="equals" return="boolean"
  12185. abstract="false" native="false" synchronized="false"
  12186. static="false" final="false" visibility="public"
  12187. deprecated="not deprecated">
  12188. <param name="o" type="java.lang.Object"/>
  12189. <doc>
  12190. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12191. same values.]]>
  12192. </doc>
  12193. </method>
  12194. <method name="hashCode" return="int"
  12195. abstract="false" native="false" synchronized="false"
  12196. static="false" final="false" visibility="public"
  12197. deprecated="not deprecated">
  12198. <doc>
  12199. <![CDATA[Returns a hash code value for this object.
  12200. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12201. </doc>
  12202. </method>
  12203. <method name="compareTo" return="int"
  12204. abstract="false" native="false" synchronized="false"
  12205. static="false" final="false" visibility="public"
  12206. deprecated="not deprecated">
  12207. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12208. <doc>
  12209. <![CDATA[Compares this object with the specified object for order.]]>
  12210. </doc>
  12211. </method>
  12212. <method name="toString" return="java.lang.String"
  12213. abstract="false" native="false" synchronized="false"
  12214. static="false" final="false" visibility="public"
  12215. deprecated="not deprecated">
  12216. <doc>
  12217. <![CDATA[Returns a string representation of this object.]]>
  12218. </doc>
  12219. </method>
  12220. <method name="setDigest"
  12221. abstract="false" native="false" synchronized="false"
  12222. static="false" final="false" visibility="public"
  12223. deprecated="not deprecated">
  12224. <param name="hex" type="java.lang.String"/>
  12225. <doc>
  12226. <![CDATA[Sets the digest value from a hex string.]]>
  12227. </doc>
  12228. </method>
  12229. <field name="MD5_LEN" type="int"
  12230. transient="false" volatile="false"
  12231. static="true" final="true" visibility="public"
  12232. deprecated="not deprecated">
  12233. </field>
  12234. <doc>
  12235. <![CDATA[A Writable for MD5 hash values.]]>
  12236. </doc>
  12237. </class>
  12238. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12239. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12240. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12241. abstract="false"
  12242. static="true" final="false" visibility="public"
  12243. deprecated="not deprecated">
  12244. <constructor name="MD5Hash.Comparator"
  12245. static="false" final="false" visibility="public"
  12246. deprecated="not deprecated">
  12247. </constructor>
  12248. <method name="compare" return="int"
  12249. abstract="false" native="false" synchronized="false"
  12250. static="false" final="false" visibility="public"
  12251. deprecated="not deprecated">
  12252. <param name="b1" type="byte[]"/>
  12253. <param name="s1" type="int"/>
  12254. <param name="l1" type="int"/>
  12255. <param name="b2" type="byte[]"/>
  12256. <param name="s2" type="int"/>
  12257. <param name="l2" type="int"/>
  12258. </method>
  12259. <doc>
  12260. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12261. </doc>
  12262. </class>
  12263. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12264. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12265. <class name="MultipleIOException" extends="java.io.IOException"
  12266. abstract="false"
  12267. static="false" final="false" visibility="public"
  12268. deprecated="not deprecated">
  12269. <method name="getExceptions" return="java.util.List"
  12270. abstract="false" native="false" synchronized="false"
  12271. static="false" final="false" visibility="public"
  12272. deprecated="not deprecated">
  12273. <doc>
  12274. <![CDATA[@return the underlying exceptions]]>
  12275. </doc>
  12276. </method>
  12277. <method name="createIOException" return="java.io.IOException"
  12278. abstract="false" native="false" synchronized="false"
  12279. static="true" final="false" visibility="public"
  12280. deprecated="not deprecated">
  12281. <param name="exceptions" type="java.util.List"/>
  12282. <doc>
  12283. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12284. </doc>
  12285. </method>
  12286. <doc>
  12287. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12288. </doc>
  12289. </class>
  12290. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12291. <!-- start class org.apache.hadoop.io.NullWritable -->
  12292. <class name="NullWritable" extends="java.lang.Object"
  12293. abstract="false"
  12294. static="false" final="false" visibility="public"
  12295. deprecated="not deprecated">
  12296. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12297. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12298. abstract="false" native="false" synchronized="false"
  12299. static="true" final="false" visibility="public"
  12300. deprecated="not deprecated">
  12301. <doc>
  12302. <![CDATA[Returns the single instance of this class.]]>
  12303. </doc>
  12304. </method>
  12305. <method name="toString" return="java.lang.String"
  12306. abstract="false" native="false" synchronized="false"
  12307. static="false" final="false" visibility="public"
  12308. deprecated="not deprecated">
  12309. </method>
  12310. <method name="hashCode" return="int"
  12311. abstract="false" native="false" synchronized="false"
  12312. static="false" final="false" visibility="public"
  12313. deprecated="not deprecated">
  12314. </method>
  12315. <method name="compareTo" return="int"
  12316. abstract="false" native="false" synchronized="false"
  12317. static="false" final="false" visibility="public"
  12318. deprecated="not deprecated">
  12319. <param name="other" type="java.lang.Object"/>
  12320. </method>
  12321. <method name="equals" return="boolean"
  12322. abstract="false" native="false" synchronized="false"
  12323. static="false" final="false" visibility="public"
  12324. deprecated="not deprecated">
  12325. <param name="other" type="java.lang.Object"/>
  12326. </method>
  12327. <method name="readFields"
  12328. abstract="false" native="false" synchronized="false"
  12329. static="false" final="false" visibility="public"
  12330. deprecated="not deprecated">
  12331. <param name="in" type="java.io.DataInput"/>
  12332. <exception name="IOException" type="java.io.IOException"/>
  12333. </method>
  12334. <method name="write"
  12335. abstract="false" native="false" synchronized="false"
  12336. static="false" final="false" visibility="public"
  12337. deprecated="not deprecated">
  12338. <param name="out" type="java.io.DataOutput"/>
  12339. <exception name="IOException" type="java.io.IOException"/>
  12340. </method>
  12341. <doc>
  12342. <![CDATA[Singleton Writable with no data.]]>
  12343. </doc>
  12344. </class>
  12345. <!-- end class org.apache.hadoop.io.NullWritable -->
  12346. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12347. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12348. abstract="false"
  12349. static="true" final="false" visibility="public"
  12350. deprecated="not deprecated">
  12351. <constructor name="NullWritable.Comparator"
  12352. static="false" final="false" visibility="public"
  12353. deprecated="not deprecated">
  12354. </constructor>
  12355. <method name="compare" return="int"
  12356. abstract="false" native="false" synchronized="false"
  12357. static="false" final="false" visibility="public"
  12358. deprecated="not deprecated">
  12359. <param name="b1" type="byte[]"/>
  12360. <param name="s1" type="int"/>
  12361. <param name="l1" type="int"/>
  12362. <param name="b2" type="byte[]"/>
  12363. <param name="s2" type="int"/>
  12364. <param name="l2" type="int"/>
  12365. <doc>
  12366. <![CDATA[Compare the buffers in serialized form.]]>
  12367. </doc>
  12368. </method>
  12369. <doc>
  12370. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12371. </doc>
  12372. </class>
  12373. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12374. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12375. <class name="ObjectWritable" extends="java.lang.Object"
  12376. abstract="false"
  12377. static="false" final="false" visibility="public"
  12378. deprecated="not deprecated">
  12379. <implements name="org.apache.hadoop.io.Writable"/>
  12380. <implements name="org.apache.hadoop.conf.Configurable"/>
  12381. <constructor name="ObjectWritable"
  12382. static="false" final="false" visibility="public"
  12383. deprecated="not deprecated">
  12384. </constructor>
  12385. <constructor name="ObjectWritable" type="java.lang.Object"
  12386. static="false" final="false" visibility="public"
  12387. deprecated="not deprecated">
  12388. </constructor>
  12389. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12390. static="false" final="false" visibility="public"
  12391. deprecated="not deprecated">
  12392. </constructor>
  12393. <method name="get" return="java.lang.Object"
  12394. abstract="false" native="false" synchronized="false"
  12395. static="false" final="false" visibility="public"
  12396. deprecated="not deprecated">
  12397. <doc>
  12398. <![CDATA[Return the instance, or null if none.]]>
  12399. </doc>
  12400. </method>
  12401. <method name="getDeclaredClass" return="java.lang.Class"
  12402. abstract="false" native="false" synchronized="false"
  12403. static="false" final="false" visibility="public"
  12404. deprecated="not deprecated">
  12405. <doc>
  12406. <![CDATA[Return the class this is meant to be.]]>
  12407. </doc>
  12408. </method>
  12409. <method name="set"
  12410. abstract="false" native="false" synchronized="false"
  12411. static="false" final="false" visibility="public"
  12412. deprecated="not deprecated">
  12413. <param name="instance" type="java.lang.Object"/>
  12414. <doc>
  12415. <![CDATA[Reset the instance.]]>
  12416. </doc>
  12417. </method>
  12418. <method name="toString" return="java.lang.String"
  12419. abstract="false" native="false" synchronized="false"
  12420. static="false" final="false" visibility="public"
  12421. deprecated="not deprecated">
  12422. </method>
  12423. <method name="readFields"
  12424. abstract="false" native="false" synchronized="false"
  12425. static="false" final="false" visibility="public"
  12426. deprecated="not deprecated">
  12427. <param name="in" type="java.io.DataInput"/>
  12428. <exception name="IOException" type="java.io.IOException"/>
  12429. </method>
  12430. <method name="write"
  12431. abstract="false" native="false" synchronized="false"
  12432. static="false" final="false" visibility="public"
  12433. deprecated="not deprecated">
  12434. <param name="out" type="java.io.DataOutput"/>
  12435. <exception name="IOException" type="java.io.IOException"/>
  12436. </method>
  12437. <method name="writeObject"
  12438. abstract="false" native="false" synchronized="false"
  12439. static="true" final="false" visibility="public"
  12440. deprecated="not deprecated">
  12441. <param name="out" type="java.io.DataOutput"/>
  12442. <param name="instance" type="java.lang.Object"/>
  12443. <param name="declaredClass" type="java.lang.Class"/>
  12444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12445. <exception name="IOException" type="java.io.IOException"/>
  12446. <doc>
  12447. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12448. the preceding.]]>
  12449. </doc>
  12450. </method>
  12451. <method name="readObject" return="java.lang.Object"
  12452. abstract="false" native="false" synchronized="false"
  12453. static="true" final="false" visibility="public"
  12454. deprecated="not deprecated">
  12455. <param name="in" type="java.io.DataInput"/>
  12456. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12457. <exception name="IOException" type="java.io.IOException"/>
  12458. <doc>
  12459. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12460. the preceding.]]>
  12461. </doc>
  12462. </method>
  12463. <method name="readObject" return="java.lang.Object"
  12464. abstract="false" native="false" synchronized="false"
  12465. static="true" final="false" visibility="public"
  12466. deprecated="not deprecated">
  12467. <param name="in" type="java.io.DataInput"/>
  12468. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12470. <exception name="IOException" type="java.io.IOException"/>
  12471. <doc>
  12472. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12473. the preceding.]]>
  12474. </doc>
  12475. </method>
  12476. <method name="setConf"
  12477. abstract="false" native="false" synchronized="false"
  12478. static="false" final="false" visibility="public"
  12479. deprecated="not deprecated">
  12480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12481. </method>
  12482. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12483. abstract="false" native="false" synchronized="false"
  12484. static="false" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. </method>
  12487. <doc>
  12488. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12489. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12490. </doc>
  12491. </class>
  12492. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12493. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12494. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12495. abstract="false"
  12496. static="false" final="false" visibility="public"
  12497. deprecated="not deprecated">
  12498. <constructor name="OutputBuffer"
  12499. static="false" final="false" visibility="public"
  12500. deprecated="not deprecated">
  12501. <doc>
  12502. <![CDATA[Constructs a new empty buffer.]]>
  12503. </doc>
  12504. </constructor>
  12505. <method name="getData" return="byte[]"
  12506. abstract="false" native="false" synchronized="false"
  12507. static="false" final="false" visibility="public"
  12508. deprecated="not deprecated">
  12509. <doc>
  12510. <![CDATA[Returns the current contents of the buffer.
  12511. Data is only valid to {@link #getLength()}.]]>
  12512. </doc>
  12513. </method>
  12514. <method name="getLength" return="int"
  12515. abstract="false" native="false" synchronized="false"
  12516. static="false" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <doc>
  12519. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12520. </doc>
  12521. </method>
  12522. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12523. abstract="false" native="false" synchronized="false"
  12524. static="false" final="false" visibility="public"
  12525. deprecated="not deprecated">
  12526. <doc>
  12527. <![CDATA[Resets the buffer to empty.]]>
  12528. </doc>
  12529. </method>
  12530. <method name="write"
  12531. abstract="false" native="false" synchronized="false"
  12532. static="false" final="false" visibility="public"
  12533. deprecated="not deprecated">
  12534. <param name="in" type="java.io.InputStream"/>
  12535. <param name="length" type="int"/>
  12536. <exception name="IOException" type="java.io.IOException"/>
  12537. <doc>
  12538. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12539. </doc>
  12540. </method>
  12541. <doc>
  12542. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12543. buffer.
  12544. <p>This saves memory over creating a new OutputStream and
  12545. ByteArrayOutputStream each time data is written.
  12546. <p>Typical usage is something like the following:<pre>
  12547. OutputBuffer buffer = new OutputBuffer();
  12548. while (... loop condition ...) {
  12549. buffer.reset();
  12550. ... write buffer using OutputStream methods ...
  12551. byte[] data = buffer.getData();
  12552. int dataLength = buffer.getLength();
  12553. ... write data to its ultimate destination ...
  12554. }
  12555. </pre>
  12556. @see DataOutputBuffer
  12557. @see InputBuffer]]>
  12558. </doc>
  12559. </class>
  12560. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12561. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12562. <interface name="RawComparator" abstract="true"
  12563. static="false" final="false" visibility="public"
  12564. deprecated="not deprecated">
  12565. <implements name="java.util.Comparator"/>
  12566. <method name="compare" return="int"
  12567. abstract="false" native="false" synchronized="false"
  12568. static="false" final="false" visibility="public"
  12569. deprecated="not deprecated">
  12570. <param name="b1" type="byte[]"/>
  12571. <param name="s1" type="int"/>
  12572. <param name="l1" type="int"/>
  12573. <param name="b2" type="byte[]"/>
  12574. <param name="s2" type="int"/>
  12575. <param name="l2" type="int"/>
  12576. </method>
  12577. <doc>
  12578. <![CDATA[<p>
  12579. A {@link Comparator} that operates directly on byte representations of
  12580. objects.
  12581. </p>
  12582. @param <T>
  12583. @see DeserializerComparator]]>
  12584. </doc>
  12585. </interface>
  12586. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12587. <!-- start class org.apache.hadoop.io.ReadaheadPool -->
  12588. <class name="ReadaheadPool" extends="java.lang.Object"
  12589. abstract="false"
  12590. static="false" final="false" visibility="public"
  12591. deprecated="not deprecated">
  12592. <method name="getInstance" return="org.apache.hadoop.io.ReadaheadPool"
  12593. abstract="false" native="false" synchronized="false"
  12594. static="true" final="false" visibility="public"
  12595. deprecated="not deprecated">
  12596. <doc>
  12597. <![CDATA[Return the singleton instance for the current process.]]>
  12598. </doc>
  12599. </method>
  12600. <method name="readaheadStream" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12601. abstract="false" native="false" synchronized="false"
  12602. static="false" final="false" visibility="public"
  12603. deprecated="not deprecated">
  12604. <param name="identifier" type="java.lang.String"/>
  12605. <param name="fd" type="java.io.FileDescriptor"/>
  12606. <param name="curPos" type="long"/>
  12607. <param name="readaheadLength" type="long"/>
  12608. <param name="maxOffsetToRead" type="long"/>
  12609. <param name="lastReadahead" type="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"/>
  12610. <doc>
  12611. <![CDATA[Issue a request to readahead on the given file descriptor.
  12612. @param identifier a textual identifier that will be used in error
  12613. messages (e.g. the file name)
  12614. @param fd the file descriptor to read ahead
  12615. @param curPos the current offset at which reads are being issued
  12616. @param readaheadLength the configured length to read ahead
  12617. @param maxOffsetToRead the maximum offset that will be readahead
  12618. (useful if, for example, only some segment of the file is
  12619. requested by the user). Pass {@link Long.MAX_VALUE} to allow
  12620. readahead to the end of the file.
  12621. @param lastReadahead the result returned by the previous invocation
  12622. of this function on this file descriptor, or null if this is
  12623. the first call
  12624. @return an object representing this outstanding request, or null
  12625. if no readahead was performed]]>
  12626. </doc>
  12627. </method>
  12628. <method name="submitReadahead" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12629. abstract="false" native="false" synchronized="false"
  12630. static="false" final="false" visibility="public"
  12631. deprecated="not deprecated">
  12632. <param name="identifier" type="java.lang.String"/>
  12633. <param name="fd" type="java.io.FileDescriptor"/>
  12634. <param name="off" type="long"/>
  12635. <param name="len" type="long"/>
  12636. <doc>
  12637. <![CDATA[Submit a request to readahead on the given file descriptor.
  12638. @param identifier a textual identifier used in error messages, etc.
  12639. @param fd the file descriptor to readahead
  12640. @param off the offset at which to start the readahead
  12641. @param len the number of bytes to read
  12642. @return an object representing this pending request]]>
  12643. </doc>
  12644. </method>
  12645. <doc>
  12646. <![CDATA[Manages a pool of threads which can issue readahead requests on file descriptors.]]>
  12647. </doc>
  12648. </class>
  12649. <!-- end class org.apache.hadoop.io.ReadaheadPool -->
  12650. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12651. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  12652. static="true" final="false" visibility="public"
  12653. deprecated="not deprecated">
  12654. <method name="cancel"
  12655. abstract="false" native="false" synchronized="false"
  12656. static="false" final="false" visibility="public"
  12657. deprecated="not deprecated">
  12658. <doc>
  12659. <![CDATA[Cancels the request for readahead. This should be used
  12660. if the reader no longer needs the requested data, <em>before</em>
  12661. closing the related file descriptor.
  12662. It is safe to use even if the readahead request has already
  12663. been fulfilled.]]>
  12664. </doc>
  12665. </method>
  12666. <method name="getOffset" return="long"
  12667. abstract="false" native="false" synchronized="false"
  12668. static="false" final="false" visibility="public"
  12669. deprecated="not deprecated">
  12670. <doc>
  12671. <![CDATA[@return the requested offset]]>
  12672. </doc>
  12673. </method>
  12674. <method name="getLength" return="long"
  12675. abstract="false" native="false" synchronized="false"
  12676. static="false" final="false" visibility="public"
  12677. deprecated="not deprecated">
  12678. <doc>
  12679. <![CDATA[@return the requested length]]>
  12680. </doc>
  12681. </method>
  12682. <doc>
  12683. <![CDATA[An outstanding readahead request that has been submitted to
  12684. the pool. This request may be pending or may have been
  12685. completed.]]>
  12686. </doc>
  12687. </interface>
  12688. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12689. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12690. <class name="SecureIOUtils" extends="java.lang.Object"
  12691. abstract="false"
  12692. static="false" final="false" visibility="public"
  12693. deprecated="not deprecated">
  12694. <constructor name="SecureIOUtils"
  12695. static="false" final="false" visibility="public"
  12696. deprecated="not deprecated">
  12697. </constructor>
  12698. <method name="openForRead" return="java.io.FileInputStream"
  12699. abstract="false" native="false" synchronized="false"
  12700. static="true" final="false" visibility="public"
  12701. deprecated="not deprecated">
  12702. <param name="f" type="java.io.File"/>
  12703. <param name="expectedOwner" type="java.lang.String"/>
  12704. <exception name="IOException" type="java.io.IOException"/>
  12705. <doc>
  12706. <![CDATA[Open the given File for read access, verifying the expected user
  12707. constraints.
  12708. @param f the file that we are trying to open
  12709. @param expectedOwner the expected user owner for the file
  12710. @throws IOException if an IO Error occurred, or the user does not
  12711. match]]>
  12712. </doc>
  12713. </method>
  12714. <method name="createForWrite" return="java.io.FileOutputStream"
  12715. abstract="false" native="false" synchronized="false"
  12716. static="true" final="false" visibility="public"
  12717. deprecated="not deprecated">
  12718. <param name="f" type="java.io.File"/>
  12719. <param name="permissions" type="int"/>
  12720. <exception name="IOException" type="java.io.IOException"/>
  12721. <doc>
  12722. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12723. @param f the file that we want to create
  12724. @param permissions we want to have on the file (if security is enabled)
  12725. @throws AlreadyExistsException if the file already exists
  12726. @throws IOException if any other error occurred]]>
  12727. </doc>
  12728. </method>
  12729. <doc>
  12730. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12731. disk. The main issue this class tries to handle is that of symlink traversal.
  12732. <br/>
  12733. An example of such an attack is:
  12734. <ol>
  12735. <li> Malicious user removes his task's syslog file, and puts a link to the
  12736. jobToken file of a target user.</li>
  12737. <li> Malicious user tries to open the syslog file via the servlet on the
  12738. tasktracker.</li>
  12739. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12740. of the jobToken file. The malicious user can now access potentially sensitive
  12741. map outputs, etc. of the target user's job.</li>
  12742. </ol>
  12743. A similar attack is possible involving the
  12744. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12745. with unsecure write to a file.
  12746. <br/>]]>
  12747. </doc>
  12748. </class>
  12749. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12750. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12751. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12752. abstract="false"
  12753. static="true" final="false" visibility="public"
  12754. deprecated="not deprecated">
  12755. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12756. static="false" final="false" visibility="public"
  12757. deprecated="not deprecated">
  12758. </constructor>
  12759. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12760. static="false" final="false" visibility="public"
  12761. deprecated="not deprecated">
  12762. </constructor>
  12763. <doc>
  12764. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12765. because another file already existed at that path.]]>
  12766. </doc>
  12767. </class>
  12768. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12769. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12770. <class name="SequenceFile" extends="java.lang.Object"
  12771. abstract="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12775. abstract="false" native="false" synchronized="false"
  12776. static="true" final="false" visibility="public"
  12777. deprecated="Use
  12778. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12779. to get {@link CompressionType} for job-outputs.">
  12780. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12781. <doc>
  12782. <![CDATA[Get the compression type for the reduce outputs
  12783. @param job the job config to look in
  12784. @return the kind of compression to use
  12785. @deprecated Use
  12786. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12787. to get {@link CompressionType} for job-outputs.]]>
  12788. </doc>
  12789. </method>
  12790. <method name="setCompressionType"
  12791. abstract="false" native="false" synchronized="false"
  12792. static="true" final="false" visibility="public"
  12793. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12794. the {@link CompressionType} while creating the {@link SequenceFile} or
  12795. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12796. to specify the {@link CompressionType} for job-outputs.
  12797. or">
  12798. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12799. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12800. <doc>
  12801. <![CDATA[Set the compression type for sequence files.
  12802. @param job the configuration to modify
  12803. @param val the new compression type (none, block, record)
  12804. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12805. the {@link CompressionType} while creating the {@link SequenceFile} or
  12806. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12807. to specify the {@link CompressionType} for job-outputs.
  12808. or]]>
  12809. </doc>
  12810. </method>
  12811. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12812. abstract="false" native="false" synchronized="false"
  12813. static="true" final="false" visibility="public"
  12814. deprecated="not deprecated">
  12815. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12817. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12818. <param name="keyClass" type="java.lang.Class"/>
  12819. <param name="valClass" type="java.lang.Class"/>
  12820. <exception name="IOException" type="java.io.IOException"/>
  12821. <doc>
  12822. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12823. @param fs The configured filesystem.
  12824. @param conf The configuration.
  12825. @param name The name of the file.
  12826. @param keyClass The 'key' type.
  12827. @param valClass The 'value' type.
  12828. @return Returns the handle to the constructed SequenceFile Writer.
  12829. @throws IOException]]>
  12830. </doc>
  12831. </method>
  12832. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12833. abstract="false" native="false" synchronized="false"
  12834. static="true" final="false" visibility="public"
  12835. deprecated="not deprecated">
  12836. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12838. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12839. <param name="keyClass" type="java.lang.Class"/>
  12840. <param name="valClass" type="java.lang.Class"/>
  12841. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12842. <exception name="IOException" type="java.io.IOException"/>
  12843. <doc>
  12844. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12845. @param fs The configured filesystem.
  12846. @param conf The configuration.
  12847. @param name The name of the file.
  12848. @param keyClass The 'key' type.
  12849. @param valClass The 'value' type.
  12850. @param compressionType The compression type.
  12851. @return Returns the handle to the constructed SequenceFile Writer.
  12852. @throws IOException]]>
  12853. </doc>
  12854. </method>
  12855. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12856. abstract="false" native="false" synchronized="false"
  12857. static="true" final="false" visibility="public"
  12858. deprecated="not deprecated">
  12859. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12861. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12862. <param name="keyClass" type="java.lang.Class"/>
  12863. <param name="valClass" type="java.lang.Class"/>
  12864. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12865. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12866. <exception name="IOException" type="java.io.IOException"/>
  12867. <doc>
  12868. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12869. @param fs The configured filesystem.
  12870. @param conf The configuration.
  12871. @param name The name of the file.
  12872. @param keyClass The 'key' type.
  12873. @param valClass The 'value' type.
  12874. @param compressionType The compression type.
  12875. @param progress The Progressable object to track progress.
  12876. @return Returns the handle to the constructed SequenceFile Writer.
  12877. @throws IOException]]>
  12878. </doc>
  12879. </method>
  12880. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12881. abstract="false" native="false" synchronized="false"
  12882. static="true" final="false" visibility="public"
  12883. deprecated="not deprecated">
  12884. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12886. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12887. <param name="keyClass" type="java.lang.Class"/>
  12888. <param name="valClass" type="java.lang.Class"/>
  12889. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12890. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12891. <exception name="IOException" type="java.io.IOException"/>
  12892. <doc>
  12893. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12894. @param fs The configured filesystem.
  12895. @param conf The configuration.
  12896. @param name The name of the file.
  12897. @param keyClass The 'key' type.
  12898. @param valClass The 'value' type.
  12899. @param compressionType The compression type.
  12900. @param codec The compression codec.
  12901. @return Returns the handle to the constructed SequenceFile Writer.
  12902. @throws IOException]]>
  12903. </doc>
  12904. </method>
  12905. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12906. abstract="false" native="false" synchronized="false"
  12907. static="true" final="false" visibility="public"
  12908. deprecated="not deprecated">
  12909. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12911. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12912. <param name="keyClass" type="java.lang.Class"/>
  12913. <param name="valClass" type="java.lang.Class"/>
  12914. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12915. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12917. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12918. <exception name="IOException" type="java.io.IOException"/>
  12919. <doc>
  12920. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12921. @param fs The configured filesystem.
  12922. @param conf The configuration.
  12923. @param name The name of the file.
  12924. @param keyClass The 'key' type.
  12925. @param valClass The 'value' type.
  12926. @param compressionType The compression type.
  12927. @param codec The compression codec.
  12928. @param progress The Progressable object to track progress.
  12929. @param metadata The metadata of the file.
  12930. @return Returns the handle to the constructed SequenceFile Writer.
  12931. @throws IOException]]>
  12932. </doc>
  12933. </method>
  12934. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12935. abstract="false" native="false" synchronized="false"
  12936. static="true" final="false" visibility="public"
  12937. deprecated="not deprecated">
  12938. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12940. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12941. <param name="keyClass" type="java.lang.Class"/>
  12942. <param name="valClass" type="java.lang.Class"/>
  12943. <param name="bufferSize" type="int"/>
  12944. <param name="replication" type="short"/>
  12945. <param name="blockSize" type="long"/>
  12946. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12947. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12948. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12949. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12950. <exception name="IOException" type="java.io.IOException"/>
  12951. <doc>
  12952. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12953. @param fs The configured filesystem.
  12954. @param conf The configuration.
  12955. @param name The name of the file.
  12956. @param keyClass The 'key' type.
  12957. @param valClass The 'value' type.
  12958. @param bufferSize buffer size for the underlaying outputstream.
  12959. @param replication replication factor for the file.
  12960. @param blockSize block size for the file.
  12961. @param compressionType The compression type.
  12962. @param codec The compression codec.
  12963. @param progress The Progressable object to track progress.
  12964. @param metadata The metadata of the file.
  12965. @return Returns the handle to the constructed SequenceFile Writer.
  12966. @throws IOException]]>
  12967. </doc>
  12968. </method>
  12969. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12970. abstract="false" native="false" synchronized="false"
  12971. static="true" final="false" visibility="public"
  12972. deprecated="not deprecated">
  12973. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12975. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12976. <param name="keyClass" type="java.lang.Class"/>
  12977. <param name="valClass" type="java.lang.Class"/>
  12978. <param name="bufferSize" type="int"/>
  12979. <param name="replication" type="short"/>
  12980. <param name="blockSize" type="long"/>
  12981. <param name="createParent" type="boolean"/>
  12982. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12983. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12984. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12985. <exception name="IOException" type="java.io.IOException"/>
  12986. <doc>
  12987. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12988. @param fs The configured filesystem.
  12989. @param conf The configuration.
  12990. @param name The name of the file.
  12991. @param keyClass The 'key' type.
  12992. @param valClass The 'value' type.
  12993. @param bufferSize buffer size for the underlaying outputstream.
  12994. @param replication replication factor for the file.
  12995. @param blockSize block size for the file.
  12996. @param createParent create parent directory if non-existent
  12997. @param compressionType The compression type.
  12998. @param codec The compression codec.
  12999. @param metadata The metadata of the file.
  13000. @return Returns the handle to the constructed SequenceFile Writer.
  13001. @throws IOException]]>
  13002. </doc>
  13003. </method>
  13004. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13005. abstract="false" native="false" synchronized="false"
  13006. static="true" final="false" visibility="public"
  13007. deprecated="not deprecated">
  13008. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13009. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13010. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13011. <param name="keyClass" type="java.lang.Class"/>
  13012. <param name="valClass" type="java.lang.Class"/>
  13013. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13014. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13015. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13016. <exception name="IOException" type="java.io.IOException"/>
  13017. <doc>
  13018. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13019. @param fs The configured filesystem.
  13020. @param conf The configuration.
  13021. @param name The name of the file.
  13022. @param keyClass The 'key' type.
  13023. @param valClass The 'value' type.
  13024. @param compressionType The compression type.
  13025. @param codec The compression codec.
  13026. @param progress The Progressable object to track progress.
  13027. @return Returns the handle to the constructed SequenceFile Writer.
  13028. @throws IOException]]>
  13029. </doc>
  13030. </method>
  13031. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13032. abstract="false" native="false" synchronized="false"
  13033. static="true" final="false" visibility="public"
  13034. deprecated="not deprecated">
  13035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13036. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13037. <param name="keyClass" type="java.lang.Class"/>
  13038. <param name="valClass" type="java.lang.Class"/>
  13039. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13040. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13041. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13042. <exception name="IOException" type="java.io.IOException"/>
  13043. <doc>
  13044. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13045. @param conf The configuration.
  13046. @param out The stream on top which the writer is to be constructed.
  13047. @param keyClass The 'key' type.
  13048. @param valClass The 'value' type.
  13049. @param compressionType The compression type.
  13050. @param codec The compression codec.
  13051. @param metadata The metadata of the file.
  13052. @return Returns the handle to the constructed SequenceFile Writer.
  13053. @throws IOException]]>
  13054. </doc>
  13055. </method>
  13056. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13057. abstract="false" native="false" synchronized="false"
  13058. static="true" final="false" visibility="public"
  13059. deprecated="not deprecated">
  13060. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13061. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  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. <exception name="IOException" type="java.io.IOException"/>
  13067. <doc>
  13068. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13069. @param conf The configuration.
  13070. @param out The stream on top which the writer is to be constructed.
  13071. @param keyClass The 'key' type.
  13072. @param valClass The 'value' type.
  13073. @param compressionType The compression type.
  13074. @param codec The compression codec.
  13075. @return Returns the handle to the constructed SequenceFile Writer.
  13076. @throws IOException]]>
  13077. </doc>
  13078. </method>
  13079. <field name="SYNC_INTERVAL" type="int"
  13080. transient="false" volatile="false"
  13081. static="true" final="true" visibility="public"
  13082. deprecated="not deprecated">
  13083. <doc>
  13084. <![CDATA[The number of bytes between sync points.]]>
  13085. </doc>
  13086. </field>
  13087. <doc>
  13088. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  13089. pairs.
  13090. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  13091. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  13092. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  13093. {@link CompressionType} used to compress key/value pairs:
  13094. <ol>
  13095. <li>
  13096. <code>Writer</code> : Uncompressed records.
  13097. </li>
  13098. <li>
  13099. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  13100. values.
  13101. </li>
  13102. <li>
  13103. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  13104. values are collected in 'blocks'
  13105. separately and compressed. The size of
  13106. the 'block' is configurable.
  13107. </ol>
  13108. <p>The actual compression algorithm used to compress key and/or values can be
  13109. specified by using the appropriate {@link CompressionCodec}.</p>
  13110. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  13111. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  13112. <p>The {@link Reader} acts as the bridge and can read any of the above
  13113. <code>SequenceFile</code> formats.</p>
  13114. <h4 id="Formats">SequenceFile Formats</h4>
  13115. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  13116. depending on the <code>CompressionType</code> specified. All of them share a
  13117. <a href="#Header">common header</a> described below.
  13118. <h5 id="Header">SequenceFile Header</h5>
  13119. <ul>
  13120. <li>
  13121. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  13122. version number (e.g. SEQ4 or SEQ6)
  13123. </li>
  13124. <li>
  13125. keyClassName -key class
  13126. </li>
  13127. <li>
  13128. valueClassName - value class
  13129. </li>
  13130. <li>
  13131. compression - A boolean which specifies if compression is turned on for
  13132. keys/values in this file.
  13133. </li>
  13134. <li>
  13135. blockCompression - A boolean which specifies if block-compression is
  13136. turned on for keys/values in this file.
  13137. </li>
  13138. <li>
  13139. compression codec - <code>CompressionCodec</code> class which is used for
  13140. compression of keys and/or values (if compression is
  13141. enabled).
  13142. </li>
  13143. <li>
  13144. metadata - {@link Metadata} for this file.
  13145. </li>
  13146. <li>
  13147. sync - A sync marker to denote end of the header.
  13148. </li>
  13149. </ul>
  13150. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  13151. <ul>
  13152. <li>
  13153. <a href="#Header">Header</a>
  13154. </li>
  13155. <li>
  13156. Record
  13157. <ul>
  13158. <li>Record length</li>
  13159. <li>Key length</li>
  13160. <li>Key</li>
  13161. <li>Value</li>
  13162. </ul>
  13163. </li>
  13164. <li>
  13165. A sync-marker every few <code>100</code> bytes or so.
  13166. </li>
  13167. </ul>
  13168. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  13169. <ul>
  13170. <li>
  13171. <a href="#Header">Header</a>
  13172. </li>
  13173. <li>
  13174. Record
  13175. <ul>
  13176. <li>Record length</li>
  13177. <li>Key length</li>
  13178. <li>Key</li>
  13179. <li><i>Compressed</i> Value</li>
  13180. </ul>
  13181. </li>
  13182. <li>
  13183. A sync-marker every few <code>100</code> bytes or so.
  13184. </li>
  13185. </ul>
  13186. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13187. <ul>
  13188. <li>
  13189. <a href="#Header">Header</a>
  13190. </li>
  13191. <li>
  13192. Record <i>Block</i>
  13193. <ul>
  13194. <li>Compressed key-lengths block-size</li>
  13195. <li>Compressed key-lengths block</li>
  13196. <li>Compressed keys block-size</li>
  13197. <li>Compressed keys block</li>
  13198. <li>Compressed value-lengths block-size</li>
  13199. <li>Compressed value-lengths block</li>
  13200. <li>Compressed values block-size</li>
  13201. <li>Compressed values block</li>
  13202. </ul>
  13203. </li>
  13204. <li>
  13205. A sync-marker every few <code>100</code> bytes or so.
  13206. </li>
  13207. </ul>
  13208. <p>The compressed blocks of key lengths and value lengths consist of the
  13209. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13210. format.</p>
  13211. @see CompressionCodec]]>
  13212. </doc>
  13213. </class>
  13214. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13215. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13216. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13217. abstract="false"
  13218. static="true" final="true" visibility="public"
  13219. deprecated="not deprecated">
  13220. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13221. abstract="false" native="false" synchronized="false"
  13222. static="true" final="false" visibility="public"
  13223. deprecated="not deprecated">
  13224. </method>
  13225. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13226. abstract="false" native="false" synchronized="false"
  13227. static="true" final="false" visibility="public"
  13228. deprecated="not deprecated">
  13229. <param name="name" type="java.lang.String"/>
  13230. </method>
  13231. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13232. transient="false" volatile="false"
  13233. static="true" final="true" visibility="public"
  13234. deprecated="not deprecated">
  13235. <doc>
  13236. <![CDATA[Do not compress records.]]>
  13237. </doc>
  13238. </field>
  13239. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13240. transient="false" volatile="false"
  13241. static="true" final="true" visibility="public"
  13242. deprecated="not deprecated">
  13243. <doc>
  13244. <![CDATA[Compress values only, each separately.]]>
  13245. </doc>
  13246. </field>
  13247. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13248. transient="false" volatile="false"
  13249. static="true" final="true" visibility="public"
  13250. deprecated="not deprecated">
  13251. <doc>
  13252. <![CDATA[Compress sequences of records together in blocks.]]>
  13253. </doc>
  13254. </field>
  13255. <doc>
  13256. <![CDATA[The compression type used to compress key/value pairs in the
  13257. {@link SequenceFile}.
  13258. @see SequenceFile.Writer]]>
  13259. </doc>
  13260. </class>
  13261. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13262. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13263. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13264. abstract="false"
  13265. static="true" final="false" visibility="public"
  13266. deprecated="not deprecated">
  13267. <implements name="org.apache.hadoop.io.Writable"/>
  13268. <constructor name="SequenceFile.Metadata"
  13269. static="false" final="false" visibility="public"
  13270. deprecated="not deprecated">
  13271. </constructor>
  13272. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. </constructor>
  13276. <method name="get" return="org.apache.hadoop.io.Text"
  13277. abstract="false" native="false" synchronized="false"
  13278. static="false" final="false" visibility="public"
  13279. deprecated="not deprecated">
  13280. <param name="name" type="org.apache.hadoop.io.Text"/>
  13281. </method>
  13282. <method name="set"
  13283. abstract="false" native="false" synchronized="false"
  13284. static="false" final="false" visibility="public"
  13285. deprecated="not deprecated">
  13286. <param name="name" type="org.apache.hadoop.io.Text"/>
  13287. <param name="value" type="org.apache.hadoop.io.Text"/>
  13288. </method>
  13289. <method name="getMetadata" return="java.util.TreeMap"
  13290. abstract="false" native="false" synchronized="false"
  13291. static="false" final="false" visibility="public"
  13292. deprecated="not deprecated">
  13293. </method>
  13294. <method name="write"
  13295. abstract="false" native="false" synchronized="false"
  13296. static="false" final="false" visibility="public"
  13297. deprecated="not deprecated">
  13298. <param name="out" type="java.io.DataOutput"/>
  13299. <exception name="IOException" type="java.io.IOException"/>
  13300. </method>
  13301. <method name="readFields"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="false" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="in" type="java.io.DataInput"/>
  13306. <exception name="IOException" type="java.io.IOException"/>
  13307. </method>
  13308. <method name="equals" return="boolean"
  13309. abstract="false" native="false" synchronized="false"
  13310. static="false" final="false" visibility="public"
  13311. deprecated="not deprecated">
  13312. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13313. </method>
  13314. <method name="hashCode" return="int"
  13315. abstract="false" native="false" synchronized="false"
  13316. static="false" final="false" visibility="public"
  13317. deprecated="not deprecated">
  13318. </method>
  13319. <method name="toString" return="java.lang.String"
  13320. abstract="false" native="false" synchronized="false"
  13321. static="false" final="false" visibility="public"
  13322. deprecated="not deprecated">
  13323. </method>
  13324. <doc>
  13325. <![CDATA[The class encapsulating with the metadata of a file.
  13326. The metadata of a file is a list of attribute name/value
  13327. pairs of Text type.]]>
  13328. </doc>
  13329. </class>
  13330. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13331. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13332. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13333. abstract="false"
  13334. static="true" final="false" visibility="public"
  13335. deprecated="not deprecated">
  13336. <implements name="java.io.Closeable"/>
  13337. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13338. static="false" final="false" visibility="public"
  13339. deprecated="not deprecated">
  13340. <exception name="IOException" type="java.io.IOException"/>
  13341. <doc>
  13342. <![CDATA[Open the named file.]]>
  13343. </doc>
  13344. </constructor>
  13345. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13346. abstract="false" native="false" synchronized="false"
  13347. static="false" final="false" visibility="protected"
  13348. deprecated="not deprecated">
  13349. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13350. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13351. <param name="bufferSize" type="int"/>
  13352. <param name="length" type="long"/>
  13353. <exception name="IOException" type="java.io.IOException"/>
  13354. <doc>
  13355. <![CDATA[Override this method to specialize the type of
  13356. {@link FSDataInputStream} returned.]]>
  13357. </doc>
  13358. </method>
  13359. <method name="close"
  13360. abstract="false" native="false" synchronized="true"
  13361. static="false" final="false" visibility="public"
  13362. deprecated="not deprecated">
  13363. <exception name="IOException" type="java.io.IOException"/>
  13364. <doc>
  13365. <![CDATA[Close the file.]]>
  13366. </doc>
  13367. </method>
  13368. <method name="getKeyClassName" return="java.lang.String"
  13369. abstract="false" native="false" synchronized="false"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <doc>
  13373. <![CDATA[Returns the name of the key class.]]>
  13374. </doc>
  13375. </method>
  13376. <method name="getKeyClass" return="java.lang.Class"
  13377. abstract="false" native="false" synchronized="true"
  13378. static="false" final="false" visibility="public"
  13379. deprecated="not deprecated">
  13380. <doc>
  13381. <![CDATA[Returns the class of keys in this file.]]>
  13382. </doc>
  13383. </method>
  13384. <method name="getValueClassName" return="java.lang.String"
  13385. abstract="false" native="false" synchronized="false"
  13386. static="false" final="false" visibility="public"
  13387. deprecated="not deprecated">
  13388. <doc>
  13389. <![CDATA[Returns the name of the value class.]]>
  13390. </doc>
  13391. </method>
  13392. <method name="getValueClass" return="java.lang.Class"
  13393. abstract="false" native="false" synchronized="true"
  13394. static="false" final="false" visibility="public"
  13395. deprecated="not deprecated">
  13396. <doc>
  13397. <![CDATA[Returns the class of values in this file.]]>
  13398. </doc>
  13399. </method>
  13400. <method name="isCompressed" return="boolean"
  13401. abstract="false" native="false" synchronized="false"
  13402. static="false" final="false" visibility="public"
  13403. deprecated="not deprecated">
  13404. <doc>
  13405. <![CDATA[Returns true if values are compressed.]]>
  13406. </doc>
  13407. </method>
  13408. <method name="isBlockCompressed" return="boolean"
  13409. abstract="false" native="false" synchronized="false"
  13410. static="false" final="false" visibility="public"
  13411. deprecated="not deprecated">
  13412. <doc>
  13413. <![CDATA[Returns true if records are block-compressed.]]>
  13414. </doc>
  13415. </method>
  13416. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13417. abstract="false" native="false" synchronized="false"
  13418. static="false" final="false" visibility="public"
  13419. deprecated="not deprecated">
  13420. <doc>
  13421. <![CDATA[Returns the compression codec of data in this file.]]>
  13422. </doc>
  13423. </method>
  13424. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13425. abstract="false" native="false" synchronized="false"
  13426. static="false" final="false" visibility="public"
  13427. deprecated="not deprecated">
  13428. <doc>
  13429. <![CDATA[Returns the metadata object of the file]]>
  13430. </doc>
  13431. </method>
  13432. <method name="getCurrentValue"
  13433. abstract="false" native="false" synchronized="true"
  13434. static="false" final="false" visibility="public"
  13435. deprecated="not deprecated">
  13436. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13437. <exception name="IOException" type="java.io.IOException"/>
  13438. <doc>
  13439. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13440. @param val : The 'value' to be read.
  13441. @throws IOException]]>
  13442. </doc>
  13443. </method>
  13444. <method name="getCurrentValue" return="java.lang.Object"
  13445. abstract="false" native="false" synchronized="true"
  13446. static="false" final="false" visibility="public"
  13447. deprecated="not deprecated">
  13448. <param name="val" type="java.lang.Object"/>
  13449. <exception name="IOException" type="java.io.IOException"/>
  13450. <doc>
  13451. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13452. @param val : The 'value' to be read.
  13453. @throws IOException]]>
  13454. </doc>
  13455. </method>
  13456. <method name="next" return="boolean"
  13457. abstract="false" native="false" synchronized="true"
  13458. static="false" final="false" visibility="public"
  13459. deprecated="not deprecated">
  13460. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13461. <exception name="IOException" type="java.io.IOException"/>
  13462. <doc>
  13463. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13464. value. True if another entry exists, and false at end of file.]]>
  13465. </doc>
  13466. </method>
  13467. <method name="next" return="boolean"
  13468. abstract="false" native="false" synchronized="true"
  13469. static="false" final="false" visibility="public"
  13470. deprecated="not deprecated">
  13471. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13472. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13473. <exception name="IOException" type="java.io.IOException"/>
  13474. <doc>
  13475. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13476. <code>val</code>. Returns true if such a pair exists and false when at
  13477. end of file]]>
  13478. </doc>
  13479. </method>
  13480. <method name="next" return="int"
  13481. abstract="false" native="false" synchronized="true"
  13482. static="false" final="false" visibility="public"
  13483. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13484. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13485. <exception name="IOException" type="java.io.IOException"/>
  13486. <doc>
  13487. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13488. </doc>
  13489. </method>
  13490. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13491. abstract="false" native="false" synchronized="false"
  13492. static="false" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. </method>
  13495. <method name="nextRaw" return="int"
  13496. abstract="false" native="false" synchronized="true"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13500. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13501. <exception name="IOException" type="java.io.IOException"/>
  13502. <doc>
  13503. <![CDATA[Read 'raw' records.
  13504. @param key - The buffer into which the key is read
  13505. @param val - The 'raw' value
  13506. @return Returns the total record length or -1 for end of file
  13507. @throws IOException]]>
  13508. </doc>
  13509. </method>
  13510. <method name="nextRawKey" return="int"
  13511. abstract="false" native="false" synchronized="false"
  13512. static="false" final="false" visibility="public"
  13513. deprecated="not deprecated">
  13514. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13515. <exception name="IOException" type="java.io.IOException"/>
  13516. <doc>
  13517. <![CDATA[Read 'raw' keys.
  13518. @param key - The buffer into which the key is read
  13519. @return Returns the key length or -1 for end of file
  13520. @throws IOException]]>
  13521. </doc>
  13522. </method>
  13523. <method name="next" return="java.lang.Object"
  13524. abstract="false" native="false" synchronized="true"
  13525. static="false" final="false" visibility="public"
  13526. deprecated="not deprecated">
  13527. <param name="key" type="java.lang.Object"/>
  13528. <exception name="IOException" type="java.io.IOException"/>
  13529. <doc>
  13530. <![CDATA[Read the next key in the file, skipping its
  13531. value. Return null at end of file.]]>
  13532. </doc>
  13533. </method>
  13534. <method name="nextRawValue" return="int"
  13535. abstract="false" native="false" synchronized="true"
  13536. static="false" final="false" visibility="public"
  13537. deprecated="not deprecated">
  13538. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13539. <exception name="IOException" type="java.io.IOException"/>
  13540. <doc>
  13541. <![CDATA[Read 'raw' values.
  13542. @param val - The 'raw' value
  13543. @return Returns the value length
  13544. @throws IOException]]>
  13545. </doc>
  13546. </method>
  13547. <method name="seek"
  13548. abstract="false" native="false" synchronized="true"
  13549. static="false" final="false" visibility="public"
  13550. deprecated="not deprecated">
  13551. <param name="position" type="long"/>
  13552. <exception name="IOException" type="java.io.IOException"/>
  13553. <doc>
  13554. <![CDATA[Set the current byte position in the input file.
  13555. <p>The position passed must be a position returned by {@link
  13556. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13557. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13558. </doc>
  13559. </method>
  13560. <method name="sync"
  13561. abstract="false" native="false" synchronized="true"
  13562. static="false" final="false" visibility="public"
  13563. deprecated="not deprecated">
  13564. <param name="position" type="long"/>
  13565. <exception name="IOException" type="java.io.IOException"/>
  13566. <doc>
  13567. <![CDATA[Seek to the next sync mark past a given position.]]>
  13568. </doc>
  13569. </method>
  13570. <method name="syncSeen" return="boolean"
  13571. abstract="false" native="false" synchronized="false"
  13572. static="false" final="false" visibility="public"
  13573. deprecated="not deprecated">
  13574. <doc>
  13575. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13576. </doc>
  13577. </method>
  13578. <method name="getPosition" return="long"
  13579. abstract="false" native="false" synchronized="true"
  13580. static="false" final="false" visibility="public"
  13581. deprecated="not deprecated">
  13582. <exception name="IOException" type="java.io.IOException"/>
  13583. <doc>
  13584. <![CDATA[Return the current byte position in the input file.]]>
  13585. </doc>
  13586. </method>
  13587. <method name="toString" return="java.lang.String"
  13588. abstract="false" native="false" synchronized="false"
  13589. static="false" final="false" visibility="public"
  13590. deprecated="not deprecated">
  13591. <doc>
  13592. <![CDATA[Returns the name of the file.]]>
  13593. </doc>
  13594. </method>
  13595. <doc>
  13596. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13597. </doc>
  13598. </class>
  13599. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13600. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13601. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13602. abstract="false"
  13603. static="true" final="false" visibility="public"
  13604. deprecated="not deprecated">
  13605. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13606. static="false" final="false" visibility="public"
  13607. deprecated="not deprecated">
  13608. <doc>
  13609. <![CDATA[Sort and merge files containing the named classes.]]>
  13610. </doc>
  13611. </constructor>
  13612. <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"
  13613. static="false" final="false" visibility="public"
  13614. deprecated="not deprecated">
  13615. <doc>
  13616. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13617. </doc>
  13618. </constructor>
  13619. <method name="setFactor"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="false" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. <param name="factor" type="int"/>
  13624. <doc>
  13625. <![CDATA[Set the number of streams to merge at once.]]>
  13626. </doc>
  13627. </method>
  13628. <method name="getFactor" return="int"
  13629. abstract="false" native="false" synchronized="false"
  13630. static="false" final="false" visibility="public"
  13631. deprecated="not deprecated">
  13632. <doc>
  13633. <![CDATA[Get the number of streams to merge at once.]]>
  13634. </doc>
  13635. </method>
  13636. <method name="setMemory"
  13637. abstract="false" native="false" synchronized="false"
  13638. static="false" final="false" visibility="public"
  13639. deprecated="not deprecated">
  13640. <param name="memory" type="int"/>
  13641. <doc>
  13642. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13643. </doc>
  13644. </method>
  13645. <method name="getMemory" return="int"
  13646. abstract="false" native="false" synchronized="false"
  13647. static="false" final="false" visibility="public"
  13648. deprecated="not deprecated">
  13649. <doc>
  13650. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13651. </doc>
  13652. </method>
  13653. <method name="setProgressable"
  13654. abstract="false" native="false" synchronized="false"
  13655. static="false" final="false" visibility="public"
  13656. deprecated="not deprecated">
  13657. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13658. <doc>
  13659. <![CDATA[Set the progressable object in order to report progress.]]>
  13660. </doc>
  13661. </method>
  13662. <method name="sort"
  13663. abstract="false" native="false" synchronized="false"
  13664. static="false" final="false" visibility="public"
  13665. deprecated="not deprecated">
  13666. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13667. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13668. <param name="deleteInput" type="boolean"/>
  13669. <exception name="IOException" type="java.io.IOException"/>
  13670. <doc>
  13671. <![CDATA[Perform a file sort from a set of input files into an output file.
  13672. @param inFiles the files to be sorted
  13673. @param outFile the sorted output file
  13674. @param deleteInput should the input files be deleted as they are read?]]>
  13675. </doc>
  13676. </method>
  13677. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13678. abstract="false" native="false" synchronized="false"
  13679. static="false" final="false" visibility="public"
  13680. deprecated="not deprecated">
  13681. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13682. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13683. <param name="deleteInput" type="boolean"/>
  13684. <exception name="IOException" type="java.io.IOException"/>
  13685. <doc>
  13686. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13687. @param inFiles the files to be sorted
  13688. @param tempDir the directory where temp files are created during sort
  13689. @param deleteInput should the input files be deleted as they are read?
  13690. @return iterator the RawKeyValueIterator]]>
  13691. </doc>
  13692. </method>
  13693. <method name="sort"
  13694. abstract="false" native="false" synchronized="false"
  13695. static="false" final="false" visibility="public"
  13696. deprecated="not deprecated">
  13697. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13698. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13699. <exception name="IOException" type="java.io.IOException"/>
  13700. <doc>
  13701. <![CDATA[The backwards compatible interface to sort.
  13702. @param inFile the input file to sort
  13703. @param outFile the sorted output file]]>
  13704. </doc>
  13705. </method>
  13706. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13707. abstract="false" native="false" synchronized="false"
  13708. static="false" final="false" visibility="public"
  13709. deprecated="not deprecated">
  13710. <param name="segments" type="java.util.List"/>
  13711. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13712. <exception name="IOException" type="java.io.IOException"/>
  13713. <doc>
  13714. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13715. @param segments the list of SegmentDescriptors
  13716. @param tmpDir the directory to write temporary files into
  13717. @return RawKeyValueIterator
  13718. @throws IOException]]>
  13719. </doc>
  13720. </method>
  13721. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13722. abstract="false" native="false" synchronized="false"
  13723. static="false" final="false" visibility="public"
  13724. deprecated="not deprecated">
  13725. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13726. <param name="deleteInputs" type="boolean"/>
  13727. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13728. <exception name="IOException" type="java.io.IOException"/>
  13729. <doc>
  13730. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13731. that is already set
  13732. @param inNames the array of path names
  13733. @param deleteInputs true if the input files should be deleted when
  13734. unnecessary
  13735. @param tmpDir the directory to write temporary files into
  13736. @return RawKeyValueIteratorMergeQueue
  13737. @throws IOException]]>
  13738. </doc>
  13739. </method>
  13740. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13741. abstract="false" native="false" synchronized="false"
  13742. static="false" final="false" visibility="public"
  13743. deprecated="not deprecated">
  13744. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13745. <param name="deleteInputs" type="boolean"/>
  13746. <param name="factor" type="int"/>
  13747. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13748. <exception name="IOException" type="java.io.IOException"/>
  13749. <doc>
  13750. <![CDATA[Merges the contents of files passed in Path[]
  13751. @param inNames the array of path names
  13752. @param deleteInputs true if the input files should be deleted when
  13753. unnecessary
  13754. @param factor the factor that will be used as the maximum merge fan-in
  13755. @param tmpDir the directory to write temporary files into
  13756. @return RawKeyValueIteratorMergeQueue
  13757. @throws IOException]]>
  13758. </doc>
  13759. </method>
  13760. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13761. abstract="false" native="false" synchronized="false"
  13762. static="false" final="false" visibility="public"
  13763. deprecated="not deprecated">
  13764. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13765. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13766. <param name="deleteInputs" type="boolean"/>
  13767. <exception name="IOException" type="java.io.IOException"/>
  13768. <doc>
  13769. <![CDATA[Merges the contents of files passed in Path[]
  13770. @param inNames the array of path names
  13771. @param tempDir the directory for creating temp files during merge
  13772. @param deleteInputs true if the input files should be deleted when
  13773. unnecessary
  13774. @return RawKeyValueIteratorMergeQueue
  13775. @throws IOException]]>
  13776. </doc>
  13777. </method>
  13778. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13779. abstract="false" native="false" synchronized="false"
  13780. static="false" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13783. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13784. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13785. <exception name="IOException" type="java.io.IOException"/>
  13786. <doc>
  13787. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13788. corresponding Writer
  13789. @param inputFile the path of the input file whose attributes should be
  13790. cloned
  13791. @param outputFile the path of the output file
  13792. @param prog the Progressable to report status during the file write
  13793. @return Writer
  13794. @throws IOException]]>
  13795. </doc>
  13796. </method>
  13797. <method name="writeFile"
  13798. abstract="false" native="false" synchronized="false"
  13799. static="false" final="false" visibility="public"
  13800. deprecated="not deprecated">
  13801. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13802. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13803. <exception name="IOException" type="java.io.IOException"/>
  13804. <doc>
  13805. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13806. passed writer
  13807. @param records the RawKeyValueIterator
  13808. @param writer the Writer created earlier
  13809. @throws IOException]]>
  13810. </doc>
  13811. </method>
  13812. <method name="merge"
  13813. abstract="false" native="false" synchronized="false"
  13814. static="false" final="false" visibility="public"
  13815. deprecated="not deprecated">
  13816. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13817. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13818. <exception name="IOException" type="java.io.IOException"/>
  13819. <doc>
  13820. <![CDATA[Merge the provided files.
  13821. @param inFiles the array of input path names
  13822. @param outFile the final output file
  13823. @throws IOException]]>
  13824. </doc>
  13825. </method>
  13826. <doc>
  13827. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13828. <p>For best performance, applications should make sure that the {@link
  13829. Writable#readFields(DataInput)} implementation of their keys is
  13830. very efficient. In particular, it should avoid allocating memory.]]>
  13831. </doc>
  13832. </class>
  13833. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13834. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13835. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13836. static="true" final="false" visibility="public"
  13837. deprecated="not deprecated">
  13838. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13839. abstract="false" native="false" synchronized="false"
  13840. static="false" final="false" visibility="public"
  13841. deprecated="not deprecated">
  13842. <exception name="IOException" type="java.io.IOException"/>
  13843. <doc>
  13844. <![CDATA[Gets the current raw key
  13845. @return DataOutputBuffer
  13846. @throws IOException]]>
  13847. </doc>
  13848. </method>
  13849. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13850. abstract="false" native="false" synchronized="false"
  13851. static="false" final="false" visibility="public"
  13852. deprecated="not deprecated">
  13853. <exception name="IOException" type="java.io.IOException"/>
  13854. <doc>
  13855. <![CDATA[Gets the current raw value
  13856. @return ValueBytes
  13857. @throws IOException]]>
  13858. </doc>
  13859. </method>
  13860. <method name="next" return="boolean"
  13861. abstract="false" native="false" synchronized="false"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <exception name="IOException" type="java.io.IOException"/>
  13865. <doc>
  13866. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13867. @return true if there exists a key/value, false otherwise
  13868. @throws IOException]]>
  13869. </doc>
  13870. </method>
  13871. <method name="close"
  13872. abstract="false" native="false" synchronized="false"
  13873. static="false" final="false" visibility="public"
  13874. deprecated="not deprecated">
  13875. <exception name="IOException" type="java.io.IOException"/>
  13876. <doc>
  13877. <![CDATA[closes the iterator so that the underlying streams can be closed
  13878. @throws IOException]]>
  13879. </doc>
  13880. </method>
  13881. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13882. abstract="false" native="false" synchronized="false"
  13883. static="false" final="false" visibility="public"
  13884. deprecated="not deprecated">
  13885. <doc>
  13886. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13887. indicating the bytes processed by the iterator so far]]>
  13888. </doc>
  13889. </method>
  13890. <doc>
  13891. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13892. </doc>
  13893. </interface>
  13894. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13895. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13896. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13897. abstract="false"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <implements name="java.lang.Comparable"/>
  13901. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. <doc>
  13905. <![CDATA[Constructs a segment
  13906. @param segmentOffset the offset of the segment in the file
  13907. @param segmentLength the length of the segment
  13908. @param segmentPathName the path name of the file containing the segment]]>
  13909. </doc>
  13910. </constructor>
  13911. <method name="doSync"
  13912. abstract="false" native="false" synchronized="false"
  13913. static="false" final="false" visibility="public"
  13914. deprecated="not deprecated">
  13915. <doc>
  13916. <![CDATA[Do the sync checks]]>
  13917. </doc>
  13918. </method>
  13919. <method name="preserveInput"
  13920. abstract="false" native="false" synchronized="false"
  13921. static="false" final="false" visibility="public"
  13922. deprecated="not deprecated">
  13923. <param name="preserve" type="boolean"/>
  13924. <doc>
  13925. <![CDATA[Whether to delete the files when no longer needed]]>
  13926. </doc>
  13927. </method>
  13928. <method name="shouldPreserveInput" return="boolean"
  13929. abstract="false" native="false" synchronized="false"
  13930. static="false" final="false" visibility="public"
  13931. deprecated="not deprecated">
  13932. </method>
  13933. <method name="compareTo" return="int"
  13934. abstract="false" native="false" synchronized="false"
  13935. static="false" final="false" visibility="public"
  13936. deprecated="not deprecated">
  13937. <param name="o" type="java.lang.Object"/>
  13938. </method>
  13939. <method name="equals" return="boolean"
  13940. abstract="false" native="false" synchronized="false"
  13941. static="false" final="false" visibility="public"
  13942. deprecated="not deprecated">
  13943. <param name="o" type="java.lang.Object"/>
  13944. </method>
  13945. <method name="hashCode" return="int"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. </method>
  13950. <method name="nextRawKey" return="boolean"
  13951. abstract="false" native="false" synchronized="false"
  13952. static="false" final="false" visibility="public"
  13953. deprecated="not deprecated">
  13954. <exception name="IOException" type="java.io.IOException"/>
  13955. <doc>
  13956. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  13957. @return true if there is a key returned; false, otherwise
  13958. @throws IOException]]>
  13959. </doc>
  13960. </method>
  13961. <method name="nextRawValue" return="int"
  13962. abstract="false" native="false" synchronized="false"
  13963. static="false" final="false" visibility="public"
  13964. deprecated="not deprecated">
  13965. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13966. <exception name="IOException" type="java.io.IOException"/>
  13967. <doc>
  13968. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  13969. read earlier
  13970. @param rawValue
  13971. @return the length of the value
  13972. @throws IOException]]>
  13973. </doc>
  13974. </method>
  13975. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13976. abstract="false" native="false" synchronized="false"
  13977. static="false" final="false" visibility="public"
  13978. deprecated="not deprecated">
  13979. <doc>
  13980. <![CDATA[Returns the stored rawKey]]>
  13981. </doc>
  13982. </method>
  13983. <method name="cleanup"
  13984. abstract="false" native="false" synchronized="false"
  13985. static="false" final="false" visibility="public"
  13986. deprecated="not deprecated">
  13987. <exception name="IOException" type="java.io.IOException"/>
  13988. <doc>
  13989. <![CDATA[The default cleanup. Subclasses can override this with a custom
  13990. cleanup]]>
  13991. </doc>
  13992. </method>
  13993. <doc>
  13994. <![CDATA[This class defines a merge segment. This class can be subclassed to
  13995. provide a customized cleanup method implementation. In this
  13996. implementation, cleanup closes the file handle and deletes the file]]>
  13997. </doc>
  13998. </class>
  13999. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14000. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14001. <interface name="SequenceFile.ValueBytes" abstract="true"
  14002. static="true" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <method name="writeUncompressedBytes"
  14005. abstract="false" native="false" synchronized="false"
  14006. static="false" final="false" visibility="public"
  14007. deprecated="not deprecated">
  14008. <param name="outStream" type="java.io.DataOutputStream"/>
  14009. <exception name="IOException" type="java.io.IOException"/>
  14010. <doc>
  14011. <![CDATA[Writes the uncompressed bytes to the outStream.
  14012. @param outStream : Stream to write uncompressed bytes into.
  14013. @throws IOException]]>
  14014. </doc>
  14015. </method>
  14016. <method name="writeCompressedBytes"
  14017. abstract="false" native="false" synchronized="false"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. <param name="outStream" type="java.io.DataOutputStream"/>
  14021. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14022. <exception name="IOException" type="java.io.IOException"/>
  14023. <doc>
  14024. <![CDATA[Write compressed bytes to outStream.
  14025. Note: that it will NOT compress the bytes if they are not compressed.
  14026. @param outStream : Stream to write compressed bytes into.]]>
  14027. </doc>
  14028. </method>
  14029. <method name="getSize" return="int"
  14030. abstract="false" native="false" synchronized="false"
  14031. static="false" final="false" visibility="public"
  14032. deprecated="not deprecated">
  14033. <doc>
  14034. <![CDATA[Size of stored data.]]>
  14035. </doc>
  14036. </method>
  14037. <doc>
  14038. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  14039. </doc>
  14040. </interface>
  14041. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14042. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  14043. <class name="SequenceFile.Writer" extends="java.lang.Object"
  14044. abstract="false"
  14045. static="true" final="false" visibility="public"
  14046. deprecated="not deprecated">
  14047. <implements name="java.io.Closeable"/>
  14048. <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"
  14049. static="false" final="false" visibility="public"
  14050. deprecated="not deprecated">
  14051. <exception name="IOException" type="java.io.IOException"/>
  14052. <doc>
  14053. <![CDATA[Create the named file.]]>
  14054. </doc>
  14055. </constructor>
  14056. <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"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <exception name="IOException" type="java.io.IOException"/>
  14060. <doc>
  14061. <![CDATA[Create the named file with write-progress reporter.]]>
  14062. </doc>
  14063. </constructor>
  14064. <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"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <exception name="IOException" type="java.io.IOException"/>
  14068. <doc>
  14069. <![CDATA[Create the named file with write-progress reporter.]]>
  14070. </doc>
  14071. </constructor>
  14072. <method name="getKeyClass" return="java.lang.Class"
  14073. abstract="false" native="false" synchronized="false"
  14074. static="false" final="false" visibility="public"
  14075. deprecated="not deprecated">
  14076. <doc>
  14077. <![CDATA[Returns the class of keys in this file.]]>
  14078. </doc>
  14079. </method>
  14080. <method name="getValueClass" return="java.lang.Class"
  14081. abstract="false" native="false" synchronized="false"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <doc>
  14085. <![CDATA[Returns the class of values in this file.]]>
  14086. </doc>
  14087. </method>
  14088. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14089. abstract="false" native="false" synchronized="false"
  14090. static="false" final="false" visibility="public"
  14091. deprecated="not deprecated">
  14092. <doc>
  14093. <![CDATA[Returns the compression codec of data in this file.]]>
  14094. </doc>
  14095. </method>
  14096. <method name="sync"
  14097. abstract="false" native="false" synchronized="false"
  14098. static="false" final="false" visibility="public"
  14099. deprecated="not deprecated">
  14100. <exception name="IOException" type="java.io.IOException"/>
  14101. <doc>
  14102. <![CDATA[create a sync point]]>
  14103. </doc>
  14104. </method>
  14105. <method name="syncFs"
  14106. abstract="false" native="false" synchronized="false"
  14107. static="false" final="false" visibility="public"
  14108. deprecated="not deprecated">
  14109. <exception name="IOException" type="java.io.IOException"/>
  14110. <doc>
  14111. <![CDATA[flush all currently written data to the file system]]>
  14112. </doc>
  14113. </method>
  14114. <method name="close"
  14115. abstract="false" native="false" synchronized="true"
  14116. static="false" final="false" visibility="public"
  14117. deprecated="not deprecated">
  14118. <exception name="IOException" type="java.io.IOException"/>
  14119. <doc>
  14120. <![CDATA[Close the file.]]>
  14121. </doc>
  14122. </method>
  14123. <method name="append"
  14124. abstract="false" native="false" synchronized="true"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14128. <param name="val" type="org.apache.hadoop.io.Writable"/>
  14129. <exception name="IOException" type="java.io.IOException"/>
  14130. <doc>
  14131. <![CDATA[Append a key/value pair.]]>
  14132. </doc>
  14133. </method>
  14134. <method name="append"
  14135. abstract="false" native="false" synchronized="true"
  14136. static="false" final="false" visibility="public"
  14137. deprecated="not deprecated">
  14138. <param name="key" type="java.lang.Object"/>
  14139. <param name="val" type="java.lang.Object"/>
  14140. <exception name="IOException" type="java.io.IOException"/>
  14141. <doc>
  14142. <![CDATA[Append a key/value pair.]]>
  14143. </doc>
  14144. </method>
  14145. <method name="appendRaw"
  14146. abstract="false" native="false" synchronized="true"
  14147. static="false" final="false" visibility="public"
  14148. deprecated="not deprecated">
  14149. <param name="keyData" type="byte[]"/>
  14150. <param name="keyOffset" type="int"/>
  14151. <param name="keyLength" type="int"/>
  14152. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14153. <exception name="IOException" type="java.io.IOException"/>
  14154. </method>
  14155. <method name="getLength" return="long"
  14156. abstract="false" native="false" synchronized="true"
  14157. static="false" final="false" visibility="public"
  14158. deprecated="not deprecated">
  14159. <exception name="IOException" type="java.io.IOException"/>
  14160. <doc>
  14161. <![CDATA[Returns the current length of the output file.
  14162. <p>This always returns a synchronized position. In other words,
  14163. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  14164. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  14165. the key may be earlier in the file than key last written when this
  14166. method was called (e.g., with block-compression, it may be the first key
  14167. in the block that was being written when this method was called).]]>
  14168. </doc>
  14169. </method>
  14170. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14171. transient="false" volatile="false"
  14172. static="false" final="false" visibility="protected"
  14173. deprecated="not deprecated">
  14174. </field>
  14175. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14176. transient="false" volatile="false"
  14177. static="false" final="false" visibility="protected"
  14178. deprecated="not deprecated">
  14179. </field>
  14180. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14181. transient="false" volatile="false"
  14182. static="false" final="false" visibility="protected"
  14183. deprecated="not deprecated">
  14184. </field>
  14185. <doc>
  14186. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14187. </doc>
  14188. </class>
  14189. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14190. <!-- start class org.apache.hadoop.io.SetFile -->
  14191. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14192. abstract="false"
  14193. static="false" final="false" visibility="public"
  14194. deprecated="not deprecated">
  14195. <constructor name="SetFile"
  14196. static="false" final="false" visibility="protected"
  14197. deprecated="not deprecated">
  14198. </constructor>
  14199. <doc>
  14200. <![CDATA[A file-based set of keys.]]>
  14201. </doc>
  14202. </class>
  14203. <!-- end class org.apache.hadoop.io.SetFile -->
  14204. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14205. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14206. abstract="false"
  14207. static="true" final="false" visibility="public"
  14208. deprecated="not deprecated">
  14209. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14210. static="false" final="false" visibility="public"
  14211. deprecated="not deprecated">
  14212. <exception name="IOException" type="java.io.IOException"/>
  14213. <doc>
  14214. <![CDATA[Construct a set reader for the named set.]]>
  14215. </doc>
  14216. </constructor>
  14217. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14218. static="false" final="false" visibility="public"
  14219. deprecated="not deprecated">
  14220. <exception name="IOException" type="java.io.IOException"/>
  14221. <doc>
  14222. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14223. </doc>
  14224. </constructor>
  14225. <method name="seek" return="boolean"
  14226. abstract="false" native="false" synchronized="false"
  14227. static="false" final="false" visibility="public"
  14228. deprecated="not deprecated">
  14229. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14230. <exception name="IOException" type="java.io.IOException"/>
  14231. </method>
  14232. <method name="next" return="boolean"
  14233. abstract="false" native="false" synchronized="false"
  14234. static="false" final="false" visibility="public"
  14235. deprecated="not deprecated">
  14236. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14237. <exception name="IOException" type="java.io.IOException"/>
  14238. <doc>
  14239. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14240. true if such a key exists and false when at the end of the set.]]>
  14241. </doc>
  14242. </method>
  14243. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14244. abstract="false" native="false" synchronized="false"
  14245. static="false" final="false" visibility="public"
  14246. deprecated="not deprecated">
  14247. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14248. <exception name="IOException" type="java.io.IOException"/>
  14249. <doc>
  14250. <![CDATA[Read the matching key from a set into <code>key</code>.
  14251. Returns <code>key</code>, or null if no match exists.]]>
  14252. </doc>
  14253. </method>
  14254. <doc>
  14255. <![CDATA[Provide access to an existing set file.]]>
  14256. </doc>
  14257. </class>
  14258. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14259. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14260. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14261. abstract="false"
  14262. static="true" final="false" visibility="public"
  14263. deprecated="not deprecated">
  14264. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14265. static="false" final="false" visibility="public"
  14266. deprecated="pass a Configuration too">
  14267. <exception name="IOException" type="java.io.IOException"/>
  14268. <doc>
  14269. <![CDATA[Create the named set for keys of the named class.
  14270. @deprecated pass a Configuration too]]>
  14271. </doc>
  14272. </constructor>
  14273. <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"
  14274. static="false" final="false" visibility="public"
  14275. deprecated="not deprecated">
  14276. <exception name="IOException" type="java.io.IOException"/>
  14277. <doc>
  14278. <![CDATA[Create a set naming the element class and compression type.]]>
  14279. </doc>
  14280. </constructor>
  14281. <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"
  14282. static="false" final="false" visibility="public"
  14283. deprecated="not deprecated">
  14284. <exception name="IOException" type="java.io.IOException"/>
  14285. <doc>
  14286. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14287. </doc>
  14288. </constructor>
  14289. <method name="append"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14294. <exception name="IOException" type="java.io.IOException"/>
  14295. <doc>
  14296. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14297. previous key added to the set.]]>
  14298. </doc>
  14299. </method>
  14300. <doc>
  14301. <![CDATA[Write a new set file.]]>
  14302. </doc>
  14303. </class>
  14304. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14305. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14306. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14307. abstract="false"
  14308. static="false" final="false" visibility="public"
  14309. deprecated="not deprecated">
  14310. <implements name="java.util.SortedMap"/>
  14311. <constructor name="SortedMapWritable"
  14312. static="false" final="false" visibility="public"
  14313. deprecated="not deprecated">
  14314. <doc>
  14315. <![CDATA[default constructor.]]>
  14316. </doc>
  14317. </constructor>
  14318. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14319. static="false" final="false" visibility="public"
  14320. deprecated="not deprecated">
  14321. <doc>
  14322. <![CDATA[Copy constructor.
  14323. @param other the map to copy from]]>
  14324. </doc>
  14325. </constructor>
  14326. <method name="comparator" return="java.util.Comparator"
  14327. abstract="false" native="false" synchronized="false"
  14328. static="false" final="false" visibility="public"
  14329. deprecated="not deprecated">
  14330. <doc>
  14331. <![CDATA[{@inheritDoc}]]>
  14332. </doc>
  14333. </method>
  14334. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14335. abstract="false" native="false" synchronized="false"
  14336. static="false" final="false" visibility="public"
  14337. deprecated="not deprecated">
  14338. <doc>
  14339. <![CDATA[{@inheritDoc}]]>
  14340. </doc>
  14341. </method>
  14342. <method name="headMap" return="java.util.SortedMap"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14347. <doc>
  14348. <![CDATA[{@inheritDoc}]]>
  14349. </doc>
  14350. </method>
  14351. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14352. abstract="false" native="false" synchronized="false"
  14353. static="false" final="false" visibility="public"
  14354. deprecated="not deprecated">
  14355. <doc>
  14356. <![CDATA[{@inheritDoc}]]>
  14357. </doc>
  14358. </method>
  14359. <method name="subMap" return="java.util.SortedMap"
  14360. abstract="false" native="false" synchronized="false"
  14361. static="false" final="false" visibility="public"
  14362. deprecated="not deprecated">
  14363. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14364. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14365. <doc>
  14366. <![CDATA[{@inheritDoc}]]>
  14367. </doc>
  14368. </method>
  14369. <method name="tailMap" return="java.util.SortedMap"
  14370. abstract="false" native="false" synchronized="false"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14374. <doc>
  14375. <![CDATA[{@inheritDoc}]]>
  14376. </doc>
  14377. </method>
  14378. <method name="clear"
  14379. abstract="false" native="false" synchronized="false"
  14380. static="false" final="false" visibility="public"
  14381. deprecated="not deprecated">
  14382. <doc>
  14383. <![CDATA[{@inheritDoc}]]>
  14384. </doc>
  14385. </method>
  14386. <method name="containsKey" return="boolean"
  14387. abstract="false" native="false" synchronized="false"
  14388. static="false" final="false" visibility="public"
  14389. deprecated="not deprecated">
  14390. <param name="key" type="java.lang.Object"/>
  14391. <doc>
  14392. <![CDATA[{@inheritDoc}]]>
  14393. </doc>
  14394. </method>
  14395. <method name="containsValue" return="boolean"
  14396. abstract="false" native="false" synchronized="false"
  14397. static="false" final="false" visibility="public"
  14398. deprecated="not deprecated">
  14399. <param name="value" type="java.lang.Object"/>
  14400. <doc>
  14401. <![CDATA[{@inheritDoc}]]>
  14402. </doc>
  14403. </method>
  14404. <method name="entrySet" return="java.util.Set"
  14405. abstract="false" native="false" synchronized="false"
  14406. static="false" final="false" visibility="public"
  14407. deprecated="not deprecated">
  14408. <doc>
  14409. <![CDATA[{@inheritDoc}]]>
  14410. </doc>
  14411. </method>
  14412. <method name="get" return="org.apache.hadoop.io.Writable"
  14413. abstract="false" native="false" synchronized="false"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. <param name="key" type="java.lang.Object"/>
  14417. <doc>
  14418. <![CDATA[{@inheritDoc}]]>
  14419. </doc>
  14420. </method>
  14421. <method name="isEmpty" return="boolean"
  14422. abstract="false" native="false" synchronized="false"
  14423. static="false" final="false" visibility="public"
  14424. deprecated="not deprecated">
  14425. <doc>
  14426. <![CDATA[{@inheritDoc}]]>
  14427. </doc>
  14428. </method>
  14429. <method name="keySet" return="java.util.Set"
  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="put" return="org.apache.hadoop.io.Writable"
  14438. abstract="false" native="false" synchronized="false"
  14439. static="false" final="false" visibility="public"
  14440. deprecated="not deprecated">
  14441. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14442. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14443. <doc>
  14444. <![CDATA[{@inheritDoc}]]>
  14445. </doc>
  14446. </method>
  14447. <method name="putAll"
  14448. abstract="false" native="false" synchronized="false"
  14449. static="false" final="false" visibility="public"
  14450. deprecated="not deprecated">
  14451. <param name="t" type="java.util.Map"/>
  14452. <doc>
  14453. <![CDATA[{@inheritDoc}]]>
  14454. </doc>
  14455. </method>
  14456. <method name="remove" return="org.apache.hadoop.io.Writable"
  14457. abstract="false" native="false" synchronized="false"
  14458. static="false" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. <param name="key" type="java.lang.Object"/>
  14461. <doc>
  14462. <![CDATA[{@inheritDoc}]]>
  14463. </doc>
  14464. </method>
  14465. <method name="size" return="int"
  14466. abstract="false" native="false" synchronized="false"
  14467. static="false" final="false" visibility="public"
  14468. deprecated="not deprecated">
  14469. <doc>
  14470. <![CDATA[{@inheritDoc}]]>
  14471. </doc>
  14472. </method>
  14473. <method name="values" return="java.util.Collection"
  14474. abstract="false" native="false" synchronized="false"
  14475. static="false" final="false" visibility="public"
  14476. deprecated="not deprecated">
  14477. <doc>
  14478. <![CDATA[{@inheritDoc}]]>
  14479. </doc>
  14480. </method>
  14481. <method name="readFields"
  14482. abstract="false" native="false" synchronized="false"
  14483. static="false" final="false" visibility="public"
  14484. deprecated="not deprecated">
  14485. <param name="in" type="java.io.DataInput"/>
  14486. <exception name="IOException" type="java.io.IOException"/>
  14487. <doc>
  14488. <![CDATA[{@inheritDoc}]]>
  14489. </doc>
  14490. </method>
  14491. <method name="write"
  14492. abstract="false" native="false" synchronized="false"
  14493. static="false" final="false" visibility="public"
  14494. deprecated="not deprecated">
  14495. <param name="out" type="java.io.DataOutput"/>
  14496. <exception name="IOException" type="java.io.IOException"/>
  14497. <doc>
  14498. <![CDATA[{@inheritDoc}]]>
  14499. </doc>
  14500. </method>
  14501. <doc>
  14502. <![CDATA[A Writable SortedMap.]]>
  14503. </doc>
  14504. </class>
  14505. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14506. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14507. <interface name="Stringifier" abstract="true"
  14508. static="false" final="false" visibility="public"
  14509. deprecated="not deprecated">
  14510. <implements name="java.io.Closeable"/>
  14511. <method name="toString" return="java.lang.String"
  14512. abstract="false" native="false" synchronized="false"
  14513. static="false" final="false" visibility="public"
  14514. deprecated="not deprecated">
  14515. <param name="obj" type="java.lang.Object"/>
  14516. <exception name="IOException" type="java.io.IOException"/>
  14517. <doc>
  14518. <![CDATA[Converts the object to a string representation
  14519. @param obj the object to convert
  14520. @return the string representation of the object
  14521. @throws IOException if the object cannot be converted]]>
  14522. </doc>
  14523. </method>
  14524. <method name="fromString" return="java.lang.Object"
  14525. abstract="false" native="false" synchronized="false"
  14526. static="false" final="false" visibility="public"
  14527. deprecated="not deprecated">
  14528. <param name="str" type="java.lang.String"/>
  14529. <exception name="IOException" type="java.io.IOException"/>
  14530. <doc>
  14531. <![CDATA[Restores the object from its string representation.
  14532. @param str the string representation of the object
  14533. @return restored object
  14534. @throws IOException if the object cannot be restored]]>
  14535. </doc>
  14536. </method>
  14537. <method name="close"
  14538. abstract="false" native="false" synchronized="false"
  14539. static="false" final="false" visibility="public"
  14540. deprecated="not deprecated">
  14541. <exception name="IOException" type="java.io.IOException"/>
  14542. <doc>
  14543. <![CDATA[Closes this object.
  14544. @throws IOException if an I/O error occurs]]>
  14545. </doc>
  14546. </method>
  14547. <doc>
  14548. <![CDATA[Stringifier interface offers two methods to convert an object
  14549. to a string representation and restore the object given its
  14550. string representation.
  14551. @param <T> the class of the objects to stringify]]>
  14552. </doc>
  14553. </interface>
  14554. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14555. <!-- start class org.apache.hadoop.io.Text -->
  14556. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14557. abstract="false"
  14558. static="false" final="false" visibility="public"
  14559. deprecated="not deprecated">
  14560. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14561. <constructor name="Text"
  14562. static="false" final="false" visibility="public"
  14563. deprecated="not deprecated">
  14564. </constructor>
  14565. <constructor name="Text" type="java.lang.String"
  14566. static="false" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <doc>
  14569. <![CDATA[Construct from a string.]]>
  14570. </doc>
  14571. </constructor>
  14572. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14573. static="false" final="false" visibility="public"
  14574. deprecated="not deprecated">
  14575. <doc>
  14576. <![CDATA[Construct from another text.]]>
  14577. </doc>
  14578. </constructor>
  14579. <constructor name="Text" type="byte[]"
  14580. static="false" final="false" visibility="public"
  14581. deprecated="not deprecated">
  14582. <doc>
  14583. <![CDATA[Construct from a byte array.]]>
  14584. </doc>
  14585. </constructor>
  14586. <method name="getBytes" return="byte[]"
  14587. abstract="false" native="false" synchronized="false"
  14588. static="false" final="false" visibility="public"
  14589. deprecated="not deprecated">
  14590. <doc>
  14591. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14592. valid.]]>
  14593. </doc>
  14594. </method>
  14595. <method name="getLength" return="int"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="false" final="false" visibility="public"
  14598. deprecated="not deprecated">
  14599. <doc>
  14600. <![CDATA[Returns the number of bytes in the byte array]]>
  14601. </doc>
  14602. </method>
  14603. <method name="charAt" return="int"
  14604. abstract="false" native="false" synchronized="false"
  14605. static="false" final="false" visibility="public"
  14606. deprecated="not deprecated">
  14607. <param name="position" type="int"/>
  14608. <doc>
  14609. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14610. for the character at <code>position</code>. Note that this
  14611. method avoids using the converter or doing String instatiation
  14612. @return the Unicode scalar value at position or -1
  14613. if the position is invalid or points to a
  14614. trailing byte]]>
  14615. </doc>
  14616. </method>
  14617. <method name="find" return="int"
  14618. abstract="false" native="false" synchronized="false"
  14619. static="false" final="false" visibility="public"
  14620. deprecated="not deprecated">
  14621. <param name="what" type="java.lang.String"/>
  14622. </method>
  14623. <method name="find" return="int"
  14624. abstract="false" native="false" synchronized="false"
  14625. static="false" final="false" visibility="public"
  14626. deprecated="not deprecated">
  14627. <param name="what" type="java.lang.String"/>
  14628. <param name="start" type="int"/>
  14629. <doc>
  14630. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14631. buffer, starting as position <code>start</code>. The starting
  14632. position is measured in bytes and the return value is in
  14633. terms of byte position in the buffer. The backing buffer is
  14634. not converted to a string for this operation.
  14635. @return byte position of the first occurence of the search
  14636. string in the UTF-8 buffer or -1 if not found]]>
  14637. </doc>
  14638. </method>
  14639. <method name="set"
  14640. abstract="false" native="false" synchronized="false"
  14641. static="false" final="false" visibility="public"
  14642. deprecated="not deprecated">
  14643. <param name="string" type="java.lang.String"/>
  14644. <doc>
  14645. <![CDATA[Set to contain the contents of a string.]]>
  14646. </doc>
  14647. </method>
  14648. <method name="set"
  14649. abstract="false" native="false" synchronized="false"
  14650. static="false" final="false" visibility="public"
  14651. deprecated="not deprecated">
  14652. <param name="utf8" type="byte[]"/>
  14653. <doc>
  14654. <![CDATA[Set to a utf8 byte array]]>
  14655. </doc>
  14656. </method>
  14657. <method name="set"
  14658. abstract="false" native="false" synchronized="false"
  14659. static="false" final="false" visibility="public"
  14660. deprecated="not deprecated">
  14661. <param name="other" type="org.apache.hadoop.io.Text"/>
  14662. <doc>
  14663. <![CDATA[copy a text.]]>
  14664. </doc>
  14665. </method>
  14666. <method name="set"
  14667. abstract="false" native="false" synchronized="false"
  14668. static="false" final="false" visibility="public"
  14669. deprecated="not deprecated">
  14670. <param name="utf8" type="byte[]"/>
  14671. <param name="start" type="int"/>
  14672. <param name="len" type="int"/>
  14673. <doc>
  14674. <![CDATA[Set the Text to range of bytes
  14675. @param utf8 the data to copy from
  14676. @param start the first position of the new string
  14677. @param len the number of bytes of the new string]]>
  14678. </doc>
  14679. </method>
  14680. <method name="append"
  14681. abstract="false" native="false" synchronized="false"
  14682. static="false" final="false" visibility="public"
  14683. deprecated="not deprecated">
  14684. <param name="utf8" type="byte[]"/>
  14685. <param name="start" type="int"/>
  14686. <param name="len" type="int"/>
  14687. <doc>
  14688. <![CDATA[Append a range of bytes to the end of the given text
  14689. @param utf8 the data to copy from
  14690. @param start the first position to append from utf8
  14691. @param len the number of bytes to append]]>
  14692. </doc>
  14693. </method>
  14694. <method name="clear"
  14695. abstract="false" native="false" synchronized="false"
  14696. static="false" final="false" visibility="public"
  14697. deprecated="not deprecated">
  14698. <doc>
  14699. <![CDATA[Clear the string to empty.]]>
  14700. </doc>
  14701. </method>
  14702. <method name="toString" return="java.lang.String"
  14703. abstract="false" native="false" synchronized="false"
  14704. static="false" final="false" visibility="public"
  14705. deprecated="not deprecated">
  14706. <doc>
  14707. <![CDATA[Convert text back to string
  14708. @see java.lang.Object#toString()]]>
  14709. </doc>
  14710. </method>
  14711. <method name="readFields"
  14712. abstract="false" native="false" synchronized="false"
  14713. static="false" final="false" visibility="public"
  14714. deprecated="not deprecated">
  14715. <param name="in" type="java.io.DataInput"/>
  14716. <exception name="IOException" type="java.io.IOException"/>
  14717. <doc>
  14718. <![CDATA[deserialize]]>
  14719. </doc>
  14720. </method>
  14721. <method name="skip"
  14722. abstract="false" native="false" synchronized="false"
  14723. static="true" final="false" visibility="public"
  14724. deprecated="not deprecated">
  14725. <param name="in" type="java.io.DataInput"/>
  14726. <exception name="IOException" type="java.io.IOException"/>
  14727. <doc>
  14728. <![CDATA[Skips over one Text in the input.]]>
  14729. </doc>
  14730. </method>
  14731. <method name="write"
  14732. abstract="false" native="false" synchronized="false"
  14733. static="false" final="false" visibility="public"
  14734. deprecated="not deprecated">
  14735. <param name="out" type="java.io.DataOutput"/>
  14736. <exception name="IOException" type="java.io.IOException"/>
  14737. <doc>
  14738. <![CDATA[serialize
  14739. write this object to out
  14740. length uses zero-compressed encoding
  14741. @see Writable#write(DataOutput)]]>
  14742. </doc>
  14743. </method>
  14744. <method name="equals" return="boolean"
  14745. abstract="false" native="false" synchronized="false"
  14746. static="false" final="false" visibility="public"
  14747. deprecated="not deprecated">
  14748. <param name="o" type="java.lang.Object"/>
  14749. <doc>
  14750. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14751. </doc>
  14752. </method>
  14753. <method name="hashCode" return="int"
  14754. abstract="false" native="false" synchronized="false"
  14755. static="false" final="false" visibility="public"
  14756. deprecated="not deprecated">
  14757. </method>
  14758. <method name="decode" return="java.lang.String"
  14759. abstract="false" native="false" synchronized="false"
  14760. static="true" final="false" visibility="public"
  14761. deprecated="not deprecated">
  14762. <param name="utf8" type="byte[]"/>
  14763. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14764. <doc>
  14765. <![CDATA[Converts the provided byte array to a String using the
  14766. UTF-8 encoding. If the input is malformed,
  14767. replace by a default value.]]>
  14768. </doc>
  14769. </method>
  14770. <method name="decode" return="java.lang.String"
  14771. abstract="false" native="false" synchronized="false"
  14772. static="true" final="false" visibility="public"
  14773. deprecated="not deprecated">
  14774. <param name="utf8" type="byte[]"/>
  14775. <param name="start" type="int"/>
  14776. <param name="length" type="int"/>
  14777. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14778. </method>
  14779. <method name="decode" return="java.lang.String"
  14780. abstract="false" native="false" synchronized="false"
  14781. static="true" final="false" visibility="public"
  14782. deprecated="not deprecated">
  14783. <param name="utf8" type="byte[]"/>
  14784. <param name="start" type="int"/>
  14785. <param name="length" type="int"/>
  14786. <param name="replace" type="boolean"/>
  14787. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14788. <doc>
  14789. <![CDATA[Converts the provided byte array to a String using the
  14790. UTF-8 encoding. If <code>replace</code> is true, then
  14791. malformed input is replaced with the
  14792. substitution character, which is U+FFFD. Otherwise the
  14793. method throws a MalformedInputException.]]>
  14794. </doc>
  14795. </method>
  14796. <method name="encode" return="java.nio.ByteBuffer"
  14797. abstract="false" native="false" synchronized="false"
  14798. static="true" final="false" visibility="public"
  14799. deprecated="not deprecated">
  14800. <param name="string" type="java.lang.String"/>
  14801. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14802. <doc>
  14803. <![CDATA[Converts the provided String to bytes using the
  14804. UTF-8 encoding. If the input is malformed,
  14805. invalid chars are replaced by a default value.
  14806. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14807. and length is ByteBuffer.limit()]]>
  14808. </doc>
  14809. </method>
  14810. <method name="encode" return="java.nio.ByteBuffer"
  14811. abstract="false" native="false" synchronized="false"
  14812. static="true" final="false" visibility="public"
  14813. deprecated="not deprecated">
  14814. <param name="string" type="java.lang.String"/>
  14815. <param name="replace" type="boolean"/>
  14816. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14817. <doc>
  14818. <![CDATA[Converts the provided String to bytes using the
  14819. UTF-8 encoding. If <code>replace</code> is true, then
  14820. malformed input is replaced with the
  14821. substitution character, which is U+FFFD. Otherwise the
  14822. method throws a MalformedInputException.
  14823. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14824. and length is ByteBuffer.limit()]]>
  14825. </doc>
  14826. </method>
  14827. <method name="readString" return="java.lang.String"
  14828. abstract="false" native="false" synchronized="false"
  14829. static="true" final="false" visibility="public"
  14830. deprecated="not deprecated">
  14831. <param name="in" type="java.io.DataInput"/>
  14832. <exception name="IOException" type="java.io.IOException"/>
  14833. <doc>
  14834. <![CDATA[Read a UTF8 encoded string from in]]>
  14835. </doc>
  14836. </method>
  14837. <method name="writeString" return="int"
  14838. abstract="false" native="false" synchronized="false"
  14839. static="true" final="false" visibility="public"
  14840. deprecated="not deprecated">
  14841. <param name="out" type="java.io.DataOutput"/>
  14842. <param name="s" type="java.lang.String"/>
  14843. <exception name="IOException" type="java.io.IOException"/>
  14844. <doc>
  14845. <![CDATA[Write a UTF8 encoded string to out]]>
  14846. </doc>
  14847. </method>
  14848. <method name="validateUTF8"
  14849. abstract="false" native="false" synchronized="false"
  14850. static="true" final="false" visibility="public"
  14851. deprecated="not deprecated">
  14852. <param name="utf8" type="byte[]"/>
  14853. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14854. <doc>
  14855. <![CDATA[Check if a byte array contains valid utf-8
  14856. @param utf8 byte array
  14857. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14858. </doc>
  14859. </method>
  14860. <method name="validateUTF8"
  14861. abstract="false" native="false" synchronized="false"
  14862. static="true" final="false" visibility="public"
  14863. deprecated="not deprecated">
  14864. <param name="utf8" type="byte[]"/>
  14865. <param name="start" type="int"/>
  14866. <param name="len" type="int"/>
  14867. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14868. <doc>
  14869. <![CDATA[Check to see if a byte array is valid utf-8
  14870. @param utf8 the array of bytes
  14871. @param start the offset of the first byte in the array
  14872. @param len the length of the byte sequence
  14873. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14874. </doc>
  14875. </method>
  14876. <method name="bytesToCodePoint" return="int"
  14877. abstract="false" native="false" synchronized="false"
  14878. static="true" final="false" visibility="public"
  14879. deprecated="not deprecated">
  14880. <param name="bytes" type="java.nio.ByteBuffer"/>
  14881. <doc>
  14882. <![CDATA[Returns the next code point at the current position in
  14883. the buffer. The buffer's position will be incremented.
  14884. Any mark set on this buffer will be changed by this method!]]>
  14885. </doc>
  14886. </method>
  14887. <method name="utf8Length" return="int"
  14888. abstract="false" native="false" synchronized="false"
  14889. static="true" final="false" visibility="public"
  14890. deprecated="not deprecated">
  14891. <param name="string" type="java.lang.String"/>
  14892. <doc>
  14893. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14894. required to encode the string.
  14895. @param string text to encode
  14896. @return number of UTF-8 bytes required to encode]]>
  14897. </doc>
  14898. </method>
  14899. <doc>
  14900. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14901. to serialize, deserialize, and compare texts at byte level. The type of
  14902. length is integer and is serialized using zero-compressed format. <p>In
  14903. addition, it provides methods for string traversal without converting the
  14904. byte array to a string. <p>Also includes utilities for
  14905. serializing/deserialing a string, coding/decoding a string, checking if a
  14906. byte array contains valid UTF8 code, calculating the length of an encoded
  14907. string.]]>
  14908. </doc>
  14909. </class>
  14910. <!-- end class org.apache.hadoop.io.Text -->
  14911. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14912. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14913. abstract="false"
  14914. static="true" final="false" visibility="public"
  14915. deprecated="not deprecated">
  14916. <constructor name="Text.Comparator"
  14917. static="false" final="false" visibility="public"
  14918. deprecated="not deprecated">
  14919. </constructor>
  14920. <method name="compare" return="int"
  14921. abstract="false" native="false" synchronized="false"
  14922. static="false" final="false" visibility="public"
  14923. deprecated="not deprecated">
  14924. <param name="b1" type="byte[]"/>
  14925. <param name="s1" type="int"/>
  14926. <param name="l1" type="int"/>
  14927. <param name="b2" type="byte[]"/>
  14928. <param name="s2" type="int"/>
  14929. <param name="l2" type="int"/>
  14930. </method>
  14931. <doc>
  14932. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14933. </doc>
  14934. </class>
  14935. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14936. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14937. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14938. abstract="false"
  14939. static="false" final="false" visibility="public"
  14940. deprecated="not deprecated">
  14941. <implements name="org.apache.hadoop.io.Writable"/>
  14942. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. </constructor>
  14946. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14947. static="false" final="false" visibility="public"
  14948. deprecated="not deprecated">
  14949. </constructor>
  14950. <method name="toArray" return="java.lang.Object"
  14951. abstract="false" native="false" synchronized="false"
  14952. static="false" final="false" visibility="public"
  14953. deprecated="not deprecated">
  14954. </method>
  14955. <method name="set"
  14956. abstract="false" native="false" synchronized="false"
  14957. static="false" final="false" visibility="public"
  14958. deprecated="not deprecated">
  14959. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  14960. </method>
  14961. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  14962. abstract="false" native="false" synchronized="false"
  14963. static="false" final="false" visibility="public"
  14964. deprecated="not deprecated">
  14965. </method>
  14966. <method name="readFields"
  14967. abstract="false" native="false" synchronized="false"
  14968. static="false" final="false" visibility="public"
  14969. deprecated="not deprecated">
  14970. <param name="in" type="java.io.DataInput"/>
  14971. <exception name="IOException" type="java.io.IOException"/>
  14972. </method>
  14973. <method name="write"
  14974. abstract="false" native="false" synchronized="false"
  14975. static="false" final="false" visibility="public"
  14976. deprecated="not deprecated">
  14977. <param name="out" type="java.io.DataOutput"/>
  14978. <exception name="IOException" type="java.io.IOException"/>
  14979. </method>
  14980. <doc>
  14981. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  14982. </doc>
  14983. </class>
  14984. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  14985. <!-- start class org.apache.hadoop.io.UTF8 -->
  14986. <class name="UTF8" extends="java.lang.Object"
  14987. abstract="false"
  14988. static="false" final="false" visibility="public"
  14989. deprecated="replaced by Text">
  14990. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14991. <constructor name="UTF8"
  14992. static="false" final="false" visibility="public"
  14993. deprecated="not deprecated">
  14994. </constructor>
  14995. <constructor name="UTF8" type="java.lang.String"
  14996. static="false" final="false" visibility="public"
  14997. deprecated="not deprecated">
  14998. <doc>
  14999. <![CDATA[Construct from a given string.]]>
  15000. </doc>
  15001. </constructor>
  15002. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. <doc>
  15006. <![CDATA[Construct from a given string.]]>
  15007. </doc>
  15008. </constructor>
  15009. <method name="getBytes" return="byte[]"
  15010. abstract="false" native="false" synchronized="false"
  15011. static="false" final="false" visibility="public"
  15012. deprecated="not deprecated">
  15013. <doc>
  15014. <![CDATA[The raw bytes.]]>
  15015. </doc>
  15016. </method>
  15017. <method name="getLength" return="int"
  15018. abstract="false" native="false" synchronized="false"
  15019. static="false" final="false" visibility="public"
  15020. deprecated="not deprecated">
  15021. <doc>
  15022. <![CDATA[The number of bytes in the encoded string.]]>
  15023. </doc>
  15024. </method>
  15025. <method name="set"
  15026. abstract="false" native="false" synchronized="false"
  15027. static="false" final="false" visibility="public"
  15028. deprecated="not deprecated">
  15029. <param name="string" type="java.lang.String"/>
  15030. <doc>
  15031. <![CDATA[Set to contain the contents of a string.]]>
  15032. </doc>
  15033. </method>
  15034. <method name="set"
  15035. abstract="false" native="false" synchronized="false"
  15036. static="false" final="false" visibility="public"
  15037. deprecated="not deprecated">
  15038. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  15039. <doc>
  15040. <![CDATA[Set to contain the contents of a string.]]>
  15041. </doc>
  15042. </method>
  15043. <method name="readFields"
  15044. abstract="false" native="false" synchronized="false"
  15045. static="false" final="false" visibility="public"
  15046. deprecated="not deprecated">
  15047. <param name="in" type="java.io.DataInput"/>
  15048. <exception name="IOException" type="java.io.IOException"/>
  15049. </method>
  15050. <method name="skip"
  15051. abstract="false" native="false" synchronized="false"
  15052. static="true" final="false" visibility="public"
  15053. deprecated="not deprecated">
  15054. <param name="in" type="java.io.DataInput"/>
  15055. <exception name="IOException" type="java.io.IOException"/>
  15056. <doc>
  15057. <![CDATA[Skips over one UTF8 in the input.]]>
  15058. </doc>
  15059. </method>
  15060. <method name="write"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. <param name="out" type="java.io.DataOutput"/>
  15065. <exception name="IOException" type="java.io.IOException"/>
  15066. </method>
  15067. <method name="compareTo" return="int"
  15068. abstract="false" native="false" synchronized="false"
  15069. static="false" final="false" visibility="public"
  15070. deprecated="not deprecated">
  15071. <param name="o" type="java.lang.Object"/>
  15072. <doc>
  15073. <![CDATA[Compare two UTF8s.]]>
  15074. </doc>
  15075. </method>
  15076. <method name="toString" return="java.lang.String"
  15077. abstract="false" native="false" synchronized="false"
  15078. static="false" final="false" visibility="public"
  15079. deprecated="not deprecated">
  15080. <doc>
  15081. <![CDATA[Convert to a String.]]>
  15082. </doc>
  15083. </method>
  15084. <method name="equals" return="boolean"
  15085. abstract="false" native="false" synchronized="false"
  15086. static="false" final="false" visibility="public"
  15087. deprecated="not deprecated">
  15088. <param name="o" type="java.lang.Object"/>
  15089. <doc>
  15090. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  15091. </doc>
  15092. </method>
  15093. <method name="hashCode" return="int"
  15094. abstract="false" native="false" synchronized="false"
  15095. static="false" final="false" visibility="public"
  15096. deprecated="not deprecated">
  15097. </method>
  15098. <method name="getBytes" return="byte[]"
  15099. abstract="false" native="false" synchronized="false"
  15100. static="true" final="false" visibility="public"
  15101. deprecated="not deprecated">
  15102. <param name="string" type="java.lang.String"/>
  15103. <doc>
  15104. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  15105. @see String#getBytes(String)]]>
  15106. </doc>
  15107. </method>
  15108. <method name="readString" return="java.lang.String"
  15109. abstract="false" native="false" synchronized="false"
  15110. static="true" final="false" visibility="public"
  15111. deprecated="not deprecated">
  15112. <param name="in" type="java.io.DataInput"/>
  15113. <exception name="IOException" type="java.io.IOException"/>
  15114. <doc>
  15115. <![CDATA[Read a UTF-8 encoded string.
  15116. @see DataInput#readUTF()]]>
  15117. </doc>
  15118. </method>
  15119. <method name="writeString" return="int"
  15120. abstract="false" native="false" synchronized="false"
  15121. static="true" final="false" visibility="public"
  15122. deprecated="not deprecated">
  15123. <param name="out" type="java.io.DataOutput"/>
  15124. <param name="s" type="java.lang.String"/>
  15125. <exception name="IOException" type="java.io.IOException"/>
  15126. <doc>
  15127. <![CDATA[Write a UTF-8 encoded string.
  15128. @see DataOutput#writeUTF(String)]]>
  15129. </doc>
  15130. </method>
  15131. <doc>
  15132. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  15133. <p>Also includes utilities for efficiently reading and writing UTF-8.
  15134. @deprecated replaced by Text]]>
  15135. </doc>
  15136. </class>
  15137. <!-- end class org.apache.hadoop.io.UTF8 -->
  15138. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  15139. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15140. abstract="false"
  15141. static="true" final="false" visibility="public"
  15142. deprecated="not deprecated">
  15143. <constructor name="UTF8.Comparator"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. </constructor>
  15147. <method name="compare" return="int"
  15148. abstract="false" native="false" synchronized="false"
  15149. static="false" final="false" visibility="public"
  15150. deprecated="not deprecated">
  15151. <param name="b1" type="byte[]"/>
  15152. <param name="s1" type="int"/>
  15153. <param name="l1" type="int"/>
  15154. <param name="b2" type="byte[]"/>
  15155. <param name="s2" type="int"/>
  15156. <param name="l2" type="int"/>
  15157. </method>
  15158. <doc>
  15159. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  15160. </doc>
  15161. </class>
  15162. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  15163. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  15164. <class name="VersionedWritable" extends="java.lang.Object"
  15165. abstract="true"
  15166. static="false" final="false" visibility="public"
  15167. deprecated="not deprecated">
  15168. <implements name="org.apache.hadoop.io.Writable"/>
  15169. <constructor name="VersionedWritable"
  15170. static="false" final="false" visibility="public"
  15171. deprecated="not deprecated">
  15172. </constructor>
  15173. <method name="getVersion" return="byte"
  15174. abstract="true" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. <doc>
  15178. <![CDATA[Return the version number of the current implementation.]]>
  15179. </doc>
  15180. </method>
  15181. <method name="write"
  15182. abstract="false" native="false" synchronized="false"
  15183. static="false" final="false" visibility="public"
  15184. deprecated="not deprecated">
  15185. <param name="out" type="java.io.DataOutput"/>
  15186. <exception name="IOException" type="java.io.IOException"/>
  15187. </method>
  15188. <method name="readFields"
  15189. abstract="false" native="false" synchronized="false"
  15190. static="false" final="false" visibility="public"
  15191. deprecated="not deprecated">
  15192. <param name="in" type="java.io.DataInput"/>
  15193. <exception name="IOException" type="java.io.IOException"/>
  15194. </method>
  15195. <doc>
  15196. <![CDATA[A base class for Writables that provides version checking.
  15197. <p>This is useful when a class may evolve, so that instances written by the
  15198. old version of the class may still be processed by the new version. To
  15199. handle this situation, {@link #readFields(DataInput)}
  15200. implementations should catch {@link VersionMismatchException}.]]>
  15201. </doc>
  15202. </class>
  15203. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15204. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15205. <class name="VersionMismatchException" extends="java.io.IOException"
  15206. abstract="false"
  15207. static="false" final="false" visibility="public"
  15208. deprecated="not deprecated">
  15209. <constructor name="VersionMismatchException" type="byte, byte"
  15210. static="false" final="false" visibility="public"
  15211. deprecated="not deprecated">
  15212. </constructor>
  15213. <method name="toString" return="java.lang.String"
  15214. abstract="false" native="false" synchronized="false"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="not deprecated">
  15217. <doc>
  15218. <![CDATA[Returns a string representation of this object.]]>
  15219. </doc>
  15220. </method>
  15221. <doc>
  15222. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15223. version of an object being read does not match the current implementation
  15224. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15225. </doc>
  15226. </class>
  15227. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15228. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15229. <class name="VIntWritable" extends="java.lang.Object"
  15230. abstract="false"
  15231. static="false" final="false" visibility="public"
  15232. deprecated="not deprecated">
  15233. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15234. <constructor name="VIntWritable"
  15235. static="false" final="false" visibility="public"
  15236. deprecated="not deprecated">
  15237. </constructor>
  15238. <constructor name="VIntWritable" type="int"
  15239. static="false" final="false" visibility="public"
  15240. deprecated="not deprecated">
  15241. </constructor>
  15242. <method name="set"
  15243. abstract="false" native="false" synchronized="false"
  15244. static="false" final="false" visibility="public"
  15245. deprecated="not deprecated">
  15246. <param name="value" type="int"/>
  15247. <doc>
  15248. <![CDATA[Set the value of this VIntWritable.]]>
  15249. </doc>
  15250. </method>
  15251. <method name="get" return="int"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="false" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <doc>
  15256. <![CDATA[Return the value of this VIntWritable.]]>
  15257. </doc>
  15258. </method>
  15259. <method name="readFields"
  15260. abstract="false" native="false" synchronized="false"
  15261. static="false" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. <param name="in" type="java.io.DataInput"/>
  15264. <exception name="IOException" type="java.io.IOException"/>
  15265. </method>
  15266. <method name="write"
  15267. abstract="false" native="false" synchronized="false"
  15268. static="false" final="false" visibility="public"
  15269. deprecated="not deprecated">
  15270. <param name="out" type="java.io.DataOutput"/>
  15271. <exception name="IOException" type="java.io.IOException"/>
  15272. </method>
  15273. <method name="equals" return="boolean"
  15274. abstract="false" native="false" synchronized="false"
  15275. static="false" final="false" visibility="public"
  15276. deprecated="not deprecated">
  15277. <param name="o" type="java.lang.Object"/>
  15278. <doc>
  15279. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15280. </doc>
  15281. </method>
  15282. <method name="hashCode" return="int"
  15283. abstract="false" native="false" synchronized="false"
  15284. static="false" final="false" visibility="public"
  15285. deprecated="not deprecated">
  15286. </method>
  15287. <method name="compareTo" return="int"
  15288. abstract="false" native="false" synchronized="false"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <param name="o" type="java.lang.Object"/>
  15292. <doc>
  15293. <![CDATA[Compares two VIntWritables.]]>
  15294. </doc>
  15295. </method>
  15296. <method name="toString" return="java.lang.String"
  15297. abstract="false" native="false" synchronized="false"
  15298. static="false" final="false" visibility="public"
  15299. deprecated="not deprecated">
  15300. </method>
  15301. <doc>
  15302. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15303. Such values take between one and five bytes. Smaller values take fewer bytes.
  15304. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15305. </doc>
  15306. </class>
  15307. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15308. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15309. <class name="VLongWritable" extends="java.lang.Object"
  15310. abstract="false"
  15311. static="false" final="false" visibility="public"
  15312. deprecated="not deprecated">
  15313. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15314. <constructor name="VLongWritable"
  15315. static="false" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. </constructor>
  15318. <constructor name="VLongWritable" type="long"
  15319. static="false" final="false" visibility="public"
  15320. deprecated="not deprecated">
  15321. </constructor>
  15322. <method name="set"
  15323. abstract="false" native="false" synchronized="false"
  15324. static="false" final="false" visibility="public"
  15325. deprecated="not deprecated">
  15326. <param name="value" type="long"/>
  15327. <doc>
  15328. <![CDATA[Set the value of this LongWritable.]]>
  15329. </doc>
  15330. </method>
  15331. <method name="get" return="long"
  15332. abstract="false" native="false" synchronized="false"
  15333. static="false" final="false" visibility="public"
  15334. deprecated="not deprecated">
  15335. <doc>
  15336. <![CDATA[Return the value of this LongWritable.]]>
  15337. </doc>
  15338. </method>
  15339. <method name="readFields"
  15340. abstract="false" native="false" synchronized="false"
  15341. static="false" final="false" visibility="public"
  15342. deprecated="not deprecated">
  15343. <param name="in" type="java.io.DataInput"/>
  15344. <exception name="IOException" type="java.io.IOException"/>
  15345. </method>
  15346. <method name="write"
  15347. abstract="false" native="false" synchronized="false"
  15348. static="false" final="false" visibility="public"
  15349. deprecated="not deprecated">
  15350. <param name="out" type="java.io.DataOutput"/>
  15351. <exception name="IOException" type="java.io.IOException"/>
  15352. </method>
  15353. <method name="equals" return="boolean"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="false" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. <param name="o" type="java.lang.Object"/>
  15358. <doc>
  15359. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15360. </doc>
  15361. </method>
  15362. <method name="hashCode" return="int"
  15363. abstract="false" native="false" synchronized="false"
  15364. static="false" final="false" visibility="public"
  15365. deprecated="not deprecated">
  15366. </method>
  15367. <method name="compareTo" return="int"
  15368. abstract="false" native="false" synchronized="false"
  15369. static="false" final="false" visibility="public"
  15370. deprecated="not deprecated">
  15371. <param name="o" type="java.lang.Object"/>
  15372. <doc>
  15373. <![CDATA[Compares two VLongWritables.]]>
  15374. </doc>
  15375. </method>
  15376. <method name="toString" return="java.lang.String"
  15377. abstract="false" native="false" synchronized="false"
  15378. static="false" final="false" visibility="public"
  15379. deprecated="not deprecated">
  15380. </method>
  15381. <doc>
  15382. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15383. between one and five bytes. Smaller values take fewer bytes.
  15384. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15385. </doc>
  15386. </class>
  15387. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15388. <!-- start interface org.apache.hadoop.io.Writable -->
  15389. <interface name="Writable" abstract="true"
  15390. static="false" final="false" visibility="public"
  15391. deprecated="not deprecated">
  15392. <method name="write"
  15393. abstract="false" native="false" synchronized="false"
  15394. static="false" final="false" visibility="public"
  15395. deprecated="not deprecated">
  15396. <param name="out" type="java.io.DataOutput"/>
  15397. <exception name="IOException" type="java.io.IOException"/>
  15398. <doc>
  15399. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15400. @param out <code>DataOuput</code> to serialize this object into.
  15401. @throws IOException]]>
  15402. </doc>
  15403. </method>
  15404. <method name="readFields"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <param name="in" type="java.io.DataInput"/>
  15409. <exception name="IOException" type="java.io.IOException"/>
  15410. <doc>
  15411. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15412. <p>For efficiency, implementations should attempt to re-use storage in the
  15413. existing object where possible.</p>
  15414. @param in <code>DataInput</code> to deseriablize this object from.
  15415. @throws IOException]]>
  15416. </doc>
  15417. </method>
  15418. <doc>
  15419. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15420. protocol, based on {@link DataInput} and {@link DataOutput}.
  15421. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15422. framework implements this interface.</p>
  15423. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15424. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15425. and returns the instance.</p>
  15426. <p>Example:</p>
  15427. <p><blockquote><pre>
  15428. public class MyWritable implements Writable {
  15429. // Some data
  15430. private int counter;
  15431. private long timestamp;
  15432. public void write(DataOutput out) throws IOException {
  15433. out.writeInt(counter);
  15434. out.writeLong(timestamp);
  15435. }
  15436. public void readFields(DataInput in) throws IOException {
  15437. counter = in.readInt();
  15438. timestamp = in.readLong();
  15439. }
  15440. public static MyWritable read(DataInput in) throws IOException {
  15441. MyWritable w = new MyWritable();
  15442. w.readFields(in);
  15443. return w;
  15444. }
  15445. }
  15446. </pre></blockquote></p>]]>
  15447. </doc>
  15448. </interface>
  15449. <!-- end interface org.apache.hadoop.io.Writable -->
  15450. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15451. <interface name="WritableComparable" abstract="true"
  15452. static="false" final="false" visibility="public"
  15453. deprecated="not deprecated">
  15454. <implements name="org.apache.hadoop.io.Writable"/>
  15455. <implements name="java.lang.Comparable"/>
  15456. <doc>
  15457. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15458. <p><code>WritableComparable</code>s can be compared to each other, typically
  15459. via <code>Comparator</code>s. Any type which is to be used as a
  15460. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15461. interface.</p>
  15462. <p>Example:</p>
  15463. <p><blockquote><pre>
  15464. public class MyWritableComparable implements WritableComparable {
  15465. // Some data
  15466. private int counter;
  15467. private long timestamp;
  15468. public void write(DataOutput out) throws IOException {
  15469. out.writeInt(counter);
  15470. out.writeLong(timestamp);
  15471. }
  15472. public void readFields(DataInput in) throws IOException {
  15473. counter = in.readInt();
  15474. timestamp = in.readLong();
  15475. }
  15476. public int compareTo(MyWritableComparable w) {
  15477. int thisValue = this.value;
  15478. int thatValue = ((IntWritable)o).value;
  15479. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15480. }
  15481. }
  15482. </pre></blockquote></p>]]>
  15483. </doc>
  15484. </interface>
  15485. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15486. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15487. <class name="WritableComparator" extends="java.lang.Object"
  15488. abstract="false"
  15489. static="false" final="false" visibility="public"
  15490. deprecated="not deprecated">
  15491. <implements name="org.apache.hadoop.io.RawComparator"/>
  15492. <constructor name="WritableComparator" type="java.lang.Class"
  15493. static="false" final="false" visibility="protected"
  15494. deprecated="not deprecated">
  15495. <doc>
  15496. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15497. </doc>
  15498. </constructor>
  15499. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15500. static="false" final="false" visibility="protected"
  15501. deprecated="not deprecated">
  15502. </constructor>
  15503. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15504. abstract="false" native="false" synchronized="true"
  15505. static="true" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. <param name="c" type="java.lang.Class"/>
  15508. <doc>
  15509. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15510. </doc>
  15511. </method>
  15512. <method name="define"
  15513. abstract="false" native="false" synchronized="true"
  15514. static="true" final="false" visibility="public"
  15515. deprecated="not deprecated">
  15516. <param name="c" type="java.lang.Class"/>
  15517. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15518. <doc>
  15519. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15520. implementation.]]>
  15521. </doc>
  15522. </method>
  15523. <method name="getKeyClass" return="java.lang.Class"
  15524. abstract="false" native="false" synchronized="false"
  15525. static="false" final="false" visibility="public"
  15526. deprecated="not deprecated">
  15527. <doc>
  15528. <![CDATA[Returns the WritableComparable implementation class.]]>
  15529. </doc>
  15530. </method>
  15531. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15532. abstract="false" native="false" synchronized="false"
  15533. static="false" final="false" visibility="public"
  15534. deprecated="not deprecated">
  15535. <doc>
  15536. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15537. </doc>
  15538. </method>
  15539. <method name="compare" return="int"
  15540. abstract="false" native="false" synchronized="false"
  15541. static="false" final="false" visibility="public"
  15542. deprecated="not deprecated">
  15543. <param name="b1" type="byte[]"/>
  15544. <param name="s1" type="int"/>
  15545. <param name="l1" type="int"/>
  15546. <param name="b2" type="byte[]"/>
  15547. <param name="s2" type="int"/>
  15548. <param name="l2" type="int"/>
  15549. <doc>
  15550. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15551. <p>The default implementation reads the data into two {@link
  15552. WritableComparable}s (using {@link
  15553. Writable#readFields(DataInput)}, then calls {@link
  15554. #compare(WritableComparable,WritableComparable)}.]]>
  15555. </doc>
  15556. </method>
  15557. <method name="compare" return="int"
  15558. abstract="false" native="false" synchronized="false"
  15559. static="false" final="false" visibility="public"
  15560. deprecated="not deprecated">
  15561. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15562. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15563. <doc>
  15564. <![CDATA[Compare two WritableComparables.
  15565. <p> The default implementation uses the natural ordering, calling {@link
  15566. Comparable#compareTo(Object)}.]]>
  15567. </doc>
  15568. </method>
  15569. <method name="compare" return="int"
  15570. abstract="false" native="false" synchronized="false"
  15571. static="false" final="false" visibility="public"
  15572. deprecated="not deprecated">
  15573. <param name="a" type="java.lang.Object"/>
  15574. <param name="b" type="java.lang.Object"/>
  15575. </method>
  15576. <method name="compareBytes" return="int"
  15577. abstract="false" native="false" synchronized="false"
  15578. static="true" final="false" visibility="public"
  15579. deprecated="not deprecated">
  15580. <param name="b1" type="byte[]"/>
  15581. <param name="s1" type="int"/>
  15582. <param name="l1" type="int"/>
  15583. <param name="b2" type="byte[]"/>
  15584. <param name="s2" type="int"/>
  15585. <param name="l2" type="int"/>
  15586. <doc>
  15587. <![CDATA[Lexicographic order of binary data.]]>
  15588. </doc>
  15589. </method>
  15590. <method name="hashBytes" return="int"
  15591. abstract="false" native="false" synchronized="false"
  15592. static="true" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <param name="bytes" type="byte[]"/>
  15595. <param name="offset" type="int"/>
  15596. <param name="length" type="int"/>
  15597. <doc>
  15598. <![CDATA[Compute hash for binary data.]]>
  15599. </doc>
  15600. </method>
  15601. <method name="hashBytes" return="int"
  15602. abstract="false" native="false" synchronized="false"
  15603. static="true" final="false" visibility="public"
  15604. deprecated="not deprecated">
  15605. <param name="bytes" type="byte[]"/>
  15606. <param name="length" type="int"/>
  15607. <doc>
  15608. <![CDATA[Compute hash for binary data.]]>
  15609. </doc>
  15610. </method>
  15611. <method name="readUnsignedShort" return="int"
  15612. abstract="false" native="false" synchronized="false"
  15613. static="true" final="false" visibility="public"
  15614. deprecated="not deprecated">
  15615. <param name="bytes" type="byte[]"/>
  15616. <param name="start" type="int"/>
  15617. <doc>
  15618. <![CDATA[Parse an unsigned short from a byte array.]]>
  15619. </doc>
  15620. </method>
  15621. <method name="readInt" return="int"
  15622. abstract="false" native="false" synchronized="false"
  15623. static="true" final="false" visibility="public"
  15624. deprecated="not deprecated">
  15625. <param name="bytes" type="byte[]"/>
  15626. <param name="start" type="int"/>
  15627. <doc>
  15628. <![CDATA[Parse an integer from a byte array.]]>
  15629. </doc>
  15630. </method>
  15631. <method name="readFloat" return="float"
  15632. abstract="false" native="false" synchronized="false"
  15633. static="true" final="false" visibility="public"
  15634. deprecated="not deprecated">
  15635. <param name="bytes" type="byte[]"/>
  15636. <param name="start" type="int"/>
  15637. <doc>
  15638. <![CDATA[Parse a float from a byte array.]]>
  15639. </doc>
  15640. </method>
  15641. <method name="readLong" return="long"
  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="start" type="int"/>
  15647. <doc>
  15648. <![CDATA[Parse a long from a byte array.]]>
  15649. </doc>
  15650. </method>
  15651. <method name="readDouble" return="double"
  15652. abstract="false" native="false" synchronized="false"
  15653. static="true" final="false" visibility="public"
  15654. deprecated="not deprecated">
  15655. <param name="bytes" type="byte[]"/>
  15656. <param name="start" type="int"/>
  15657. <doc>
  15658. <![CDATA[Parse a double from a byte array.]]>
  15659. </doc>
  15660. </method>
  15661. <method name="readVLong" return="long"
  15662. abstract="false" native="false" synchronized="false"
  15663. static="true" final="false" visibility="public"
  15664. deprecated="not deprecated">
  15665. <param name="bytes" type="byte[]"/>
  15666. <param name="start" type="int"/>
  15667. <exception name="IOException" type="java.io.IOException"/>
  15668. <doc>
  15669. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15670. @param bytes byte array with decode long
  15671. @param start starting index
  15672. @throws java.io.IOException
  15673. @return deserialized long]]>
  15674. </doc>
  15675. </method>
  15676. <method name="readVInt" return="int"
  15677. abstract="false" native="false" synchronized="false"
  15678. static="true" final="false" visibility="public"
  15679. deprecated="not deprecated">
  15680. <param name="bytes" type="byte[]"/>
  15681. <param name="start" type="int"/>
  15682. <exception name="IOException" type="java.io.IOException"/>
  15683. <doc>
  15684. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15685. @param bytes byte array with the encoded integer
  15686. @param start start index
  15687. @throws java.io.IOException
  15688. @return deserialized integer]]>
  15689. </doc>
  15690. </method>
  15691. <doc>
  15692. <![CDATA[A Comparator for {@link WritableComparable}s.
  15693. <p>This base implemenation uses the natural ordering. To define alternate
  15694. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15695. <p>One may optimize compare-intensive operations by overriding
  15696. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15697. provided to assist in optimized implementations of this method.]]>
  15698. </doc>
  15699. </class>
  15700. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15701. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15702. <class name="WritableFactories" extends="java.lang.Object"
  15703. abstract="false"
  15704. static="false" final="false" visibility="public"
  15705. deprecated="not deprecated">
  15706. <method name="setFactory"
  15707. abstract="false" native="false" synchronized="true"
  15708. static="true" final="false" visibility="public"
  15709. deprecated="not deprecated">
  15710. <param name="c" type="java.lang.Class"/>
  15711. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15712. <doc>
  15713. <![CDATA[Define a factory for a class.]]>
  15714. </doc>
  15715. </method>
  15716. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15717. abstract="false" native="false" synchronized="true"
  15718. static="true" final="false" visibility="public"
  15719. deprecated="not deprecated">
  15720. <param name="c" type="java.lang.Class"/>
  15721. <doc>
  15722. <![CDATA[Define a factory for a class.]]>
  15723. </doc>
  15724. </method>
  15725. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15726. abstract="false" native="false" synchronized="false"
  15727. static="true" final="false" visibility="public"
  15728. deprecated="not deprecated">
  15729. <param name="c" type="java.lang.Class"/>
  15730. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15731. <doc>
  15732. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15733. </doc>
  15734. </method>
  15735. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15736. abstract="false" native="false" synchronized="false"
  15737. static="true" final="false" visibility="public"
  15738. deprecated="not deprecated">
  15739. <param name="c" type="java.lang.Class"/>
  15740. <doc>
  15741. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15742. </doc>
  15743. </method>
  15744. <doc>
  15745. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15746. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15747. </doc>
  15748. </class>
  15749. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15750. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15751. <interface name="WritableFactory" abstract="true"
  15752. static="false" final="false" visibility="public"
  15753. deprecated="not deprecated">
  15754. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15755. abstract="false" native="false" synchronized="false"
  15756. static="false" final="false" visibility="public"
  15757. deprecated="not deprecated">
  15758. <doc>
  15759. <![CDATA[Return a new instance.]]>
  15760. </doc>
  15761. </method>
  15762. <doc>
  15763. <![CDATA[A factory for a class of Writable.
  15764. @see WritableFactories]]>
  15765. </doc>
  15766. </interface>
  15767. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15768. <!-- start class org.apache.hadoop.io.WritableName -->
  15769. <class name="WritableName" extends="java.lang.Object"
  15770. abstract="false"
  15771. static="false" final="false" visibility="public"
  15772. deprecated="not deprecated">
  15773. <method name="setName"
  15774. abstract="false" native="false" synchronized="true"
  15775. static="true" final="false" visibility="public"
  15776. deprecated="not deprecated">
  15777. <param name="writableClass" type="java.lang.Class"/>
  15778. <param name="name" type="java.lang.String"/>
  15779. <doc>
  15780. <![CDATA[Set the name that a class should be known as to something other than the
  15781. class name.]]>
  15782. </doc>
  15783. </method>
  15784. <method name="addName"
  15785. abstract="false" native="false" synchronized="true"
  15786. static="true" final="false" visibility="public"
  15787. deprecated="not deprecated">
  15788. <param name="writableClass" type="java.lang.Class"/>
  15789. <param name="name" type="java.lang.String"/>
  15790. <doc>
  15791. <![CDATA[Add an alternate name for a class.]]>
  15792. </doc>
  15793. </method>
  15794. <method name="getName" return="java.lang.String"
  15795. abstract="false" native="false" synchronized="true"
  15796. static="true" final="false" visibility="public"
  15797. deprecated="not deprecated">
  15798. <param name="writableClass" type="java.lang.Class"/>
  15799. <doc>
  15800. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15801. </doc>
  15802. </method>
  15803. <method name="getClass" return="java.lang.Class"
  15804. abstract="false" native="false" synchronized="true"
  15805. static="true" final="false" visibility="public"
  15806. deprecated="not deprecated">
  15807. <param name="name" type="java.lang.String"/>
  15808. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15809. <exception name="IOException" type="java.io.IOException"/>
  15810. <doc>
  15811. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15812. </doc>
  15813. </method>
  15814. <doc>
  15815. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15816. invalidiating files that contain their class name.]]>
  15817. </doc>
  15818. </class>
  15819. <!-- end class org.apache.hadoop.io.WritableName -->
  15820. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15821. <class name="WritableUtils" extends="java.lang.Object"
  15822. abstract="false"
  15823. static="false" final="true" visibility="public"
  15824. deprecated="not deprecated">
  15825. <constructor name="WritableUtils"
  15826. static="false" final="false" visibility="public"
  15827. deprecated="not deprecated">
  15828. </constructor>
  15829. <method name="readCompressedByteArray" return="byte[]"
  15830. abstract="false" native="false" synchronized="false"
  15831. static="true" final="false" visibility="public"
  15832. deprecated="not deprecated">
  15833. <param name="in" type="java.io.DataInput"/>
  15834. <exception name="IOException" type="java.io.IOException"/>
  15835. </method>
  15836. <method name="skipCompressedByteArray"
  15837. abstract="false" native="false" synchronized="false"
  15838. static="true" final="false" visibility="public"
  15839. deprecated="not deprecated">
  15840. <param name="in" type="java.io.DataInput"/>
  15841. <exception name="IOException" type="java.io.IOException"/>
  15842. </method>
  15843. <method name="writeCompressedByteArray" return="int"
  15844. abstract="false" native="false" synchronized="false"
  15845. static="true" final="false" visibility="public"
  15846. deprecated="not deprecated">
  15847. <param name="out" type="java.io.DataOutput"/>
  15848. <param name="bytes" type="byte[]"/>
  15849. <exception name="IOException" type="java.io.IOException"/>
  15850. </method>
  15851. <method name="readCompressedString" return="java.lang.String"
  15852. abstract="false" native="false" synchronized="false"
  15853. static="true" final="false" visibility="public"
  15854. deprecated="not deprecated">
  15855. <param name="in" type="java.io.DataInput"/>
  15856. <exception name="IOException" type="java.io.IOException"/>
  15857. </method>
  15858. <method name="writeCompressedString" return="int"
  15859. abstract="false" native="false" synchronized="false"
  15860. static="true" final="false" visibility="public"
  15861. deprecated="not deprecated">
  15862. <param name="out" type="java.io.DataOutput"/>
  15863. <param name="s" type="java.lang.String"/>
  15864. <exception name="IOException" type="java.io.IOException"/>
  15865. </method>
  15866. <method name="writeString"
  15867. abstract="false" native="false" synchronized="false"
  15868. static="true" final="false" visibility="public"
  15869. deprecated="not deprecated">
  15870. <param name="out" type="java.io.DataOutput"/>
  15871. <param name="s" type="java.lang.String"/>
  15872. <exception name="IOException" type="java.io.IOException"/>
  15873. </method>
  15874. <method name="readString" return="java.lang.String"
  15875. abstract="false" native="false" synchronized="false"
  15876. static="true" final="false" visibility="public"
  15877. deprecated="not deprecated">
  15878. <param name="in" type="java.io.DataInput"/>
  15879. <exception name="IOException" type="java.io.IOException"/>
  15880. </method>
  15881. <method name="writeStringArray"
  15882. abstract="false" native="false" synchronized="false"
  15883. static="true" final="false" visibility="public"
  15884. deprecated="not deprecated">
  15885. <param name="out" type="java.io.DataOutput"/>
  15886. <param name="s" type="java.lang.String[]"/>
  15887. <exception name="IOException" type="java.io.IOException"/>
  15888. </method>
  15889. <method name="writeCompressedStringArray"
  15890. abstract="false" native="false" synchronized="false"
  15891. static="true" final="false" visibility="public"
  15892. deprecated="not deprecated">
  15893. <param name="out" type="java.io.DataOutput"/>
  15894. <param name="s" type="java.lang.String[]"/>
  15895. <exception name="IOException" type="java.io.IOException"/>
  15896. </method>
  15897. <method name="readStringArray" return="java.lang.String[]"
  15898. abstract="false" native="false" synchronized="false"
  15899. static="true" final="false" visibility="public"
  15900. deprecated="not deprecated">
  15901. <param name="in" type="java.io.DataInput"/>
  15902. <exception name="IOException" type="java.io.IOException"/>
  15903. </method>
  15904. <method name="readCompressedStringArray" return="java.lang.String[]"
  15905. abstract="false" native="false" synchronized="false"
  15906. static="true" final="false" visibility="public"
  15907. deprecated="not deprecated">
  15908. <param name="in" type="java.io.DataInput"/>
  15909. <exception name="IOException" type="java.io.IOException"/>
  15910. </method>
  15911. <method name="displayByteArray"
  15912. abstract="false" native="false" synchronized="false"
  15913. static="true" final="false" visibility="public"
  15914. deprecated="not deprecated">
  15915. <param name="record" type="byte[]"/>
  15916. </method>
  15917. <method name="clone" return="org.apache.hadoop.io.Writable"
  15918. abstract="false" native="false" synchronized="false"
  15919. static="true" final="false" visibility="public"
  15920. deprecated="not deprecated">
  15921. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15923. <doc>
  15924. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15925. @param orig The object to copy
  15926. @return The copied object]]>
  15927. </doc>
  15928. </method>
  15929. <method name="cloneInto"
  15930. abstract="false" native="false" synchronized="false"
  15931. static="true" final="false" visibility="public"
  15932. deprecated="use ReflectionUtils.cloneInto instead.">
  15933. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15934. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15935. <exception name="IOException" type="java.io.IOException"/>
  15936. <doc>
  15937. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15938. @param dst the object to copy from
  15939. @param src the object to copy into, which is destroyed
  15940. @throws IOException
  15941. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15942. </doc>
  15943. </method>
  15944. <method name="writeVInt"
  15945. abstract="false" native="false" synchronized="false"
  15946. static="true" final="false" visibility="public"
  15947. deprecated="not deprecated">
  15948. <param name="stream" type="java.io.DataOutput"/>
  15949. <param name="i" type="int"/>
  15950. <exception name="IOException" type="java.io.IOException"/>
  15951. <doc>
  15952. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  15953. For -120 <= i <= 127, only one byte is used with the actual value.
  15954. For other values of i, the first byte value indicates whether the
  15955. integer is positive or negative, and the number of bytes that follow.
  15956. If the first byte value v is between -121 and -124, the following integer
  15957. is positive, with number of bytes that follow are -(v+120).
  15958. If the first byte value v is between -125 and -128, the following integer
  15959. is negative, with number of bytes that follow are -(v+124). Bytes are
  15960. stored in the high-non-zero-byte-first order.
  15961. @param stream Binary output stream
  15962. @param i Integer to be serialized
  15963. @throws java.io.IOException]]>
  15964. </doc>
  15965. </method>
  15966. <method name="writeVLong"
  15967. abstract="false" native="false" synchronized="false"
  15968. static="true" final="false" visibility="public"
  15969. deprecated="not deprecated">
  15970. <param name="stream" type="java.io.DataOutput"/>
  15971. <param name="i" type="long"/>
  15972. <exception name="IOException" type="java.io.IOException"/>
  15973. <doc>
  15974. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  15975. For -112 <= i <= 127, only one byte is used with the actual value.
  15976. For other values of i, the first byte value indicates whether the
  15977. long is positive or negative, and the number of bytes that follow.
  15978. If the first byte value v is between -113 and -120, the following long
  15979. is positive, with number of bytes that follow are -(v+112).
  15980. If the first byte value v is between -121 and -128, the following long
  15981. is negative, with number of bytes that follow are -(v+120). Bytes are
  15982. stored in the high-non-zero-byte-first order.
  15983. @param stream Binary output stream
  15984. @param i Long to be serialized
  15985. @throws java.io.IOException]]>
  15986. </doc>
  15987. </method>
  15988. <method name="readVLong" return="long"
  15989. abstract="false" native="false" synchronized="false"
  15990. static="true" final="false" visibility="public"
  15991. deprecated="not deprecated">
  15992. <param name="stream" type="java.io.DataInput"/>
  15993. <exception name="IOException" type="java.io.IOException"/>
  15994. <doc>
  15995. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  15996. @param stream Binary input stream
  15997. @throws java.io.IOException
  15998. @return deserialized long from stream.]]>
  15999. </doc>
  16000. </method>
  16001. <method name="readVInt" return="int"
  16002. abstract="false" native="false" synchronized="false"
  16003. static="true" final="false" visibility="public"
  16004. deprecated="not deprecated">
  16005. <param name="stream" type="java.io.DataInput"/>
  16006. <exception name="IOException" type="java.io.IOException"/>
  16007. <doc>
  16008. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  16009. @param stream Binary input stream
  16010. @throws java.io.IOException
  16011. @return deserialized integer from stream.]]>
  16012. </doc>
  16013. </method>
  16014. <method name="isNegativeVInt" return="boolean"
  16015. abstract="false" native="false" synchronized="false"
  16016. static="true" final="false" visibility="public"
  16017. deprecated="not deprecated">
  16018. <param name="value" type="byte"/>
  16019. <doc>
  16020. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  16021. @param value the first byte
  16022. @return is the value negative]]>
  16023. </doc>
  16024. </method>
  16025. <method name="decodeVIntSize" return="int"
  16026. abstract="false" native="false" synchronized="false"
  16027. static="true" final="false" visibility="public"
  16028. deprecated="not deprecated">
  16029. <param name="value" type="byte"/>
  16030. <doc>
  16031. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  16032. @param value the first byte of the vint/vlong
  16033. @return the total number of bytes (1 to 9)]]>
  16034. </doc>
  16035. </method>
  16036. <method name="getVIntSize" return="int"
  16037. abstract="false" native="false" synchronized="false"
  16038. static="true" final="false" visibility="public"
  16039. deprecated="not deprecated">
  16040. <param name="i" type="long"/>
  16041. <doc>
  16042. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  16043. @return the encoded length]]>
  16044. </doc>
  16045. </method>
  16046. <method name="readEnum" return="java.lang.Enum"
  16047. abstract="false" native="false" synchronized="false"
  16048. static="true" final="false" visibility="public"
  16049. deprecated="not deprecated">
  16050. <param name="in" type="java.io.DataInput"/>
  16051. <param name="enumType" type="java.lang.Class"/>
  16052. <exception name="IOException" type="java.io.IOException"/>
  16053. <doc>
  16054. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  16055. using String values.
  16056. @param <T> Enum type
  16057. @param in DataInput to read from
  16058. @param enumType Class type of Enum
  16059. @return Enum represented by String read from DataInput
  16060. @throws IOException]]>
  16061. </doc>
  16062. </method>
  16063. <method name="writeEnum"
  16064. abstract="false" native="false" synchronized="false"
  16065. static="true" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. <param name="out" type="java.io.DataOutput"/>
  16068. <param name="enumVal" type="java.lang.Enum"/>
  16069. <exception name="IOException" type="java.io.IOException"/>
  16070. <doc>
  16071. <![CDATA[writes String value of enum to DataOutput.
  16072. @param out Dataoutput stream
  16073. @param enumVal enum value
  16074. @throws IOException]]>
  16075. </doc>
  16076. </method>
  16077. <method name="skipFully"
  16078. abstract="false" native="false" synchronized="false"
  16079. static="true" final="false" visibility="public"
  16080. deprecated="not deprecated">
  16081. <param name="in" type="java.io.DataInput"/>
  16082. <param name="len" type="int"/>
  16083. <exception name="IOException" type="java.io.IOException"/>
  16084. <doc>
  16085. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  16086. @param in input stream
  16087. @param len number of bytes to skip
  16088. @throws IOException when skipped less number of bytes]]>
  16089. </doc>
  16090. </method>
  16091. <method name="toByteArray" return="byte[]"
  16092. abstract="false" native="false" synchronized="false"
  16093. static="true" final="false" visibility="public"
  16094. deprecated="not deprecated">
  16095. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  16096. <doc>
  16097. <![CDATA[Convert writables to a byte array]]>
  16098. </doc>
  16099. </method>
  16100. </class>
  16101. <!-- end class org.apache.hadoop.io.WritableUtils -->
  16102. </package>
  16103. <package name="org.apache.hadoop.io.compress">
  16104. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16105. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16106. abstract="false"
  16107. static="false" final="false" visibility="public"
  16108. deprecated="not deprecated">
  16109. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  16110. static="false" final="false" visibility="public"
  16111. deprecated="not deprecated">
  16112. <doc>
  16113. <![CDATA[Create a {@link BlockCompressorStream}.
  16114. @param out stream
  16115. @param compressor compressor to be used
  16116. @param bufferSize size of buffer
  16117. @param compressionOverhead maximum 'overhead' of the compression
  16118. algorithm with given bufferSize]]>
  16119. </doc>
  16120. </constructor>
  16121. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16122. static="false" final="false" visibility="public"
  16123. deprecated="not deprecated">
  16124. <doc>
  16125. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  16126. compressor.
  16127. Use default of 512 as bufferSize and compressionOverhead of
  16128. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  16129. @param out stream
  16130. @param compressor compressor to be used]]>
  16131. </doc>
  16132. </constructor>
  16133. <method name="write"
  16134. abstract="false" native="false" synchronized="false"
  16135. static="false" final="false" visibility="public"
  16136. deprecated="not deprecated">
  16137. <param name="b" type="byte[]"/>
  16138. <param name="off" type="int"/>
  16139. <param name="len" type="int"/>
  16140. <exception name="IOException" type="java.io.IOException"/>
  16141. <doc>
  16142. <![CDATA[Write the data provided to the compression codec, compressing no more
  16143. than the buffer size less the compression overhead as specified during
  16144. construction for each block.
  16145. Each block contains the uncompressed length for the block, followed by
  16146. one or more length-prefixed blocks of compressed data.]]>
  16147. </doc>
  16148. </method>
  16149. <method name="finish"
  16150. abstract="false" native="false" synchronized="false"
  16151. static="false" final="false" visibility="public"
  16152. deprecated="not deprecated">
  16153. <exception name="IOException" type="java.io.IOException"/>
  16154. </method>
  16155. <method name="compress"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="false" final="false" visibility="protected"
  16158. deprecated="not deprecated">
  16159. <exception name="IOException" type="java.io.IOException"/>
  16160. </method>
  16161. <doc>
  16162. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  16163. with 'block-based' based compression algorithms, as opposed to
  16164. 'stream-based' compression algorithms.
  16165. It should be noted that this wrapper does not guarantee that blocks will
  16166. be sized for the compressor. If the
  16167. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  16168. effect meaningful compression, it is responsible for it.]]>
  16169. </doc>
  16170. </class>
  16171. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16172. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16173. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16174. abstract="false"
  16175. static="false" final="false" visibility="public"
  16176. deprecated="not deprecated">
  16177. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16178. static="false" final="false" visibility="public"
  16179. deprecated="not deprecated">
  16180. <exception name="IOException" type="java.io.IOException"/>
  16181. <doc>
  16182. <![CDATA[Create a {@link BlockDecompressorStream}.
  16183. @param in input stream
  16184. @param decompressor decompressor to use
  16185. @param bufferSize size of buffer
  16186. @throws IOException]]>
  16187. </doc>
  16188. </constructor>
  16189. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16190. static="false" final="false" visibility="public"
  16191. deprecated="not deprecated">
  16192. <exception name="IOException" type="java.io.IOException"/>
  16193. <doc>
  16194. <![CDATA[Create a {@link BlockDecompressorStream}.
  16195. @param in input stream
  16196. @param decompressor decompressor to use
  16197. @throws IOException]]>
  16198. </doc>
  16199. </constructor>
  16200. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16201. static="false" final="false" visibility="protected"
  16202. deprecated="not deprecated">
  16203. <exception name="IOException" type="java.io.IOException"/>
  16204. </constructor>
  16205. <method name="decompress" return="int"
  16206. abstract="false" native="false" synchronized="false"
  16207. static="false" final="false" visibility="protected"
  16208. deprecated="not deprecated">
  16209. <param name="b" type="byte[]"/>
  16210. <param name="off" type="int"/>
  16211. <param name="len" type="int"/>
  16212. <exception name="IOException" type="java.io.IOException"/>
  16213. </method>
  16214. <method name="getCompressedData" return="int"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="protected"
  16217. deprecated="not deprecated">
  16218. <exception name="IOException" type="java.io.IOException"/>
  16219. </method>
  16220. <method name="resetState"
  16221. abstract="false" native="false" synchronized="false"
  16222. static="false" final="false" visibility="public"
  16223. deprecated="not deprecated">
  16224. <exception name="IOException" type="java.io.IOException"/>
  16225. </method>
  16226. <doc>
  16227. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16228. with 'block-based' based compression algorithms, as opposed to
  16229. 'stream-based' compression algorithms.]]>
  16230. </doc>
  16231. </class>
  16232. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16233. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16234. <class name="BZip2Codec" extends="java.lang.Object"
  16235. abstract="false"
  16236. static="false" final="false" visibility="public"
  16237. deprecated="not deprecated">
  16238. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  16239. <constructor name="BZip2Codec"
  16240. static="false" final="false" visibility="public"
  16241. deprecated="not deprecated">
  16242. <doc>
  16243. <![CDATA[Creates a new instance of BZip2Codec]]>
  16244. </doc>
  16245. </constructor>
  16246. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16247. abstract="false" native="false" synchronized="false"
  16248. static="false" final="false" visibility="public"
  16249. deprecated="not deprecated">
  16250. <param name="out" type="java.io.OutputStream"/>
  16251. <exception name="IOException" type="java.io.IOException"/>
  16252. <doc>
  16253. <![CDATA[Creates CompressionOutputStream for BZip2
  16254. @param out
  16255. The output Stream
  16256. @return The BZip2 CompressionOutputStream
  16257. @throws java.io.IOException
  16258. Throws IO exception]]>
  16259. </doc>
  16260. </method>
  16261. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16262. abstract="false" native="false" synchronized="false"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <param name="out" type="java.io.OutputStream"/>
  16266. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16267. <exception name="IOException" type="java.io.IOException"/>
  16268. <doc>
  16269. <![CDATA[Creates a compressor using given OutputStream.
  16270. @return CompressionOutputStream
  16271. @throws java.io.IOException]]>
  16272. </doc>
  16273. </method>
  16274. <method name="getCompressorType" return="java.lang.Class"
  16275. abstract="false" native="false" synchronized="false"
  16276. static="false" final="false" visibility="public"
  16277. deprecated="not deprecated">
  16278. <doc>
  16279. <![CDATA[This functionality is currently not supported.
  16280. @return BZip2DummyCompressor.class]]>
  16281. </doc>
  16282. </method>
  16283. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16284. abstract="false" native="false" synchronized="false"
  16285. static="false" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. <doc>
  16288. <![CDATA[This functionality is currently not supported.
  16289. @return Compressor]]>
  16290. </doc>
  16291. </method>
  16292. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16293. abstract="false" native="false" synchronized="false"
  16294. static="false" final="false" visibility="public"
  16295. deprecated="not deprecated">
  16296. <param name="in" type="java.io.InputStream"/>
  16297. <exception name="IOException" type="java.io.IOException"/>
  16298. <doc>
  16299. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16300. @param in
  16301. The InputStream
  16302. @return Returns CompressionInputStream for BZip2
  16303. @throws java.io.IOException
  16304. Throws IOException]]>
  16305. </doc>
  16306. </method>
  16307. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16308. abstract="false" native="false" synchronized="false"
  16309. static="false" final="false" visibility="public"
  16310. deprecated="not deprecated">
  16311. <param name="in" type="java.io.InputStream"/>
  16312. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16313. <exception name="IOException" type="java.io.IOException"/>
  16314. <doc>
  16315. <![CDATA[This functionality is currently not supported.
  16316. @return CompressionInputStream]]>
  16317. </doc>
  16318. </method>
  16319. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16320. abstract="false" native="false" synchronized="false"
  16321. static="false" final="false" visibility="public"
  16322. deprecated="not deprecated">
  16323. <param name="seekableIn" type="java.io.InputStream"/>
  16324. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16325. <param name="start" type="long"/>
  16326. <param name="end" type="long"/>
  16327. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16328. <exception name="IOException" type="java.io.IOException"/>
  16329. <doc>
  16330. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  16331. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  16332. @param seekableIn The InputStream
  16333. @param start The start offset into the compressed stream
  16334. @param end The end offset into the compressed stream
  16335. @param readMode Controls whether progress is reported continuously or
  16336. only at block boundaries.
  16337. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  16338. </doc>
  16339. </method>
  16340. <method name="getDecompressorType" return="java.lang.Class"
  16341. abstract="false" native="false" synchronized="false"
  16342. static="false" final="false" visibility="public"
  16343. deprecated="not deprecated">
  16344. <doc>
  16345. <![CDATA[This functionality is currently not supported.
  16346. @return BZip2DummyDecompressor.class]]>
  16347. </doc>
  16348. </method>
  16349. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16350. abstract="false" native="false" synchronized="false"
  16351. static="false" final="false" visibility="public"
  16352. deprecated="not deprecated">
  16353. <doc>
  16354. <![CDATA[This functionality is currently not supported.
  16355. @return Decompressor]]>
  16356. </doc>
  16357. </method>
  16358. <method name="getDefaultExtension" return="java.lang.String"
  16359. abstract="false" native="false" synchronized="false"
  16360. static="false" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <doc>
  16363. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16364. @return A String telling the default bzip2 file extension]]>
  16365. </doc>
  16366. </method>
  16367. <doc>
  16368. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16369. compression and decompression. Currently we dont have an implementation of
  16370. the Compressor and Decompressor interfaces, so those methods of
  16371. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16372. UnsupportedOperationException.]]>
  16373. </doc>
  16374. </class>
  16375. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16376. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16377. <class name="CodecPool" extends="java.lang.Object"
  16378. abstract="false"
  16379. static="false" final="false" visibility="public"
  16380. deprecated="not deprecated">
  16381. <constructor name="CodecPool"
  16382. static="false" final="false" visibility="public"
  16383. deprecated="not deprecated">
  16384. </constructor>
  16385. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16386. abstract="false" native="false" synchronized="false"
  16387. static="true" final="false" visibility="public"
  16388. deprecated="not deprecated">
  16389. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16391. <doc>
  16392. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16393. pool or a new one.
  16394. @param codec the <code>CompressionCodec</code> for which to get the
  16395. <code>Compressor</code>
  16396. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16397. @return <code>Compressor</code> for the given
  16398. <code>CompressionCodec</code> from the pool or a new one]]>
  16399. </doc>
  16400. </method>
  16401. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16402. abstract="false" native="false" synchronized="false"
  16403. static="true" final="false" visibility="public"
  16404. deprecated="not deprecated">
  16405. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16406. </method>
  16407. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16408. abstract="false" native="false" synchronized="false"
  16409. static="true" final="false" visibility="public"
  16410. deprecated="not deprecated">
  16411. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16412. <doc>
  16413. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16414. pool or a new one.
  16415. @param codec the <code>CompressionCodec</code> for which to get the
  16416. <code>Decompressor</code>
  16417. @return <code>Decompressor</code> for the given
  16418. <code>CompressionCodec</code> the pool or a new one]]>
  16419. </doc>
  16420. </method>
  16421. <method name="returnCompressor"
  16422. abstract="false" native="false" synchronized="false"
  16423. static="true" final="false" visibility="public"
  16424. deprecated="not deprecated">
  16425. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16426. <doc>
  16427. <![CDATA[Return the {@link Compressor} to the pool.
  16428. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16429. </doc>
  16430. </method>
  16431. <method name="returnDecompressor"
  16432. abstract="false" native="false" synchronized="false"
  16433. static="true" final="false" visibility="public"
  16434. deprecated="not deprecated">
  16435. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16436. <doc>
  16437. <![CDATA[Return the {@link Decompressor} to the pool.
  16438. @param decompressor the <code>Decompressor</code> to be returned to the
  16439. pool]]>
  16440. </doc>
  16441. </method>
  16442. <doc>
  16443. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16444. (possibly native) compression/decompression codecs.]]>
  16445. </doc>
  16446. </class>
  16447. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16448. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16449. <interface name="CompressionCodec" abstract="true"
  16450. static="false" final="false" visibility="public"
  16451. deprecated="not deprecated">
  16452. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16453. abstract="false" native="false" synchronized="false"
  16454. static="false" final="false" visibility="public"
  16455. deprecated="not deprecated">
  16456. <param name="out" type="java.io.OutputStream"/>
  16457. <exception name="IOException" type="java.io.IOException"/>
  16458. <doc>
  16459. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16460. {@link OutputStream}.
  16461. @param out the location for the final output stream
  16462. @return a stream the user can write uncompressed data to have it compressed
  16463. @throws IOException]]>
  16464. </doc>
  16465. </method>
  16466. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16467. abstract="false" native="false" synchronized="false"
  16468. static="false" final="false" visibility="public"
  16469. deprecated="not deprecated">
  16470. <param name="out" type="java.io.OutputStream"/>
  16471. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16472. <exception name="IOException" type="java.io.IOException"/>
  16473. <doc>
  16474. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16475. {@link OutputStream} with the given {@link Compressor}.
  16476. @param out the location for the final output stream
  16477. @param compressor compressor to use
  16478. @return a stream the user can write uncompressed data to have it compressed
  16479. @throws IOException]]>
  16480. </doc>
  16481. </method>
  16482. <method name="getCompressorType" return="java.lang.Class"
  16483. abstract="false" native="false" synchronized="false"
  16484. static="false" final="false" visibility="public"
  16485. deprecated="not deprecated">
  16486. <doc>
  16487. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16488. @return the type of compressor needed by this codec.]]>
  16489. </doc>
  16490. </method>
  16491. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16492. abstract="false" native="false" synchronized="false"
  16493. static="false" final="false" visibility="public"
  16494. deprecated="not deprecated">
  16495. <doc>
  16496. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16497. @return a new compressor for use by this codec]]>
  16498. </doc>
  16499. </method>
  16500. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16501. abstract="false" native="false" synchronized="false"
  16502. static="false" final="false" visibility="public"
  16503. deprecated="not deprecated">
  16504. <param name="in" type="java.io.InputStream"/>
  16505. <exception name="IOException" type="java.io.IOException"/>
  16506. <doc>
  16507. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16508. @param in the stream to read compressed bytes from
  16509. @return a stream to read uncompressed bytes from
  16510. @throws IOException]]>
  16511. </doc>
  16512. </method>
  16513. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16514. abstract="false" native="false" synchronized="false"
  16515. static="false" final="false" visibility="public"
  16516. deprecated="not deprecated">
  16517. <param name="in" type="java.io.InputStream"/>
  16518. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16519. <exception name="IOException" type="java.io.IOException"/>
  16520. <doc>
  16521. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16522. {@link InputStream} with the given {@link Decompressor}.
  16523. @param in the stream to read compressed bytes from
  16524. @param decompressor decompressor to use
  16525. @return a stream to read uncompressed bytes from
  16526. @throws IOException]]>
  16527. </doc>
  16528. </method>
  16529. <method name="getDecompressorType" return="java.lang.Class"
  16530. abstract="false" native="false" synchronized="false"
  16531. static="false" final="false" visibility="public"
  16532. deprecated="not deprecated">
  16533. <doc>
  16534. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16535. @return the type of decompressor needed by this codec.]]>
  16536. </doc>
  16537. </method>
  16538. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16539. abstract="false" native="false" synchronized="false"
  16540. static="false" final="false" visibility="public"
  16541. deprecated="not deprecated">
  16542. <doc>
  16543. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16544. @return a new decompressor for use by this codec]]>
  16545. </doc>
  16546. </method>
  16547. <method name="getDefaultExtension" return="java.lang.String"
  16548. abstract="false" native="false" synchronized="false"
  16549. static="false" final="false" visibility="public"
  16550. deprecated="not deprecated">
  16551. <doc>
  16552. <![CDATA[Get the default filename extension for this kind of compression.
  16553. @return the extension including the '.']]>
  16554. </doc>
  16555. </method>
  16556. <doc>
  16557. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16558. </doc>
  16559. </interface>
  16560. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16561. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16562. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16563. abstract="false"
  16564. static="false" final="false" visibility="public"
  16565. deprecated="not deprecated">
  16566. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16567. static="false" final="false" visibility="public"
  16568. deprecated="not deprecated">
  16569. <doc>
  16570. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16571. and register them. Defaults to gzip and zip.]]>
  16572. </doc>
  16573. </constructor>
  16574. <method name="toString" return="java.lang.String"
  16575. abstract="false" native="false" synchronized="false"
  16576. static="false" final="false" visibility="public"
  16577. deprecated="not deprecated">
  16578. <doc>
  16579. <![CDATA[Print the extension map out as a string.]]>
  16580. </doc>
  16581. </method>
  16582. <method name="getCodecClasses" return="java.util.List"
  16583. abstract="false" native="false" synchronized="false"
  16584. static="true" final="false" visibility="public"
  16585. deprecated="not deprecated">
  16586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16587. <doc>
  16588. <![CDATA[Get the list of codecs listed in the configuration
  16589. @param conf the configuration to look in
  16590. @return a list of the Configuration classes or null if the attribute
  16591. was not set]]>
  16592. </doc>
  16593. </method>
  16594. <method name="setCodecClasses"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="true" final="false" visibility="public"
  16597. deprecated="not deprecated">
  16598. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16599. <param name="classes" type="java.util.List"/>
  16600. <doc>
  16601. <![CDATA[Sets a list of codec classes in the configuration.
  16602. @param conf the configuration to modify
  16603. @param classes the list of classes to set]]>
  16604. </doc>
  16605. </method>
  16606. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16607. abstract="false" native="false" synchronized="false"
  16608. static="false" final="false" visibility="public"
  16609. deprecated="not deprecated">
  16610. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16611. <doc>
  16612. <![CDATA[Find the relevant compression codec for the given file based on its
  16613. filename suffix.
  16614. @param file the filename to check
  16615. @return the codec object]]>
  16616. </doc>
  16617. </method>
  16618. <method name="removeSuffix" return="java.lang.String"
  16619. abstract="false" native="false" synchronized="false"
  16620. static="true" final="false" visibility="public"
  16621. deprecated="not deprecated">
  16622. <param name="filename" type="java.lang.String"/>
  16623. <param name="suffix" type="java.lang.String"/>
  16624. <doc>
  16625. <![CDATA[Removes a suffix from a filename, if it has it.
  16626. @param filename the filename to strip
  16627. @param suffix the suffix to remove
  16628. @return the shortened filename]]>
  16629. </doc>
  16630. </method>
  16631. <method name="main"
  16632. abstract="false" native="false" synchronized="false"
  16633. static="true" final="false" visibility="public"
  16634. deprecated="not deprecated">
  16635. <param name="args" type="java.lang.String[]"/>
  16636. <exception name="Exception" type="java.lang.Exception"/>
  16637. <doc>
  16638. <![CDATA[A little test program.
  16639. @param args]]>
  16640. </doc>
  16641. </method>
  16642. <field name="LOG" type="org.apache.commons.logging.Log"
  16643. transient="false" volatile="false"
  16644. static="true" final="true" visibility="public"
  16645. deprecated="not deprecated">
  16646. </field>
  16647. <doc>
  16648. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16649. </doc>
  16650. </class>
  16651. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16652. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16653. <class name="CompressionInputStream" extends="java.io.InputStream"
  16654. abstract="true"
  16655. static="false" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. <implements name="org.apache.hadoop.fs.Seekable"/>
  16658. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16659. static="false" final="false" visibility="protected"
  16660. deprecated="not deprecated">
  16661. <exception name="IOException" type="java.io.IOException"/>
  16662. <doc>
  16663. <![CDATA[Create a compression input stream that reads
  16664. the decompressed bytes from the given stream.
  16665. @param in The input stream to be compressed.
  16666. @throws IOException]]>
  16667. </doc>
  16668. </constructor>
  16669. <method name="close"
  16670. abstract="false" native="false" synchronized="false"
  16671. static="false" final="false" visibility="public"
  16672. deprecated="not deprecated">
  16673. <exception name="IOException" type="java.io.IOException"/>
  16674. </method>
  16675. <method name="read" return="int"
  16676. abstract="true" native="false" synchronized="false"
  16677. static="false" final="false" visibility="public"
  16678. deprecated="not deprecated">
  16679. <param name="b" type="byte[]"/>
  16680. <param name="off" type="int"/>
  16681. <param name="len" type="int"/>
  16682. <exception name="IOException" type="java.io.IOException"/>
  16683. <doc>
  16684. <![CDATA[Read bytes from the stream.
  16685. Made abstract to prevent leakage to underlying stream.]]>
  16686. </doc>
  16687. </method>
  16688. <method name="resetState"
  16689. abstract="true" native="false" synchronized="false"
  16690. static="false" final="false" visibility="public"
  16691. deprecated="not deprecated">
  16692. <exception name="IOException" type="java.io.IOException"/>
  16693. <doc>
  16694. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16695. as the underlying stream may have been repositioned.]]>
  16696. </doc>
  16697. </method>
  16698. <method name="getPos" return="long"
  16699. abstract="false" native="false" synchronized="false"
  16700. static="false" final="false" visibility="public"
  16701. deprecated="not deprecated">
  16702. <exception name="IOException" type="java.io.IOException"/>
  16703. <doc>
  16704. <![CDATA[This method returns the current position in the stream.
  16705. @return Current position in stream as a long]]>
  16706. </doc>
  16707. </method>
  16708. <method name="seek"
  16709. abstract="false" native="false" synchronized="false"
  16710. static="false" final="false" visibility="public"
  16711. deprecated="not deprecated">
  16712. <param name="pos" type="long"/>
  16713. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16714. <doc>
  16715. <![CDATA[This method is current not supported.
  16716. @throws UnsupportedOperationException]]>
  16717. </doc>
  16718. </method>
  16719. <method name="seekToNewSource" return="boolean"
  16720. abstract="false" native="false" synchronized="false"
  16721. static="false" final="false" visibility="public"
  16722. deprecated="not deprecated">
  16723. <param name="targetPos" type="long"/>
  16724. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16725. <doc>
  16726. <![CDATA[This method is current not supported.
  16727. @throws UnsupportedOperationException]]>
  16728. </doc>
  16729. </method>
  16730. <field name="in" type="java.io.InputStream"
  16731. transient="false" volatile="false"
  16732. static="false" final="true" visibility="protected"
  16733. deprecated="not deprecated">
  16734. <doc>
  16735. <![CDATA[The input stream to be compressed.]]>
  16736. </doc>
  16737. </field>
  16738. <field name="maxAvailableData" type="long"
  16739. transient="false" volatile="false"
  16740. static="false" final="false" visibility="protected"
  16741. deprecated="not deprecated">
  16742. </field>
  16743. <doc>
  16744. <![CDATA[A compression input stream.
  16745. <p>Implementations are assumed to be buffered. This permits clients to
  16746. reposition the underlying input stream then call {@link #resetState()},
  16747. without having to also synchronize client buffers.]]>
  16748. </doc>
  16749. </class>
  16750. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16751. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16752. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16753. abstract="true"
  16754. static="false" final="false" visibility="public"
  16755. deprecated="not deprecated">
  16756. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16757. static="false" final="false" visibility="protected"
  16758. deprecated="not deprecated">
  16759. <doc>
  16760. <![CDATA[Create a compression output stream that writes
  16761. the compressed bytes to the given stream.
  16762. @param out]]>
  16763. </doc>
  16764. </constructor>
  16765. <method name="close"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="public"
  16768. deprecated="not deprecated">
  16769. <exception name="IOException" type="java.io.IOException"/>
  16770. </method>
  16771. <method name="flush"
  16772. abstract="false" native="false" synchronized="false"
  16773. static="false" final="false" visibility="public"
  16774. deprecated="not deprecated">
  16775. <exception name="IOException" type="java.io.IOException"/>
  16776. </method>
  16777. <method name="write"
  16778. abstract="true" native="false" synchronized="false"
  16779. static="false" final="false" visibility="public"
  16780. deprecated="not deprecated">
  16781. <param name="b" type="byte[]"/>
  16782. <param name="off" type="int"/>
  16783. <param name="len" type="int"/>
  16784. <exception name="IOException" type="java.io.IOException"/>
  16785. <doc>
  16786. <![CDATA[Write compressed bytes to the stream.
  16787. Made abstract to prevent leakage to underlying stream.]]>
  16788. </doc>
  16789. </method>
  16790. <method name="finish"
  16791. abstract="true" native="false" synchronized="false"
  16792. static="false" final="false" visibility="public"
  16793. deprecated="not deprecated">
  16794. <exception name="IOException" type="java.io.IOException"/>
  16795. <doc>
  16796. <![CDATA[Finishes writing compressed data to the output stream
  16797. without closing the underlying stream.]]>
  16798. </doc>
  16799. </method>
  16800. <method name="resetState"
  16801. abstract="true" native="false" synchronized="false"
  16802. static="false" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. <exception name="IOException" type="java.io.IOException"/>
  16805. <doc>
  16806. <![CDATA[Reset the compression to the initial state.
  16807. Does not reset the underlying stream.]]>
  16808. </doc>
  16809. </method>
  16810. <field name="out" type="java.io.OutputStream"
  16811. transient="false" volatile="false"
  16812. static="false" final="true" visibility="protected"
  16813. deprecated="not deprecated">
  16814. <doc>
  16815. <![CDATA[The output stream to be compressed.]]>
  16816. </doc>
  16817. </field>
  16818. <doc>
  16819. <![CDATA[A compression output stream.]]>
  16820. </doc>
  16821. </class>
  16822. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16823. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16824. <interface name="Compressor" abstract="true"
  16825. static="false" final="false" visibility="public"
  16826. deprecated="not deprecated">
  16827. <method name="setInput"
  16828. abstract="false" native="false" synchronized="false"
  16829. static="false" final="false" visibility="public"
  16830. deprecated="not deprecated">
  16831. <param name="b" type="byte[]"/>
  16832. <param name="off" type="int"/>
  16833. <param name="len" type="int"/>
  16834. <doc>
  16835. <![CDATA[Sets input data for compression.
  16836. This should be called whenever #needsInput() returns
  16837. <code>true</code> indicating that more input data is required.
  16838. @param b Input data
  16839. @param off Start offset
  16840. @param len Length]]>
  16841. </doc>
  16842. </method>
  16843. <method name="needsInput" return="boolean"
  16844. abstract="false" native="false" synchronized="false"
  16845. static="false" final="false" visibility="public"
  16846. deprecated="not deprecated">
  16847. <doc>
  16848. <![CDATA[Returns true if the input data buffer is empty and
  16849. #setInput() should be called to provide more input.
  16850. @return <code>true</code> if the input data buffer is empty and
  16851. #setInput() should be called in order to provide more input.]]>
  16852. </doc>
  16853. </method>
  16854. <method name="setDictionary"
  16855. abstract="false" native="false" synchronized="false"
  16856. static="false" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. <param name="b" type="byte[]"/>
  16859. <param name="off" type="int"/>
  16860. <param name="len" type="int"/>
  16861. <doc>
  16862. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16863. is used when the history buffer can be predetermined.
  16864. @param b Dictionary data bytes
  16865. @param off Start offset
  16866. @param len Length]]>
  16867. </doc>
  16868. </method>
  16869. <method name="getBytesRead" return="long"
  16870. abstract="false" native="false" synchronized="false"
  16871. static="false" final="false" visibility="public"
  16872. deprecated="not deprecated">
  16873. <doc>
  16874. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16875. </doc>
  16876. </method>
  16877. <method name="getBytesWritten" return="long"
  16878. abstract="false" native="false" synchronized="false"
  16879. static="false" final="false" visibility="public"
  16880. deprecated="not deprecated">
  16881. <doc>
  16882. <![CDATA[Return number of compressed bytes output so far.]]>
  16883. </doc>
  16884. </method>
  16885. <method name="finish"
  16886. abstract="false" native="false" synchronized="false"
  16887. static="false" final="false" visibility="public"
  16888. deprecated="not deprecated">
  16889. <doc>
  16890. <![CDATA[When called, indicates that compression should end
  16891. with the current contents of the input buffer.]]>
  16892. </doc>
  16893. </method>
  16894. <method name="finished" 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 end of the compressed
  16900. data output stream has been reached.
  16901. @return <code>true</code> if the end of the compressed
  16902. data output stream has been reached.]]>
  16903. </doc>
  16904. </method>
  16905. <method name="compress" return="int"
  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. <exception name="IOException" type="java.io.IOException"/>
  16913. <doc>
  16914. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16915. of bytes of compressed data. A return value of 0 indicates that
  16916. needsInput() should be called in order to determine if more input
  16917. data is required.
  16918. @param b Buffer for the compressed data
  16919. @param off Start offset of the data
  16920. @param len Size of the buffer
  16921. @return The actual number of bytes of compressed data.]]>
  16922. </doc>
  16923. </method>
  16924. <method name="reset"
  16925. abstract="false" native="false" synchronized="false"
  16926. static="false" final="false" visibility="public"
  16927. deprecated="not deprecated">
  16928. <doc>
  16929. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16930. </doc>
  16931. </method>
  16932. <method name="end"
  16933. abstract="false" native="false" synchronized="false"
  16934. static="false" final="false" visibility="public"
  16935. deprecated="not deprecated">
  16936. <doc>
  16937. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16938. </doc>
  16939. </method>
  16940. <method name="reinit"
  16941. abstract="false" native="false" synchronized="false"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16945. <doc>
  16946. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16947. the given Configuration
  16948. @param conf Configuration from which new setting are fetched]]>
  16949. </doc>
  16950. </method>
  16951. <doc>
  16952. <![CDATA[Specification of a stream-based 'compressor' which can be
  16953. plugged into a {@link CompressionOutputStream} to compress data.
  16954. This is modelled after {@link java.util.zip.Deflater}]]>
  16955. </doc>
  16956. </interface>
  16957. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  16958. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  16959. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  16960. abstract="false"
  16961. static="false" final="false" visibility="public"
  16962. deprecated="not deprecated">
  16963. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  16964. static="false" final="false" visibility="public"
  16965. deprecated="not deprecated">
  16966. </constructor>
  16967. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16968. static="false" final="false" visibility="public"
  16969. deprecated="not deprecated">
  16970. </constructor>
  16971. <constructor name="CompressorStream" type="java.io.OutputStream"
  16972. static="false" final="false" visibility="protected"
  16973. deprecated="not deprecated">
  16974. <doc>
  16975. <![CDATA[Allow derived classes to directly set the underlying stream.
  16976. @param out Underlying output stream.]]>
  16977. </doc>
  16978. </constructor>
  16979. <method name="write"
  16980. abstract="false" native="false" synchronized="false"
  16981. static="false" final="false" visibility="public"
  16982. deprecated="not deprecated">
  16983. <param name="b" type="byte[]"/>
  16984. <param name="off" type="int"/>
  16985. <param name="len" type="int"/>
  16986. <exception name="IOException" type="java.io.IOException"/>
  16987. </method>
  16988. <method name="compress"
  16989. abstract="false" native="false" synchronized="false"
  16990. static="false" final="false" visibility="protected"
  16991. deprecated="not deprecated">
  16992. <exception name="IOException" type="java.io.IOException"/>
  16993. </method>
  16994. <method name="finish"
  16995. abstract="false" native="false" synchronized="false"
  16996. static="false" final="false" visibility="public"
  16997. deprecated="not deprecated">
  16998. <exception name="IOException" type="java.io.IOException"/>
  16999. </method>
  17000. <method name="resetState"
  17001. abstract="false" native="false" synchronized="false"
  17002. static="false" final="false" visibility="public"
  17003. deprecated="not deprecated">
  17004. <exception name="IOException" type="java.io.IOException"/>
  17005. </method>
  17006. <method name="close"
  17007. abstract="false" native="false" synchronized="false"
  17008. static="false" final="false" visibility="public"
  17009. deprecated="not deprecated">
  17010. <exception name="IOException" type="java.io.IOException"/>
  17011. </method>
  17012. <method name="write"
  17013. abstract="false" native="false" synchronized="false"
  17014. static="false" final="false" visibility="public"
  17015. deprecated="not deprecated">
  17016. <param name="b" type="int"/>
  17017. <exception name="IOException" type="java.io.IOException"/>
  17018. </method>
  17019. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  17020. transient="false" volatile="false"
  17021. static="false" final="false" visibility="protected"
  17022. deprecated="not deprecated">
  17023. </field>
  17024. <field name="buffer" type="byte[]"
  17025. transient="false" volatile="false"
  17026. static="false" final="false" visibility="protected"
  17027. deprecated="not deprecated">
  17028. </field>
  17029. <field name="closed" type="boolean"
  17030. transient="false" volatile="false"
  17031. static="false" final="false" visibility="protected"
  17032. deprecated="not deprecated">
  17033. </field>
  17034. </class>
  17035. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  17036. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  17037. <interface name="Decompressor" abstract="true"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. <method name="setInput"
  17041. abstract="false" native="false" synchronized="false"
  17042. static="false" final="false" visibility="public"
  17043. deprecated="not deprecated">
  17044. <param name="b" type="byte[]"/>
  17045. <param name="off" type="int"/>
  17046. <param name="len" type="int"/>
  17047. <doc>
  17048. <![CDATA[Sets input data for decompression.
  17049. This should be called if and only if {@link #needsInput()} returns
  17050. <code>true</code> indicating that more input data is required.
  17051. (Both native and non-native versions of various Decompressors require
  17052. that the data passed in via <code>b[]</code> remain unmodified until
  17053. the caller is explicitly notified--via {@link #needsInput()}--that the
  17054. buffer may be safely modified. With this requirement, an extra
  17055. buffer-copy can be avoided.)
  17056. @param b Input data
  17057. @param off Start offset
  17058. @param len Length]]>
  17059. </doc>
  17060. </method>
  17061. <method name="needsInput" return="boolean"
  17062. abstract="false" native="false" synchronized="false"
  17063. static="false" final="false" visibility="public"
  17064. deprecated="not deprecated">
  17065. <doc>
  17066. <![CDATA[Returns true if the input data buffer is empty and
  17067. {@link #setInput(byte[], int, int)} should be called to
  17068. provide more input.
  17069. @return <code>true</code> if the input data buffer is empty and
  17070. {@link #setInput(byte[], int, int)} should be called in
  17071. order to provide more input.]]>
  17072. </doc>
  17073. </method>
  17074. <method name="setDictionary"
  17075. abstract="false" native="false" synchronized="false"
  17076. static="false" final="false" visibility="public"
  17077. deprecated="not deprecated">
  17078. <param name="b" type="byte[]"/>
  17079. <param name="off" type="int"/>
  17080. <param name="len" type="int"/>
  17081. <doc>
  17082. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17083. is used when the history buffer can be predetermined.
  17084. @param b Dictionary data bytes
  17085. @param off Start offset
  17086. @param len Length]]>
  17087. </doc>
  17088. </method>
  17089. <method name="needsDictionary" return="boolean"
  17090. abstract="false" native="false" synchronized="false"
  17091. static="false" final="false" visibility="public"
  17092. deprecated="not deprecated">
  17093. <doc>
  17094. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  17095. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  17096. </doc>
  17097. </method>
  17098. <method name="finished" return="boolean"
  17099. abstract="false" native="false" synchronized="false"
  17100. static="false" final="false" visibility="public"
  17101. deprecated="not deprecated">
  17102. <doc>
  17103. <![CDATA[Returns true if the end of the decompressed
  17104. data output stream has been reached.
  17105. @return <code>true</code> if the end of the decompressed
  17106. data output stream has been reached.]]>
  17107. </doc>
  17108. </method>
  17109. <method name="decompress" return="int"
  17110. abstract="false" native="false" synchronized="false"
  17111. static="false" final="false" visibility="public"
  17112. deprecated="not deprecated">
  17113. <param name="b" type="byte[]"/>
  17114. <param name="off" type="int"/>
  17115. <param name="len" type="int"/>
  17116. <exception name="IOException" type="java.io.IOException"/>
  17117. <doc>
  17118. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  17119. of bytes of uncompressed data. A return value of 0 indicates that
  17120. {@link #needsInput()} should be called in order to determine if more
  17121. input data is required.
  17122. @param b Buffer for the compressed data
  17123. @param off Start offset of the data
  17124. @param len Size of the buffer
  17125. @return The actual number of bytes of compressed data.
  17126. @throws IOException]]>
  17127. </doc>
  17128. </method>
  17129. <method name="getRemaining" return="int"
  17130. abstract="false" native="false" synchronized="false"
  17131. static="false" final="false" visibility="public"
  17132. deprecated="not deprecated">
  17133. <doc>
  17134. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  17135. typically called after the decompressor has finished decompressing
  17136. the current gzip stream (a.k.a. "member").]]>
  17137. </doc>
  17138. </method>
  17139. <method name="reset"
  17140. abstract="false" native="false" synchronized="false"
  17141. static="false" final="false" visibility="public"
  17142. deprecated="not deprecated">
  17143. <doc>
  17144. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  17145. input data can be processed.]]>
  17146. </doc>
  17147. </method>
  17148. <method name="end"
  17149. abstract="false" native="false" synchronized="false"
  17150. static="false" final="false" visibility="public"
  17151. deprecated="not deprecated">
  17152. <doc>
  17153. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  17154. </doc>
  17155. </method>
  17156. <doc>
  17157. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  17158. plugged into a {@link CompressionInputStream} to compress data.
  17159. This is modelled after {@link java.util.zip.Inflater}]]>
  17160. </doc>
  17161. </interface>
  17162. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  17163. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  17164. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17165. abstract="false"
  17166. static="false" final="false" visibility="public"
  17167. deprecated="not deprecated">
  17168. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  17169. static="false" final="false" visibility="public"
  17170. deprecated="not deprecated">
  17171. <exception name="IOException" type="java.io.IOException"/>
  17172. </constructor>
  17173. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  17174. static="false" final="false" visibility="public"
  17175. deprecated="not deprecated">
  17176. <exception name="IOException" type="java.io.IOException"/>
  17177. </constructor>
  17178. <constructor name="DecompressorStream" type="java.io.InputStream"
  17179. static="false" final="false" visibility="protected"
  17180. deprecated="not deprecated">
  17181. <exception name="IOException" type="java.io.IOException"/>
  17182. <doc>
  17183. <![CDATA[Allow derived classes to directly set the underlying stream.
  17184. @param in Underlying input stream.
  17185. @throws IOException]]>
  17186. </doc>
  17187. </constructor>
  17188. <method name="read" return="int"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <exception name="IOException" type="java.io.IOException"/>
  17193. </method>
  17194. <method name="read" return="int"
  17195. abstract="false" native="false" synchronized="false"
  17196. static="false" final="false" visibility="public"
  17197. deprecated="not deprecated">
  17198. <param name="b" type="byte[]"/>
  17199. <param name="off" type="int"/>
  17200. <param name="len" type="int"/>
  17201. <exception name="IOException" type="java.io.IOException"/>
  17202. </method>
  17203. <method name="decompress" return="int"
  17204. abstract="false" native="false" synchronized="false"
  17205. static="false" final="false" visibility="protected"
  17206. deprecated="not deprecated">
  17207. <param name="b" type="byte[]"/>
  17208. <param name="off" type="int"/>
  17209. <param name="len" type="int"/>
  17210. <exception name="IOException" type="java.io.IOException"/>
  17211. </method>
  17212. <method name="getCompressedData" return="int"
  17213. abstract="false" native="false" synchronized="false"
  17214. static="false" final="false" visibility="protected"
  17215. deprecated="not deprecated">
  17216. <exception name="IOException" type="java.io.IOException"/>
  17217. </method>
  17218. <method name="checkStream"
  17219. abstract="false" native="false" synchronized="false"
  17220. static="false" final="false" visibility="protected"
  17221. deprecated="not deprecated">
  17222. <exception name="IOException" type="java.io.IOException"/>
  17223. </method>
  17224. <method name="resetState"
  17225. abstract="false" native="false" synchronized="false"
  17226. static="false" final="false" visibility="public"
  17227. deprecated="not deprecated">
  17228. <exception name="IOException" type="java.io.IOException"/>
  17229. </method>
  17230. <method name="skip" return="long"
  17231. abstract="false" native="false" synchronized="false"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. <param name="n" type="long"/>
  17235. <exception name="IOException" type="java.io.IOException"/>
  17236. </method>
  17237. <method name="available" return="int"
  17238. abstract="false" native="false" synchronized="false"
  17239. static="false" final="false" visibility="public"
  17240. deprecated="not deprecated">
  17241. <exception name="IOException" type="java.io.IOException"/>
  17242. </method>
  17243. <method name="close"
  17244. abstract="false" native="false" synchronized="false"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. <exception name="IOException" type="java.io.IOException"/>
  17248. </method>
  17249. <method name="markSupported" return="boolean"
  17250. abstract="false" native="false" synchronized="false"
  17251. static="false" final="false" visibility="public"
  17252. deprecated="not deprecated">
  17253. </method>
  17254. <method name="mark"
  17255. abstract="false" native="false" synchronized="true"
  17256. static="false" final="false" visibility="public"
  17257. deprecated="not deprecated">
  17258. <param name="readlimit" type="int"/>
  17259. </method>
  17260. <method name="reset"
  17261. abstract="false" native="false" synchronized="true"
  17262. static="false" final="false" visibility="public"
  17263. deprecated="not deprecated">
  17264. <exception name="IOException" type="java.io.IOException"/>
  17265. </method>
  17266. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17267. transient="false" volatile="false"
  17268. static="false" final="false" visibility="protected"
  17269. deprecated="not deprecated">
  17270. </field>
  17271. <field name="buffer" type="byte[]"
  17272. transient="false" volatile="false"
  17273. static="false" final="false" visibility="protected"
  17274. deprecated="not deprecated">
  17275. </field>
  17276. <field name="eof" type="boolean"
  17277. transient="false" volatile="false"
  17278. static="false" final="false" visibility="protected"
  17279. deprecated="not deprecated">
  17280. </field>
  17281. <field name="closed" type="boolean"
  17282. transient="false" volatile="false"
  17283. static="false" final="false" visibility="protected"
  17284. deprecated="not deprecated">
  17285. </field>
  17286. </class>
  17287. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17288. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17289. <class name="DefaultCodec" extends="java.lang.Object"
  17290. abstract="false"
  17291. static="false" final="false" visibility="public"
  17292. deprecated="not deprecated">
  17293. <implements name="org.apache.hadoop.conf.Configurable"/>
  17294. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17295. <constructor name="DefaultCodec"
  17296. static="false" final="false" visibility="public"
  17297. deprecated="not deprecated">
  17298. </constructor>
  17299. <method name="setConf"
  17300. abstract="false" native="false" synchronized="false"
  17301. static="false" final="false" visibility="public"
  17302. deprecated="not deprecated">
  17303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17304. </method>
  17305. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17306. abstract="false" native="false" synchronized="false"
  17307. static="false" final="false" visibility="public"
  17308. deprecated="not deprecated">
  17309. </method>
  17310. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17311. abstract="false" native="false" synchronized="false"
  17312. static="false" final="false" visibility="public"
  17313. deprecated="not deprecated">
  17314. <param name="out" type="java.io.OutputStream"/>
  17315. <exception name="IOException" type="java.io.IOException"/>
  17316. </method>
  17317. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17318. abstract="false" native="false" synchronized="false"
  17319. static="false" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. <param name="out" type="java.io.OutputStream"/>
  17322. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17323. <exception name="IOException" type="java.io.IOException"/>
  17324. </method>
  17325. <method name="getCompressorType" return="java.lang.Class"
  17326. abstract="false" native="false" synchronized="false"
  17327. static="false" final="false" visibility="public"
  17328. deprecated="not deprecated">
  17329. </method>
  17330. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17331. abstract="false" native="false" synchronized="false"
  17332. static="false" final="false" visibility="public"
  17333. deprecated="not deprecated">
  17334. </method>
  17335. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17336. abstract="false" native="false" synchronized="false"
  17337. static="false" final="false" visibility="public"
  17338. deprecated="not deprecated">
  17339. <param name="in" type="java.io.InputStream"/>
  17340. <exception name="IOException" type="java.io.IOException"/>
  17341. </method>
  17342. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17343. abstract="false" native="false" synchronized="false"
  17344. static="false" final="false" visibility="public"
  17345. deprecated="not deprecated">
  17346. <param name="in" type="java.io.InputStream"/>
  17347. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17348. <exception name="IOException" type="java.io.IOException"/>
  17349. </method>
  17350. <method name="getDecompressorType" return="java.lang.Class"
  17351. abstract="false" native="false" synchronized="false"
  17352. static="false" final="false" visibility="public"
  17353. deprecated="not deprecated">
  17354. </method>
  17355. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17356. abstract="false" native="false" synchronized="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. </method>
  17360. <method name="getDefaultExtension" return="java.lang.String"
  17361. abstract="false" native="false" synchronized="false"
  17362. static="false" final="false" visibility="public"
  17363. deprecated="not deprecated">
  17364. </method>
  17365. </class>
  17366. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17367. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17368. <interface name="DoNotPool" abstract="true"
  17369. static="false" final="false" visibility="public"
  17370. deprecated="not deprecated">
  17371. <implements name="java.lang.annotation.Annotation"/>
  17372. <doc>
  17373. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17374. type as not to be pooled.]]>
  17375. </doc>
  17376. </interface>
  17377. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17378. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17379. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17380. abstract="false"
  17381. static="false" final="false" visibility="public"
  17382. deprecated="not deprecated">
  17383. <constructor name="GzipCodec"
  17384. static="false" final="false" visibility="public"
  17385. deprecated="not deprecated">
  17386. </constructor>
  17387. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17388. abstract="false" native="false" synchronized="false"
  17389. static="false" final="false" visibility="public"
  17390. deprecated="not deprecated">
  17391. <param name="out" type="java.io.OutputStream"/>
  17392. <exception name="IOException" type="java.io.IOException"/>
  17393. </method>
  17394. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17395. abstract="false" native="false" synchronized="false"
  17396. static="false" final="false" visibility="public"
  17397. deprecated="not deprecated">
  17398. <param name="out" type="java.io.OutputStream"/>
  17399. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17400. <exception name="IOException" type="java.io.IOException"/>
  17401. </method>
  17402. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17403. abstract="false" native="false" synchronized="false"
  17404. static="false" final="false" visibility="public"
  17405. deprecated="not deprecated">
  17406. </method>
  17407. <method name="getCompressorType" return="java.lang.Class"
  17408. abstract="false" native="false" synchronized="false"
  17409. static="false" final="false" visibility="public"
  17410. deprecated="not deprecated">
  17411. </method>
  17412. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17413. abstract="false" native="false" synchronized="false"
  17414. static="false" final="false" visibility="public"
  17415. deprecated="not deprecated">
  17416. <param name="in" type="java.io.InputStream"/>
  17417. <exception name="IOException" type="java.io.IOException"/>
  17418. </method>
  17419. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17420. abstract="false" native="false" synchronized="false"
  17421. static="false" final="false" visibility="public"
  17422. deprecated="not deprecated">
  17423. <param name="in" type="java.io.InputStream"/>
  17424. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17425. <exception name="IOException" type="java.io.IOException"/>
  17426. </method>
  17427. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17428. abstract="false" native="false" synchronized="false"
  17429. static="false" final="false" visibility="public"
  17430. deprecated="not deprecated">
  17431. </method>
  17432. <method name="getDecompressorType" return="java.lang.Class"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="false" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. </method>
  17437. <method name="getDefaultExtension" return="java.lang.String"
  17438. abstract="false" native="false" synchronized="false"
  17439. static="false" final="false" visibility="public"
  17440. deprecated="not deprecated">
  17441. </method>
  17442. <doc>
  17443. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17444. </doc>
  17445. </class>
  17446. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17447. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17448. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17449. abstract="false"
  17450. static="true" final="false" visibility="protected"
  17451. deprecated="not deprecated">
  17452. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17453. static="false" final="false" visibility="public"
  17454. deprecated="not deprecated">
  17455. <exception name="IOException" type="java.io.IOException"/>
  17456. </constructor>
  17457. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17458. static="false" final="false" visibility="protected"
  17459. deprecated="not deprecated">
  17460. <doc>
  17461. <![CDATA[Allow children types to put a different type in here.
  17462. @param out the Deflater stream to use]]>
  17463. </doc>
  17464. </constructor>
  17465. <method name="close"
  17466. abstract="false" native="false" synchronized="false"
  17467. static="false" final="false" visibility="public"
  17468. deprecated="not deprecated">
  17469. <exception name="IOException" type="java.io.IOException"/>
  17470. </method>
  17471. <method name="flush"
  17472. abstract="false" native="false" synchronized="false"
  17473. static="false" final="false" visibility="public"
  17474. deprecated="not deprecated">
  17475. <exception name="IOException" type="java.io.IOException"/>
  17476. </method>
  17477. <method name="write"
  17478. abstract="false" native="false" synchronized="false"
  17479. static="false" final="false" visibility="public"
  17480. deprecated="not deprecated">
  17481. <param name="b" type="int"/>
  17482. <exception name="IOException" type="java.io.IOException"/>
  17483. </method>
  17484. <method name="write"
  17485. abstract="false" native="false" synchronized="false"
  17486. static="false" final="false" visibility="public"
  17487. deprecated="not deprecated">
  17488. <param name="data" type="byte[]"/>
  17489. <param name="offset" type="int"/>
  17490. <param name="length" type="int"/>
  17491. <exception name="IOException" type="java.io.IOException"/>
  17492. </method>
  17493. <method name="finish"
  17494. abstract="false" native="false" synchronized="false"
  17495. static="false" final="false" visibility="public"
  17496. deprecated="not deprecated">
  17497. <exception name="IOException" type="java.io.IOException"/>
  17498. </method>
  17499. <method name="resetState"
  17500. abstract="false" native="false" synchronized="false"
  17501. static="false" final="false" visibility="public"
  17502. deprecated="not deprecated">
  17503. <exception name="IOException" type="java.io.IOException"/>
  17504. </method>
  17505. <doc>
  17506. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17507. a CompressionOutputStream.]]>
  17508. </doc>
  17509. </class>
  17510. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17511. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  17512. <class name="SnappyCodec" extends="java.lang.Object"
  17513. abstract="false"
  17514. static="false" final="false" visibility="public"
  17515. deprecated="not deprecated">
  17516. <implements name="org.apache.hadoop.conf.Configurable"/>
  17517. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17518. <constructor name="SnappyCodec"
  17519. static="false" final="false" visibility="public"
  17520. deprecated="not deprecated">
  17521. </constructor>
  17522. <method name="setConf"
  17523. abstract="false" native="false" synchronized="false"
  17524. static="false" final="false" visibility="public"
  17525. deprecated="not deprecated">
  17526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17527. <doc>
  17528. <![CDATA[Set the configuration to be used by this object.
  17529. @param conf the configuration object.]]>
  17530. </doc>
  17531. </method>
  17532. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17533. abstract="false" native="false" synchronized="false"
  17534. static="false" final="false" visibility="public"
  17535. deprecated="not deprecated">
  17536. <doc>
  17537. <![CDATA[Return the configuration used by this object.
  17538. @return the configuration object used by this objec.]]>
  17539. </doc>
  17540. </method>
  17541. <method name="isNativeSnappyLoaded" return="boolean"
  17542. abstract="false" native="false" synchronized="false"
  17543. static="true" final="false" visibility="public"
  17544. deprecated="not deprecated">
  17545. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17546. <doc>
  17547. <![CDATA[Are the native snappy libraries loaded & initialized?
  17548. @param conf configuration
  17549. @return true if loaded & initialized, otherwise false]]>
  17550. </doc>
  17551. </method>
  17552. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17553. abstract="false" native="false" synchronized="false"
  17554. static="false" final="false" visibility="public"
  17555. deprecated="not deprecated">
  17556. <param name="out" type="java.io.OutputStream"/>
  17557. <exception name="IOException" type="java.io.IOException"/>
  17558. <doc>
  17559. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17560. {@link OutputStream}.
  17561. @param out the location for the final output stream
  17562. @return a stream the user can write uncompressed data to have it compressed
  17563. @throws IOException]]>
  17564. </doc>
  17565. </method>
  17566. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17567. abstract="false" native="false" synchronized="false"
  17568. static="false" final="false" visibility="public"
  17569. deprecated="not deprecated">
  17570. <param name="out" type="java.io.OutputStream"/>
  17571. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17572. <exception name="IOException" type="java.io.IOException"/>
  17573. <doc>
  17574. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17575. {@link OutputStream} with the given {@link Compressor}.
  17576. @param out the location for the final output stream
  17577. @param compressor compressor to use
  17578. @return a stream the user can write uncompressed data to have it compressed
  17579. @throws IOException]]>
  17580. </doc>
  17581. </method>
  17582. <method name="getCompressorType" return="java.lang.Class"
  17583. abstract="false" native="false" synchronized="false"
  17584. static="false" final="false" visibility="public"
  17585. deprecated="not deprecated">
  17586. <doc>
  17587. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17588. @return the type of compressor needed by this codec.]]>
  17589. </doc>
  17590. </method>
  17591. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17592. abstract="false" native="false" synchronized="false"
  17593. static="false" final="false" visibility="public"
  17594. deprecated="not deprecated">
  17595. <doc>
  17596. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17597. @return a new compressor for use by this codec]]>
  17598. </doc>
  17599. </method>
  17600. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17601. abstract="false" native="false" synchronized="false"
  17602. static="false" final="false" visibility="public"
  17603. deprecated="not deprecated">
  17604. <param name="in" type="java.io.InputStream"/>
  17605. <exception name="IOException" type="java.io.IOException"/>
  17606. <doc>
  17607. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17608. input stream.
  17609. @param in the stream to read compressed bytes from
  17610. @return a stream to read uncompressed bytes from
  17611. @throws IOException]]>
  17612. </doc>
  17613. </method>
  17614. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17615. abstract="false" native="false" synchronized="false"
  17616. static="false" final="false" visibility="public"
  17617. deprecated="not deprecated">
  17618. <param name="in" type="java.io.InputStream"/>
  17619. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17620. <exception name="IOException" type="java.io.IOException"/>
  17621. <doc>
  17622. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17623. {@link InputStream} with the given {@link Decompressor}.
  17624. @param in the stream to read compressed bytes from
  17625. @param decompressor decompressor to use
  17626. @return a stream to read uncompressed bytes from
  17627. @throws IOException]]>
  17628. </doc>
  17629. </method>
  17630. <method name="getDecompressorType" return="java.lang.Class"
  17631. abstract="false" native="false" synchronized="false"
  17632. static="false" final="false" visibility="public"
  17633. deprecated="not deprecated">
  17634. <doc>
  17635. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17636. @return the type of decompressor needed by this codec.]]>
  17637. </doc>
  17638. </method>
  17639. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17640. abstract="false" native="false" synchronized="false"
  17641. static="false" final="false" visibility="public"
  17642. deprecated="not deprecated">
  17643. <doc>
  17644. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17645. @return a new decompressor for use by this codec]]>
  17646. </doc>
  17647. </method>
  17648. <method name="getDefaultExtension" return="java.lang.String"
  17649. abstract="false" native="false" synchronized="false"
  17650. static="false" final="false" visibility="public"
  17651. deprecated="not deprecated">
  17652. <doc>
  17653. <![CDATA[Get the default filename extension for this kind of compression.
  17654. @return <code>.snappy</code>.]]>
  17655. </doc>
  17656. </method>
  17657. <doc>
  17658. <![CDATA[This class creates snappy compressors/decompressors.]]>
  17659. </doc>
  17660. </class>
  17661. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  17662. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17663. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17664. abstract="true"
  17665. static="false" final="false" visibility="public"
  17666. deprecated="not deprecated">
  17667. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  17668. static="false" final="false" visibility="public"
  17669. deprecated="not deprecated">
  17670. <exception name="IOException" type="java.io.IOException"/>
  17671. </constructor>
  17672. <method name="setStart"
  17673. abstract="false" native="false" synchronized="false"
  17674. static="false" final="false" visibility="protected"
  17675. deprecated="not deprecated">
  17676. <param name="start" type="long"/>
  17677. </method>
  17678. <method name="setEnd"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="protected"
  17681. deprecated="not deprecated">
  17682. <param name="end" type="long"/>
  17683. </method>
  17684. <method name="getAdjustedStart" return="long"
  17685. abstract="false" native="false" synchronized="false"
  17686. static="false" final="false" visibility="public"
  17687. deprecated="not deprecated">
  17688. <doc>
  17689. <![CDATA[After calling createInputStream, the values of start or end
  17690. might change. So this method can be used to get the new value of start.
  17691. @return The changed value of start]]>
  17692. </doc>
  17693. </method>
  17694. <method name="getAdjustedEnd" return="long"
  17695. abstract="false" native="false" synchronized="false"
  17696. static="false" final="false" visibility="public"
  17697. deprecated="not deprecated">
  17698. <doc>
  17699. <![CDATA[After calling createInputStream, the values of start or end
  17700. might change. So this method can be used to get the new value of end.
  17701. @return The changed value of end]]>
  17702. </doc>
  17703. </method>
  17704. <doc>
  17705. <![CDATA[An InputStream covering a range of compressed data. The start and end
  17706. offsets requested by a client may be modified by the codec to fit block
  17707. boundaries or other algorithm-dependent requirements.]]>
  17708. </doc>
  17709. </class>
  17710. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17711. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17712. <interface name="SplittableCompressionCodec" abstract="true"
  17713. static="false" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17716. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="false" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. <param name="seekableIn" type="java.io.InputStream"/>
  17721. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17722. <param name="start" type="long"/>
  17723. <param name="end" type="long"/>
  17724. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  17725. <exception name="IOException" type="java.io.IOException"/>
  17726. <doc>
  17727. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  17728. the codecs wants the ability to work with the underlying stream positions.
  17729. @param seekableIn The seekable input stream (seeks in compressed data)
  17730. @param start The start offset into the compressed stream. May be changed
  17731. by the underlying codec.
  17732. @param end The end offset into the compressed stream. May be changed by
  17733. the underlying codec.
  17734. @param readMode Controls whether stream position is reported continuously
  17735. from the compressed stream only only at block boundaries.
  17736. @return a stream to read uncompressed bytes from]]>
  17737. </doc>
  17738. </method>
  17739. <doc>
  17740. <![CDATA[This interface is meant to be implemented by those compression codecs
  17741. which are capable to compress / decompress a stream starting at any
  17742. arbitrary position.
  17743. Especially the process of decompressing a stream starting at some arbitrary
  17744. position is challenging. Most of the codecs are only able to successfully
  17745. decompress a stream, if they start from the very beginning till the end.
  17746. One of the reasons is the stored state at the beginning of the stream which
  17747. is crucial for decompression.
  17748. Yet there are few codecs which do not save the whole state at the beginning
  17749. of the stream and hence can be used to de-compress stream starting at any
  17750. arbitrary points. This interface is meant to be used by such codecs. Such
  17751. codecs are highly valuable, especially in the context of Hadoop, because
  17752. an input compressed file can be split and hence can be worked on by multiple
  17753. machines in parallel.]]>
  17754. </doc>
  17755. </interface>
  17756. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17757. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17758. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  17759. abstract="false"
  17760. static="true" final="true" visibility="public"
  17761. deprecated="not deprecated">
  17762. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  17763. abstract="false" native="false" synchronized="false"
  17764. static="true" final="false" visibility="public"
  17765. deprecated="not deprecated">
  17766. </method>
  17767. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17768. abstract="false" native="false" synchronized="false"
  17769. static="true" final="false" visibility="public"
  17770. deprecated="not deprecated">
  17771. <param name="name" type="java.lang.String"/>
  17772. </method>
  17773. <field name="CONTINUOUS" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17774. transient="false" volatile="false"
  17775. static="true" final="true" visibility="public"
  17776. deprecated="not deprecated">
  17777. </field>
  17778. <field name="BYBLOCK" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17779. transient="false" volatile="false"
  17780. static="true" final="true" visibility="public"
  17781. deprecated="not deprecated">
  17782. </field>
  17783. <doc>
  17784. <![CDATA[During decompression, data can be read off from the decompressor in two
  17785. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  17786. of compressing data in blocks and then decompressing the blocks. In
  17787. Blocked reading mode codecs inform 'end of block' events to its caller.
  17788. While in continuous mode, the caller of codecs is unaware about the blocks
  17789. and uncompressed data is spilled out like a continuous stream.]]>
  17790. </doc>
  17791. </class>
  17792. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17793. </package>
  17794. <package name="org.apache.hadoop.io.compress.bzip2">
  17795. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17796. <interface name="BZip2Constants" abstract="true"
  17797. static="false" final="false" visibility="public"
  17798. deprecated="not deprecated">
  17799. <field name="baseBlockSize" type="int"
  17800. transient="false" volatile="false"
  17801. static="true" final="true" visibility="public"
  17802. deprecated="not deprecated">
  17803. </field>
  17804. <field name="MAX_ALPHA_SIZE" type="int"
  17805. transient="false" volatile="false"
  17806. static="true" final="true" visibility="public"
  17807. deprecated="not deprecated">
  17808. </field>
  17809. <field name="MAX_CODE_LEN" type="int"
  17810. transient="false" volatile="false"
  17811. static="true" final="true" visibility="public"
  17812. deprecated="not deprecated">
  17813. </field>
  17814. <field name="RUNA" type="int"
  17815. transient="false" volatile="false"
  17816. static="true" final="true" visibility="public"
  17817. deprecated="not deprecated">
  17818. </field>
  17819. <field name="RUNB" type="int"
  17820. transient="false" volatile="false"
  17821. static="true" final="true" visibility="public"
  17822. deprecated="not deprecated">
  17823. </field>
  17824. <field name="N_GROUPS" type="int"
  17825. transient="false" volatile="false"
  17826. static="true" final="true" visibility="public"
  17827. deprecated="not deprecated">
  17828. </field>
  17829. <field name="G_SIZE" type="int"
  17830. transient="false" volatile="false"
  17831. static="true" final="true" visibility="public"
  17832. deprecated="not deprecated">
  17833. </field>
  17834. <field name="N_ITERS" type="int"
  17835. transient="false" volatile="false"
  17836. static="true" final="true" visibility="public"
  17837. deprecated="not deprecated">
  17838. </field>
  17839. <field name="MAX_SELECTORS" type="int"
  17840. transient="false" volatile="false"
  17841. static="true" final="true" visibility="public"
  17842. deprecated="not deprecated">
  17843. </field>
  17844. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17845. transient="false" volatile="false"
  17846. static="true" final="true" visibility="public"
  17847. deprecated="not deprecated">
  17848. </field>
  17849. <field name="END_OF_BLOCK" type="int"
  17850. transient="false" volatile="false"
  17851. static="true" final="true" visibility="public"
  17852. deprecated="not deprecated">
  17853. <doc>
  17854. <![CDATA[End of a BZip2 block]]>
  17855. </doc>
  17856. </field>
  17857. <field name="END_OF_STREAM" type="int"
  17858. transient="false" volatile="false"
  17859. static="true" final="true" visibility="public"
  17860. deprecated="not deprecated">
  17861. <doc>
  17862. <![CDATA[End of BZip2 stream.]]>
  17863. </doc>
  17864. </field>
  17865. <field name="rNums" type="int[]"
  17866. transient="false" volatile="false"
  17867. static="true" final="true" visibility="public"
  17868. deprecated="not deprecated">
  17869. <doc>
  17870. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17871. is.
  17872. <p>
  17873. FIXME: This array should be in a private or package private location,
  17874. since it could be modified by malicious code.
  17875. </p>]]>
  17876. </doc>
  17877. </field>
  17878. <doc>
  17879. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17880. and static data.
  17881. <p>
  17882. This interface is public for historical purposes. You should have no need to
  17883. use it.
  17884. </p>]]>
  17885. </doc>
  17886. </interface>
  17887. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17888. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17889. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17890. abstract="false"
  17891. static="false" final="false" visibility="public"
  17892. deprecated="not deprecated">
  17893. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17894. <constructor name="BZip2DummyCompressor"
  17895. static="false" final="false" visibility="public"
  17896. deprecated="not deprecated">
  17897. </constructor>
  17898. <method name="compress" return="int"
  17899. abstract="false" native="false" synchronized="false"
  17900. static="false" final="false" visibility="public"
  17901. deprecated="not deprecated">
  17902. <param name="b" type="byte[]"/>
  17903. <param name="off" type="int"/>
  17904. <param name="len" type="int"/>
  17905. <exception name="IOException" type="java.io.IOException"/>
  17906. </method>
  17907. <method name="end"
  17908. abstract="false" native="false" synchronized="false"
  17909. static="false" final="false" visibility="public"
  17910. deprecated="not deprecated">
  17911. </method>
  17912. <method name="finish"
  17913. abstract="false" native="false" synchronized="false"
  17914. static="false" final="false" visibility="public"
  17915. deprecated="not deprecated">
  17916. </method>
  17917. <method name="finished" return="boolean"
  17918. abstract="false" native="false" synchronized="false"
  17919. static="false" final="false" visibility="public"
  17920. deprecated="not deprecated">
  17921. </method>
  17922. <method name="getBytesRead" return="long"
  17923. abstract="false" native="false" synchronized="false"
  17924. static="false" final="false" visibility="public"
  17925. deprecated="not deprecated">
  17926. </method>
  17927. <method name="getBytesWritten" return="long"
  17928. abstract="false" native="false" synchronized="false"
  17929. static="false" final="false" visibility="public"
  17930. deprecated="not deprecated">
  17931. </method>
  17932. <method name="needsInput" return="boolean"
  17933. abstract="false" native="false" synchronized="false"
  17934. static="false" final="false" visibility="public"
  17935. deprecated="not deprecated">
  17936. </method>
  17937. <method name="reset"
  17938. abstract="false" native="false" synchronized="false"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. </method>
  17942. <method name="setDictionary"
  17943. abstract="false" native="false" synchronized="false"
  17944. static="false" final="false" visibility="public"
  17945. deprecated="not deprecated">
  17946. <param name="b" type="byte[]"/>
  17947. <param name="off" type="int"/>
  17948. <param name="len" type="int"/>
  17949. </method>
  17950. <method name="setInput"
  17951. abstract="false" native="false" synchronized="false"
  17952. static="false" final="false" visibility="public"
  17953. deprecated="not deprecated">
  17954. <param name="b" type="byte[]"/>
  17955. <param name="off" type="int"/>
  17956. <param name="len" type="int"/>
  17957. </method>
  17958. <method name="reinit"
  17959. abstract="false" native="false" synchronized="false"
  17960. static="false" final="false" visibility="public"
  17961. deprecated="not deprecated">
  17962. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17963. </method>
  17964. <doc>
  17965. <![CDATA[This is a dummy compressor for BZip2.]]>
  17966. </doc>
  17967. </class>
  17968. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17969. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17970. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  17971. abstract="false"
  17972. static="false" final="false" visibility="public"
  17973. deprecated="not deprecated">
  17974. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17975. <constructor name="BZip2DummyDecompressor"
  17976. static="false" final="false" visibility="public"
  17977. deprecated="not deprecated">
  17978. </constructor>
  17979. <method name="decompress" return="int"
  17980. abstract="false" native="false" synchronized="false"
  17981. static="false" final="false" visibility="public"
  17982. deprecated="not deprecated">
  17983. <param name="b" type="byte[]"/>
  17984. <param name="off" type="int"/>
  17985. <param name="len" type="int"/>
  17986. <exception name="IOException" type="java.io.IOException"/>
  17987. </method>
  17988. <method name="end"
  17989. abstract="false" native="false" synchronized="false"
  17990. static="false" final="false" visibility="public"
  17991. deprecated="not deprecated">
  17992. </method>
  17993. <method name="finished" return="boolean"
  17994. abstract="false" native="false" synchronized="false"
  17995. static="false" final="false" visibility="public"
  17996. deprecated="not deprecated">
  17997. </method>
  17998. <method name="needsDictionary" return="boolean"
  17999. abstract="false" native="false" synchronized="false"
  18000. static="false" final="false" visibility="public"
  18001. deprecated="not deprecated">
  18002. </method>
  18003. <method name="needsInput" return="boolean"
  18004. abstract="false" native="false" synchronized="false"
  18005. static="false" final="false" visibility="public"
  18006. deprecated="not deprecated">
  18007. </method>
  18008. <method name="getRemaining" return="int"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. </method>
  18013. <method name="reset"
  18014. abstract="false" native="false" synchronized="false"
  18015. static="false" final="false" visibility="public"
  18016. deprecated="not deprecated">
  18017. </method>
  18018. <method name="setDictionary"
  18019. abstract="false" native="false" synchronized="false"
  18020. static="false" final="false" visibility="public"
  18021. deprecated="not deprecated">
  18022. <param name="b" type="byte[]"/>
  18023. <param name="off" type="int"/>
  18024. <param name="len" type="int"/>
  18025. </method>
  18026. <method name="setInput"
  18027. abstract="false" native="false" synchronized="false"
  18028. static="false" final="false" visibility="public"
  18029. deprecated="not deprecated">
  18030. <param name="b" type="byte[]"/>
  18031. <param name="off" type="int"/>
  18032. <param name="len" type="int"/>
  18033. </method>
  18034. <doc>
  18035. <![CDATA[This is a dummy decompressor for BZip2.]]>
  18036. </doc>
  18037. </class>
  18038. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18039. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18040. <class name="CBZip2InputStream" extends="java.io.InputStream"
  18041. abstract="false"
  18042. static="false" final="false" visibility="public"
  18043. deprecated="not deprecated">
  18044. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18045. <constructor name="CBZip2InputStream" type="java.io.InputStream, org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18046. static="false" final="false" visibility="public"
  18047. deprecated="not deprecated">
  18048. <exception name="IOException" type="java.io.IOException"/>
  18049. <doc>
  18050. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  18051. specified stream.
  18052. <p>
  18053. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  18054. constructor expects the next byte in the stream to be the first one after
  18055. the magic. Thus callers have to skip the first two bytes. Otherwise this
  18056. constructor will throw an exception.
  18057. </p>
  18058. @throws IOException
  18059. if the stream content is malformed or an I/O error occurs.
  18060. @throws NullPointerException
  18061. if <tt>in == null</tt>]]>
  18062. </doc>
  18063. </constructor>
  18064. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  18065. static="false" final="false" visibility="public"
  18066. deprecated="not deprecated">
  18067. <exception name="IOException" type="java.io.IOException"/>
  18068. </constructor>
  18069. <method name="getProcessedByteCount" return="long"
  18070. abstract="false" native="false" synchronized="false"
  18071. static="false" final="false" visibility="public"
  18072. deprecated="not deprecated">
  18073. <doc>
  18074. <![CDATA[This method reports the processed bytes so far. Please note that this
  18075. statistic is only updated on block boundaries and only when the stream is
  18076. initiated in BYBLOCK mode.]]>
  18077. </doc>
  18078. </method>
  18079. <method name="updateProcessedByteCount"
  18080. abstract="false" native="false" synchronized="false"
  18081. static="false" final="false" visibility="protected"
  18082. deprecated="not deprecated">
  18083. <param name="count" type="int"/>
  18084. <doc>
  18085. <![CDATA[This method keeps track of raw processed compressed
  18086. bytes.
  18087. @param count count is the number of bytes to be
  18088. added to raw processed bytes]]>
  18089. </doc>
  18090. </method>
  18091. <method name="updateReportedByteCount"
  18092. abstract="false" native="false" synchronized="false"
  18093. static="false" final="false" visibility="public"
  18094. deprecated="not deprecated">
  18095. <param name="count" type="int"/>
  18096. <doc>
  18097. <![CDATA[This method is called by the client of this
  18098. class in case there are any corrections in
  18099. the stream position. One common example is
  18100. when client of this code removes starting BZ
  18101. characters from the compressed stream.
  18102. @param count count bytes are added to the reported bytes]]>
  18103. </doc>
  18104. </method>
  18105. <method name="skipToNextMarker" return="boolean"
  18106. abstract="false" native="false" synchronized="false"
  18107. static="false" final="false" visibility="public"
  18108. deprecated="not deprecated">
  18109. <param name="marker" type="long"/>
  18110. <param name="markerBitLength" type="int"/>
  18111. <exception name="IOException" type="java.io.IOException"/>
  18112. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  18113. <doc>
  18114. <![CDATA[This method tries to find the marker (passed to it as the first parameter)
  18115. in the stream. It can find bit patterns of length <= 63 bits. Specifically
  18116. this method is used in CBZip2InputStream to find the end of block (EOB)
  18117. delimiter in the stream, starting from the current position of the stream.
  18118. If marker is found, the stream position will be right after marker at the
  18119. end of this call.
  18120. @param marker The bit pattern to be found in the stream
  18121. @param markerBitLength No of bits in the marker
  18122. @throws IOException
  18123. @throws IllegalArgumentException if marketBitLength is greater than 63]]>
  18124. </doc>
  18125. </method>
  18126. <method name="reportCRCError"
  18127. abstract="false" native="false" synchronized="false"
  18128. static="false" final="false" visibility="protected"
  18129. deprecated="not deprecated">
  18130. <exception name="IOException" type="java.io.IOException"/>
  18131. </method>
  18132. <method name="numberOfBytesTillNextMarker" return="long"
  18133. abstract="false" native="false" synchronized="false"
  18134. static="true" final="false" visibility="public"
  18135. deprecated="not deprecated">
  18136. <param name="in" type="java.io.InputStream"/>
  18137. <exception name="IOException" type="java.io.IOException"/>
  18138. <doc>
  18139. <![CDATA[Returns the number of bytes between the current stream position
  18140. and the immediate next BZip2 block marker.
  18141. @param in
  18142. The InputStream
  18143. @return long Number of bytes between current stream position and the
  18144. next BZip2 block start marker.
  18145. @throws IOException]]>
  18146. </doc>
  18147. </method>
  18148. <method name="read" return="int"
  18149. abstract="false" native="false" synchronized="false"
  18150. static="false" final="false" visibility="public"
  18151. deprecated="not deprecated">
  18152. <exception name="IOException" type="java.io.IOException"/>
  18153. </method>
  18154. <method name="read" return="int"
  18155. abstract="false" native="false" synchronized="false"
  18156. static="false" final="false" visibility="public"
  18157. deprecated="not deprecated">
  18158. <param name="dest" type="byte[]"/>
  18159. <param name="offs" type="int"/>
  18160. <param name="len" type="int"/>
  18161. <exception name="IOException" type="java.io.IOException"/>
  18162. <doc>
  18163. <![CDATA[In CONTINOUS reading mode, this read method starts from the
  18164. start of the compressed stream and end at the end of file by
  18165. emitting un-compressed data. In this mode stream positioning
  18166. is not announced and should be ignored.
  18167. In BYBLOCK reading mode, this read method informs about the end
  18168. of a BZip2 block by returning EOB. At this event, the compressed
  18169. stream position is also announced. This announcement tells that
  18170. how much of the compressed stream has been de-compressed and read
  18171. out of this class. In between EOB events, the stream position is
  18172. not updated.
  18173. @throws IOException
  18174. if the stream content is malformed or an I/O error occurs.
  18175. @return int The return value greater than 0 are the bytes read. A value
  18176. of -1 means end of stream while -2 represents end of block]]>
  18177. </doc>
  18178. </method>
  18179. <method name="close"
  18180. abstract="false" native="false" synchronized="false"
  18181. static="false" final="false" visibility="public"
  18182. deprecated="not deprecated">
  18183. <exception name="IOException" type="java.io.IOException"/>
  18184. </method>
  18185. <field name="BLOCK_DELIMITER" type="long"
  18186. transient="false" volatile="false"
  18187. static="true" final="true" visibility="public"
  18188. deprecated="not deprecated">
  18189. </field>
  18190. <field name="EOS_DELIMITER" type="long"
  18191. transient="false" volatile="false"
  18192. static="true" final="true" visibility="public"
  18193. deprecated="not deprecated">
  18194. </field>
  18195. <doc>
  18196. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  18197. header chars) to be read as any other stream.
  18198. <p>
  18199. The decompression requires large amounts of memory. Thus you should call the
  18200. {@link #close() close()} method as soon as possible, to force
  18201. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  18202. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  18203. usage.
  18204. </p>
  18205. <p>
  18206. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  18207. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  18208. Thus you should consider to use a buffered source stream.
  18209. </p>
  18210. <p>
  18211. Instances of this class are not threadsafe.
  18212. </p>]]>
  18213. </doc>
  18214. </class>
  18215. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18216. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18217. <class name="CBZip2InputStream.STATE" extends="java.lang.Enum"
  18218. abstract="false"
  18219. static="true" final="true" visibility="public"
  18220. deprecated="not deprecated">
  18221. <method name="values" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE[]"
  18222. abstract="false" native="false" synchronized="false"
  18223. static="true" final="false" visibility="public"
  18224. deprecated="not deprecated">
  18225. </method>
  18226. <method name="valueOf" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18227. abstract="false" native="false" synchronized="false"
  18228. static="true" final="false" visibility="public"
  18229. deprecated="not deprecated">
  18230. <param name="name" type="java.lang.String"/>
  18231. </method>
  18232. <field name="EOF" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18233. transient="false" volatile="false"
  18234. static="true" final="true" visibility="public"
  18235. deprecated="not deprecated">
  18236. </field>
  18237. <field name="START_BLOCK_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18238. transient="false" volatile="false"
  18239. static="true" final="true" visibility="public"
  18240. deprecated="not deprecated">
  18241. </field>
  18242. <field name="RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18243. transient="false" volatile="false"
  18244. static="true" final="true" visibility="public"
  18245. deprecated="not deprecated">
  18246. </field>
  18247. <field name="RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18248. transient="false" volatile="false"
  18249. static="true" final="true" visibility="public"
  18250. deprecated="not deprecated">
  18251. </field>
  18252. <field name="RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18253. transient="false" volatile="false"
  18254. static="true" final="true" visibility="public"
  18255. deprecated="not deprecated">
  18256. </field>
  18257. <field name="NO_RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18258. transient="false" volatile="false"
  18259. static="true" final="true" visibility="public"
  18260. deprecated="not deprecated">
  18261. </field>
  18262. <field name="NO_RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18263. transient="false" volatile="false"
  18264. static="true" final="true" visibility="public"
  18265. deprecated="not deprecated">
  18266. </field>
  18267. <field name="NO_RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18268. transient="false" volatile="false"
  18269. static="true" final="true" visibility="public"
  18270. deprecated="not deprecated">
  18271. </field>
  18272. <field name="NO_PROCESS_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18273. transient="false" volatile="false"
  18274. static="true" final="true" visibility="public"
  18275. deprecated="not deprecated">
  18276. </field>
  18277. <doc>
  18278. <![CDATA[A state machine to keep track of current state of the de-coder]]>
  18279. </doc>
  18280. </class>
  18281. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18282. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18283. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  18284. abstract="false"
  18285. static="false" final="false" visibility="public"
  18286. deprecated="not deprecated">
  18287. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18288. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  18289. static="false" final="false" visibility="public"
  18290. deprecated="not deprecated">
  18291. <exception name="IOException" type="java.io.IOException"/>
  18292. <doc>
  18293. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  18294. <p>
  18295. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18296. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18297. constructor.
  18298. </p>
  18299. @param out *
  18300. the destination stream.
  18301. @throws IOException
  18302. if an I/O error occurs in the specified stream.
  18303. @throws NullPointerException
  18304. if <code>out == null</code>.]]>
  18305. </doc>
  18306. </constructor>
  18307. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  18308. static="false" final="false" visibility="public"
  18309. deprecated="not deprecated">
  18310. <exception name="IOException" type="java.io.IOException"/>
  18311. <doc>
  18312. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  18313. <p>
  18314. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18315. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18316. constructor.
  18317. </p>
  18318. @param out
  18319. the destination stream.
  18320. @param blockSize
  18321. the blockSize as 100k units.
  18322. @throws IOException
  18323. if an I/O error occurs in the specified stream.
  18324. @throws IllegalArgumentException
  18325. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  18326. @throws NullPointerException
  18327. if <code>out == null</code>.
  18328. @see #MIN_BLOCKSIZE
  18329. @see #MAX_BLOCKSIZE]]>
  18330. </doc>
  18331. </constructor>
  18332. <method name="hbMakeCodeLengths"
  18333. abstract="false" native="false" synchronized="false"
  18334. static="true" final="false" visibility="protected"
  18335. deprecated="not deprecated">
  18336. <param name="len" type="char[]"/>
  18337. <param name="freq" type="int[]"/>
  18338. <param name="alphaSize" type="int"/>
  18339. <param name="maxLen" type="int"/>
  18340. <doc>
  18341. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  18342. don't know what it does then you don't need it.]]>
  18343. </doc>
  18344. </method>
  18345. <method name="chooseBlockSize" return="int"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="true" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. <param name="inputLength" type="long"/>
  18350. <doc>
  18351. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  18352. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  18353. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  18354. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  18355. always.
  18356. @param inputLength
  18357. The length of the data which will be compressed by
  18358. <tt>CBZip2OutputStream</tt>.]]>
  18359. </doc>
  18360. </method>
  18361. <method name="write"
  18362. abstract="false" native="false" synchronized="false"
  18363. static="false" final="false" visibility="public"
  18364. deprecated="not deprecated">
  18365. <param name="b" type="int"/>
  18366. <exception name="IOException" type="java.io.IOException"/>
  18367. </method>
  18368. <method name="finalize"
  18369. abstract="false" native="false" synchronized="false"
  18370. static="false" final="false" visibility="protected"
  18371. deprecated="not deprecated">
  18372. <exception name="Throwable" type="java.lang.Throwable"/>
  18373. <doc>
  18374. <![CDATA[Overriden to close the stream.]]>
  18375. </doc>
  18376. </method>
  18377. <method name="finish"
  18378. abstract="false" native="false" synchronized="false"
  18379. static="false" final="false" visibility="public"
  18380. deprecated="not deprecated">
  18381. <exception name="IOException" type="java.io.IOException"/>
  18382. </method>
  18383. <method name="close"
  18384. abstract="false" native="false" synchronized="false"
  18385. static="false" final="false" visibility="public"
  18386. deprecated="not deprecated">
  18387. <exception name="IOException" type="java.io.IOException"/>
  18388. </method>
  18389. <method name="flush"
  18390. abstract="false" native="false" synchronized="false"
  18391. static="false" final="false" visibility="public"
  18392. deprecated="not deprecated">
  18393. <exception name="IOException" type="java.io.IOException"/>
  18394. </method>
  18395. <method name="getBlockSize" return="int"
  18396. abstract="false" native="false" synchronized="false"
  18397. static="false" final="true" visibility="public"
  18398. deprecated="not deprecated">
  18399. <doc>
  18400. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  18401. </doc>
  18402. </method>
  18403. <method name="write"
  18404. abstract="false" native="false" synchronized="false"
  18405. static="false" final="false" visibility="public"
  18406. deprecated="not deprecated">
  18407. <param name="buf" type="byte[]"/>
  18408. <param name="offs" type="int"/>
  18409. <param name="len" type="int"/>
  18410. <exception name="IOException" type="java.io.IOException"/>
  18411. </method>
  18412. <field name="MIN_BLOCKSIZE" type="int"
  18413. transient="false" volatile="false"
  18414. static="true" final="true" visibility="public"
  18415. deprecated="not deprecated">
  18416. <doc>
  18417. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  18418. </doc>
  18419. </field>
  18420. <field name="MAX_BLOCKSIZE" type="int"
  18421. transient="false" volatile="false"
  18422. static="true" final="true" visibility="public"
  18423. deprecated="not deprecated">
  18424. <doc>
  18425. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  18426. </doc>
  18427. </field>
  18428. <field name="SETMASK" type="int"
  18429. transient="false" volatile="false"
  18430. static="true" final="true" visibility="protected"
  18431. deprecated="not deprecated">
  18432. <doc>
  18433. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18434. don't know what it means then you don't need it.]]>
  18435. </doc>
  18436. </field>
  18437. <field name="CLEARMASK" type="int"
  18438. transient="false" volatile="false"
  18439. static="true" final="true" visibility="protected"
  18440. deprecated="not deprecated">
  18441. <doc>
  18442. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18443. don't know what it means then you don't need it.]]>
  18444. </doc>
  18445. </field>
  18446. <field name="GREATER_ICOST" type="int"
  18447. transient="false" volatile="false"
  18448. static="true" final="true" visibility="protected"
  18449. deprecated="not deprecated">
  18450. <doc>
  18451. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18452. don't know what it means then you don't need it.]]>
  18453. </doc>
  18454. </field>
  18455. <field name="LESSER_ICOST" type="int"
  18456. transient="false" volatile="false"
  18457. static="true" final="true" visibility="protected"
  18458. deprecated="not deprecated">
  18459. <doc>
  18460. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18461. don't know what it means then you don't need it.]]>
  18462. </doc>
  18463. </field>
  18464. <field name="SMALL_THRESH" type="int"
  18465. transient="false" volatile="false"
  18466. static="true" final="true" visibility="protected"
  18467. deprecated="not deprecated">
  18468. <doc>
  18469. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18470. don't know what it means then you don't need it.]]>
  18471. </doc>
  18472. </field>
  18473. <field name="DEPTH_THRESH" type="int"
  18474. transient="false" volatile="false"
  18475. static="true" final="true" visibility="protected"
  18476. deprecated="not deprecated">
  18477. <doc>
  18478. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18479. don't know what it means then you don't need it.]]>
  18480. </doc>
  18481. </field>
  18482. <field name="WORK_FACTOR" type="int"
  18483. transient="false" volatile="false"
  18484. static="true" final="true" visibility="protected"
  18485. deprecated="not deprecated">
  18486. <doc>
  18487. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18488. don't know what it means then you don't need it.]]>
  18489. </doc>
  18490. </field>
  18491. <field name="QSORT_STACK_SIZE" type="int"
  18492. transient="false" volatile="false"
  18493. static="true" final="true" visibility="protected"
  18494. deprecated="not deprecated">
  18495. <doc>
  18496. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18497. don't know what it means then you don't need it.
  18498. <p>
  18499. If you are ever unlucky/improbable enough to get a stack overflow whilst
  18500. sorting, increase the following constant and try again. In practice I
  18501. have never seen the stack go above 27 elems, so the following limit seems
  18502. very generous.
  18503. </p>]]>
  18504. </doc>
  18505. </field>
  18506. <doc>
  18507. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  18508. header chars) into another stream.
  18509. <p>
  18510. The compression requires large amounts of memory. Thus you should call the
  18511. {@link #close() close()} method as soon as possible, to force
  18512. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  18513. </p>
  18514. <p>
  18515. You can shrink the amount of allocated memory and maybe raise the compression
  18516. speed by choosing a lower blocksize, which in turn may cause a lower
  18517. compression ratio. You can avoid unnecessary memory allocation by avoiding
  18518. using a blocksize which is bigger than the size of the input.
  18519. </p>
  18520. <p>
  18521. You can compute the memory usage for compressing by the following formula:
  18522. </p>
  18523. <pre>
  18524. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  18525. </pre>
  18526. <p>
  18527. To get the memory required for decompression by {@link CBZip2InputStream
  18528. CBZip2InputStream} use
  18529. </p>
  18530. <pre>
  18531. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  18532. </pre>
  18533. <table width="100%" border="1">
  18534. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  18535. </colgroup>
  18536. <tr>
  18537. <th colspan="3">Memory usage by blocksize</th>
  18538. </tr>
  18539. <tr>
  18540. <th align="right">Blocksize</th> <th align="right">Compression<br>
  18541. memory usage</th> <th align="right">Decompression<br>
  18542. memory usage</th>
  18543. </tr>
  18544. <tr>
  18545. <td align="right">100k</td>
  18546. <td align="right">1300k</td>
  18547. <td align="right">565k</td>
  18548. </tr>
  18549. <tr>
  18550. <td align="right">200k</td>
  18551. <td align="right">2200k</td>
  18552. <td align="right">1065k</td>
  18553. </tr>
  18554. <tr>
  18555. <td align="right">300k</td>
  18556. <td align="right">3100k</td>
  18557. <td align="right">1565k</td>
  18558. </tr>
  18559. <tr>
  18560. <td align="right">400k</td>
  18561. <td align="right">4000k</td>
  18562. <td align="right">2065k</td>
  18563. </tr>
  18564. <tr>
  18565. <td align="right">500k</td>
  18566. <td align="right">4900k</td>
  18567. <td align="right">2565k</td>
  18568. </tr>
  18569. <tr>
  18570. <td align="right">600k</td>
  18571. <td align="right">5800k</td>
  18572. <td align="right">3065k</td>
  18573. </tr>
  18574. <tr>
  18575. <td align="right">700k</td>
  18576. <td align="right">6700k</td>
  18577. <td align="right">3565k</td>
  18578. </tr>
  18579. <tr>
  18580. <td align="right">800k</td>
  18581. <td align="right">7600k</td>
  18582. <td align="right">4065k</td>
  18583. </tr>
  18584. <tr>
  18585. <td align="right">900k</td>
  18586. <td align="right">8500k</td>
  18587. <td align="right">4565k</td>
  18588. </tr>
  18589. </table>
  18590. <p>
  18591. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  18592. bzipped input is smaller than one block.
  18593. </p>
  18594. <p>
  18595. Instances of this class are not threadsafe.
  18596. </p>
  18597. <p>
  18598. TODO: Update to BZip2 1.0.1
  18599. </p>]]>
  18600. </doc>
  18601. </class>
  18602. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18603. </package>
  18604. <package name="org.apache.hadoop.io.compress.snappy">
  18605. <!-- start class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18606. <class name="LoadSnappy" extends="java.lang.Object"
  18607. abstract="false"
  18608. static="false" final="false" visibility="public"
  18609. deprecated="not deprecated">
  18610. <constructor name="LoadSnappy"
  18611. static="false" final="false" visibility="public"
  18612. deprecated="not deprecated">
  18613. </constructor>
  18614. <method name="isAvailable" return="boolean"
  18615. abstract="false" native="false" synchronized="false"
  18616. static="true" final="false" visibility="public"
  18617. deprecated="not deprecated">
  18618. <doc>
  18619. <![CDATA[Returns if Snappy native library is loaded.
  18620. @return <code>true</code> if Snappy native library is loaded,
  18621. <code>false</code> if not.]]>
  18622. </doc>
  18623. </method>
  18624. <method name="isLoaded" return="boolean"
  18625. abstract="false" native="false" synchronized="false"
  18626. static="true" final="false" visibility="public"
  18627. deprecated="not deprecated">
  18628. <doc>
  18629. <![CDATA[Returns if Snappy native library is loaded.
  18630. @return <code>true</code> if Snappy native library is loaded,
  18631. <code>false</code> if not.]]>
  18632. </doc>
  18633. </method>
  18634. <doc>
  18635. <![CDATA[Determines if Snappy native library is available and loads it if available.]]>
  18636. </doc>
  18637. </class>
  18638. <!-- end class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18639. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18640. <class name="SnappyCompressor" extends="java.lang.Object"
  18641. abstract="false"
  18642. static="false" final="false" visibility="public"
  18643. deprecated="not deprecated">
  18644. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18645. <constructor name="SnappyCompressor" type="int"
  18646. static="false" final="false" visibility="public"
  18647. deprecated="not deprecated">
  18648. <doc>
  18649. <![CDATA[Creates a new compressor.
  18650. @param directBufferSize size of the direct buffer to be used.]]>
  18651. </doc>
  18652. </constructor>
  18653. <constructor name="SnappyCompressor"
  18654. static="false" final="false" visibility="public"
  18655. deprecated="not deprecated">
  18656. <doc>
  18657. <![CDATA[Creates a new compressor with the default buffer size.]]>
  18658. </doc>
  18659. </constructor>
  18660. <method name="setInput"
  18661. abstract="false" native="false" synchronized="true"
  18662. static="false" final="false" visibility="public"
  18663. deprecated="not deprecated">
  18664. <param name="b" type="byte[]"/>
  18665. <param name="off" type="int"/>
  18666. <param name="len" type="int"/>
  18667. <doc>
  18668. <![CDATA[Sets input data for compression.
  18669. This should be called whenever #needsInput() returns
  18670. <code>true</code> indicating that more input data is required.
  18671. @param b Input data
  18672. @param off Start offset
  18673. @param len Length]]>
  18674. </doc>
  18675. </method>
  18676. <method name="setDictionary"
  18677. abstract="false" native="false" synchronized="true"
  18678. static="false" final="false" visibility="public"
  18679. deprecated="not deprecated">
  18680. <param name="b" type="byte[]"/>
  18681. <param name="off" type="int"/>
  18682. <param name="len" type="int"/>
  18683. <doc>
  18684. <![CDATA[Does nothing.]]>
  18685. </doc>
  18686. </method>
  18687. <method name="needsInput" return="boolean"
  18688. abstract="false" native="false" synchronized="true"
  18689. static="false" final="false" visibility="public"
  18690. deprecated="not deprecated">
  18691. <doc>
  18692. <![CDATA[Returns true if the input data buffer is empty and
  18693. #setInput() should be called to provide more input.
  18694. @return <code>true</code> if the input data buffer is empty and
  18695. #setInput() should be called in order to provide more input.]]>
  18696. </doc>
  18697. </method>
  18698. <method name="finish"
  18699. abstract="false" native="false" synchronized="true"
  18700. static="false" final="false" visibility="public"
  18701. deprecated="not deprecated">
  18702. <doc>
  18703. <![CDATA[When called, indicates that compression should end
  18704. with the current contents of the input buffer.]]>
  18705. </doc>
  18706. </method>
  18707. <method name="finished" return="boolean"
  18708. abstract="false" native="false" synchronized="true"
  18709. static="false" final="false" visibility="public"
  18710. deprecated="not deprecated">
  18711. <doc>
  18712. <![CDATA[Returns true if the end of the compressed
  18713. data output stream has been reached.
  18714. @return <code>true</code> if the end of the compressed
  18715. data output stream has been reached.]]>
  18716. </doc>
  18717. </method>
  18718. <method name="compress" return="int"
  18719. abstract="false" native="false" synchronized="true"
  18720. static="false" final="false" visibility="public"
  18721. deprecated="not deprecated">
  18722. <param name="b" type="byte[]"/>
  18723. <param name="off" type="int"/>
  18724. <param name="len" type="int"/>
  18725. <exception name="IOException" type="java.io.IOException"/>
  18726. <doc>
  18727. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  18728. of bytes of compressed data. A return value of 0 indicates that
  18729. needsInput() should be called in order to determine if more input
  18730. data is required.
  18731. @param b Buffer for the compressed data
  18732. @param off Start offset of the data
  18733. @param len Size of the buffer
  18734. @return The actual number of bytes of compressed data.]]>
  18735. </doc>
  18736. </method>
  18737. <method name="reset"
  18738. abstract="false" native="false" synchronized="true"
  18739. static="false" final="false" visibility="public"
  18740. deprecated="not deprecated">
  18741. <doc>
  18742. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  18743. </doc>
  18744. </method>
  18745. <method name="reinit"
  18746. abstract="false" native="false" synchronized="true"
  18747. static="false" final="false" visibility="public"
  18748. deprecated="not deprecated">
  18749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18750. <doc>
  18751. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18752. the given Configuration
  18753. @param conf Configuration from which new setting are fetched]]>
  18754. </doc>
  18755. </method>
  18756. <method name="getBytesRead" return="long"
  18757. abstract="false" native="false" synchronized="true"
  18758. static="false" final="false" visibility="public"
  18759. deprecated="not deprecated">
  18760. <doc>
  18761. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  18762. </doc>
  18763. </method>
  18764. <method name="getBytesWritten" return="long"
  18765. abstract="false" native="false" synchronized="true"
  18766. static="false" final="false" visibility="public"
  18767. deprecated="not deprecated">
  18768. <doc>
  18769. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  18770. </doc>
  18771. </method>
  18772. <method name="end"
  18773. abstract="false" native="false" synchronized="true"
  18774. static="false" final="false" visibility="public"
  18775. deprecated="not deprecated">
  18776. <doc>
  18777. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  18778. </doc>
  18779. </method>
  18780. <doc>
  18781. <![CDATA[A {@link Compressor} based on the snappy compression algorithm.
  18782. http://code.google.com/p/snappy/]]>
  18783. </doc>
  18784. </class>
  18785. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18786. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18787. <class name="SnappyDecompressor" extends="java.lang.Object"
  18788. abstract="false"
  18789. static="false" final="false" visibility="public"
  18790. deprecated="not deprecated">
  18791. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18792. <constructor name="SnappyDecompressor" type="int"
  18793. static="false" final="false" visibility="public"
  18794. deprecated="not deprecated">
  18795. <doc>
  18796. <![CDATA[Creates a new compressor.
  18797. @param directBufferSize size of the direct buffer to be used.]]>
  18798. </doc>
  18799. </constructor>
  18800. <constructor name="SnappyDecompressor"
  18801. static="false" final="false" visibility="public"
  18802. deprecated="not deprecated">
  18803. <doc>
  18804. <![CDATA[Creates a new decompressor with the default buffer size.]]>
  18805. </doc>
  18806. </constructor>
  18807. <method name="setInput"
  18808. abstract="false" native="false" synchronized="true"
  18809. static="false" final="false" visibility="public"
  18810. deprecated="not deprecated">
  18811. <param name="b" type="byte[]"/>
  18812. <param name="off" type="int"/>
  18813. <param name="len" type="int"/>
  18814. <doc>
  18815. <![CDATA[Sets input data for decompression.
  18816. This should be called if and only if {@link #needsInput()} returns
  18817. <code>true</code> indicating that more input data is required.
  18818. (Both native and non-native versions of various Decompressors require
  18819. that the data passed in via <code>b[]</code> remain unmodified until
  18820. the caller is explicitly notified--via {@link #needsInput()}--that the
  18821. buffer may be safely modified. With this requirement, an extra
  18822. buffer-copy can be avoided.)
  18823. @param b Input data
  18824. @param off Start offset
  18825. @param len Length]]>
  18826. </doc>
  18827. </method>
  18828. <method name="setDictionary"
  18829. abstract="false" native="false" synchronized="true"
  18830. static="false" final="false" visibility="public"
  18831. deprecated="not deprecated">
  18832. <param name="b" type="byte[]"/>
  18833. <param name="off" type="int"/>
  18834. <param name="len" type="int"/>
  18835. <doc>
  18836. <![CDATA[Does nothing.]]>
  18837. </doc>
  18838. </method>
  18839. <method name="needsInput" return="boolean"
  18840. abstract="false" native="false" synchronized="true"
  18841. static="false" final="false" visibility="public"
  18842. deprecated="not deprecated">
  18843. <doc>
  18844. <![CDATA[Returns true if the input data buffer is empty and
  18845. {@link #setInput(byte[], int, int)} should be called to
  18846. provide more input.
  18847. @return <code>true</code> if the input data buffer is empty and
  18848. {@link #setInput(byte[], int, int)} should be called in
  18849. order to provide more input.]]>
  18850. </doc>
  18851. </method>
  18852. <method name="needsDictionary" return="boolean"
  18853. abstract="false" native="false" synchronized="true"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <doc>
  18857. <![CDATA[Returns <code>false</code>.
  18858. @return <code>false</code>.]]>
  18859. </doc>
  18860. </method>
  18861. <method name="finished" return="boolean"
  18862. abstract="false" native="false" synchronized="true"
  18863. static="false" final="false" visibility="public"
  18864. deprecated="not deprecated">
  18865. <doc>
  18866. <![CDATA[Returns true if the end of the decompressed
  18867. data output stream has been reached.
  18868. @return <code>true</code> if the end of the decompressed
  18869. data output stream has been reached.]]>
  18870. </doc>
  18871. </method>
  18872. <method name="decompress" return="int"
  18873. abstract="false" native="false" synchronized="true"
  18874. static="false" final="false" visibility="public"
  18875. deprecated="not deprecated">
  18876. <param name="b" type="byte[]"/>
  18877. <param name="off" type="int"/>
  18878. <param name="len" type="int"/>
  18879. <exception name="IOException" type="java.io.IOException"/>
  18880. <doc>
  18881. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  18882. of bytes of uncompressed data. A return value of 0 indicates that
  18883. {@link #needsInput()} should be called in order to determine if more
  18884. input data is required.
  18885. @param b Buffer for the compressed data
  18886. @param off Start offset of the data
  18887. @param len Size of the buffer
  18888. @return The actual number of bytes of compressed data.
  18889. @throws IOException]]>
  18890. </doc>
  18891. </method>
  18892. <method name="getRemaining" return="int"
  18893. abstract="false" native="false" synchronized="true"
  18894. static="false" final="false" visibility="public"
  18895. deprecated="not deprecated">
  18896. <doc>
  18897. <![CDATA[Returns <code>0</code>.
  18898. @return <code>0</code>.]]>
  18899. </doc>
  18900. </method>
  18901. <method name="reset"
  18902. abstract="false" native="false" synchronized="true"
  18903. static="false" final="false" visibility="public"
  18904. deprecated="not deprecated">
  18905. </method>
  18906. <method name="end"
  18907. abstract="false" native="false" synchronized="true"
  18908. static="false" final="false" visibility="public"
  18909. deprecated="not deprecated">
  18910. <doc>
  18911. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  18912. input data can be processed.]]>
  18913. </doc>
  18914. </method>
  18915. <doc>
  18916. <![CDATA[A {@link Decompressor} based on the snappy compression algorithm.
  18917. http://code.google.com/p/snappy/]]>
  18918. </doc>
  18919. </class>
  18920. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18921. </package>
  18922. <package name="org.apache.hadoop.io.compress.zlib">
  18923. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  18924. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  18925. abstract="false"
  18926. static="false" final="false" visibility="public"
  18927. deprecated="not deprecated">
  18928. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18929. <constructor name="BuiltInGzipDecompressor"
  18930. static="false" final="false" visibility="public"
  18931. deprecated="not deprecated">
  18932. <doc>
  18933. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  18934. </doc>
  18935. </constructor>
  18936. <method name="needsInput" return="boolean"
  18937. abstract="false" native="false" synchronized="true"
  18938. static="false" final="false" visibility="public"
  18939. deprecated="not deprecated">
  18940. <doc>
  18941. <![CDATA[{@inheritDoc}]]>
  18942. </doc>
  18943. </method>
  18944. <method name="setInput"
  18945. abstract="false" native="false" synchronized="true"
  18946. static="false" final="false" visibility="public"
  18947. deprecated="not deprecated">
  18948. <param name="b" type="byte[]"/>
  18949. <param name="off" type="int"/>
  18950. <param name="len" type="int"/>
  18951. <doc>
  18952. <![CDATA[{@inheritDoc}]]>
  18953. </doc>
  18954. </method>
  18955. <method name="decompress" return="int"
  18956. abstract="false" native="false" synchronized="true"
  18957. static="false" final="false" visibility="public"
  18958. deprecated="not deprecated">
  18959. <param name="b" type="byte[]"/>
  18960. <param name="off" type="int"/>
  18961. <param name="len" type="int"/>
  18962. <exception name="IOException" type="java.io.IOException"/>
  18963. <doc>
  18964. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  18965. provided buffer.
  18966. @return the number of decompressed bytes placed into b]]>
  18967. </doc>
  18968. </method>
  18969. <method name="getBytesRead" return="long"
  18970. abstract="false" native="false" synchronized="true"
  18971. static="false" final="false" visibility="public"
  18972. deprecated="not deprecated">
  18973. <doc>
  18974. <![CDATA[Returns the total number of compressed bytes input so far, including
  18975. gzip header/trailer bytes.</p>
  18976. @return the total (non-negative) number of compressed bytes read so far]]>
  18977. </doc>
  18978. </method>
  18979. <method name="getRemaining" return="int"
  18980. abstract="false" native="false" synchronized="true"
  18981. static="false" final="false" visibility="public"
  18982. deprecated="not deprecated">
  18983. <doc>
  18984. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  18985. called when finished() is true to determine amount of post-gzip-stream
  18986. data. Note that, other than the finished state with concatenated data
  18987. after the end of the current gzip stream, this will never return a
  18988. non-zero value unless called after {@link #setInput(byte[] b, int off,
  18989. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  18990. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  18991. always returns zero, except in finished state with concatenated data.)</p>
  18992. @return the total (non-negative) number of unprocessed bytes in input]]>
  18993. </doc>
  18994. </method>
  18995. <method name="needsDictionary" return="boolean"
  18996. abstract="false" native="false" synchronized="true"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <doc>
  19000. <![CDATA[{@inheritDoc}]]>
  19001. </doc>
  19002. </method>
  19003. <method name="setDictionary"
  19004. abstract="false" native="false" synchronized="true"
  19005. static="false" final="false" visibility="public"
  19006. deprecated="not deprecated">
  19007. <param name="b" type="byte[]"/>
  19008. <param name="off" type="int"/>
  19009. <param name="len" type="int"/>
  19010. <doc>
  19011. <![CDATA[{@inheritDoc}]]>
  19012. </doc>
  19013. </method>
  19014. <method name="finished" return="boolean"
  19015. abstract="false" native="false" synchronized="true"
  19016. static="false" final="false" visibility="public"
  19017. deprecated="not deprecated">
  19018. <doc>
  19019. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  19020. reached.</p>]]>
  19021. </doc>
  19022. </method>
  19023. <method name="reset"
  19024. abstract="false" native="false" synchronized="true"
  19025. static="false" final="false" visibility="public"
  19026. deprecated="not deprecated">
  19027. <doc>
  19028. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  19029. current gzip substream is finished.</p>]]>
  19030. </doc>
  19031. </method>
  19032. <method name="end"
  19033. abstract="false" native="false" synchronized="true"
  19034. static="false" final="false" visibility="public"
  19035. deprecated="not deprecated">
  19036. <doc>
  19037. <![CDATA[{@inheritDoc}]]>
  19038. </doc>
  19039. </method>
  19040. <doc>
  19041. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  19042. http://www.gzip.org/]]>
  19043. </doc>
  19044. </class>
  19045. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19046. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19047. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  19048. abstract="false"
  19049. static="false" final="false" visibility="public"
  19050. deprecated="not deprecated">
  19051. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19052. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  19053. static="false" final="false" visibility="public"
  19054. deprecated="not deprecated">
  19055. </constructor>
  19056. <constructor name="BuiltInZlibDeflater" type="int"
  19057. static="false" final="false" visibility="public"
  19058. deprecated="not deprecated">
  19059. </constructor>
  19060. <constructor name="BuiltInZlibDeflater"
  19061. static="false" final="false" visibility="public"
  19062. deprecated="not deprecated">
  19063. </constructor>
  19064. <method name="compress" return="int"
  19065. abstract="false" native="false" synchronized="true"
  19066. static="false" final="false" visibility="public"
  19067. deprecated="not deprecated">
  19068. <param name="b" type="byte[]"/>
  19069. <param name="off" type="int"/>
  19070. <param name="len" type="int"/>
  19071. <exception name="IOException" type="java.io.IOException"/>
  19072. </method>
  19073. <method name="reinit"
  19074. abstract="false" native="false" synchronized="false"
  19075. static="false" final="false" visibility="public"
  19076. deprecated="not deprecated">
  19077. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19078. <doc>
  19079. <![CDATA[reinit the compressor with the given configuration. It will reset the
  19080. compressor's compression level and compression strategy. Different from
  19081. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  19082. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  19083. It will use DEFAULT_STRATEGY as default if the configured compression
  19084. strategy is not supported.]]>
  19085. </doc>
  19086. </method>
  19087. <doc>
  19088. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  19089. to org.apache.hadoop.io.compress.Compressor interface.]]>
  19090. </doc>
  19091. </class>
  19092. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19093. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19094. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  19095. abstract="false"
  19096. static="false" final="false" visibility="public"
  19097. deprecated="not deprecated">
  19098. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19099. <constructor name="BuiltInZlibInflater" type="boolean"
  19100. static="false" final="false" visibility="public"
  19101. deprecated="not deprecated">
  19102. </constructor>
  19103. <constructor name="BuiltInZlibInflater"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="not deprecated">
  19106. </constructor>
  19107. <method name="decompress" return="int"
  19108. abstract="false" native="false" synchronized="true"
  19109. static="false" final="false" visibility="public"
  19110. deprecated="not deprecated">
  19111. <param name="b" type="byte[]"/>
  19112. <param name="off" type="int"/>
  19113. <param name="len" type="int"/>
  19114. <exception name="IOException" type="java.io.IOException"/>
  19115. </method>
  19116. <doc>
  19117. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  19118. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  19119. </doc>
  19120. </class>
  19121. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19122. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19123. <class name="ZlibCompressor" extends="java.lang.Object"
  19124. abstract="false"
  19125. static="false" final="false" visibility="public"
  19126. deprecated="not deprecated">
  19127. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19128. <constructor name="ZlibCompressor"
  19129. static="false" final="false" visibility="public"
  19130. deprecated="not deprecated">
  19131. <doc>
  19132. <![CDATA[Creates a new compressor with the default compression level.
  19133. Compressed data will be generated in ZLIB format.]]>
  19134. </doc>
  19135. </constructor>
  19136. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  19137. static="false" final="false" visibility="public"
  19138. deprecated="not deprecated">
  19139. <doc>
  19140. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  19141. </doc>
  19142. </constructor>
  19143. <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"
  19144. static="false" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <doc>
  19147. <![CDATA[Creates a new compressor using the specified compression level.
  19148. Compressed data will be generated in ZLIB format.
  19149. @param level Compression level #CompressionLevel
  19150. @param strategy Compression strategy #CompressionStrategy
  19151. @param header Compression header #CompressionHeader
  19152. @param directBufferSize Size of the direct buffer to be used.]]>
  19153. </doc>
  19154. </constructor>
  19155. <method name="construct"
  19156. abstract="false" native="false" synchronized="false"
  19157. static="false" final="true" visibility="protected"
  19158. deprecated="not deprecated">
  19159. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19160. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19161. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  19162. <param name="directBufferSize" type="int"/>
  19163. </method>
  19164. <method name="reinit"
  19165. abstract="false" native="false" synchronized="true"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19169. <doc>
  19170. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19171. the given Configuration. It will reset the compressor's compression level
  19172. and compression strategy.
  19173. @param conf Configuration storing new settings]]>
  19174. </doc>
  19175. </method>
  19176. <method name="setInput"
  19177. abstract="false" native="false" synchronized="true"
  19178. static="false" final="false" visibility="public"
  19179. deprecated="not deprecated">
  19180. <param name="b" type="byte[]"/>
  19181. <param name="off" type="int"/>
  19182. <param name="len" type="int"/>
  19183. </method>
  19184. <method name="setDictionary"
  19185. abstract="false" native="false" synchronized="true"
  19186. static="false" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. <param name="b" type="byte[]"/>
  19189. <param name="off" type="int"/>
  19190. <param name="len" type="int"/>
  19191. </method>
  19192. <method name="needsInput" return="boolean"
  19193. abstract="false" native="false" synchronized="false"
  19194. static="false" final="false" visibility="public"
  19195. deprecated="not deprecated">
  19196. </method>
  19197. <method name="finish"
  19198. abstract="false" native="false" synchronized="true"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. </method>
  19202. <method name="finished" return="boolean"
  19203. abstract="false" native="false" synchronized="true"
  19204. static="false" final="false" visibility="public"
  19205. deprecated="not deprecated">
  19206. </method>
  19207. <method name="compress" return="int"
  19208. abstract="false" native="false" synchronized="true"
  19209. static="false" final="false" visibility="public"
  19210. deprecated="not deprecated">
  19211. <param name="b" type="byte[]"/>
  19212. <param name="off" type="int"/>
  19213. <param name="len" type="int"/>
  19214. <exception name="IOException" type="java.io.IOException"/>
  19215. </method>
  19216. <method name="getBytesWritten" return="long"
  19217. abstract="false" native="false" synchronized="true"
  19218. static="false" final="false" visibility="public"
  19219. deprecated="not deprecated">
  19220. <doc>
  19221. <![CDATA[Returns the total number of compressed bytes output so far.
  19222. @return the total (non-negative) number of compressed bytes output so far]]>
  19223. </doc>
  19224. </method>
  19225. <method name="getBytesRead" return="long"
  19226. abstract="false" native="false" synchronized="true"
  19227. static="false" final="false" visibility="public"
  19228. deprecated="not deprecated">
  19229. <doc>
  19230. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19231. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19232. </doc>
  19233. </method>
  19234. <method name="reset"
  19235. abstract="false" native="false" synchronized="true"
  19236. static="false" final="false" visibility="public"
  19237. deprecated="not deprecated">
  19238. </method>
  19239. <method name="end"
  19240. abstract="false" native="false" synchronized="true"
  19241. static="false" final="false" visibility="public"
  19242. deprecated="not deprecated">
  19243. </method>
  19244. <doc>
  19245. <![CDATA[A {@link Compressor} based on the popular
  19246. zlib compression algorithm.
  19247. http://www.zlib.net/]]>
  19248. </doc>
  19249. </class>
  19250. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19251. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19252. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  19253. abstract="false"
  19254. static="true" final="true" visibility="public"
  19255. deprecated="not deprecated">
  19256. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  19257. abstract="false" native="false" synchronized="false"
  19258. static="true" final="false" visibility="public"
  19259. deprecated="not deprecated">
  19260. </method>
  19261. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19262. abstract="false" native="false" synchronized="false"
  19263. static="true" final="false" visibility="public"
  19264. deprecated="not deprecated">
  19265. <param name="name" type="java.lang.String"/>
  19266. </method>
  19267. <method name="windowBits" return="int"
  19268. abstract="false" native="false" synchronized="false"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. </method>
  19272. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19273. transient="false" volatile="false"
  19274. static="true" final="true" visibility="public"
  19275. deprecated="not deprecated">
  19276. <doc>
  19277. <![CDATA[No headers/trailers/checksums.]]>
  19278. </doc>
  19279. </field>
  19280. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19281. transient="false" volatile="false"
  19282. static="true" final="true" visibility="public"
  19283. deprecated="not deprecated">
  19284. <doc>
  19285. <![CDATA[Default headers/trailers/checksums.]]>
  19286. </doc>
  19287. </field>
  19288. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19289. transient="false" volatile="false"
  19290. static="true" final="true" visibility="public"
  19291. deprecated="not deprecated">
  19292. <doc>
  19293. <![CDATA[Simple gzip headers/trailers.]]>
  19294. </doc>
  19295. </field>
  19296. <doc>
  19297. <![CDATA[The type of header for compressed data.]]>
  19298. </doc>
  19299. </class>
  19300. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19301. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19302. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  19303. abstract="false"
  19304. static="true" final="true" visibility="public"
  19305. deprecated="not deprecated">
  19306. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  19307. abstract="false" native="false" synchronized="false"
  19308. static="true" final="false" visibility="public"
  19309. deprecated="not deprecated">
  19310. </method>
  19311. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19312. abstract="false" native="false" synchronized="false"
  19313. static="true" final="false" visibility="public"
  19314. deprecated="not deprecated">
  19315. <param name="name" type="java.lang.String"/>
  19316. </method>
  19317. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19318. transient="false" volatile="false"
  19319. static="true" final="true" visibility="public"
  19320. deprecated="not deprecated">
  19321. <doc>
  19322. <![CDATA[Compression level for no compression.]]>
  19323. </doc>
  19324. </field>
  19325. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19326. transient="false" volatile="false"
  19327. static="true" final="true" visibility="public"
  19328. deprecated="not deprecated">
  19329. <doc>
  19330. <![CDATA[Compression level for fastest compression.]]>
  19331. </doc>
  19332. </field>
  19333. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19334. transient="false" volatile="false"
  19335. static="true" final="true" visibility="public"
  19336. deprecated="not deprecated">
  19337. <doc>
  19338. <![CDATA[Compression level for best compression.]]>
  19339. </doc>
  19340. </field>
  19341. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19342. transient="false" volatile="false"
  19343. static="true" final="true" visibility="public"
  19344. deprecated="not deprecated">
  19345. <doc>
  19346. <![CDATA[Default compression level.]]>
  19347. </doc>
  19348. </field>
  19349. <doc>
  19350. <![CDATA[The compression level for zlib library.]]>
  19351. </doc>
  19352. </class>
  19353. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19354. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19355. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  19356. abstract="false"
  19357. static="true" final="true" visibility="public"
  19358. deprecated="not deprecated">
  19359. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  19360. abstract="false" native="false" synchronized="false"
  19361. static="true" final="false" visibility="public"
  19362. deprecated="not deprecated">
  19363. </method>
  19364. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19365. abstract="false" native="false" synchronized="false"
  19366. static="true" final="false" visibility="public"
  19367. deprecated="not deprecated">
  19368. <param name="name" type="java.lang.String"/>
  19369. </method>
  19370. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19371. transient="false" volatile="false"
  19372. static="true" final="true" visibility="public"
  19373. deprecated="not deprecated">
  19374. <doc>
  19375. <![CDATA[Compression strategy best used for data consisting mostly of small
  19376. values with a somewhat random distribution. Forces more Huffman coding
  19377. and less string matching.]]>
  19378. </doc>
  19379. </field>
  19380. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19381. transient="false" volatile="false"
  19382. static="true" final="true" visibility="public"
  19383. deprecated="not deprecated">
  19384. <doc>
  19385. <![CDATA[Compression strategy for Huffman coding only.]]>
  19386. </doc>
  19387. </field>
  19388. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19389. transient="false" volatile="false"
  19390. static="true" final="true" visibility="public"
  19391. deprecated="not deprecated">
  19392. <doc>
  19393. <![CDATA[Compression strategy to limit match distances to one
  19394. (run-length encoding).]]>
  19395. </doc>
  19396. </field>
  19397. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19398. transient="false" volatile="false"
  19399. static="true" final="true" visibility="public"
  19400. deprecated="not deprecated">
  19401. <doc>
  19402. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  19403. allowing for a simpler decoder for special applications.]]>
  19404. </doc>
  19405. </field>
  19406. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19407. transient="false" volatile="false"
  19408. static="true" final="true" visibility="public"
  19409. deprecated="not deprecated">
  19410. <doc>
  19411. <![CDATA[Default compression strategy.]]>
  19412. </doc>
  19413. </field>
  19414. <doc>
  19415. <![CDATA[The compression level for zlib library.]]>
  19416. </doc>
  19417. </class>
  19418. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19419. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19420. <class name="ZlibDecompressor" extends="java.lang.Object"
  19421. abstract="false"
  19422. static="false" final="false" visibility="public"
  19423. deprecated="not deprecated">
  19424. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19425. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <doc>
  19429. <![CDATA[Creates a new decompressor.]]>
  19430. </doc>
  19431. </constructor>
  19432. <constructor name="ZlibDecompressor"
  19433. static="false" final="false" visibility="public"
  19434. deprecated="not deprecated">
  19435. </constructor>
  19436. <method name="setInput"
  19437. abstract="false" native="false" synchronized="true"
  19438. static="false" final="false" visibility="public"
  19439. deprecated="not deprecated">
  19440. <param name="b" type="byte[]"/>
  19441. <param name="off" type="int"/>
  19442. <param name="len" type="int"/>
  19443. </method>
  19444. <method name="setDictionary"
  19445. abstract="false" native="false" synchronized="true"
  19446. static="false" final="false" visibility="public"
  19447. deprecated="not deprecated">
  19448. <param name="b" type="byte[]"/>
  19449. <param name="off" type="int"/>
  19450. <param name="len" type="int"/>
  19451. </method>
  19452. <method name="needsInput" return="boolean"
  19453. abstract="false" native="false" synchronized="true"
  19454. static="false" final="false" visibility="public"
  19455. deprecated="not deprecated">
  19456. </method>
  19457. <method name="needsDictionary" return="boolean"
  19458. abstract="false" native="false" synchronized="true"
  19459. static="false" final="false" visibility="public"
  19460. deprecated="not deprecated">
  19461. </method>
  19462. <method name="finished" return="boolean"
  19463. abstract="false" native="false" synchronized="true"
  19464. static="false" final="false" visibility="public"
  19465. deprecated="not deprecated">
  19466. </method>
  19467. <method name="decompress" return="int"
  19468. abstract="false" native="false" synchronized="true"
  19469. static="false" final="false" visibility="public"
  19470. deprecated="not deprecated">
  19471. <param name="b" type="byte[]"/>
  19472. <param name="off" type="int"/>
  19473. <param name="len" type="int"/>
  19474. <exception name="IOException" type="java.io.IOException"/>
  19475. </method>
  19476. <method name="getBytesWritten" return="long"
  19477. abstract="false" native="false" synchronized="true"
  19478. static="false" final="false" visibility="public"
  19479. deprecated="not deprecated">
  19480. <doc>
  19481. <![CDATA[Returns the total number of uncompressed bytes output so far.
  19482. @return the total (non-negative) number of uncompressed bytes output so far]]>
  19483. </doc>
  19484. </method>
  19485. <method name="getBytesRead" return="long"
  19486. abstract="false" native="false" synchronized="true"
  19487. static="false" final="false" visibility="public"
  19488. deprecated="not deprecated">
  19489. <doc>
  19490. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  19491. @return the total (non-negative) number of compressed bytes input so far]]>
  19492. </doc>
  19493. </method>
  19494. <method name="getRemaining" return="int"
  19495. abstract="false" native="false" synchronized="true"
  19496. static="false" final="false" visibility="public"
  19497. deprecated="not deprecated">
  19498. <doc>
  19499. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  19500. called when finished() is true to determine amount of post-gzip-stream
  19501. data.</p>
  19502. @return the total (non-negative) number of unprocessed bytes in input]]>
  19503. </doc>
  19504. </method>
  19505. <method name="reset"
  19506. abstract="false" native="false" synchronized="true"
  19507. static="false" final="false" visibility="public"
  19508. deprecated="not deprecated">
  19509. <doc>
  19510. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  19511. </doc>
  19512. </method>
  19513. <method name="end"
  19514. abstract="false" native="false" synchronized="true"
  19515. static="false" final="false" visibility="public"
  19516. deprecated="not deprecated">
  19517. </method>
  19518. <method name="finalize"
  19519. abstract="false" native="false" synchronized="false"
  19520. static="false" final="false" visibility="protected"
  19521. deprecated="not deprecated">
  19522. </method>
  19523. <doc>
  19524. <![CDATA[A {@link Decompressor} based on the popular
  19525. zlib compression algorithm.
  19526. http://www.zlib.net/]]>
  19527. </doc>
  19528. </class>
  19529. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19530. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19531. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  19532. abstract="false"
  19533. static="true" final="true" visibility="public"
  19534. deprecated="not deprecated">
  19535. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  19536. abstract="false" native="false" synchronized="false"
  19537. static="true" final="false" visibility="public"
  19538. deprecated="not deprecated">
  19539. </method>
  19540. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19541. abstract="false" native="false" synchronized="false"
  19542. static="true" final="false" visibility="public"
  19543. deprecated="not deprecated">
  19544. <param name="name" type="java.lang.String"/>
  19545. </method>
  19546. <method name="windowBits" return="int"
  19547. abstract="false" native="false" synchronized="false"
  19548. static="false" final="false" visibility="public"
  19549. deprecated="not deprecated">
  19550. </method>
  19551. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19552. transient="false" volatile="false"
  19553. static="true" final="true" visibility="public"
  19554. deprecated="not deprecated">
  19555. <doc>
  19556. <![CDATA[No headers/trailers/checksums.]]>
  19557. </doc>
  19558. </field>
  19559. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19560. transient="false" volatile="false"
  19561. static="true" final="true" visibility="public"
  19562. deprecated="not deprecated">
  19563. <doc>
  19564. <![CDATA[Default headers/trailers/checksums.]]>
  19565. </doc>
  19566. </field>
  19567. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19568. transient="false" volatile="false"
  19569. static="true" final="true" visibility="public"
  19570. deprecated="not deprecated">
  19571. <doc>
  19572. <![CDATA[Simple gzip headers/trailers.]]>
  19573. </doc>
  19574. </field>
  19575. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19576. transient="false" volatile="false"
  19577. static="true" final="true" visibility="public"
  19578. deprecated="not deprecated">
  19579. <doc>
  19580. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  19581. </doc>
  19582. </field>
  19583. <doc>
  19584. <![CDATA[The headers to detect from compressed data.]]>
  19585. </doc>
  19586. </class>
  19587. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19588. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19589. <class name="ZlibFactory" extends="java.lang.Object"
  19590. abstract="false"
  19591. static="false" final="false" visibility="public"
  19592. deprecated="not deprecated">
  19593. <constructor name="ZlibFactory"
  19594. static="false" final="false" visibility="public"
  19595. deprecated="not deprecated">
  19596. </constructor>
  19597. <method name="isNativeZlibLoaded" return="boolean"
  19598. abstract="false" native="false" synchronized="false"
  19599. static="true" final="false" visibility="public"
  19600. deprecated="not deprecated">
  19601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19602. <doc>
  19603. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19604. can be loaded for this job.
  19605. @param conf configuration
  19606. @return <code>true</code> if native-zlib is loaded & initialized
  19607. and can be loaded for this job, else <code>false</code>]]>
  19608. </doc>
  19609. </method>
  19610. <method name="getZlibCompressorType" return="java.lang.Class"
  19611. abstract="false" native="false" synchronized="false"
  19612. static="true" final="false" visibility="public"
  19613. deprecated="not deprecated">
  19614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19615. <doc>
  19616. <![CDATA[Return the appropriate type of the zlib compressor.
  19617. @param conf configuration
  19618. @return the appropriate type of the zlib compressor.]]>
  19619. </doc>
  19620. </method>
  19621. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19622. abstract="false" native="false" synchronized="false"
  19623. static="true" final="false" visibility="public"
  19624. deprecated="not deprecated">
  19625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19626. <doc>
  19627. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19628. @param conf configuration
  19629. @return the appropriate implementation of the zlib compressor.]]>
  19630. </doc>
  19631. </method>
  19632. <method name="getZlibDecompressorType" return="java.lang.Class"
  19633. abstract="false" native="false" synchronized="false"
  19634. static="true" final="false" visibility="public"
  19635. deprecated="not deprecated">
  19636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19637. <doc>
  19638. <![CDATA[Return the appropriate type of the zlib decompressor.
  19639. @param conf configuration
  19640. @return the appropriate type of the zlib decompressor.]]>
  19641. </doc>
  19642. </method>
  19643. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19644. abstract="false" native="false" synchronized="false"
  19645. static="true" final="false" visibility="public"
  19646. deprecated="not deprecated">
  19647. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19648. <doc>
  19649. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19650. @param conf configuration
  19651. @return the appropriate implementation of the zlib decompressor.]]>
  19652. </doc>
  19653. </method>
  19654. <method name="setCompressionStrategy"
  19655. abstract="false" native="false" synchronized="false"
  19656. static="true" final="false" visibility="public"
  19657. deprecated="not deprecated">
  19658. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19659. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19660. </method>
  19661. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  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. </method>
  19667. <method name="setCompressionLevel"
  19668. abstract="false" native="false" synchronized="false"
  19669. static="true" final="false" visibility="public"
  19670. deprecated="not deprecated">
  19671. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19672. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19673. </method>
  19674. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19675. abstract="false" native="false" synchronized="false"
  19676. static="true" final="false" visibility="public"
  19677. deprecated="not deprecated">
  19678. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19679. </method>
  19680. <doc>
  19681. <![CDATA[A collection of factories to create the right
  19682. zlib/gzip compressor/decompressor instances.]]>
  19683. </doc>
  19684. </class>
  19685. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19686. </package>
  19687. <package name="org.apache.hadoop.io.file.tfile">
  19688. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  19689. <class name="ByteArray" extends="java.lang.Object"
  19690. abstract="false"
  19691. static="false" final="true" visibility="public"
  19692. deprecated="not deprecated">
  19693. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19694. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  19695. static="false" final="false" visibility="public"
  19696. deprecated="not deprecated">
  19697. <doc>
  19698. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  19699. @param other]]>
  19700. </doc>
  19701. </constructor>
  19702. <constructor name="ByteArray" type="byte[]"
  19703. static="false" final="false" visibility="public"
  19704. deprecated="not deprecated">
  19705. <doc>
  19706. <![CDATA[Wrap a whole byte array as a RawComparable.
  19707. @param buffer
  19708. the byte array buffer.]]>
  19709. </doc>
  19710. </constructor>
  19711. <constructor name="ByteArray" type="byte[], int, int"
  19712. static="false" final="false" visibility="public"
  19713. deprecated="not deprecated">
  19714. <doc>
  19715. <![CDATA[Wrap a partial byte array as a RawComparable.
  19716. @param buffer
  19717. the byte array buffer.
  19718. @param offset
  19719. the starting offset
  19720. @param len
  19721. the length of the consecutive bytes to be wrapped.]]>
  19722. </doc>
  19723. </constructor>
  19724. <method name="buffer" return="byte[]"
  19725. abstract="false" native="false" synchronized="false"
  19726. static="false" final="false" visibility="public"
  19727. deprecated="not deprecated">
  19728. <doc>
  19729. <![CDATA[@return the underlying buffer.]]>
  19730. </doc>
  19731. </method>
  19732. <method name="offset" return="int"
  19733. abstract="false" native="false" synchronized="false"
  19734. static="false" final="false" visibility="public"
  19735. deprecated="not deprecated">
  19736. <doc>
  19737. <![CDATA[@return the offset in the buffer.]]>
  19738. </doc>
  19739. </method>
  19740. <method name="size" return="int"
  19741. abstract="false" native="false" synchronized="false"
  19742. static="false" final="false" visibility="public"
  19743. deprecated="not deprecated">
  19744. <doc>
  19745. <![CDATA[@return the size of the byte array.]]>
  19746. </doc>
  19747. </method>
  19748. <doc>
  19749. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  19750. as RawComparable objects.]]>
  19751. </doc>
  19752. </class>
  19753. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  19754. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19755. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  19756. abstract="false"
  19757. static="false" final="false" visibility="public"
  19758. deprecated="not deprecated">
  19759. <doc>
  19760. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  19761. </doc>
  19762. </class>
  19763. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19764. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19765. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  19766. abstract="false"
  19767. static="false" final="false" visibility="public"
  19768. deprecated="not deprecated">
  19769. <doc>
  19770. <![CDATA[Exception - No such Meta Block with the given name.]]>
  19771. </doc>
  19772. </class>
  19773. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19774. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19775. <interface name="RawComparable" abstract="true"
  19776. static="false" final="false" visibility="public"
  19777. deprecated="not deprecated">
  19778. <method name="buffer" return="byte[]"
  19779. abstract="false" native="false" synchronized="false"
  19780. static="false" final="false" visibility="public"
  19781. deprecated="not deprecated">
  19782. <doc>
  19783. <![CDATA[Get the underlying byte array.
  19784. @return The underlying byte array.]]>
  19785. </doc>
  19786. </method>
  19787. <method name="offset" return="int"
  19788. abstract="false" native="false" synchronized="false"
  19789. static="false" final="false" visibility="public"
  19790. deprecated="not deprecated">
  19791. <doc>
  19792. <![CDATA[Get the offset of the first byte in the byte array.
  19793. @return The offset of the first byte in the byte array.]]>
  19794. </doc>
  19795. </method>
  19796. <method name="size" return="int"
  19797. abstract="false" native="false" synchronized="false"
  19798. static="false" final="false" visibility="public"
  19799. deprecated="not deprecated">
  19800. <doc>
  19801. <![CDATA[Get the size of the byte range in the byte array.
  19802. @return The size of the byte range in the byte array.]]>
  19803. </doc>
  19804. </method>
  19805. <doc>
  19806. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  19807. This is useful in places where we need a single object reference to specify a
  19808. range of bytes in a byte array, such as {@link Comparable} or
  19809. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  19810. The actual comparison among RawComparable's requires an external
  19811. RawComparator and it is applications' responsibility to ensure two
  19812. RawComparable are supposed to be semantically comparable with the same
  19813. RawComparator.]]>
  19814. </doc>
  19815. </interface>
  19816. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19817. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  19818. <class name="TFile" extends="java.lang.Object"
  19819. abstract="false"
  19820. static="false" final="false" visibility="public"
  19821. deprecated="not deprecated">
  19822. <method name="makeComparator" return="java.util.Comparator"
  19823. abstract="false" native="false" synchronized="false"
  19824. static="true" final="false" visibility="public"
  19825. deprecated="not deprecated">
  19826. <param name="name" type="java.lang.String"/>
  19827. <doc>
  19828. <![CDATA[Make a raw comparator from a string name.
  19829. @param name
  19830. Comparator name
  19831. @return A RawComparable comparator.]]>
  19832. </doc>
  19833. </method>
  19834. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  19835. abstract="false" native="false" synchronized="false"
  19836. static="true" final="false" visibility="public"
  19837. deprecated="not deprecated">
  19838. <doc>
  19839. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  19840. TFile.Writer.
  19841. @return Array of strings, each represents a supported compression
  19842. algorithm. Currently, the following compression algorithms are
  19843. supported.
  19844. <ul>
  19845. <li>"none" - No compression.
  19846. <li>"lzo" - LZO compression.
  19847. <li>"gz" - GZIP compression.
  19848. </ul>]]>
  19849. </doc>
  19850. </method>
  19851. <method name="main"
  19852. abstract="false" native="false" synchronized="false"
  19853. static="true" final="false" visibility="public"
  19854. deprecated="not deprecated">
  19855. <param name="args" type="java.lang.String[]"/>
  19856. <doc>
  19857. <![CDATA[Dumping the TFile information.
  19858. @param args
  19859. A list of TFile paths.]]>
  19860. </doc>
  19861. </method>
  19862. <field name="COMPRESSION_GZ" type="java.lang.String"
  19863. transient="false" volatile="false"
  19864. static="true" final="true" visibility="public"
  19865. deprecated="not deprecated">
  19866. <doc>
  19867. <![CDATA[compression: gzip]]>
  19868. </doc>
  19869. </field>
  19870. <field name="COMPRESSION_LZO" type="java.lang.String"
  19871. transient="false" volatile="false"
  19872. static="true" final="true" visibility="public"
  19873. deprecated="not deprecated">
  19874. <doc>
  19875. <![CDATA[compression: lzo]]>
  19876. </doc>
  19877. </field>
  19878. <field name="COMPRESSION_NONE" type="java.lang.String"
  19879. transient="false" volatile="false"
  19880. static="true" final="true" visibility="public"
  19881. deprecated="not deprecated">
  19882. <doc>
  19883. <![CDATA[compression: none]]>
  19884. </doc>
  19885. </field>
  19886. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  19887. transient="false" volatile="false"
  19888. static="true" final="true" visibility="public"
  19889. deprecated="not deprecated">
  19890. <doc>
  19891. <![CDATA[comparator: memcmp]]>
  19892. </doc>
  19893. </field>
  19894. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  19895. transient="false" volatile="false"
  19896. static="true" final="true" visibility="public"
  19897. deprecated="not deprecated">
  19898. <doc>
  19899. <![CDATA[comparator prefix: java class]]>
  19900. </doc>
  19901. </field>
  19902. <doc>
  19903. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  19904. bytes. Keys are restricted to 64KB, value length is not restricted
  19905. (practically limited to the available disk storage). TFile further provides
  19906. the following features:
  19907. <ul>
  19908. <li>Block Compression.
  19909. <li>Named meta data blocks.
  19910. <li>Sorted or unsorted keys.
  19911. <li>Seek by key or by file offset.
  19912. </ul>
  19913. The memory footprint of a TFile includes the following:
  19914. <ul>
  19915. <li>Some constant overhead of reading or writing a compressed block.
  19916. <ul>
  19917. <li>Each compressed block requires one compression/decompression codec for
  19918. I/O.
  19919. <li>Temporary space to buffer the key.
  19920. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  19921. chunk encoded, so that we buffer at most one chunk of user data. By default,
  19922. the chunk buffer is 1MB. Reading chunked value does not require additional
  19923. memory.
  19924. </ul>
  19925. <li>TFile index, which is proportional to the total number of Data Blocks.
  19926. The total amount of memory needed to hold the index can be estimated as
  19927. (56+AvgKeySize)*NumBlocks.
  19928. <li>MetaBlock index, which is proportional to the total number of Meta
  19929. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  19930. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  19931. </ul>
  19932. <p>
  19933. The behavior of TFile can be customized by the following variables through
  19934. Configuration:
  19935. <ul>
  19936. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  19937. to 1MB. Values of the length less than the chunk size is guaranteed to have
  19938. known value length in read time (See
  19939. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  19940. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  19941. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  19942. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  19943. FSDataInputStream. Integer (in bytes). Default to 256KB.
  19944. </ul>
  19945. <p>
  19946. Suggestions on performance optimization.
  19947. <ul>
  19948. <li>Minimum block size. We recommend a setting of minimum block size between
  19949. 256KB to 1MB for general usage. Larger block size is preferred if files are
  19950. primarily for sequential access. However, it would lead to inefficient random
  19951. access (because there are more data to decompress). Smaller blocks are good
  19952. for random access, but require more memory to hold the block index, and may
  19953. be slower to create (because we must flush the compressor stream at the
  19954. conclusion of each data block, which leads to an FS I/O flush). Further, due
  19955. to the internal caching in Compression codec, the smallest possible block
  19956. size would be around 20KB-30KB.
  19957. <li>The current implementation does not offer true multi-threading for
  19958. reading. The implementation uses FSDataInputStream seek()+read(), which is
  19959. shown to be much faster than positioned-read call in single thread mode.
  19960. However, it also means that if multiple threads attempt to access the same
  19961. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  19962. sequentially even if they access different DFS blocks.
  19963. <li>Compression codec. Use "none" if the data is not very compressable (by
  19964. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  19965. as the starting point for experimenting. "gz" overs slightly better
  19966. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  19967. decompress, comparing to "lzo".
  19968. <li>File system buffering, if the underlying FSDataInputStream and
  19969. FSDataOutputStream is already adequately buffered; or if applications
  19970. reads/writes keys and values in large buffers, we can reduce the sizes of
  19971. input/output buffering in TFile layer by setting the configuration parameters
  19972. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  19973. </ul>
  19974. Some design rationale behind TFile can be found at <a
  19975. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  19976. </doc>
  19977. </class>
  19978. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  19979. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19980. <class name="TFile.Reader" extends="java.lang.Object"
  19981. abstract="false"
  19982. static="true" final="false" visibility="public"
  19983. deprecated="not deprecated">
  19984. <implements name="java.io.Closeable"/>
  19985. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  19986. static="false" final="false" visibility="public"
  19987. deprecated="not deprecated">
  19988. <exception name="IOException" type="java.io.IOException"/>
  19989. <doc>
  19990. <![CDATA[Constructor
  19991. @param fsdis
  19992. FS input stream of the TFile.
  19993. @param fileLength
  19994. The length of TFile. This is required because we have no easy
  19995. way of knowing the actual size of the input file through the
  19996. File input stream.
  19997. @param conf
  19998. @throws IOException]]>
  19999. </doc>
  20000. </constructor>
  20001. <method name="close"
  20002. abstract="false" native="false" synchronized="false"
  20003. static="false" final="false" visibility="public"
  20004. deprecated="not deprecated">
  20005. <exception name="IOException" type="java.io.IOException"/>
  20006. <doc>
  20007. <![CDATA[Close the reader. The state of the Reader object is undefined after
  20008. close. Calling close() for multiple times has no effect.]]>
  20009. </doc>
  20010. </method>
  20011. <method name="getComparatorName" return="java.lang.String"
  20012. abstract="false" native="false" synchronized="false"
  20013. static="false" final="false" visibility="public"
  20014. deprecated="not deprecated">
  20015. <doc>
  20016. <![CDATA[Get the string representation of the comparator.
  20017. @return If the TFile is not sorted by keys, an empty string will be
  20018. returned. Otherwise, the actual comparator string that is
  20019. provided during the TFile creation time will be returned.]]>
  20020. </doc>
  20021. </method>
  20022. <method name="isSorted" return="boolean"
  20023. abstract="false" native="false" synchronized="false"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <doc>
  20027. <![CDATA[Is the TFile sorted?
  20028. @return true if TFile is sorted.]]>
  20029. </doc>
  20030. </method>
  20031. <method name="getEntryCount" return="long"
  20032. abstract="false" native="false" synchronized="false"
  20033. static="false" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <doc>
  20036. <![CDATA[Get the number of key-value pair entries in TFile.
  20037. @return the number of key-value pairs in TFile]]>
  20038. </doc>
  20039. </method>
  20040. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20041. abstract="false" native="false" synchronized="false"
  20042. static="false" final="false" visibility="public"
  20043. deprecated="not deprecated">
  20044. <exception name="IOException" type="java.io.IOException"/>
  20045. <doc>
  20046. <![CDATA[Get the first key in the TFile.
  20047. @return The first key in the TFile.
  20048. @throws IOException]]>
  20049. </doc>
  20050. </method>
  20051. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20052. abstract="false" native="false" synchronized="false"
  20053. static="false" final="false" visibility="public"
  20054. deprecated="not deprecated">
  20055. <exception name="IOException" type="java.io.IOException"/>
  20056. <doc>
  20057. <![CDATA[Get the last key in the TFile.
  20058. @return The last key in the TFile.
  20059. @throws IOException]]>
  20060. </doc>
  20061. </method>
  20062. <method name="getEntryComparator" return="java.util.Comparator"
  20063. abstract="false" native="false" synchronized="false"
  20064. static="false" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <doc>
  20067. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  20068. stores the entries in a collection (such as PriorityQueue) and perform
  20069. sorting or comparison among entries based on the keys without copying out
  20070. the key.
  20071. @return An Entry Comparator..]]>
  20072. </doc>
  20073. </method>
  20074. <method name="getComparator" return="java.util.Comparator"
  20075. abstract="false" native="false" synchronized="false"
  20076. static="false" final="false" visibility="public"
  20077. deprecated="not deprecated">
  20078. <doc>
  20079. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  20080. string comparator representation.
  20081. @return a Comparator that can compare RawComparable's.]]>
  20082. </doc>
  20083. </method>
  20084. <method name="getMetaBlock" return="java.io.DataInputStream"
  20085. abstract="false" native="false" synchronized="false"
  20086. static="false" final="false" visibility="public"
  20087. deprecated="not deprecated">
  20088. <param name="name" type="java.lang.String"/>
  20089. <exception name="IOException" type="java.io.IOException"/>
  20090. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  20091. <doc>
  20092. <![CDATA[Stream access to a meta block.``
  20093. @param name
  20094. The name of the meta block.
  20095. @return The input stream.
  20096. @throws IOException
  20097. on I/O error.
  20098. @throws MetaBlockDoesNotExist
  20099. If the meta block with the name does not exist.]]>
  20100. </doc>
  20101. </method>
  20102. <method name="getRecordNumNear" return="long"
  20103. abstract="false" native="false" synchronized="false"
  20104. static="false" final="false" visibility="public"
  20105. deprecated="not deprecated">
  20106. <param name="offset" type="long"/>
  20107. <exception name="IOException" type="java.io.IOException"/>
  20108. <doc>
  20109. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  20110. whose byte offset in the TFile is greater than or equal to the specified
  20111. offset.
  20112. @param offset
  20113. the user supplied offset.
  20114. @return the RecordNum to the corresponding entry. If no such entry
  20115. exists, it returns the total entry count.
  20116. @throws IOException]]>
  20117. </doc>
  20118. </method>
  20119. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20120. abstract="false" native="false" synchronized="false"
  20121. static="false" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. <param name="offset" type="long"/>
  20124. <exception name="IOException" type="java.io.IOException"/>
  20125. <doc>
  20126. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  20127. than or equal to the specified offset.
  20128. @param offset
  20129. The file offset.
  20130. @return the key that fits the requirement; or null if no such key exists
  20131. (which could happen if the offset is close to the end of the
  20132. TFile).
  20133. @throws IOException]]>
  20134. </doc>
  20135. </method>
  20136. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20137. abstract="false" native="false" synchronized="false"
  20138. static="false" final="false" visibility="public"
  20139. deprecated="not deprecated">
  20140. <exception name="IOException" type="java.io.IOException"/>
  20141. <doc>
  20142. <![CDATA[Get a scanner than can scan the whole TFile.
  20143. @return The scanner object. A valid Scanner is always returned even if
  20144. the TFile is empty.
  20145. @throws IOException]]>
  20146. </doc>
  20147. </method>
  20148. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20149. abstract="false" native="false" synchronized="false"
  20150. static="false" final="false" visibility="public"
  20151. deprecated="not deprecated">
  20152. <param name="offset" type="long"/>
  20153. <param name="length" type="long"/>
  20154. <exception name="IOException" type="java.io.IOException"/>
  20155. <doc>
  20156. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  20157. @param offset
  20158. The beginning byte offset in the TFile.
  20159. @param length
  20160. The length of the region.
  20161. @return The actual coverage of the returned scanner tries to match the
  20162. specified byte-region but always round up to the compression
  20163. block boundaries. It is possible that the returned scanner
  20164. contains zero key-value pairs even if length is positive.
  20165. @throws IOException]]>
  20166. </doc>
  20167. </method>
  20168. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20169. abstract="false" native="false" synchronized="false"
  20170. static="false" final="false" visibility="public"
  20171. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  20172. <param name="beginKey" type="byte[]"/>
  20173. <param name="endKey" type="byte[]"/>
  20174. <exception name="IOException" type="java.io.IOException"/>
  20175. <doc>
  20176. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20177. @param beginKey
  20178. Begin key of the scan (inclusive). If null, scan from the first
  20179. key-value entry of the TFile.
  20180. @param endKey
  20181. End key of the scan (exclusive). If null, scan up to the last
  20182. key-value entry of the TFile.
  20183. @return The actual coverage of the returned scanner will cover all keys
  20184. greater than or equal to the beginKey and less than the endKey.
  20185. @throws IOException
  20186. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  20187. </doc>
  20188. </method>
  20189. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20190. abstract="false" native="false" synchronized="false"
  20191. static="false" final="false" visibility="public"
  20192. deprecated="not deprecated">
  20193. <param name="beginKey" type="byte[]"/>
  20194. <param name="endKey" type="byte[]"/>
  20195. <exception name="IOException" type="java.io.IOException"/>
  20196. <doc>
  20197. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20198. @param beginKey
  20199. Begin key of the scan (inclusive). If null, scan from the first
  20200. key-value entry of the TFile.
  20201. @param endKey
  20202. End key of the scan (exclusive). If null, scan up to the last
  20203. key-value entry of the TFile.
  20204. @return The actual coverage of the returned scanner will cover all keys
  20205. greater than or equal to the beginKey and less than the endKey.
  20206. @throws IOException]]>
  20207. </doc>
  20208. </method>
  20209. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20210. abstract="false" native="false" synchronized="false"
  20211. static="false" final="false" visibility="public"
  20212. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20213. instead.">
  20214. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20215. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20216. <exception name="IOException" type="java.io.IOException"/>
  20217. <doc>
  20218. <![CDATA[Get a scanner that covers a specific key range.
  20219. @param beginKey
  20220. Begin key of the scan (inclusive). If null, scan from the first
  20221. key-value entry of the TFile.
  20222. @param endKey
  20223. End key of the scan (exclusive). If null, scan up to the last
  20224. key-value entry of the TFile.
  20225. @return The actual coverage of the returned scanner will cover all keys
  20226. greater than or equal to the beginKey and less than the endKey.
  20227. @throws IOException
  20228. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20229. instead.]]>
  20230. </doc>
  20231. </method>
  20232. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20233. abstract="false" native="false" synchronized="false"
  20234. static="false" final="false" visibility="public"
  20235. deprecated="not deprecated">
  20236. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20237. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20238. <exception name="IOException" type="java.io.IOException"/>
  20239. <doc>
  20240. <![CDATA[Get a scanner that covers a specific key range.
  20241. @param beginKey
  20242. Begin key of the scan (inclusive). If null, scan from the first
  20243. key-value entry of the TFile.
  20244. @param endKey
  20245. End key of the scan (exclusive). If null, scan up to the last
  20246. key-value entry of the TFile.
  20247. @return The actual coverage of the returned scanner will cover all keys
  20248. greater than or equal to the beginKey and less than the endKey.
  20249. @throws IOException]]>
  20250. </doc>
  20251. </method>
  20252. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <param name="beginRecNum" type="long"/>
  20257. <param name="endRecNum" type="long"/>
  20258. <exception name="IOException" type="java.io.IOException"/>
  20259. <doc>
  20260. <![CDATA[Create a scanner that covers a range of records.
  20261. @param beginRecNum
  20262. The RecordNum for the first record (inclusive).
  20263. @param endRecNum
  20264. The RecordNum for the last record (exclusive). To scan the whole
  20265. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  20266. @return The TFile scanner that covers the specified range of records.
  20267. @throws IOException]]>
  20268. </doc>
  20269. </method>
  20270. <doc>
  20271. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  20272. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  20273. ) , a portion of TFile based on byte offsets (
  20274. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  20275. fall in a certain key range (for sorted TFile only,
  20276. {@link Reader#createScannerByKey(byte[], byte[])} or
  20277. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  20278. </doc>
  20279. </class>
  20280. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20281. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20282. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  20283. abstract="false"
  20284. static="true" final="false" visibility="public"
  20285. deprecated="not deprecated">
  20286. <implements name="java.io.Closeable"/>
  20287. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  20288. static="false" final="false" visibility="protected"
  20289. deprecated="not deprecated">
  20290. <exception name="IOException" type="java.io.IOException"/>
  20291. <doc>
  20292. <![CDATA[Constructor
  20293. @param reader
  20294. The TFile reader object.
  20295. @param offBegin
  20296. Begin byte-offset of the scan.
  20297. @param offEnd
  20298. End byte-offset of the scan.
  20299. @throws IOException
  20300. The offsets will be rounded to the beginning of a compressed
  20301. block whose offset is greater than or equal to the specified
  20302. offset.]]>
  20303. </doc>
  20304. </constructor>
  20305. <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"
  20306. static="false" final="false" visibility="protected"
  20307. deprecated="not deprecated">
  20308. <exception name="IOException" type="java.io.IOException"/>
  20309. <doc>
  20310. <![CDATA[Constructor
  20311. @param reader
  20312. The TFile reader object.
  20313. @param beginKey
  20314. Begin key of the scan. If null, scan from the first <K,V>
  20315. entry of the TFile.
  20316. @param endKey
  20317. End key of the scan. If null, scan up to the last <K, V> entry
  20318. of the TFile.
  20319. @throws IOException]]>
  20320. </doc>
  20321. </constructor>
  20322. <method name="seekTo" return="boolean"
  20323. abstract="false" native="false" synchronized="false"
  20324. static="false" final="false" visibility="public"
  20325. deprecated="not deprecated">
  20326. <param name="key" type="byte[]"/>
  20327. <exception name="IOException" type="java.io.IOException"/>
  20328. <doc>
  20329. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20330. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  20331. returned by the previous entry() call will be invalid.
  20332. @param key
  20333. The input key
  20334. @return true if we find an equal key.
  20335. @throws IOException]]>
  20336. </doc>
  20337. </method>
  20338. <method name="seekTo" return="boolean"
  20339. abstract="false" native="false" synchronized="false"
  20340. static="false" final="false" visibility="public"
  20341. deprecated="not deprecated">
  20342. <param name="key" type="byte[]"/>
  20343. <param name="keyOffset" type="int"/>
  20344. <param name="keyLen" type="int"/>
  20345. <exception name="IOException" type="java.io.IOException"/>
  20346. <doc>
  20347. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20348. to the input key. The entry returned by the previous entry() call will
  20349. be invalid.
  20350. @param key
  20351. The input key
  20352. @param keyOffset
  20353. offset in the key buffer.
  20354. @param keyLen
  20355. key buffer length.
  20356. @return true if we find an equal key; false otherwise.
  20357. @throws IOException]]>
  20358. </doc>
  20359. </method>
  20360. <method name="rewind"
  20361. abstract="false" native="false" synchronized="false"
  20362. static="false" final="false" visibility="public"
  20363. deprecated="not deprecated">
  20364. <exception name="IOException" type="java.io.IOException"/>
  20365. <doc>
  20366. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  20367. previous entry() call will be invalid.
  20368. @throws IOException]]>
  20369. </doc>
  20370. </method>
  20371. <method name="seekToEnd"
  20372. abstract="false" native="false" synchronized="false"
  20373. static="false" final="false" visibility="public"
  20374. deprecated="not deprecated">
  20375. <exception name="IOException" type="java.io.IOException"/>
  20376. <doc>
  20377. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  20378. entry() call will be invalid.
  20379. @throws IOException]]>
  20380. </doc>
  20381. </method>
  20382. <method name="lowerBound"
  20383. abstract="false" native="false" synchronized="false"
  20384. static="false" final="false" visibility="public"
  20385. deprecated="not deprecated">
  20386. <param name="key" type="byte[]"/>
  20387. <exception name="IOException" type="java.io.IOException"/>
  20388. <doc>
  20389. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20390. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  20391. entry returned by the previous entry() call will be invalid.
  20392. @param key
  20393. The input key
  20394. @throws IOException]]>
  20395. </doc>
  20396. </method>
  20397. <method name="lowerBound"
  20398. abstract="false" native="false" synchronized="false"
  20399. static="false" final="false" visibility="public"
  20400. deprecated="not deprecated">
  20401. <param name="key" type="byte[]"/>
  20402. <param name="keyOffset" type="int"/>
  20403. <param name="keyLen" type="int"/>
  20404. <exception name="IOException" type="java.io.IOException"/>
  20405. <doc>
  20406. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20407. to the input key. The entry returned by the previous entry() call will
  20408. be invalid.
  20409. @param key
  20410. The input key
  20411. @param keyOffset
  20412. offset in the key buffer.
  20413. @param keyLen
  20414. key buffer length.
  20415. @throws IOException]]>
  20416. </doc>
  20417. </method>
  20418. <method name="upperBound"
  20419. abstract="false" native="false" synchronized="false"
  20420. static="false" final="false" visibility="public"
  20421. deprecated="not deprecated">
  20422. <param name="key" type="byte[]"/>
  20423. <exception name="IOException" type="java.io.IOException"/>
  20424. <doc>
  20425. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20426. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  20427. returned by the previous entry() call will be invalid.
  20428. @param key
  20429. The input key
  20430. @throws IOException]]>
  20431. </doc>
  20432. </method>
  20433. <method name="upperBound"
  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. <param name="keyOffset" type="int"/>
  20439. <param name="keyLen" type="int"/>
  20440. <exception name="IOException" type="java.io.IOException"/>
  20441. <doc>
  20442. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20443. the input key. The entry returned by the previous entry() call will be
  20444. invalid.
  20445. @param key
  20446. The input key
  20447. @param keyOffset
  20448. offset in the key buffer.
  20449. @param keyLen
  20450. key buffer length.
  20451. @throws IOException]]>
  20452. </doc>
  20453. </method>
  20454. <method name="advance" return="boolean"
  20455. abstract="false" native="false" synchronized="false"
  20456. static="false" final="false" visibility="public"
  20457. deprecated="not deprecated">
  20458. <exception name="IOException" type="java.io.IOException"/>
  20459. <doc>
  20460. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  20461. previous entry() call will be invalid.
  20462. @return true if the cursor successfully moves. False when cursor is
  20463. already at the end location and cannot be advanced.
  20464. @throws IOException]]>
  20465. </doc>
  20466. </method>
  20467. <method name="close"
  20468. abstract="false" native="false" synchronized="false"
  20469. static="false" final="false" visibility="public"
  20470. deprecated="not deprecated">
  20471. <exception name="IOException" type="java.io.IOException"/>
  20472. <doc>
  20473. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  20474. scanner after calling close is not defined. The entry returned by the
  20475. previous entry() call will be invalid.]]>
  20476. </doc>
  20477. </method>
  20478. <method name="atEnd" return="boolean"
  20479. abstract="false" native="false" synchronized="false"
  20480. static="false" final="false" visibility="public"
  20481. deprecated="not deprecated">
  20482. <doc>
  20483. <![CDATA[Is cursor at the end location?
  20484. @return true if the cursor is at the end location.]]>
  20485. </doc>
  20486. </method>
  20487. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  20488. abstract="false" native="false" synchronized="false"
  20489. static="false" final="false" visibility="public"
  20490. deprecated="not deprecated">
  20491. <exception name="IOException" type="java.io.IOException"/>
  20492. <doc>
  20493. <![CDATA[Get an entry to access the key and value.
  20494. @return The Entry object to access the key and value.
  20495. @throws IOException]]>
  20496. </doc>
  20497. </method>
  20498. <method name="getRecordNum" return="long"
  20499. abstract="false" native="false" synchronized="false"
  20500. static="false" final="false" visibility="public"
  20501. deprecated="not deprecated">
  20502. <exception name="IOException" type="java.io.IOException"/>
  20503. <doc>
  20504. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  20505. @return The RecordNum corresponding to the entry pointed by the cursor.
  20506. @throws IOException]]>
  20507. </doc>
  20508. </method>
  20509. <doc>
  20510. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  20511. creation, points to the first key-value pair in the scan range. If the
  20512. scan range is empty, the cursor will point to the end of the scan range.
  20513. <p>
  20514. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  20515. location of the scanner.
  20516. <p>
  20517. Use {@link Scanner#advance()} to move the cursor to the next key-value
  20518. pair (or end if none exists). Use seekTo methods (
  20519. {@link Scanner#seekTo(byte[])} or
  20520. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  20521. location in the covered range (including backward seeking). Use
  20522. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  20523. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  20524. <p>
  20525. Actual keys and values may be obtained through {@link Scanner.Entry}
  20526. object, which is obtained through {@link Scanner#entry()}.]]>
  20527. </doc>
  20528. </class>
  20529. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20530. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20531. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  20532. abstract="false"
  20533. static="false" final="false" visibility="public"
  20534. deprecated="not deprecated">
  20535. <implements name="java.lang.Comparable"/>
  20536. <constructor name="TFile.Reader.Scanner.Entry"
  20537. static="false" final="false" visibility="public"
  20538. deprecated="not deprecated">
  20539. </constructor>
  20540. <method name="getKeyLength" return="int"
  20541. abstract="false" native="false" synchronized="false"
  20542. static="false" final="false" visibility="public"
  20543. deprecated="not deprecated">
  20544. <doc>
  20545. <![CDATA[Get the length of the key.
  20546. @return the length of the key.]]>
  20547. </doc>
  20548. </method>
  20549. <method name="get"
  20550. abstract="false" native="false" synchronized="false"
  20551. static="false" final="false" visibility="public"
  20552. deprecated="not deprecated">
  20553. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20554. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20555. <exception name="IOException" type="java.io.IOException"/>
  20556. <doc>
  20557. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  20558. equivalent to getKey(key); getValue(value);
  20559. @param key
  20560. BytesWritable to hold key.
  20561. @param value
  20562. BytesWritable to hold value
  20563. @throws IOException]]>
  20564. </doc>
  20565. </method>
  20566. <method name="getKey" return="int"
  20567. abstract="false" native="false" synchronized="false"
  20568. static="false" final="false" visibility="public"
  20569. deprecated="not deprecated">
  20570. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20571. <exception name="IOException" type="java.io.IOException"/>
  20572. <doc>
  20573. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  20574. automatically resized to the actual key size.
  20575. @param key
  20576. BytesWritable to hold the key.
  20577. @throws IOException]]>
  20578. </doc>
  20579. </method>
  20580. <method name="getValue" return="long"
  20581. abstract="false" native="false" synchronized="false"
  20582. static="false" final="false" visibility="public"
  20583. deprecated="not deprecated">
  20584. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20585. <exception name="IOException" type="java.io.IOException"/>
  20586. <doc>
  20587. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  20588. automatically resized to the actual value size. The implementation
  20589. directly uses the buffer inside BytesWritable for storing the value.
  20590. The call does not require the value length to be known.
  20591. @param value
  20592. @throws IOException]]>
  20593. </doc>
  20594. </method>
  20595. <method name="writeKey" return="int"
  20596. abstract="false" native="false" synchronized="false"
  20597. static="false" final="false" visibility="public"
  20598. deprecated="not deprecated">
  20599. <param name="out" type="java.io.OutputStream"/>
  20600. <exception name="IOException" type="java.io.IOException"/>
  20601. <doc>
  20602. <![CDATA[Writing the key to the output stream. This method avoids copying key
  20603. buffer from Scanner into user buffer, then writing to the output
  20604. stream.
  20605. @param out
  20606. The output stream
  20607. @return the length of the key.
  20608. @throws IOException]]>
  20609. </doc>
  20610. </method>
  20611. <method name="writeValue" return="long"
  20612. abstract="false" native="false" synchronized="false"
  20613. static="false" final="false" visibility="public"
  20614. deprecated="not deprecated">
  20615. <param name="out" type="java.io.OutputStream"/>
  20616. <exception name="IOException" type="java.io.IOException"/>
  20617. <doc>
  20618. <![CDATA[Writing the value to the output stream. This method avoids copying
  20619. value data from Scanner into user buffer, then writing to the output
  20620. stream. It does not require the value length to be known.
  20621. @param out
  20622. The output stream
  20623. @return the length of the value
  20624. @throws IOException]]>
  20625. </doc>
  20626. </method>
  20627. <method name="getKey" return="int"
  20628. abstract="false" native="false" synchronized="false"
  20629. static="false" final="false" visibility="public"
  20630. deprecated="not deprecated">
  20631. <param name="buf" type="byte[]"/>
  20632. <exception name="IOException" type="java.io.IOException"/>
  20633. <doc>
  20634. <![CDATA[Copy the key into user supplied buffer.
  20635. @param buf
  20636. The buffer supplied by user. The length of the buffer must
  20637. not be shorter than the key length.
  20638. @return The length of the key.
  20639. @throws IOException]]>
  20640. </doc>
  20641. </method>
  20642. <method name="getKey" return="int"
  20643. abstract="false" native="false" synchronized="false"
  20644. static="false" final="false" visibility="public"
  20645. deprecated="not deprecated">
  20646. <param name="buf" type="byte[]"/>
  20647. <param name="offset" type="int"/>
  20648. <exception name="IOException" type="java.io.IOException"/>
  20649. <doc>
  20650. <![CDATA[Copy the key into user supplied buffer.
  20651. @param buf
  20652. The buffer supplied by user.
  20653. @param offset
  20654. The starting offset of the user buffer where we should copy
  20655. the key into. Requiring the key-length + offset no greater
  20656. than the buffer length.
  20657. @return The length of the key.
  20658. @throws IOException]]>
  20659. </doc>
  20660. </method>
  20661. <method name="getKeyStream" return="java.io.DataInputStream"
  20662. abstract="false" native="false" synchronized="false"
  20663. static="false" final="false" visibility="public"
  20664. deprecated="not deprecated">
  20665. <doc>
  20666. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  20667. user objects.
  20668. @return The input stream.]]>
  20669. </doc>
  20670. </method>
  20671. <method name="getValueLength" return="int"
  20672. abstract="false" native="false" synchronized="false"
  20673. static="false" final="false" visibility="public"
  20674. deprecated="not deprecated">
  20675. <doc>
  20676. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  20677. true.
  20678. @return the length of the value.]]>
  20679. </doc>
  20680. </method>
  20681. <method name="getValue" return="int"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="false" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="buf" type="byte[]"/>
  20686. <exception name="IOException" type="java.io.IOException"/>
  20687. <doc>
  20688. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20689. large enough to hold the whole value. The value part of the key-value
  20690. pair pointed by the current cursor is not cached and can only be
  20691. examined once. Calling any of the following functions more than once
  20692. without moving the cursor will result in exception:
  20693. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20694. {@link #getValueStream}.
  20695. @return the length of the value. Does not require
  20696. isValueLengthKnown() to be true.
  20697. @throws IOException]]>
  20698. </doc>
  20699. </method>
  20700. <method name="getValue" return="int"
  20701. abstract="false" native="false" synchronized="false"
  20702. static="false" final="false" visibility="public"
  20703. deprecated="not deprecated">
  20704. <param name="buf" type="byte[]"/>
  20705. <param name="offset" type="int"/>
  20706. <exception name="IOException" type="java.io.IOException"/>
  20707. <doc>
  20708. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20709. large enough to hold the whole value (starting from the offset). The
  20710. value part of the key-value pair pointed by the current cursor is not
  20711. cached and can only be examined once. Calling any of the following
  20712. functions more than once without moving the cursor will result in
  20713. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20714. {@link #getValueStream}.
  20715. @return the length of the value. Does not require
  20716. isValueLengthKnown() to be true.
  20717. @throws IOException]]>
  20718. </doc>
  20719. </method>
  20720. <method name="getValueStream" return="java.io.DataInputStream"
  20721. abstract="false" native="false" synchronized="false"
  20722. static="false" final="false" visibility="public"
  20723. deprecated="not deprecated">
  20724. <exception name="IOException" type="java.io.IOException"/>
  20725. <doc>
  20726. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  20727. by the current cursor is not cached and can only be examined once.
  20728. Calling any of the following functions more than once without moving
  20729. the cursor will result in exception: {@link #getValue(byte[])},
  20730. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  20731. @return The input stream for reading the value.
  20732. @throws IOException]]>
  20733. </doc>
  20734. </method>
  20735. <method name="isValueLengthKnown" return="boolean"
  20736. abstract="false" native="false" synchronized="false"
  20737. static="false" final="false" visibility="public"
  20738. deprecated="not deprecated">
  20739. <doc>
  20740. <![CDATA[Check whether it is safe to call getValueLength().
  20741. @return true if value length is known before hand. Values less than
  20742. the chunk size will always have their lengths known before
  20743. hand. Values that are written out as a whole (with advertised
  20744. length up-front) will always have their lengths known in
  20745. read.]]>
  20746. </doc>
  20747. </method>
  20748. <method name="compareTo" return="int"
  20749. abstract="false" native="false" synchronized="false"
  20750. static="false" final="false" visibility="public"
  20751. deprecated="not deprecated">
  20752. <param name="buf" type="byte[]"/>
  20753. <doc>
  20754. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  20755. key.length).
  20756. @param buf
  20757. The key buffer.
  20758. @return comparison result between the entry key with the input key.]]>
  20759. </doc>
  20760. </method>
  20761. <method name="compareTo" return="int"
  20762. abstract="false" native="false" synchronized="false"
  20763. static="false" final="false" visibility="public"
  20764. deprecated="not deprecated">
  20765. <param name="buf" type="byte[]"/>
  20766. <param name="offset" type="int"/>
  20767. <param name="length" type="int"/>
  20768. <doc>
  20769. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  20770. ByteArray(buf, offset, length)
  20771. @param buf
  20772. The key buffer
  20773. @param offset
  20774. offset into the key buffer.
  20775. @param length
  20776. the length of the key.
  20777. @return comparison result between the entry key with the input key.]]>
  20778. </doc>
  20779. </method>
  20780. <method name="compareTo" return="int"
  20781. abstract="false" native="false" synchronized="false"
  20782. static="false" final="false" visibility="public"
  20783. deprecated="not deprecated">
  20784. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20785. <doc>
  20786. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  20787. Entries are stored in a collection, and we want to compare a user
  20788. supplied key.]]>
  20789. </doc>
  20790. </method>
  20791. <method name="equals" return="boolean"
  20792. abstract="false" native="false" synchronized="false"
  20793. static="false" final="false" visibility="public"
  20794. deprecated="not deprecated">
  20795. <param name="other" type="java.lang.Object"/>
  20796. <doc>
  20797. <![CDATA[Compare whether this and other points to the same key value.]]>
  20798. </doc>
  20799. </method>
  20800. <method name="hashCode" return="int"
  20801. abstract="false" native="false" synchronized="false"
  20802. static="false" final="false" visibility="public"
  20803. deprecated="not deprecated">
  20804. </method>
  20805. <doc>
  20806. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  20807. </doc>
  20808. </class>
  20809. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20810. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  20811. <class name="TFile.Writer" extends="java.lang.Object"
  20812. abstract="false"
  20813. static="true" final="false" visibility="public"
  20814. deprecated="not deprecated">
  20815. <implements name="java.io.Closeable"/>
  20816. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  20817. static="false" final="false" visibility="public"
  20818. deprecated="not deprecated">
  20819. <exception name="IOException" type="java.io.IOException"/>
  20820. <doc>
  20821. <![CDATA[Constructor
  20822. @param fsdos
  20823. output stream for writing. Must be at position 0.
  20824. @param minBlockSize
  20825. Minimum compressed block size in bytes. A compression block will
  20826. not be closed until it reaches this size except for the last
  20827. block.
  20828. @param compressName
  20829. Name of the compression algorithm. Must be one of the strings
  20830. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  20831. @param comparator
  20832. Leave comparator as null or empty string if TFile is not sorted.
  20833. Otherwise, provide the string name for the comparison algorithm
  20834. for keys. Two kinds of comparators are supported.
  20835. <ul>
  20836. <li>Algorithmic comparator: binary comparators that is language
  20837. independent. Currently, only "memcmp" is supported.
  20838. <li>Language-specific comparator: binary comparators that can
  20839. only be constructed in specific language. For Java, the syntax
  20840. is "jclass:", followed by the class name of the RawComparator.
  20841. Currently, we only support RawComparators that can be
  20842. constructed through the default constructor (with no
  20843. parameters). Parameterized RawComparators such as
  20844. {@link WritableComparator} or
  20845. {@link JavaSerializationComparator} may not be directly used.
  20846. One should write a wrapper class that inherits from such classes
  20847. and use its default constructor to perform proper
  20848. initialization.
  20849. </ul>
  20850. @param conf
  20851. The configuration object.
  20852. @throws IOException]]>
  20853. </doc>
  20854. </constructor>
  20855. <method name="close"
  20856. abstract="false" native="false" synchronized="false"
  20857. static="false" final="false" visibility="public"
  20858. deprecated="not deprecated">
  20859. <exception name="IOException" type="java.io.IOException"/>
  20860. <doc>
  20861. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  20862. being thrown. Future close calls will have no effect.
  20863. The underlying FSDataOutputStream is not closed.]]>
  20864. </doc>
  20865. </method>
  20866. <method name="append"
  20867. abstract="false" native="false" synchronized="false"
  20868. static="false" final="false" visibility="public"
  20869. deprecated="not deprecated">
  20870. <param name="key" type="byte[]"/>
  20871. <param name="value" type="byte[]"/>
  20872. <exception name="IOException" type="java.io.IOException"/>
  20873. <doc>
  20874. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  20875. append(key, 0, key.length, value, 0, value.length)
  20876. @param key
  20877. Buffer for key.
  20878. @param value
  20879. Buffer for value.
  20880. @throws IOException]]>
  20881. </doc>
  20882. </method>
  20883. <method name="append"
  20884. abstract="false" native="false" synchronized="false"
  20885. static="false" final="false" visibility="public"
  20886. deprecated="not deprecated">
  20887. <param name="key" type="byte[]"/>
  20888. <param name="koff" type="int"/>
  20889. <param name="klen" type="int"/>
  20890. <param name="value" type="byte[]"/>
  20891. <param name="voff" type="int"/>
  20892. <param name="vlen" type="int"/>
  20893. <exception name="IOException" type="java.io.IOException"/>
  20894. <doc>
  20895. <![CDATA[Adding a new key-value pair to TFile.
  20896. @param key
  20897. buffer for key.
  20898. @param koff
  20899. offset in key buffer.
  20900. @param klen
  20901. length of key.
  20902. @param value
  20903. buffer for value.
  20904. @param voff
  20905. offset in value buffer.
  20906. @param vlen
  20907. length of value.
  20908. @throws IOException
  20909. Upon IO errors.
  20910. <p>
  20911. If an exception is thrown, the TFile will be in an inconsistent
  20912. state. The only legitimate call after that would be close]]>
  20913. </doc>
  20914. </method>
  20915. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  20916. abstract="false" native="false" synchronized="false"
  20917. static="false" final="false" visibility="public"
  20918. deprecated="not deprecated">
  20919. <param name="length" type="int"/>
  20920. <exception name="IOException" type="java.io.IOException"/>
  20921. <doc>
  20922. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  20923. called when there is no active Key appending stream or value appending
  20924. stream.
  20925. @param length
  20926. The expected length of the key. If length of the key is not
  20927. known, set length = -1. Otherwise, the application must write
  20928. exactly as many bytes as specified here before calling close on
  20929. the returned output stream.
  20930. @return The key appending output stream.
  20931. @throws IOException]]>
  20932. </doc>
  20933. </method>
  20934. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  20935. abstract="false" native="false" synchronized="false"
  20936. static="false" final="false" visibility="public"
  20937. deprecated="not deprecated">
  20938. <param name="length" type="int"/>
  20939. <exception name="IOException" type="java.io.IOException"/>
  20940. <doc>
  20941. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  20942. called right after a key appending operation (the key append stream must
  20943. be closed).
  20944. @param length
  20945. The expected length of the value. If length of the value is not
  20946. known, set length = -1. Otherwise, the application must write
  20947. exactly as many bytes as specified here before calling close on
  20948. the returned output stream. Advertising the value size up-front
  20949. guarantees that the value is encoded in one chunk, and avoids
  20950. intermediate chunk buffering.
  20951. @throws IOException]]>
  20952. </doc>
  20953. </method>
  20954. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  20955. abstract="false" native="false" synchronized="false"
  20956. static="false" final="false" visibility="public"
  20957. deprecated="not deprecated">
  20958. <param name="name" type="java.lang.String"/>
  20959. <param name="compressName" type="java.lang.String"/>
  20960. <exception name="IOException" type="java.io.IOException"/>
  20961. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  20962. <doc>
  20963. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  20964. be called when there is a key append stream or value append stream
  20965. active. No more key-value insertion is allowed after a meta data block
  20966. has been added to TFile.
  20967. @param name
  20968. Name of the meta block.
  20969. @param compressName
  20970. Name of the compression algorithm to be used. Must be one of the
  20971. strings returned by
  20972. {@link TFile#getSupportedCompressionAlgorithms()}.
  20973. @return A DataOutputStream that can be used to write Meta Block data.
  20974. Closing the stream would signal the ending of the block.
  20975. @throws IOException
  20976. @throws MetaBlockAlreadyExists
  20977. the Meta Block with the same name already exists.]]>
  20978. </doc>
  20979. </method>
  20980. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  20981. abstract="false" native="false" synchronized="false"
  20982. static="false" final="false" visibility="public"
  20983. deprecated="not deprecated">
  20984. <param name="name" type="java.lang.String"/>
  20985. <exception name="IOException" type="java.io.IOException"/>
  20986. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  20987. <doc>
  20988. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  20989. be called when there is a key append stream or value append stream
  20990. active. No more key-value insertion is allowed after a meta data block
  20991. has been added to TFile. Data will be compressed using the default
  20992. compressor as defined in Writer's constructor.
  20993. @param name
  20994. Name of the meta block.
  20995. @return A DataOutputStream that can be used to write Meta Block data.
  20996. Closing the stream would signal the ending of the block.
  20997. @throws IOException
  20998. @throws MetaBlockAlreadyExists
  20999. the Meta Block with the same name already exists.]]>
  21000. </doc>
  21001. </method>
  21002. <doc>
  21003. <![CDATA[TFile Writer.]]>
  21004. </doc>
  21005. </class>
  21006. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21007. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  21008. <class name="Utils" extends="java.lang.Object"
  21009. abstract="false"
  21010. static="false" final="true" visibility="public"
  21011. deprecated="not deprecated">
  21012. <method name="writeVInt"
  21013. abstract="false" native="false" synchronized="false"
  21014. static="true" final="false" visibility="public"
  21015. deprecated="not deprecated">
  21016. <param name="out" type="java.io.DataOutput"/>
  21017. <param name="n" type="int"/>
  21018. <exception name="IOException" type="java.io.IOException"/>
  21019. <doc>
  21020. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  21021. <code>Utils#writeVLong(out, n)</code>.
  21022. @param out
  21023. output stream
  21024. @param n
  21025. The integer to be encoded
  21026. @throws IOException
  21027. @see Utils#writeVLong(DataOutput, long)]]>
  21028. </doc>
  21029. </method>
  21030. <method name="writeVLong"
  21031. abstract="false" native="false" synchronized="false"
  21032. static="true" final="false" visibility="public"
  21033. deprecated="not deprecated">
  21034. <param name="out" type="java.io.DataOutput"/>
  21035. <param name="n" type="long"/>
  21036. <exception name="IOException" type="java.io.IOException"/>
  21037. <doc>
  21038. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  21039. <ul>
  21040. <li>if n in [-32, 127): encode in one byte with the actual value.
  21041. Otherwise,
  21042. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  21043. byte[1]=n&0xff. Otherwise,
  21044. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  21045. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  21046. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  21047. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  21048. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  21049. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  21050. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  21051. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  21052. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  21053. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  21054. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  21055. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  21056. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  21057. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  21058. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  21059. byte[7]=n&0xff;
  21060. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  21061. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  21062. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  21063. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  21064. </ul>
  21065. @param out
  21066. output stream
  21067. @param n
  21068. the integer number
  21069. @throws IOException]]>
  21070. </doc>
  21071. </method>
  21072. <method name="readVInt" return="int"
  21073. abstract="false" native="false" synchronized="false"
  21074. static="true" final="false" visibility="public"
  21075. deprecated="not deprecated">
  21076. <param name="in" type="java.io.DataInput"/>
  21077. <exception name="IOException" type="java.io.IOException"/>
  21078. <doc>
  21079. <![CDATA[Decoding the variable-length integer. Synonymous to
  21080. <code>(int)Utils#readVLong(in)</code>.
  21081. @param in
  21082. input stream
  21083. @return the decoded integer
  21084. @throws IOException
  21085. @see Utils#readVLong(DataInput)]]>
  21086. </doc>
  21087. </method>
  21088. <method name="readVLong" return="long"
  21089. abstract="false" native="false" synchronized="false"
  21090. static="true" final="false" visibility="public"
  21091. deprecated="not deprecated">
  21092. <param name="in" type="java.io.DataInput"/>
  21093. <exception name="IOException" type="java.io.IOException"/>
  21094. <doc>
  21095. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  21096. is FB, and the following bytes are NB[*].
  21097. <ul>
  21098. <li>if (FB >= -32), return (long)FB;
  21099. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  21100. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  21101. NB[1]&0xff;
  21102. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  21103. (NB[1]&0xff)<<8 + NB[2]&0xff;
  21104. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  21105. big-endian integer.
  21106. @param in
  21107. input stream
  21108. @return the decoded long integer.
  21109. @throws IOException]]>
  21110. </doc>
  21111. </method>
  21112. <method name="writeString"
  21113. abstract="false" native="false" synchronized="false"
  21114. static="true" final="false" visibility="public"
  21115. deprecated="not deprecated">
  21116. <param name="out" type="java.io.DataOutput"/>
  21117. <param name="s" type="java.lang.String"/>
  21118. <exception name="IOException" type="java.io.IOException"/>
  21119. <doc>
  21120. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  21121. @param out
  21122. @param s
  21123. @throws IOException]]>
  21124. </doc>
  21125. </method>
  21126. <method name="readString" return="java.lang.String"
  21127. abstract="false" native="false" synchronized="false"
  21128. static="true" final="false" visibility="public"
  21129. deprecated="not deprecated">
  21130. <param name="in" type="java.io.DataInput"/>
  21131. <exception name="IOException" type="java.io.IOException"/>
  21132. <doc>
  21133. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  21134. @param in
  21135. The input stream.
  21136. @return The string
  21137. @throws IOException]]>
  21138. </doc>
  21139. </method>
  21140. <method name="lowerBound" return="int"
  21141. abstract="false" native="false" synchronized="false"
  21142. static="true" final="false" visibility="public"
  21143. deprecated="not deprecated">
  21144. <param name="list" type="java.util.List"/>
  21145. <param name="key" type="java.lang.Object"/>
  21146. <param name="cmp" type="java.util.Comparator"/>
  21147. <doc>
  21148. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21149. that compares greater than or equal to key.
  21150. @param <T>
  21151. Type of the input key.
  21152. @param list
  21153. The list
  21154. @param key
  21155. The input key.
  21156. @param cmp
  21157. Comparator for the key.
  21158. @return The index to the desired element if it exists; or list.size()
  21159. otherwise.]]>
  21160. </doc>
  21161. </method>
  21162. <method name="upperBound" return="int"
  21163. abstract="false" native="false" synchronized="false"
  21164. static="true" final="false" visibility="public"
  21165. deprecated="not deprecated">
  21166. <param name="list" type="java.util.List"/>
  21167. <param name="key" type="java.lang.Object"/>
  21168. <param name="cmp" type="java.util.Comparator"/>
  21169. <doc>
  21170. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21171. that compares greater than the input key.
  21172. @param <T>
  21173. Type of the input key.
  21174. @param list
  21175. The list
  21176. @param key
  21177. The input key.
  21178. @param cmp
  21179. Comparator for the key.
  21180. @return The index to the desired element if it exists; or list.size()
  21181. otherwise.]]>
  21182. </doc>
  21183. </method>
  21184. <method name="lowerBound" return="int"
  21185. abstract="false" native="false" synchronized="false"
  21186. static="true" final="false" visibility="public"
  21187. deprecated="not deprecated">
  21188. <param name="list" type="java.util.List"/>
  21189. <param name="key" type="java.lang.Object"/>
  21190. <doc>
  21191. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21192. that compares greater than or equal to key.
  21193. @param <T>
  21194. Type of the input key.
  21195. @param list
  21196. The list
  21197. @param key
  21198. The input key.
  21199. @return The index to the desired element if it exists; or list.size()
  21200. otherwise.]]>
  21201. </doc>
  21202. </method>
  21203. <method name="upperBound" return="int"
  21204. abstract="false" native="false" synchronized="false"
  21205. static="true" final="false" visibility="public"
  21206. deprecated="not deprecated">
  21207. <param name="list" type="java.util.List"/>
  21208. <param name="key" type="java.lang.Object"/>
  21209. <doc>
  21210. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21211. that compares greater than the input key.
  21212. @param <T>
  21213. Type of the input key.
  21214. @param list
  21215. The list
  21216. @param key
  21217. The input key.
  21218. @return The index to the desired element if it exists; or list.size()
  21219. otherwise.]]>
  21220. </doc>
  21221. </method>
  21222. <doc>
  21223. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  21224. </doc>
  21225. </class>
  21226. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  21227. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21228. <class name="Utils.Version" extends="java.lang.Object"
  21229. abstract="false"
  21230. static="true" final="true" visibility="public"
  21231. deprecated="not deprecated">
  21232. <implements name="java.lang.Comparable"/>
  21233. <constructor name="Utils.Version" type="java.io.DataInput"
  21234. static="false" final="false" visibility="public"
  21235. deprecated="not deprecated">
  21236. <exception name="IOException" type="java.io.IOException"/>
  21237. <doc>
  21238. <![CDATA[Construct the Version object by reading from the input stream.
  21239. @param in
  21240. input stream
  21241. @throws IOException]]>
  21242. </doc>
  21243. </constructor>
  21244. <constructor name="Utils.Version" type="short, short"
  21245. static="false" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <doc>
  21248. <![CDATA[Constructor.
  21249. @param major
  21250. major version.
  21251. @param minor
  21252. minor version.]]>
  21253. </doc>
  21254. </constructor>
  21255. <method name="write"
  21256. abstract="false" native="false" synchronized="false"
  21257. static="false" final="false" visibility="public"
  21258. deprecated="not deprecated">
  21259. <param name="out" type="java.io.DataOutput"/>
  21260. <exception name="IOException" type="java.io.IOException"/>
  21261. <doc>
  21262. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  21263. major version followed by minor version, both as big-endian short
  21264. integers.
  21265. @param out
  21266. The DataOutput object.
  21267. @throws IOException]]>
  21268. </doc>
  21269. </method>
  21270. <method name="getMajor" return="int"
  21271. abstract="false" native="false" synchronized="false"
  21272. static="false" final="false" visibility="public"
  21273. deprecated="not deprecated">
  21274. <doc>
  21275. <![CDATA[Get the major version.
  21276. @return Major version.]]>
  21277. </doc>
  21278. </method>
  21279. <method name="getMinor" return="int"
  21280. abstract="false" native="false" synchronized="false"
  21281. static="false" final="false" visibility="public"
  21282. deprecated="not deprecated">
  21283. <doc>
  21284. <![CDATA[Get the minor version.
  21285. @return The minor version.]]>
  21286. </doc>
  21287. </method>
  21288. <method name="size" return="int"
  21289. abstract="false" native="false" synchronized="false"
  21290. static="true" final="false" visibility="public"
  21291. deprecated="not deprecated">
  21292. <doc>
  21293. <![CDATA[Get the size of the serialized Version object.
  21294. @return serialized size of the version object.]]>
  21295. </doc>
  21296. </method>
  21297. <method name="toString" return="java.lang.String"
  21298. abstract="false" native="false" synchronized="false"
  21299. static="false" final="false" visibility="public"
  21300. deprecated="not deprecated">
  21301. <doc>
  21302. <![CDATA[Return a string representation of the version.]]>
  21303. </doc>
  21304. </method>
  21305. <method name="compatibleWith" return="boolean"
  21306. abstract="false" native="false" synchronized="false"
  21307. static="false" final="false" visibility="public"
  21308. deprecated="not deprecated">
  21309. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21310. <doc>
  21311. <![CDATA[Test compatibility.
  21312. @param other
  21313. The Version object to test compatibility with.
  21314. @return true if both versions have the same major version number; false
  21315. otherwise.]]>
  21316. </doc>
  21317. </method>
  21318. <method name="compareTo" return="int"
  21319. abstract="false" native="false" synchronized="false"
  21320. static="false" final="false" visibility="public"
  21321. deprecated="not deprecated">
  21322. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21323. <doc>
  21324. <![CDATA[Compare this version with another version.]]>
  21325. </doc>
  21326. </method>
  21327. <method name="equals" return="boolean"
  21328. abstract="false" native="false" synchronized="false"
  21329. static="false" final="false" visibility="public"
  21330. deprecated="not deprecated">
  21331. <param name="other" type="java.lang.Object"/>
  21332. </method>
  21333. <method name="hashCode" return="int"
  21334. abstract="false" native="false" synchronized="false"
  21335. static="false" final="false" visibility="public"
  21336. deprecated="not deprecated">
  21337. </method>
  21338. <doc>
  21339. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  21340. this class to maintain version information in their meta blocks.
  21341. A version number consists of a major version and a minor version. The
  21342. suggested usage of major and minor version number is to increment major
  21343. version number when the new storage format is not backward compatible, and
  21344. increment the minor version otherwise.]]>
  21345. </doc>
  21346. </class>
  21347. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21348. </package>
  21349. <package name="org.apache.hadoop.io.nativeio">
  21350. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  21351. <class name="Errno" extends="java.lang.Enum"
  21352. abstract="false"
  21353. static="false" final="true" visibility="public"
  21354. deprecated="not deprecated">
  21355. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  21356. abstract="false" native="false" synchronized="false"
  21357. static="true" final="false" visibility="public"
  21358. deprecated="not deprecated">
  21359. </method>
  21360. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  21361. abstract="false" native="false" synchronized="false"
  21362. static="true" final="false" visibility="public"
  21363. deprecated="not deprecated">
  21364. <param name="name" type="java.lang.String"/>
  21365. </method>
  21366. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  21367. transient="false" volatile="false"
  21368. static="true" final="true" visibility="public"
  21369. deprecated="not deprecated">
  21370. </field>
  21371. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  21372. transient="false" volatile="false"
  21373. static="true" final="true" visibility="public"
  21374. deprecated="not deprecated">
  21375. </field>
  21376. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  21377. transient="false" volatile="false"
  21378. static="true" final="true" visibility="public"
  21379. deprecated="not deprecated">
  21380. </field>
  21381. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  21382. transient="false" volatile="false"
  21383. static="true" final="true" visibility="public"
  21384. deprecated="not deprecated">
  21385. </field>
  21386. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  21387. transient="false" volatile="false"
  21388. static="true" final="true" visibility="public"
  21389. deprecated="not deprecated">
  21390. </field>
  21391. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  21392. transient="false" volatile="false"
  21393. static="true" final="true" visibility="public"
  21394. deprecated="not deprecated">
  21395. </field>
  21396. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  21397. transient="false" volatile="false"
  21398. static="true" final="true" visibility="public"
  21399. deprecated="not deprecated">
  21400. </field>
  21401. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  21402. transient="false" volatile="false"
  21403. static="true" final="true" visibility="public"
  21404. deprecated="not deprecated">
  21405. </field>
  21406. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  21407. transient="false" volatile="false"
  21408. static="true" final="true" visibility="public"
  21409. deprecated="not deprecated">
  21410. </field>
  21411. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  21412. transient="false" volatile="false"
  21413. static="true" final="true" visibility="public"
  21414. deprecated="not deprecated">
  21415. </field>
  21416. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  21417. transient="false" volatile="false"
  21418. static="true" final="true" visibility="public"
  21419. deprecated="not deprecated">
  21420. </field>
  21421. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  21422. transient="false" volatile="false"
  21423. static="true" final="true" visibility="public"
  21424. deprecated="not deprecated">
  21425. </field>
  21426. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  21427. transient="false" volatile="false"
  21428. static="true" final="true" visibility="public"
  21429. deprecated="not deprecated">
  21430. </field>
  21431. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  21432. transient="false" volatile="false"
  21433. static="true" final="true" visibility="public"
  21434. deprecated="not deprecated">
  21435. </field>
  21436. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  21437. transient="false" volatile="false"
  21438. static="true" final="true" visibility="public"
  21439. deprecated="not deprecated">
  21440. </field>
  21441. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  21442. transient="false" volatile="false"
  21443. static="true" final="true" visibility="public"
  21444. deprecated="not deprecated">
  21445. </field>
  21446. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  21447. transient="false" volatile="false"
  21448. static="true" final="true" visibility="public"
  21449. deprecated="not deprecated">
  21450. </field>
  21451. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  21452. transient="false" volatile="false"
  21453. static="true" final="true" visibility="public"
  21454. deprecated="not deprecated">
  21455. </field>
  21456. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  21457. transient="false" volatile="false"
  21458. static="true" final="true" visibility="public"
  21459. deprecated="not deprecated">
  21460. </field>
  21461. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21462. transient="false" volatile="false"
  21463. static="true" final="true" visibility="public"
  21464. deprecated="not deprecated">
  21465. </field>
  21466. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21467. transient="false" volatile="false"
  21468. static="true" final="true" visibility="public"
  21469. deprecated="not deprecated">
  21470. </field>
  21471. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  21472. transient="false" volatile="false"
  21473. static="true" final="true" visibility="public"
  21474. deprecated="not deprecated">
  21475. </field>
  21476. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21477. transient="false" volatile="false"
  21478. static="true" final="true" visibility="public"
  21479. deprecated="not deprecated">
  21480. </field>
  21481. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21482. transient="false" volatile="false"
  21483. static="true" final="true" visibility="public"
  21484. deprecated="not deprecated">
  21485. </field>
  21486. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  21487. transient="false" volatile="false"
  21488. static="true" final="true" visibility="public"
  21489. deprecated="not deprecated">
  21490. </field>
  21491. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  21492. transient="false" volatile="false"
  21493. static="true" final="true" visibility="public"
  21494. deprecated="not deprecated">
  21495. </field>
  21496. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  21497. transient="false" volatile="false"
  21498. static="true" final="true" visibility="public"
  21499. deprecated="not deprecated">
  21500. </field>
  21501. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  21502. transient="false" volatile="false"
  21503. static="true" final="true" visibility="public"
  21504. deprecated="not deprecated">
  21505. </field>
  21506. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21507. transient="false" volatile="false"
  21508. static="true" final="true" visibility="public"
  21509. deprecated="not deprecated">
  21510. </field>
  21511. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  21512. transient="false" volatile="false"
  21513. static="true" final="true" visibility="public"
  21514. deprecated="not deprecated">
  21515. </field>
  21516. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  21517. transient="false" volatile="false"
  21518. static="true" final="true" visibility="public"
  21519. deprecated="not deprecated">
  21520. </field>
  21521. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21522. transient="false" volatile="false"
  21523. static="true" final="true" visibility="public"
  21524. deprecated="not deprecated">
  21525. </field>
  21526. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  21527. transient="false" volatile="false"
  21528. static="true" final="true" visibility="public"
  21529. deprecated="not deprecated">
  21530. </field>
  21531. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  21532. transient="false" volatile="false"
  21533. static="true" final="true" visibility="public"
  21534. deprecated="not deprecated">
  21535. </field>
  21536. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  21537. transient="false" volatile="false"
  21538. static="true" final="true" visibility="public"
  21539. deprecated="not deprecated">
  21540. </field>
  21541. <doc>
  21542. <![CDATA[Enum representing POSIX errno values.]]>
  21543. </doc>
  21544. </class>
  21545. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  21546. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  21547. <class name="NativeIO" extends="java.lang.Object"
  21548. abstract="false"
  21549. static="false" final="false" visibility="public"
  21550. deprecated="not deprecated">
  21551. <constructor name="NativeIO"
  21552. static="false" final="false" visibility="public"
  21553. deprecated="not deprecated">
  21554. </constructor>
  21555. <method name="isAvailable" return="boolean"
  21556. abstract="false" native="false" synchronized="false"
  21557. static="true" final="false" visibility="public"
  21558. deprecated="not deprecated">
  21559. <doc>
  21560. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  21561. </doc>
  21562. </method>
  21563. <method name="open" return="java.io.FileDescriptor"
  21564. abstract="false" native="true" synchronized="false"
  21565. static="true" final="false" visibility="public"
  21566. deprecated="not deprecated">
  21567. <param name="path" type="java.lang.String"/>
  21568. <param name="flags" type="int"/>
  21569. <param name="mode" type="int"/>
  21570. <exception name="IOException" type="java.io.IOException"/>
  21571. <doc>
  21572. <![CDATA[Wrapper around open(2)]]>
  21573. </doc>
  21574. </method>
  21575. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  21576. abstract="false" native="true" synchronized="false"
  21577. static="true" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <param name="fd" type="java.io.FileDescriptor"/>
  21580. <exception name="IOException" type="java.io.IOException"/>
  21581. <doc>
  21582. <![CDATA[Wrapper around fstat(2)]]>
  21583. </doc>
  21584. </method>
  21585. <method name="chmod"
  21586. abstract="false" native="true" synchronized="false"
  21587. static="true" final="false" visibility="public"
  21588. deprecated="not deprecated">
  21589. <param name="path" type="java.lang.String"/>
  21590. <param name="mode" type="int"/>
  21591. <exception name="IOException" type="java.io.IOException"/>
  21592. <doc>
  21593. <![CDATA[Wrapper around chmod(2)]]>
  21594. </doc>
  21595. </method>
  21596. <method name="posixFadviseIfPossible"
  21597. abstract="false" native="false" synchronized="false"
  21598. static="true" final="false" visibility="public"
  21599. deprecated="not deprecated">
  21600. <param name="fd" type="java.io.FileDescriptor"/>
  21601. <param name="offset" type="long"/>
  21602. <param name="len" type="long"/>
  21603. <param name="flags" type="int"/>
  21604. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21605. <doc>
  21606. <![CDATA[Call posix_fadvise on the given file descriptor. See the manpage
  21607. for this syscall for more information. On systems where this
  21608. call is not available, does nothing.
  21609. @throws NativeIOException if there is an error with the syscall]]>
  21610. </doc>
  21611. </method>
  21612. <method name="syncFileRangeIfPossible"
  21613. abstract="false" native="false" synchronized="false"
  21614. static="true" final="false" visibility="public"
  21615. deprecated="not deprecated">
  21616. <param name="fd" type="java.io.FileDescriptor"/>
  21617. <param name="offset" type="long"/>
  21618. <param name="nbytes" type="long"/>
  21619. <param name="flags" type="int"/>
  21620. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21621. <doc>
  21622. <![CDATA[Call sync_file_range on the given file descriptor. See the manpage
  21623. for this syscall for more information. On systems where this
  21624. call is not available, does nothing.
  21625. @throws NativeIOException if there is an error with the syscall]]>
  21626. </doc>
  21627. </method>
  21628. <method name="getOwner" return="java.lang.String"
  21629. abstract="false" native="false" synchronized="false"
  21630. static="true" final="false" visibility="public"
  21631. deprecated="not deprecated">
  21632. <param name="fd" type="java.io.FileDescriptor"/>
  21633. <exception name="IOException" type="java.io.IOException"/>
  21634. </method>
  21635. <field name="O_RDONLY" type="int"
  21636. transient="false" volatile="false"
  21637. static="true" final="true" visibility="public"
  21638. deprecated="not deprecated">
  21639. </field>
  21640. <field name="O_WRONLY" type="int"
  21641. transient="false" volatile="false"
  21642. static="true" final="true" visibility="public"
  21643. deprecated="not deprecated">
  21644. </field>
  21645. <field name="O_RDWR" type="int"
  21646. transient="false" volatile="false"
  21647. static="true" final="true" visibility="public"
  21648. deprecated="not deprecated">
  21649. </field>
  21650. <field name="O_CREAT" type="int"
  21651. transient="false" volatile="false"
  21652. static="true" final="true" visibility="public"
  21653. deprecated="not deprecated">
  21654. </field>
  21655. <field name="O_EXCL" type="int"
  21656. transient="false" volatile="false"
  21657. static="true" final="true" visibility="public"
  21658. deprecated="not deprecated">
  21659. </field>
  21660. <field name="O_NOCTTY" type="int"
  21661. transient="false" volatile="false"
  21662. static="true" final="true" visibility="public"
  21663. deprecated="not deprecated">
  21664. </field>
  21665. <field name="O_TRUNC" type="int"
  21666. transient="false" volatile="false"
  21667. static="true" final="true" visibility="public"
  21668. deprecated="not deprecated">
  21669. </field>
  21670. <field name="O_APPEND" type="int"
  21671. transient="false" volatile="false"
  21672. static="true" final="true" visibility="public"
  21673. deprecated="not deprecated">
  21674. </field>
  21675. <field name="O_NONBLOCK" type="int"
  21676. transient="false" volatile="false"
  21677. static="true" final="true" visibility="public"
  21678. deprecated="not deprecated">
  21679. </field>
  21680. <field name="O_SYNC" type="int"
  21681. transient="false" volatile="false"
  21682. static="true" final="true" visibility="public"
  21683. deprecated="not deprecated">
  21684. </field>
  21685. <field name="O_ASYNC" type="int"
  21686. transient="false" volatile="false"
  21687. static="true" final="true" visibility="public"
  21688. deprecated="not deprecated">
  21689. </field>
  21690. <field name="O_FSYNC" type="int"
  21691. transient="false" volatile="false"
  21692. static="true" final="true" visibility="public"
  21693. deprecated="not deprecated">
  21694. </field>
  21695. <field name="O_NDELAY" type="int"
  21696. transient="false" volatile="false"
  21697. static="true" final="true" visibility="public"
  21698. deprecated="not deprecated">
  21699. </field>
  21700. <field name="POSIX_FADV_NORMAL" type="int"
  21701. transient="false" volatile="false"
  21702. static="true" final="true" visibility="public"
  21703. deprecated="not deprecated">
  21704. </field>
  21705. <field name="POSIX_FADV_RANDOM" type="int"
  21706. transient="false" volatile="false"
  21707. static="true" final="true" visibility="public"
  21708. deprecated="not deprecated">
  21709. </field>
  21710. <field name="POSIX_FADV_SEQUENTIAL" type="int"
  21711. transient="false" volatile="false"
  21712. static="true" final="true" visibility="public"
  21713. deprecated="not deprecated">
  21714. </field>
  21715. <field name="POSIX_FADV_WILLNEED" type="int"
  21716. transient="false" volatile="false"
  21717. static="true" final="true" visibility="public"
  21718. deprecated="not deprecated">
  21719. </field>
  21720. <field name="POSIX_FADV_DONTNEED" type="int"
  21721. transient="false" volatile="false"
  21722. static="true" final="true" visibility="public"
  21723. deprecated="not deprecated">
  21724. </field>
  21725. <field name="POSIX_FADV_NOREUSE" type="int"
  21726. transient="false" volatile="false"
  21727. static="true" final="true" visibility="public"
  21728. deprecated="not deprecated">
  21729. </field>
  21730. <field name="SYNC_FILE_RANGE_WAIT_BEFORE" type="int"
  21731. transient="false" volatile="false"
  21732. static="true" final="true" visibility="public"
  21733. deprecated="not deprecated">
  21734. </field>
  21735. <field name="SYNC_FILE_RANGE_WRITE" type="int"
  21736. transient="false" volatile="false"
  21737. static="true" final="true" visibility="public"
  21738. deprecated="not deprecated">
  21739. </field>
  21740. <field name="SYNC_FILE_RANGE_WAIT_AFTER" type="int"
  21741. transient="false" volatile="false"
  21742. static="true" final="true" visibility="public"
  21743. deprecated="not deprecated">
  21744. </field>
  21745. <doc>
  21746. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  21747. These functions should generally be used alongside a fallback to another
  21748. more portable mechanism.]]>
  21749. </doc>
  21750. </class>
  21751. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  21752. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21753. <class name="NativeIO.Stat" extends="java.lang.Object"
  21754. abstract="false"
  21755. static="true" final="false" visibility="public"
  21756. deprecated="not deprecated">
  21757. <method name="toString" return="java.lang.String"
  21758. abstract="false" native="false" synchronized="false"
  21759. static="false" final="false" visibility="public"
  21760. deprecated="not deprecated">
  21761. </method>
  21762. <method name="getOwner" return="java.lang.String"
  21763. abstract="false" native="false" synchronized="false"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="not deprecated">
  21766. </method>
  21767. <method name="getMode" return="int"
  21768. abstract="false" native="false" synchronized="false"
  21769. static="false" final="false" visibility="public"
  21770. deprecated="not deprecated">
  21771. </method>
  21772. <field name="S_IFMT" type="int"
  21773. transient="false" volatile="false"
  21774. static="true" final="true" visibility="public"
  21775. deprecated="not deprecated">
  21776. </field>
  21777. <field name="S_IFIFO" type="int"
  21778. transient="false" volatile="false"
  21779. static="true" final="true" visibility="public"
  21780. deprecated="not deprecated">
  21781. </field>
  21782. <field name="S_IFCHR" type="int"
  21783. transient="false" volatile="false"
  21784. static="true" final="true" visibility="public"
  21785. deprecated="not deprecated">
  21786. </field>
  21787. <field name="S_IFDIR" type="int"
  21788. transient="false" volatile="false"
  21789. static="true" final="true" visibility="public"
  21790. deprecated="not deprecated">
  21791. </field>
  21792. <field name="S_IFBLK" type="int"
  21793. transient="false" volatile="false"
  21794. static="true" final="true" visibility="public"
  21795. deprecated="not deprecated">
  21796. </field>
  21797. <field name="S_IFREG" type="int"
  21798. transient="false" volatile="false"
  21799. static="true" final="true" visibility="public"
  21800. deprecated="not deprecated">
  21801. </field>
  21802. <field name="S_IFLNK" type="int"
  21803. transient="false" volatile="false"
  21804. static="true" final="true" visibility="public"
  21805. deprecated="not deprecated">
  21806. </field>
  21807. <field name="S_IFSOCK" type="int"
  21808. transient="false" volatile="false"
  21809. static="true" final="true" visibility="public"
  21810. deprecated="not deprecated">
  21811. </field>
  21812. <field name="S_IFWHT" type="int"
  21813. transient="false" volatile="false"
  21814. static="true" final="true" visibility="public"
  21815. deprecated="not deprecated">
  21816. </field>
  21817. <field name="S_ISUID" type="int"
  21818. transient="false" volatile="false"
  21819. static="true" final="true" visibility="public"
  21820. deprecated="not deprecated">
  21821. </field>
  21822. <field name="S_ISGID" type="int"
  21823. transient="false" volatile="false"
  21824. static="true" final="true" visibility="public"
  21825. deprecated="not deprecated">
  21826. </field>
  21827. <field name="S_ISVTX" type="int"
  21828. transient="false" volatile="false"
  21829. static="true" final="true" visibility="public"
  21830. deprecated="not deprecated">
  21831. </field>
  21832. <field name="S_IRUSR" type="int"
  21833. transient="false" volatile="false"
  21834. static="true" final="true" visibility="public"
  21835. deprecated="not deprecated">
  21836. </field>
  21837. <field name="S_IWUSR" type="int"
  21838. transient="false" volatile="false"
  21839. static="true" final="true" visibility="public"
  21840. deprecated="not deprecated">
  21841. </field>
  21842. <field name="S_IXUSR" type="int"
  21843. transient="false" volatile="false"
  21844. static="true" final="true" visibility="public"
  21845. deprecated="not deprecated">
  21846. </field>
  21847. <doc>
  21848. <![CDATA[Result type of the fstat call]]>
  21849. </doc>
  21850. </class>
  21851. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21852. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  21853. <class name="NativeIOException" extends="java.io.IOException"
  21854. abstract="false"
  21855. static="false" final="false" visibility="public"
  21856. deprecated="not deprecated">
  21857. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  21858. static="false" final="false" visibility="public"
  21859. deprecated="not deprecated">
  21860. </constructor>
  21861. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  21862. abstract="false" native="false" synchronized="false"
  21863. static="false" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. </method>
  21866. <method name="toString" return="java.lang.String"
  21867. abstract="false" native="false" synchronized="false"
  21868. static="false" final="false" visibility="public"
  21869. deprecated="not deprecated">
  21870. </method>
  21871. <doc>
  21872. <![CDATA[An exception generated by a call to the native IO code.
  21873. These exceptions simply wrap <i>errno</i> result codes.]]>
  21874. </doc>
  21875. </class>
  21876. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  21877. </package>
  21878. <package name="org.apache.hadoop.io.retry">
  21879. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  21880. <class name="RetryPolicies" extends="java.lang.Object"
  21881. abstract="false"
  21882. static="false" final="false" visibility="public"
  21883. deprecated="not deprecated">
  21884. <constructor name="RetryPolicies"
  21885. static="false" final="false" visibility="public"
  21886. deprecated="not deprecated">
  21887. </constructor>
  21888. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21889. abstract="false" native="false" synchronized="false"
  21890. static="true" final="true" visibility="public"
  21891. deprecated="not deprecated">
  21892. <param name="maxRetries" type="int"/>
  21893. <param name="sleepTime" type="long"/>
  21894. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21895. <doc>
  21896. <![CDATA[<p>
  21897. Keep trying a limited number of times, waiting a fixed time between attempts,
  21898. and then fail by re-throwing the exception.
  21899. </p>]]>
  21900. </doc>
  21901. </method>
  21902. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21903. abstract="false" native="false" synchronized="false"
  21904. static="true" final="true" visibility="public"
  21905. deprecated="not deprecated">
  21906. <param name="maxTime" type="long"/>
  21907. <param name="sleepTime" type="long"/>
  21908. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21909. <doc>
  21910. <![CDATA[<p>
  21911. Keep trying for a maximum time, waiting a fixed time between attempts,
  21912. and then fail by re-throwing the exception.
  21913. </p>]]>
  21914. </doc>
  21915. </method>
  21916. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21917. abstract="false" native="false" synchronized="false"
  21918. static="true" final="true" visibility="public"
  21919. deprecated="not deprecated">
  21920. <param name="maxRetries" type="int"/>
  21921. <param name="sleepTime" type="long"/>
  21922. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21923. <doc>
  21924. <![CDATA[<p>
  21925. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21926. and then fail by re-throwing the exception.
  21927. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  21928. </p>]]>
  21929. </doc>
  21930. </method>
  21931. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  21932. abstract="false" native="false" synchronized="false"
  21933. static="true" final="true" visibility="public"
  21934. deprecated="not deprecated">
  21935. <param name="maxRetries" type="int"/>
  21936. <param name="sleepTime" type="long"/>
  21937. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21938. <doc>
  21939. <![CDATA[<p>
  21940. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21941. and then fail by re-throwing the exception.
  21942. The time between attempts is <code>sleepTime</code> mutliplied by a random
  21943. number in the range of [0, 2 to the number of retries)
  21944. </p>]]>
  21945. </doc>
  21946. </method>
  21947. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21948. abstract="false" native="false" synchronized="false"
  21949. static="true" final="true" visibility="public"
  21950. deprecated="not deprecated">
  21951. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21952. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  21953. <doc>
  21954. <![CDATA[<p>
  21955. Set a default policy with some explicit handlers for specific exceptions.
  21956. </p>]]>
  21957. </doc>
  21958. </method>
  21959. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21960. abstract="false" native="false" synchronized="false"
  21961. static="true" final="true" visibility="public"
  21962. deprecated="not deprecated">
  21963. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21964. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  21965. <doc>
  21966. <![CDATA[<p>
  21967. A retry policy for RemoteException
  21968. Set a default policy with some explicit handlers for specific exceptions.
  21969. </p>]]>
  21970. </doc>
  21971. </method>
  21972. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21973. transient="false" volatile="false"
  21974. static="true" final="true" visibility="public"
  21975. deprecated="not deprecated">
  21976. <doc>
  21977. <![CDATA[<p>
  21978. Try once, and fail by re-throwing the exception.
  21979. This corresponds to having no retry mechanism in place.
  21980. </p>]]>
  21981. </doc>
  21982. </field>
  21983. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21984. transient="false" volatile="false"
  21985. static="true" final="true" visibility="public"
  21986. deprecated="not deprecated">
  21987. <doc>
  21988. <![CDATA[<p>
  21989. Try once, and fail silently for <code>void</code> methods, or by
  21990. re-throwing the exception for non-<code>void</code> methods.
  21991. </p>]]>
  21992. </doc>
  21993. </field>
  21994. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  21995. transient="false" volatile="false"
  21996. static="true" final="true" visibility="public"
  21997. deprecated="not deprecated">
  21998. <doc>
  21999. <![CDATA[<p>
  22000. Keep trying forever.
  22001. </p>]]>
  22002. </doc>
  22003. </field>
  22004. <doc>
  22005. <![CDATA[<p>
  22006. A collection of useful implementations of {@link RetryPolicy}.
  22007. </p>]]>
  22008. </doc>
  22009. </class>
  22010. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  22011. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22012. <class name="RetryPolicies.MultipleLinearRandomRetry" extends="java.lang.Object"
  22013. abstract="false"
  22014. static="true" final="false" visibility="public"
  22015. deprecated="not deprecated">
  22016. <implements name="org.apache.hadoop.io.retry.RetryPolicy"/>
  22017. <constructor name="RetryPolicies.MultipleLinearRandomRetry" type="java.util.List"
  22018. static="false" final="false" visibility="public"
  22019. deprecated="not deprecated">
  22020. </constructor>
  22021. <method name="shouldRetry" return="boolean"
  22022. abstract="false" native="false" synchronized="false"
  22023. static="false" final="false" visibility="public"
  22024. deprecated="not deprecated">
  22025. <param name="e" type="java.lang.Exception"/>
  22026. <param name="curRetry" type="int"/>
  22027. <exception name="Exception" type="java.lang.Exception"/>
  22028. </method>
  22029. <method name="hashCode" return="int"
  22030. abstract="false" native="false" synchronized="false"
  22031. static="false" final="false" visibility="public"
  22032. deprecated="not deprecated">
  22033. </method>
  22034. <method name="equals" return="boolean"
  22035. abstract="false" native="false" synchronized="false"
  22036. static="false" final="false" visibility="public"
  22037. deprecated="not deprecated">
  22038. <param name="that" type="java.lang.Object"/>
  22039. </method>
  22040. <method name="toString" return="java.lang.String"
  22041. abstract="false" native="false" synchronized="false"
  22042. static="false" final="false" visibility="public"
  22043. deprecated="not deprecated">
  22044. </method>
  22045. <method name="parseCommaSeparatedString" return="org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry"
  22046. abstract="false" native="false" synchronized="false"
  22047. static="true" final="false" visibility="public"
  22048. deprecated="not deprecated">
  22049. <param name="s" type="java.lang.String"/>
  22050. <doc>
  22051. <![CDATA[Parse the given string as a MultipleLinearRandomRetry object.
  22052. The format of the string is "t_1, n_1, t_2, n_2, ...",
  22053. where t_i and n_i are the i-th pair of sleep time and number of retires.
  22054. Note that the white spaces in the string are ignored.
  22055. @return the parsed object, or null if the parsing fails.]]>
  22056. </doc>
  22057. </method>
  22058. <doc>
  22059. <![CDATA[Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ...,
  22060. the first n0 retries sleep t0 milliseconds on average,
  22061. the following n1 retries sleep t1 milliseconds on average, and so on.
  22062. For all the sleep, the actual sleep time is randomly uniform distributed
  22063. in the close interval [0.5t, 1.5t], where t is the sleep time specified.
  22064. The objects of this class are immutable.]]>
  22065. </doc>
  22066. </class>
  22067. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22068. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22069. <class name="RetryPolicies.MultipleLinearRandomRetry.Pair" extends="java.lang.Object"
  22070. abstract="false"
  22071. static="true" final="false" visibility="public"
  22072. deprecated="not deprecated">
  22073. <constructor name="RetryPolicies.MultipleLinearRandomRetry.Pair" type="int, int"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. </constructor>
  22077. <method name="toString" return="java.lang.String"
  22078. abstract="false" native="false" synchronized="false"
  22079. static="false" final="false" visibility="public"
  22080. deprecated="not deprecated">
  22081. </method>
  22082. <doc>
  22083. <![CDATA[Pairs of numRetries and sleepSeconds]]>
  22084. </doc>
  22085. </class>
  22086. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22087. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  22088. <interface name="RetryPolicy" abstract="true"
  22089. static="false" final="false" visibility="public"
  22090. deprecated="not deprecated">
  22091. <method name="shouldRetry" return="boolean"
  22092. abstract="false" native="false" synchronized="false"
  22093. static="false" final="false" visibility="public"
  22094. deprecated="not deprecated">
  22095. <param name="e" type="java.lang.Exception"/>
  22096. <param name="retries" type="int"/>
  22097. <exception name="Exception" type="java.lang.Exception"/>
  22098. <doc>
  22099. <![CDATA[<p>
  22100. Determines whether the framework should retry a
  22101. method for the given exception, and the number
  22102. of retries that have been made for that operation
  22103. so far.
  22104. </p>
  22105. @param e The exception that caused the method to fail.
  22106. @param retries The number of times the method has been retried.
  22107. @return <code>true</code> if the method should be retried,
  22108. <code>false</code> if the method should not be retried
  22109. but shouldn't fail with an exception (only for void methods).
  22110. @throws Exception The re-thrown exception <code>e</code> indicating
  22111. that the method failed and should not be retried further.]]>
  22112. </doc>
  22113. </method>
  22114. <doc>
  22115. <![CDATA[<p>
  22116. Specifies a policy for retrying method failures.
  22117. Implementations of this interface should be immutable.
  22118. </p>]]>
  22119. </doc>
  22120. </interface>
  22121. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  22122. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  22123. <class name="RetryProxy" extends="java.lang.Object"
  22124. abstract="false"
  22125. static="false" final="false" visibility="public"
  22126. deprecated="not deprecated">
  22127. <constructor name="RetryProxy"
  22128. static="false" final="false" visibility="public"
  22129. deprecated="not deprecated">
  22130. </constructor>
  22131. <method name="create" return="java.lang.Object"
  22132. abstract="false" native="false" synchronized="false"
  22133. static="true" final="false" visibility="public"
  22134. deprecated="not deprecated">
  22135. <param name="iface" type="java.lang.Class"/>
  22136. <param name="implementation" type="java.lang.Object"/>
  22137. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22138. <doc>
  22139. <![CDATA[<p>
  22140. Create a proxy for an interface of an implementation class
  22141. using the same retry policy for each method in the interface.
  22142. </p>
  22143. @param iface the interface that the retry will implement
  22144. @param implementation the instance whose methods should be retried
  22145. @param retryPolicy the policy for retirying method call failures
  22146. @return the retry proxy]]>
  22147. </doc>
  22148. </method>
  22149. <method name="create" return="java.lang.Object"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="true" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <param name="iface" type="java.lang.Class"/>
  22154. <param name="implementation" type="java.lang.Object"/>
  22155. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22156. <doc>
  22157. <![CDATA[<p>
  22158. Create a proxy for an interface of an implementation class
  22159. using the a set of retry policies specified by method name.
  22160. If no retry policy is defined for a method then a default of
  22161. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  22162. </p>
  22163. @param iface the interface that the retry will implement
  22164. @param implementation the instance whose methods should be retried
  22165. @param methodNameToPolicyMap a map of method names to retry policies
  22166. @return the retry proxy]]>
  22167. </doc>
  22168. </method>
  22169. <method name="create" return="java.lang.Object"
  22170. abstract="false" native="false" synchronized="false"
  22171. static="true" final="false" visibility="public"
  22172. deprecated="not deprecated">
  22173. <param name="iface" type="java.lang.Class"/>
  22174. <param name="implementation" type="java.lang.Object"/>
  22175. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22176. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22177. </method>
  22178. <doc>
  22179. <![CDATA[<p>
  22180. A factory for creating retry proxies.
  22181. </p>]]>
  22182. </doc>
  22183. </class>
  22184. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  22185. <!-- start class org.apache.hadoop.io.retry.RetryUtils -->
  22186. <class name="RetryUtils" extends="java.lang.Object"
  22187. abstract="false"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. <constructor name="RetryUtils"
  22191. static="false" final="false" visibility="public"
  22192. deprecated="not deprecated">
  22193. </constructor>
  22194. <method name="getDefaultRetryPolicy" return="org.apache.hadoop.io.retry.RetryPolicy"
  22195. abstract="false" native="false" synchronized="false"
  22196. static="true" final="false" visibility="public"
  22197. deprecated="not deprecated">
  22198. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22199. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22200. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22201. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22202. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22203. <param name="remoteExceptionToRetry" type="java.lang.Class"/>
  22204. <doc>
  22205. <![CDATA[Return the default retry policy set in conf.
  22206. If the value retryPolicyEnabledKey is set to false in conf,
  22207. use TRY_ONCE_THEN_FAIL.
  22208. Otherwise, get the MultipleLinearRandomRetry policy specified in the conf
  22209. and then
  22210. (1) use multipleLinearRandomRetry for
  22211. - remoteExceptionToRetry, or
  22212. - IOException other than RemoteException; and
  22213. (2) use TRY_ONCE_THEN_FAIL for
  22214. - RemoteException other than remoteExceptionToRetry, or
  22215. - non-IOException.
  22216. @param conf
  22217. @param retryPolicyEnabledKey conf property key for enabling retry
  22218. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22219. @param retryPolicySpecKey conf property key for retry policy spec
  22220. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22221. @param remoteExceptionToRetry The particular RemoteException to retry
  22222. @return the default retry policy.]]>
  22223. </doc>
  22224. </method>
  22225. <method name="getMultipleLinearRandomRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22226. abstract="false" native="false" synchronized="false"
  22227. static="true" final="false" visibility="public"
  22228. deprecated="not deprecated">
  22229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22230. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22231. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22232. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22233. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22234. <doc>
  22235. <![CDATA[Return the MultipleLinearRandomRetry policy specified in the conf,
  22236. or null if the feature is disabled.
  22237. If the policy is specified in the conf but the policy cannot be parsed,
  22238. the default policy is returned.
  22239. Retry policy spec:
  22240. N pairs of sleep-time and number-of-retries "s1,n1,s2,n2,..."
  22241. @param conf
  22242. @param retryPolicyEnabledKey conf property key for enabling retry
  22243. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22244. @param retryPolicySpecKey conf property key for retry policy spec
  22245. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22246. @return the MultipleLinearRandomRetry policy specified in the conf,
  22247. or null if the feature is disabled.]]>
  22248. </doc>
  22249. </method>
  22250. <field name="LOG" type="org.apache.commons.logging.Log"
  22251. transient="false" volatile="false"
  22252. static="true" final="true" visibility="public"
  22253. deprecated="not deprecated">
  22254. </field>
  22255. </class>
  22256. <!-- end class org.apache.hadoop.io.retry.RetryUtils -->
  22257. </package>
  22258. <package name="org.apache.hadoop.io.serializer">
  22259. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  22260. <interface name="Deserializer" abstract="true"
  22261. static="false" final="false" visibility="public"
  22262. deprecated="not deprecated">
  22263. <method name="open"
  22264. abstract="false" native="false" synchronized="false"
  22265. static="false" final="false" visibility="public"
  22266. deprecated="not deprecated">
  22267. <param name="in" type="java.io.InputStream"/>
  22268. <exception name="IOException" type="java.io.IOException"/>
  22269. <doc>
  22270. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  22271. </doc>
  22272. </method>
  22273. <method name="deserialize" return="java.lang.Object"
  22274. abstract="false" native="false" synchronized="false"
  22275. static="false" final="false" visibility="public"
  22276. deprecated="not deprecated">
  22277. <param name="t" type="java.lang.Object"/>
  22278. <exception name="IOException" type="java.io.IOException"/>
  22279. <doc>
  22280. <![CDATA[<p>
  22281. Deserialize the next object from the underlying input stream.
  22282. If the object <code>t</code> is non-null then this deserializer
  22283. <i>may</i> set its internal state to the next object read from the input
  22284. stream. Otherwise, if the object <code>t</code> is null a new
  22285. deserialized object will be created.
  22286. </p>
  22287. @return the deserialized object]]>
  22288. </doc>
  22289. </method>
  22290. <method name="close"
  22291. abstract="false" native="false" synchronized="false"
  22292. static="false" final="false" visibility="public"
  22293. deprecated="not deprecated">
  22294. <exception name="IOException" type="java.io.IOException"/>
  22295. <doc>
  22296. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  22297. </doc>
  22298. </method>
  22299. <doc>
  22300. <![CDATA[<p>
  22301. Provides a facility for deserializing objects of type <T> from an
  22302. {@link InputStream}.
  22303. </p>
  22304. <p>
  22305. Deserializers are stateful, but must not buffer the input since
  22306. other producers may read from the input between calls to
  22307. {@link #deserialize(Object)}.
  22308. </p>
  22309. @param <T>]]>
  22310. </doc>
  22311. </interface>
  22312. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  22313. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22314. <class name="DeserializerComparator" extends="java.lang.Object"
  22315. abstract="true"
  22316. static="false" final="false" visibility="public"
  22317. deprecated="not deprecated">
  22318. <implements name="org.apache.hadoop.io.RawComparator"/>
  22319. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  22320. static="false" final="false" visibility="protected"
  22321. deprecated="not deprecated">
  22322. <exception name="IOException" type="java.io.IOException"/>
  22323. </constructor>
  22324. <method name="compare" return="int"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="false" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. <param name="b1" type="byte[]"/>
  22329. <param name="s1" type="int"/>
  22330. <param name="l1" type="int"/>
  22331. <param name="b2" type="byte[]"/>
  22332. <param name="s2" type="int"/>
  22333. <param name="l2" type="int"/>
  22334. </method>
  22335. <doc>
  22336. <![CDATA[<p>
  22337. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  22338. the objects to be compared so that the standard {@link Comparator} can
  22339. be used to compare them.
  22340. </p>
  22341. <p>
  22342. One may optimize compare-intensive operations by using a custom
  22343. implementation of {@link RawComparator} that operates directly
  22344. on byte representations.
  22345. </p>
  22346. @param <T>]]>
  22347. </doc>
  22348. </class>
  22349. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22350. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22351. <class name="JavaSerialization" extends="java.lang.Object"
  22352. abstract="false"
  22353. static="false" final="false" visibility="public"
  22354. deprecated="not deprecated">
  22355. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22356. <constructor name="JavaSerialization"
  22357. static="false" final="false" visibility="public"
  22358. deprecated="not deprecated">
  22359. </constructor>
  22360. <method name="accept" return="boolean"
  22361. abstract="false" native="false" synchronized="false"
  22362. static="false" final="false" visibility="public"
  22363. deprecated="not deprecated">
  22364. <param name="c" type="java.lang.Class"/>
  22365. </method>
  22366. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22367. abstract="false" native="false" synchronized="false"
  22368. static="false" final="false" visibility="public"
  22369. deprecated="not deprecated">
  22370. <param name="c" type="java.lang.Class"/>
  22371. </method>
  22372. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22373. abstract="false" native="false" synchronized="false"
  22374. static="false" final="false" visibility="public"
  22375. deprecated="not deprecated">
  22376. <param name="c" type="java.lang.Class"/>
  22377. </method>
  22378. <doc>
  22379. <![CDATA[<p>
  22380. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22381. </p>
  22382. @see JavaSerializationComparator]]>
  22383. </doc>
  22384. </class>
  22385. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22386. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22387. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22388. abstract="false"
  22389. static="false" final="false" visibility="public"
  22390. deprecated="not deprecated">
  22391. <constructor name="JavaSerializationComparator"
  22392. static="false" final="false" visibility="public"
  22393. deprecated="not deprecated">
  22394. <exception name="IOException" type="java.io.IOException"/>
  22395. </constructor>
  22396. <method name="compare" return="int"
  22397. abstract="false" native="false" synchronized="false"
  22398. static="false" final="false" visibility="public"
  22399. deprecated="not deprecated">
  22400. <param name="o1" type="java.io.Serializable"/>
  22401. <param name="o2" type="java.io.Serializable"/>
  22402. </method>
  22403. <doc>
  22404. <![CDATA[<p>
  22405. A {@link RawComparator} that uses a {@link JavaSerialization}
  22406. {@link Deserializer} to deserialize objects that are then compared via
  22407. their {@link Comparable} interfaces.
  22408. </p>
  22409. @param <T>
  22410. @see JavaSerialization]]>
  22411. </doc>
  22412. </class>
  22413. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22414. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  22415. <interface name="Serialization" abstract="true"
  22416. static="false" final="false" visibility="public"
  22417. deprecated="not deprecated">
  22418. <method name="accept" return="boolean"
  22419. abstract="false" native="false" synchronized="false"
  22420. static="false" final="false" visibility="public"
  22421. deprecated="not deprecated">
  22422. <param name="c" type="java.lang.Class"/>
  22423. <doc>
  22424. <![CDATA[Allows clients to test whether this {@link Serialization}
  22425. supports the given class.]]>
  22426. </doc>
  22427. </method>
  22428. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22429. abstract="false" native="false" synchronized="false"
  22430. static="false" final="false" visibility="public"
  22431. deprecated="not deprecated">
  22432. <param name="c" type="java.lang.Class"/>
  22433. <doc>
  22434. <![CDATA[@return a {@link Serializer} for the given class.]]>
  22435. </doc>
  22436. </method>
  22437. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22438. abstract="false" native="false" synchronized="false"
  22439. static="false" final="false" visibility="public"
  22440. deprecated="not deprecated">
  22441. <param name="c" type="java.lang.Class"/>
  22442. <doc>
  22443. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  22444. </doc>
  22445. </method>
  22446. <doc>
  22447. <![CDATA[<p>
  22448. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  22449. </p>
  22450. @param <T>]]>
  22451. </doc>
  22452. </interface>
  22453. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  22454. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  22455. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  22456. abstract="false"
  22457. static="false" final="false" visibility="public"
  22458. deprecated="not deprecated">
  22459. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  22460. static="false" final="false" visibility="public"
  22461. deprecated="not deprecated">
  22462. <doc>
  22463. <![CDATA[<p>
  22464. Serializations are found by reading the <code>io.serializations</code>
  22465. property from <code>conf</code>, which is a comma-delimited list of
  22466. classnames.
  22467. </p>]]>
  22468. </doc>
  22469. </constructor>
  22470. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22471. abstract="false" native="false" synchronized="false"
  22472. static="false" final="false" visibility="public"
  22473. deprecated="not deprecated">
  22474. <param name="c" type="java.lang.Class"/>
  22475. </method>
  22476. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22477. abstract="false" native="false" synchronized="false"
  22478. static="false" final="false" visibility="public"
  22479. deprecated="not deprecated">
  22480. <param name="c" type="java.lang.Class"/>
  22481. </method>
  22482. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  22483. abstract="false" native="false" synchronized="false"
  22484. static="false" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. <param name="c" type="java.lang.Class"/>
  22487. </method>
  22488. <doc>
  22489. <![CDATA[<p>
  22490. A factory for {@link Serialization}s.
  22491. </p>]]>
  22492. </doc>
  22493. </class>
  22494. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  22495. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  22496. <interface name="Serializer" abstract="true"
  22497. static="false" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. <method name="open"
  22500. abstract="false" native="false" synchronized="false"
  22501. static="false" final="false" visibility="public"
  22502. deprecated="not deprecated">
  22503. <param name="out" type="java.io.OutputStream"/>
  22504. <exception name="IOException" type="java.io.IOException"/>
  22505. <doc>
  22506. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  22507. </doc>
  22508. </method>
  22509. <method name="serialize"
  22510. abstract="false" native="false" synchronized="false"
  22511. static="false" final="false" visibility="public"
  22512. deprecated="not deprecated">
  22513. <param name="t" type="java.lang.Object"/>
  22514. <exception name="IOException" type="java.io.IOException"/>
  22515. <doc>
  22516. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  22517. </doc>
  22518. </method>
  22519. <method name="close"
  22520. abstract="false" native="false" synchronized="false"
  22521. static="false" final="false" visibility="public"
  22522. deprecated="not deprecated">
  22523. <exception name="IOException" type="java.io.IOException"/>
  22524. <doc>
  22525. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  22526. </doc>
  22527. </method>
  22528. <doc>
  22529. <![CDATA[<p>
  22530. Provides a facility for serializing objects of type <T> to an
  22531. {@link OutputStream}.
  22532. </p>
  22533. <p>
  22534. Serializers are stateful, but must not buffer the output since
  22535. other producers may write to the output between calls to
  22536. {@link #serialize(Object)}.
  22537. </p>
  22538. @param <T>]]>
  22539. </doc>
  22540. </interface>
  22541. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  22542. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22543. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22544. abstract="false"
  22545. static="false" final="false" visibility="public"
  22546. deprecated="not deprecated">
  22547. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22548. <constructor name="WritableSerialization"
  22549. static="false" final="false" visibility="public"
  22550. deprecated="not deprecated">
  22551. </constructor>
  22552. <method name="accept" return="boolean"
  22553. abstract="false" native="false" synchronized="false"
  22554. static="false" final="false" visibility="public"
  22555. deprecated="not deprecated">
  22556. <param name="c" type="java.lang.Class"/>
  22557. </method>
  22558. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22559. abstract="false" native="false" synchronized="false"
  22560. static="false" final="false" visibility="public"
  22561. deprecated="not deprecated">
  22562. <param name="c" type="java.lang.Class"/>
  22563. </method>
  22564. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22565. abstract="false" native="false" synchronized="false"
  22566. static="false" final="false" visibility="public"
  22567. deprecated="not deprecated">
  22568. <param name="c" type="java.lang.Class"/>
  22569. </method>
  22570. <doc>
  22571. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22572. {@link Writable#write(java.io.DataOutput)} and
  22573. {@link Writable#readFields(java.io.DataInput)}.]]>
  22574. </doc>
  22575. </class>
  22576. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22577. </package>
  22578. <package name="org.apache.hadoop.ipc">
  22579. <!-- start class org.apache.hadoop.ipc.Client -->
  22580. <class name="Client" extends="java.lang.Object"
  22581. abstract="false"
  22582. static="false" final="false" visibility="public"
  22583. deprecated="not deprecated">
  22584. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  22585. static="false" final="false" visibility="public"
  22586. deprecated="not deprecated">
  22587. <doc>
  22588. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  22589. class.]]>
  22590. </doc>
  22591. </constructor>
  22592. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  22593. static="false" final="false" visibility="public"
  22594. deprecated="not deprecated">
  22595. <doc>
  22596. <![CDATA[Construct an IPC client with the default SocketFactory
  22597. @param valueClass
  22598. @param conf]]>
  22599. </doc>
  22600. </constructor>
  22601. <method name="setPingInterval"
  22602. abstract="false" native="false" synchronized="false"
  22603. static="true" final="true" visibility="public"
  22604. deprecated="not deprecated">
  22605. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22606. <param name="pingInterval" type="int"/>
  22607. <doc>
  22608. <![CDATA[set the ping interval value in configuration
  22609. @param conf Configuration
  22610. @param pingInterval the ping interval]]>
  22611. </doc>
  22612. </method>
  22613. <method name="getTimeout" return="int"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="true" final="true" visibility="public"
  22616. deprecated="not deprecated">
  22617. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22618. <doc>
  22619. <![CDATA[The time after which a RPC will timeout. If ping is not enabled (via
  22620. ipc.client.ping), then the timeout value is the same as the pingInterval.
  22621. If ping is enabled, then there is no timeout value.
  22622. @param conf Configuration
  22623. @return the timeout period in milliseconds. -1 if no timeout value is set]]>
  22624. </doc>
  22625. </method>
  22626. <method name="stop"
  22627. abstract="false" native="false" synchronized="false"
  22628. static="false" final="false" visibility="public"
  22629. deprecated="not deprecated">
  22630. <doc>
  22631. <![CDATA[Stop all threads related to this client. No further calls may be made
  22632. using this client.]]>
  22633. </doc>
  22634. </method>
  22635. <method name="call" return="org.apache.hadoop.io.Writable"
  22636. abstract="false" native="false" synchronized="false"
  22637. static="false" final="false" visibility="public"
  22638. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22639. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22640. <param name="address" type="java.net.InetSocketAddress"/>
  22641. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22642. <exception name="IOException" type="java.io.IOException"/>
  22643. <doc>
  22644. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22645. <code>address</code>, returning the value. Throws exceptions if there are
  22646. network problems or if the remote code threw an exception.
  22647. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22648. </doc>
  22649. </method>
  22650. <method name="call" return="org.apache.hadoop.io.Writable"
  22651. abstract="false" native="false" synchronized="false"
  22652. static="false" final="false" visibility="public"
  22653. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22654. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22655. <param name="addr" type="java.net.InetSocketAddress"/>
  22656. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22657. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22658. <exception name="IOException" type="java.io.IOException"/>
  22659. <doc>
  22660. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22661. <code>address</code> with the <code>ticket</code> credentials, returning
  22662. the value.
  22663. Throws exceptions if there are network problems or if the remote code
  22664. threw an exception.
  22665. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22666. </doc>
  22667. </method>
  22668. <method name="call" return="org.apache.hadoop.io.Writable"
  22669. abstract="false" native="false" synchronized="false"
  22670. static="false" final="false" visibility="public"
  22671. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22672. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22673. <param name="addr" type="java.net.InetSocketAddress"/>
  22674. <param name="protocol" type="java.lang.Class"/>
  22675. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22676. <param name="rpcTimeout" type="int"/>
  22677. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22678. <exception name="IOException" type="java.io.IOException"/>
  22679. <doc>
  22680. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22681. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22682. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  22683. timeout, returning the value.
  22684. Throws exceptions if there are network problems or if the remote code
  22685. threw an exception.
  22686. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22687. </doc>
  22688. </method>
  22689. <method name="call" return="org.apache.hadoop.io.Writable"
  22690. abstract="false" native="false" synchronized="false"
  22691. static="false" final="false" visibility="public"
  22692. deprecated="not deprecated">
  22693. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22694. <param name="addr" type="java.net.InetSocketAddress"/>
  22695. <param name="protocol" type="java.lang.Class"/>
  22696. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22697. <param name="rpcTimeout" type="int"/>
  22698. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22699. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22700. <exception name="IOException" type="java.io.IOException"/>
  22701. <doc>
  22702. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22703. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22704. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  22705. and <code>conf</code> as configuration for this connection, returning the
  22706. value. Throws exceptions if there are network problems or if the remote code
  22707. threw an exception.]]>
  22708. </doc>
  22709. </method>
  22710. <method name="call" return="org.apache.hadoop.io.Writable"
  22711. abstract="false" native="false" synchronized="false"
  22712. static="false" final="false" visibility="public"
  22713. deprecated="not deprecated">
  22714. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22715. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  22716. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22717. <exception name="IOException" type="java.io.IOException"/>
  22718. <doc>
  22719. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  22720. <code>remoteId</code>, returning the value.
  22721. Throws exceptions if there are network problems or if the remote code
  22722. threw an exception.]]>
  22723. </doc>
  22724. </method>
  22725. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22726. abstract="false" native="false" synchronized="false"
  22727. static="false" final="false" visibility="public"
  22728. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  22729. Class, UserGroupInformation, Configuration)} instead">
  22730. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22731. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22732. <exception name="IOException" type="java.io.IOException"/>
  22733. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22734. <doc>
  22735. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  22736. Class, UserGroupInformation, Configuration)} instead]]>
  22737. </doc>
  22738. </method>
  22739. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22740. abstract="false" native="false" synchronized="false"
  22741. static="false" final="false" visibility="public"
  22742. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  22743. Class, UserGroupInformation, Configuration)} instead">
  22744. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22745. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22746. <param name="protocol" type="java.lang.Class"/>
  22747. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22748. <exception name="IOException" type="java.io.IOException"/>
  22749. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22750. <doc>
  22751. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  22752. Class, UserGroupInformation, Configuration)} instead]]>
  22753. </doc>
  22754. </method>
  22755. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22756. abstract="false" native="false" synchronized="false"
  22757. static="false" final="false" visibility="public"
  22758. deprecated="not deprecated">
  22759. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22760. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22761. <param name="protocol" type="java.lang.Class"/>
  22762. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22763. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22764. <exception name="IOException" type="java.io.IOException"/>
  22765. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22766. <doc>
  22767. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  22768. corresponding address. When all values are available, or have timed out
  22769. or errored, the collected results are returned in an array. The array
  22770. contains nulls for calls that timed out or errored.]]>
  22771. </doc>
  22772. </method>
  22773. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  22774. transient="false" volatile="false"
  22775. static="true" final="true" visibility="public"
  22776. deprecated="not deprecated">
  22777. </field>
  22778. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  22779. transient="false" volatile="false"
  22780. static="true" final="true" visibility="public"
  22781. deprecated="not deprecated">
  22782. </field>
  22783. <field name="LOG" type="org.apache.commons.logging.Log"
  22784. transient="false" volatile="false"
  22785. static="true" final="true" visibility="public"
  22786. deprecated="not deprecated">
  22787. </field>
  22788. <doc>
  22789. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  22790. parameter, and return a {@link Writable} as their value. A service runs on
  22791. a port and is defined by a parameter class and a value class.
  22792. @see Server]]>
  22793. </doc>
  22794. </class>
  22795. <!-- end class org.apache.hadoop.ipc.Client -->
  22796. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  22797. <class name="RemoteException" extends="java.io.IOException"
  22798. abstract="false"
  22799. static="false" final="false" visibility="public"
  22800. deprecated="not deprecated">
  22801. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  22802. static="false" final="false" visibility="public"
  22803. deprecated="not deprecated">
  22804. </constructor>
  22805. <method name="getClassName" return="java.lang.String"
  22806. abstract="false" native="false" synchronized="false"
  22807. static="false" final="false" visibility="public"
  22808. deprecated="not deprecated">
  22809. </method>
  22810. <method name="unwrapRemoteException" return="java.io.IOException"
  22811. abstract="false" native="false" synchronized="false"
  22812. static="false" final="false" visibility="public"
  22813. deprecated="not deprecated">
  22814. <param name="lookupTypes" type="java.lang.Class[]"/>
  22815. <doc>
  22816. <![CDATA[If this remote exception wraps up one of the lookupTypes
  22817. then return this exception.
  22818. <p>
  22819. Unwraps any IOException.
  22820. @param lookupTypes the desired exception class.
  22821. @return IOException, which is either the lookupClass exception or this.]]>
  22822. </doc>
  22823. </method>
  22824. <method name="unwrapRemoteException" return="java.io.IOException"
  22825. abstract="false" native="false" synchronized="false"
  22826. static="false" final="false" visibility="public"
  22827. deprecated="not deprecated">
  22828. <doc>
  22829. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  22830. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  22831. a <code>String</code> as a parameter.
  22832. Otherwise it returns this.
  22833. @return <code>Throwable]]>
  22834. </doc>
  22835. </method>
  22836. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  22837. abstract="false" native="false" synchronized="false"
  22838. static="true" final="false" visibility="public"
  22839. deprecated="not deprecated">
  22840. <param name="attrs" type="org.xml.sax.Attributes"/>
  22841. <doc>
  22842. <![CDATA[Create RemoteException from attributes]]>
  22843. </doc>
  22844. </method>
  22845. </class>
  22846. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  22847. <!-- start class org.apache.hadoop.ipc.RPC -->
  22848. <class name="RPC" extends="java.lang.Object"
  22849. abstract="false"
  22850. static="false" final="false" visibility="public"
  22851. deprecated="not deprecated">
  22852. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22853. abstract="false" native="false" synchronized="false"
  22854. static="true" final="false" visibility="public"
  22855. deprecated="not deprecated">
  22856. <param name="protocol" type="java.lang.Class"/>
  22857. <param name="clientVersion" type="long"/>
  22858. <param name="addr" type="java.net.InetSocketAddress"/>
  22859. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22860. <exception name="IOException" type="java.io.IOException"/>
  22861. </method>
  22862. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22863. abstract="false" native="false" synchronized="false"
  22864. static="true" final="false" visibility="public"
  22865. deprecated="not deprecated">
  22866. <param name="protocol" type="java.lang.Class"/>
  22867. <param name="clientVersion" type="long"/>
  22868. <param name="addr" type="java.net.InetSocketAddress"/>
  22869. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22870. <param name="factory" type="javax.net.SocketFactory"/>
  22871. <exception name="IOException" type="java.io.IOException"/>
  22872. <doc>
  22873. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22874. talking to a server at the named address.]]>
  22875. </doc>
  22876. </method>
  22877. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22878. abstract="false" native="false" synchronized="false"
  22879. static="true" final="false" visibility="public"
  22880. deprecated="not deprecated">
  22881. <param name="protocol" type="java.lang.Class"/>
  22882. <param name="clientVersion" type="long"/>
  22883. <param name="addr" type="java.net.InetSocketAddress"/>
  22884. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22885. <param name="factory" type="javax.net.SocketFactory"/>
  22886. <param name="rpcTimeout" type="int"/>
  22887. <exception name="IOException" type="java.io.IOException"/>
  22888. <doc>
  22889. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22890. talking to a server at the named address.]]>
  22891. </doc>
  22892. </method>
  22893. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22894. abstract="false" native="false" synchronized="false"
  22895. static="true" final="false" visibility="public"
  22896. deprecated="not deprecated">
  22897. <param name="protocol" type="java.lang.Class"/>
  22898. <param name="clientVersion" type="long"/>
  22899. <param name="addr" type="java.net.InetSocketAddress"/>
  22900. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22901. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22902. <param name="factory" type="javax.net.SocketFactory"/>
  22903. <exception name="IOException" type="java.io.IOException"/>
  22904. <doc>
  22905. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22906. talking to a server at the named address.]]>
  22907. </doc>
  22908. </method>
  22909. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22910. abstract="false" native="false" synchronized="false"
  22911. static="true" final="false" visibility="public"
  22912. deprecated="not deprecated">
  22913. <param name="protocol" type="java.lang.Class"/>
  22914. <param name="clientVersion" type="long"/>
  22915. <param name="addr" type="java.net.InetSocketAddress"/>
  22916. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22918. <param name="factory" type="javax.net.SocketFactory"/>
  22919. <param name="rpcTimeout" type="int"/>
  22920. <exception name="IOException" type="java.io.IOException"/>
  22921. <doc>
  22922. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22923. talking to a server at the named address.]]>
  22924. </doc>
  22925. </method>
  22926. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22927. abstract="false" native="false" synchronized="false"
  22928. static="true" final="false" visibility="public"
  22929. deprecated="not deprecated">
  22930. <param name="protocol" type="java.lang.Class"/>
  22931. <param name="clientVersion" type="long"/>
  22932. <param name="addr" type="java.net.InetSocketAddress"/>
  22933. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22934. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22935. <param name="factory" type="javax.net.SocketFactory"/>
  22936. <param name="rpcTimeout" type="int"/>
  22937. <param name="connectionRetryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  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="conf" type="org.apache.hadoop.conf.Configuration"/>
  22952. <exception name="IOException" type="java.io.IOException"/>
  22953. <doc>
  22954. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  22955. @param protocol
  22956. @param clientVersion
  22957. @param addr
  22958. @param conf
  22959. @return a proxy instance
  22960. @throws IOException]]>
  22961. </doc>
  22962. </method>
  22963. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22964. abstract="false" native="false" synchronized="false"
  22965. static="true" final="false" visibility="public"
  22966. deprecated="not deprecated">
  22967. <param name="protocol" type="java.lang.Class"/>
  22968. <param name="clientVersion" type="long"/>
  22969. <param name="addr" type="java.net.InetSocketAddress"/>
  22970. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22971. <param name="rpcTimeout" type="int"/>
  22972. <exception name="IOException" type="java.io.IOException"/>
  22973. </method>
  22974. <method name="stopProxy"
  22975. abstract="false" native="false" synchronized="false"
  22976. static="true" final="false" visibility="public"
  22977. deprecated="not deprecated">
  22978. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  22979. <doc>
  22980. <![CDATA[Stop this proxy and release its invoker's resource
  22981. @param proxy the proxy to be stopped]]>
  22982. </doc>
  22983. </method>
  22984. <method name="call" return="java.lang.Object[]"
  22985. abstract="false" native="false" synchronized="false"
  22986. static="true" final="false" visibility="public"
  22987. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  22988. <param name="method" type="java.lang.reflect.Method"/>
  22989. <param name="params" type="java.lang.Object[][]"/>
  22990. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  22991. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22992. <exception name="IOException" type="java.io.IOException"/>
  22993. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22994. <doc>
  22995. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  22996. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  22997. </doc>
  22998. </method>
  22999. <method name="call" return="java.lang.Object[]"
  23000. abstract="false" native="false" synchronized="false"
  23001. static="true" final="false" visibility="public"
  23002. deprecated="not deprecated">
  23003. <param name="method" type="java.lang.reflect.Method"/>
  23004. <param name="params" type="java.lang.Object[][]"/>
  23005. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23006. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23008. <exception name="IOException" type="java.io.IOException"/>
  23009. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23010. <doc>
  23011. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  23012. </doc>
  23013. </method>
  23014. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23015. abstract="false" native="false" synchronized="false"
  23016. static="true" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <param name="instance" type="java.lang.Object"/>
  23019. <param name="bindAddress" type="java.lang.String"/>
  23020. <param name="port" type="int"/>
  23021. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23022. <exception name="IOException" type="java.io.IOException"/>
  23023. <doc>
  23024. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23025. port and address.]]>
  23026. </doc>
  23027. </method>
  23028. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23029. abstract="false" native="false" synchronized="false"
  23030. static="true" final="false" visibility="public"
  23031. deprecated="not deprecated">
  23032. <param name="instance" type="java.lang.Object"/>
  23033. <param name="bindAddress" type="java.lang.String"/>
  23034. <param name="port" type="int"/>
  23035. <param name="numHandlers" type="int"/>
  23036. <param name="verbose" type="boolean"/>
  23037. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23038. <exception name="IOException" type="java.io.IOException"/>
  23039. <doc>
  23040. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23041. port and address.]]>
  23042. </doc>
  23043. </method>
  23044. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23045. abstract="false" native="false" synchronized="false"
  23046. static="true" final="false" visibility="public"
  23047. deprecated="not deprecated">
  23048. <param name="instance" type="java.lang.Object"/>
  23049. <param name="bindAddress" type="java.lang.String"/>
  23050. <param name="port" type="int"/>
  23051. <param name="numHandlers" type="int"/>
  23052. <param name="verbose" type="boolean"/>
  23053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23054. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  23055. <exception name="IOException" type="java.io.IOException"/>
  23056. <doc>
  23057. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23058. port and address, with a secret manager.]]>
  23059. </doc>
  23060. </method>
  23061. <doc>
  23062. <![CDATA[A simple RPC mechanism.
  23063. A <i>protocol</i> is a Java interface. All parameters and return types must
  23064. be one of:
  23065. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  23066. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  23067. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  23068. <li>a {@link String}; or</li>
  23069. <li>a {@link Writable}; or</li>
  23070. <li>an array of the above types</li> </ul>
  23071. All methods in the protocol should throw only IOException. No field data of
  23072. the protocol instance is transmitted.]]>
  23073. </doc>
  23074. </class>
  23075. <!-- end class org.apache.hadoop.ipc.RPC -->
  23076. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  23077. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  23078. abstract="false"
  23079. static="true" final="false" visibility="public"
  23080. deprecated="not deprecated">
  23081. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. <exception name="IOException" type="java.io.IOException"/>
  23085. <doc>
  23086. <![CDATA[Construct an RPC server.
  23087. @param instance the instance whose methods will be called
  23088. @param conf the configuration to use
  23089. @param bindAddress the address to bind on to listen for connection
  23090. @param port the port to listen for connections on]]>
  23091. </doc>
  23092. </constructor>
  23093. <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"
  23094. static="false" final="false" visibility="public"
  23095. deprecated="not deprecated">
  23096. <exception name="IOException" type="java.io.IOException"/>
  23097. <doc>
  23098. <![CDATA[Construct an RPC server.
  23099. @param instance the instance whose methods will be called
  23100. @param conf the configuration to use
  23101. @param bindAddress the address to bind on to listen for connection
  23102. @param port the port to listen for connections on
  23103. @param numHandlers the number of method handler threads to run
  23104. @param verbose whether each call should be logged]]>
  23105. </doc>
  23106. </constructor>
  23107. <method name="call" return="org.apache.hadoop.io.Writable"
  23108. abstract="false" native="false" synchronized="false"
  23109. static="false" final="false" visibility="public"
  23110. deprecated="not deprecated">
  23111. <param name="protocol" type="java.lang.Class"/>
  23112. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23113. <param name="receivedTime" type="long"/>
  23114. <exception name="IOException" type="java.io.IOException"/>
  23115. </method>
  23116. <doc>
  23117. <![CDATA[An RPC Server.]]>
  23118. </doc>
  23119. </class>
  23120. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  23121. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23122. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  23123. abstract="false"
  23124. static="true" final="false" visibility="public"
  23125. deprecated="not deprecated">
  23126. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  23127. static="false" final="false" visibility="public"
  23128. deprecated="not deprecated">
  23129. <doc>
  23130. <![CDATA[Create a version mismatch exception
  23131. @param interfaceName the name of the protocol mismatch
  23132. @param clientVersion the client's version of the protocol
  23133. @param serverVersion the server's version of the protocol]]>
  23134. </doc>
  23135. </constructor>
  23136. <method name="getInterfaceName" return="java.lang.String"
  23137. abstract="false" native="false" synchronized="false"
  23138. static="false" final="false" visibility="public"
  23139. deprecated="not deprecated">
  23140. <doc>
  23141. <![CDATA[Get the interface name
  23142. @return the java class name
  23143. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  23144. </doc>
  23145. </method>
  23146. <method name="getClientVersion" return="long"
  23147. abstract="false" native="false" synchronized="false"
  23148. static="false" final="false" visibility="public"
  23149. deprecated="not deprecated">
  23150. <doc>
  23151. <![CDATA[Get the client's preferred version]]>
  23152. </doc>
  23153. </method>
  23154. <method name="getServerVersion" return="long"
  23155. abstract="false" native="false" synchronized="false"
  23156. static="false" final="false" visibility="public"
  23157. deprecated="not deprecated">
  23158. <doc>
  23159. <![CDATA[Get the server's agreed to version.]]>
  23160. </doc>
  23161. </method>
  23162. <doc>
  23163. <![CDATA[A version mismatch for the RPC protocol.]]>
  23164. </doc>
  23165. </class>
  23166. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23167. <!-- start class org.apache.hadoop.ipc.Server -->
  23168. <class name="Server" extends="java.lang.Object"
  23169. abstract="true"
  23170. static="false" final="false" visibility="public"
  23171. deprecated="not deprecated">
  23172. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  23173. static="false" final="false" visibility="protected"
  23174. deprecated="not deprecated">
  23175. <exception name="IOException" type="java.io.IOException"/>
  23176. </constructor>
  23177. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  23178. static="false" final="false" visibility="protected"
  23179. deprecated="not deprecated">
  23180. <exception name="IOException" type="java.io.IOException"/>
  23181. </constructor>
  23182. <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"
  23183. static="false" final="false" visibility="protected"
  23184. deprecated="not deprecated">
  23185. <exception name="IOException" type="java.io.IOException"/>
  23186. <doc>
  23187. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  23188. be of the named class. The <code>handlerCount</handlerCount> determines
  23189. the number of handler threads that will be used to process calls.]]>
  23190. </doc>
  23191. </constructor>
  23192. <method name="get" return="org.apache.hadoop.ipc.Server"
  23193. abstract="false" native="false" synchronized="false"
  23194. static="true" final="false" visibility="public"
  23195. deprecated="not deprecated">
  23196. <doc>
  23197. <![CDATA[Returns the server instance called under or null. May be called under
  23198. {@link #call(Writable, long)} implementations, and under {@link Writable}
  23199. methods of paramters and return values. Permits applications to access
  23200. the server context.]]>
  23201. </doc>
  23202. </method>
  23203. <method name="getRemoteIp" return="java.net.InetAddress"
  23204. abstract="false" native="false" synchronized="false"
  23205. static="true" final="false" visibility="public"
  23206. deprecated="not deprecated">
  23207. <doc>
  23208. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  23209. Returns null incase of an error.]]>
  23210. </doc>
  23211. </method>
  23212. <method name="getRemoteAddress" return="java.lang.String"
  23213. abstract="false" native="false" synchronized="false"
  23214. static="true" final="false" visibility="public"
  23215. deprecated="not deprecated">
  23216. <doc>
  23217. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  23218. Returns null in case of an error.]]>
  23219. </doc>
  23220. </method>
  23221. <method name="bind"
  23222. abstract="false" native="false" synchronized="false"
  23223. static="true" final="false" visibility="public"
  23224. deprecated="not deprecated">
  23225. <param name="socket" type="java.net.ServerSocket"/>
  23226. <param name="address" type="java.net.InetSocketAddress"/>
  23227. <param name="backlog" type="int"/>
  23228. <exception name="IOException" type="java.io.IOException"/>
  23229. <doc>
  23230. <![CDATA[A convenience method to bind to a given address and report
  23231. better exceptions if the address is not a valid host.
  23232. @param socket the socket to bind
  23233. @param address the address to bind to
  23234. @param backlog the number of connections allowed in the queue
  23235. @throws BindException if the address can't be bound
  23236. @throws UnknownHostException if the address isn't a valid host name
  23237. @throws IOException other random errors from bind]]>
  23238. </doc>
  23239. </method>
  23240. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23241. abstract="false" native="false" synchronized="false"
  23242. static="false" final="false" visibility="public"
  23243. deprecated="not deprecated">
  23244. <doc>
  23245. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  23246. @return rpc metrics]]>
  23247. </doc>
  23248. </method>
  23249. <method name="setSocketSendBufSize"
  23250. abstract="false" native="false" synchronized="false"
  23251. static="false" final="false" visibility="public"
  23252. deprecated="not deprecated">
  23253. <param name="size" type="int"/>
  23254. <doc>
  23255. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  23256. </doc>
  23257. </method>
  23258. <method name="start"
  23259. abstract="false" native="false" synchronized="true"
  23260. static="false" final="false" visibility="public"
  23261. deprecated="not deprecated">
  23262. <doc>
  23263. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  23264. </doc>
  23265. </method>
  23266. <method name="stop"
  23267. abstract="false" native="false" synchronized="true"
  23268. static="false" final="false" visibility="public"
  23269. deprecated="not deprecated">
  23270. <doc>
  23271. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  23272. </doc>
  23273. </method>
  23274. <method name="join"
  23275. abstract="false" native="false" synchronized="true"
  23276. static="false" final="false" visibility="public"
  23277. deprecated="not deprecated">
  23278. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23279. <doc>
  23280. <![CDATA[Wait for the server to be stopped.
  23281. Does not wait for all subthreads to finish.
  23282. See {@link #stop()}.]]>
  23283. </doc>
  23284. </method>
  23285. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  23286. abstract="false" native="false" synchronized="true"
  23287. static="false" final="false" visibility="public"
  23288. deprecated="not deprecated">
  23289. <doc>
  23290. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  23291. @return the socket (ip+port) on which the RPC server is listening to.]]>
  23292. </doc>
  23293. </method>
  23294. <method name="call" return="org.apache.hadoop.io.Writable"
  23295. abstract="false" native="false" synchronized="false"
  23296. static="false" final="false" visibility="public"
  23297. deprecated="Use {@link #call(Class, Writable, long)} instead">
  23298. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23299. <param name="receiveTime" type="long"/>
  23300. <exception name="IOException" type="java.io.IOException"/>
  23301. <doc>
  23302. <![CDATA[Called for each call.
  23303. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  23304. </doc>
  23305. </method>
  23306. <method name="call" return="org.apache.hadoop.io.Writable"
  23307. abstract="true" native="false" synchronized="false"
  23308. static="false" final="false" visibility="public"
  23309. deprecated="not deprecated">
  23310. <param name="protocol" type="java.lang.Class"/>
  23311. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23312. <param name="receiveTime" type="long"/>
  23313. <exception name="IOException" type="java.io.IOException"/>
  23314. <doc>
  23315. <![CDATA[Called for each call.]]>
  23316. </doc>
  23317. </method>
  23318. <method name="authorize"
  23319. abstract="false" native="false" synchronized="false"
  23320. static="false" final="false" visibility="public"
  23321. deprecated="not deprecated">
  23322. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  23323. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  23324. <param name="addr" type="java.net.InetAddress"/>
  23325. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  23326. <doc>
  23327. <![CDATA[Authorize the incoming client connection.
  23328. @param user client user
  23329. @param connection incoming connection
  23330. @param addr InetAddress of incoming connection
  23331. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  23332. </doc>
  23333. </method>
  23334. <method name="getNumOpenConnections" return="int"
  23335. abstract="false" native="false" synchronized="false"
  23336. static="false" final="false" visibility="public"
  23337. deprecated="not deprecated">
  23338. <doc>
  23339. <![CDATA[The number of open RPC conections
  23340. @return the number of open rpc connections]]>
  23341. </doc>
  23342. </method>
  23343. <method name="getCallQueueLen" return="int"
  23344. abstract="false" native="false" synchronized="false"
  23345. static="false" final="false" visibility="public"
  23346. deprecated="not deprecated">
  23347. <doc>
  23348. <![CDATA[The number of rpc calls in the queue.
  23349. @return The number of rpc calls in the queue.]]>
  23350. </doc>
  23351. </method>
  23352. <field name="HEADER" type="java.nio.ByteBuffer"
  23353. transient="false" volatile="false"
  23354. static="true" final="true" visibility="public"
  23355. deprecated="not deprecated">
  23356. <doc>
  23357. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  23358. </doc>
  23359. </field>
  23360. <field name="CURRENT_VERSION" type="byte"
  23361. transient="false" volatile="false"
  23362. static="true" final="true" visibility="public"
  23363. deprecated="not deprecated">
  23364. </field>
  23365. <field name="LOG" type="org.apache.commons.logging.Log"
  23366. transient="false" volatile="false"
  23367. static="true" final="true" visibility="public"
  23368. deprecated="not deprecated">
  23369. </field>
  23370. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23371. transient="false" volatile="false"
  23372. static="false" final="false" visibility="protected"
  23373. deprecated="not deprecated">
  23374. </field>
  23375. <doc>
  23376. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  23377. parameter, and return a {@link Writable} as their value. A service runs on
  23378. a port and is defined by a parameter class and a value class.
  23379. @see Client]]>
  23380. </doc>
  23381. </class>
  23382. <!-- end class org.apache.hadoop.ipc.Server -->
  23383. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  23384. <class name="Server.Connection" extends="java.lang.Object"
  23385. abstract="false"
  23386. static="false" final="false" visibility="public"
  23387. deprecated="not deprecated">
  23388. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  23389. static="false" final="false" visibility="public"
  23390. deprecated="not deprecated">
  23391. </constructor>
  23392. <method name="toString" return="java.lang.String"
  23393. abstract="false" native="false" synchronized="false"
  23394. static="false" final="false" visibility="public"
  23395. deprecated="not deprecated">
  23396. </method>
  23397. <method name="getHostAddress" return="java.lang.String"
  23398. abstract="false" native="false" synchronized="false"
  23399. static="false" final="false" visibility="public"
  23400. deprecated="not deprecated">
  23401. </method>
  23402. <method name="getHostInetAddress" return="java.net.InetAddress"
  23403. abstract="false" native="false" synchronized="false"
  23404. static="false" final="false" visibility="public"
  23405. deprecated="not deprecated">
  23406. </method>
  23407. <method name="setLastContact"
  23408. abstract="false" native="false" synchronized="false"
  23409. static="false" final="false" visibility="public"
  23410. deprecated="not deprecated">
  23411. <param name="lastContact" type="long"/>
  23412. </method>
  23413. <method name="getLastContact" return="long"
  23414. abstract="false" native="false" synchronized="false"
  23415. static="false" final="false" visibility="public"
  23416. deprecated="not deprecated">
  23417. </method>
  23418. <method name="readAndProcess" return="int"
  23419. abstract="false" native="false" synchronized="false"
  23420. static="false" final="false" visibility="public"
  23421. deprecated="not deprecated">
  23422. <exception name="IOException" type="java.io.IOException"/>
  23423. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23424. </method>
  23425. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  23426. transient="false" volatile="false"
  23427. static="false" final="false" visibility="public"
  23428. deprecated="not deprecated">
  23429. </field>
  23430. <doc>
  23431. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  23432. </doc>
  23433. </class>
  23434. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  23435. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  23436. <interface name="VersionedProtocol" abstract="true"
  23437. static="false" final="false" visibility="public"
  23438. deprecated="not deprecated">
  23439. <method name="getProtocolVersion" return="long"
  23440. abstract="false" native="false" synchronized="false"
  23441. static="false" final="false" visibility="public"
  23442. deprecated="not deprecated">
  23443. <param name="protocol" type="java.lang.String"/>
  23444. <param name="clientVersion" type="long"/>
  23445. <exception name="IOException" type="java.io.IOException"/>
  23446. <doc>
  23447. <![CDATA[Return protocol version corresponding to protocol interface.
  23448. @param protocol The classname of the protocol interface
  23449. @param clientVersion The version of the protocol that the client speaks
  23450. @return the version that the server will speak]]>
  23451. </doc>
  23452. </method>
  23453. <doc>
  23454. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  23455. Subclasses of this interface are also supposed to have
  23456. a static final long versionID field.]]>
  23457. </doc>
  23458. </interface>
  23459. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  23460. </package>
  23461. <package name="org.apache.hadoop.ipc.metrics">
  23462. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23463. <class name="RpcInstrumentation" extends="java.lang.Object"
  23464. abstract="false"
  23465. static="false" final="false" visibility="public"
  23466. deprecated="not deprecated">
  23467. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  23468. <method name="getMetrics"
  23469. abstract="false" native="false" synchronized="false"
  23470. static="false" final="false" visibility="public"
  23471. deprecated="not deprecated">
  23472. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  23473. <param name="all" type="boolean"/>
  23474. </method>
  23475. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23476. abstract="false" native="false" synchronized="false"
  23477. static="true" final="false" visibility="public"
  23478. deprecated="not deprecated">
  23479. <param name="serverName" type="java.lang.String"/>
  23480. <param name="port" type="int"/>
  23481. <doc>
  23482. <![CDATA[Create an RPC instrumentation object
  23483. @param serverName name of the server
  23484. @param port the RPC port
  23485. @return the instrumentation object]]>
  23486. </doc>
  23487. </method>
  23488. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23489. abstract="false" native="false" synchronized="false"
  23490. static="true" final="false" visibility="public"
  23491. deprecated="not deprecated">
  23492. <param name="serverName" type="java.lang.String"/>
  23493. <param name="port" type="int"/>
  23494. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  23495. <doc>
  23496. <![CDATA[Create an RPC instrumentation object
  23497. Mostly useful for testing.
  23498. @param serverName name of the server
  23499. @param port the RPC port
  23500. @param ms the metrics system object
  23501. @return the instrumentation object]]>
  23502. </doc>
  23503. </method>
  23504. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  23505. abstract="false" native="false" synchronized="false"
  23506. static="false" final="false" visibility="public"
  23507. deprecated="not deprecated">
  23508. <doc>
  23509. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  23510. </doc>
  23511. </method>
  23512. <method name="incrAuthenticationFailures"
  23513. abstract="false" native="false" synchronized="false"
  23514. static="false" final="false" visibility="public"
  23515. deprecated="not deprecated">
  23516. <doc>
  23517. <![CDATA[One authentication failure event]]>
  23518. </doc>
  23519. </method>
  23520. <method name="incrAuthenticationSuccesses"
  23521. abstract="false" native="false" synchronized="false"
  23522. static="false" final="false" visibility="public"
  23523. deprecated="not deprecated">
  23524. <doc>
  23525. <![CDATA[One authentication success event]]>
  23526. </doc>
  23527. </method>
  23528. <method name="incrAuthorizationSuccesses"
  23529. abstract="false" native="false" synchronized="false"
  23530. static="false" final="false" visibility="public"
  23531. deprecated="not deprecated">
  23532. <doc>
  23533. <![CDATA[One authorization success event]]>
  23534. </doc>
  23535. </method>
  23536. <method name="incrAuthorizationFailures"
  23537. abstract="false" native="false" synchronized="false"
  23538. static="false" final="false" visibility="public"
  23539. deprecated="not deprecated">
  23540. <doc>
  23541. <![CDATA[One authorization failure event]]>
  23542. </doc>
  23543. </method>
  23544. <method name="shutdown"
  23545. abstract="false" native="false" synchronized="false"
  23546. static="false" final="false" visibility="public"
  23547. deprecated="not deprecated">
  23548. <doc>
  23549. <![CDATA[Shutdown the instrumentation for the process]]>
  23550. </doc>
  23551. </method>
  23552. <method name="incrSentBytes"
  23553. abstract="false" native="false" synchronized="false"
  23554. static="false" final="false" visibility="public"
  23555. deprecated="not deprecated">
  23556. <param name="count" type="int"/>
  23557. <doc>
  23558. <![CDATA[Increment sent bytes by count
  23559. @param count to increment]]>
  23560. </doc>
  23561. </method>
  23562. <method name="incrReceivedBytes"
  23563. abstract="false" native="false" synchronized="false"
  23564. static="false" final="false" visibility="public"
  23565. deprecated="not deprecated">
  23566. <param name="count" type="int"/>
  23567. <doc>
  23568. <![CDATA[Increment received bytes by count
  23569. @param count to increment]]>
  23570. </doc>
  23571. </method>
  23572. <method name="addRpcQueueTime"
  23573. abstract="false" native="false" synchronized="false"
  23574. static="false" final="false" visibility="public"
  23575. deprecated="not deprecated">
  23576. <param name="qTime" type="int"/>
  23577. <doc>
  23578. <![CDATA[Add an RPC queue time sample
  23579. @param qTime]]>
  23580. </doc>
  23581. </method>
  23582. <method name="addRpcProcessingTime"
  23583. abstract="false" native="false" synchronized="false"
  23584. static="false" final="false" visibility="public"
  23585. deprecated="not deprecated">
  23586. <param name="processingTime" type="int"/>
  23587. <doc>
  23588. <![CDATA[Add an RPC processing time sample
  23589. @param processingTime]]>
  23590. </doc>
  23591. </method>
  23592. <method name="addRpcProcessingTime"
  23593. abstract="false" native="false" synchronized="false"
  23594. static="false" final="false" visibility="public"
  23595. deprecated="not deprecated">
  23596. <param name="methodName" type="java.lang.String"/>
  23597. <param name="processingTime" type="int"/>
  23598. <doc>
  23599. <![CDATA[Add an RPC processing time sample for a particular RPC method
  23600. @param methodName method name of the RPC
  23601. @param processingTime elapsed processing time of the RPC]]>
  23602. </doc>
  23603. </method>
  23604. <doc>
  23605. <![CDATA[The RPC metrics instrumentation]]>
  23606. </doc>
  23607. </class>
  23608. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23609. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23610. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  23611. abstract="false"
  23612. static="true" final="false" visibility="public"
  23613. deprecated="not deprecated">
  23614. <method name="addRpcProcessingTime"
  23615. abstract="false" native="false" synchronized="true"
  23616. static="false" final="false" visibility="public"
  23617. deprecated="not deprecated">
  23618. <param name="methodName" type="java.lang.String"/>
  23619. <param name="processingTime" type="int"/>
  23620. </method>
  23621. <doc>
  23622. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  23623. easy and efficient filtering]]>
  23624. </doc>
  23625. </class>
  23626. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23627. </package>
  23628. <package name="org.apache.hadoop.jmx">
  23629. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  23630. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  23631. abstract="false"
  23632. static="false" final="false" visibility="public"
  23633. deprecated="not deprecated">
  23634. <constructor name="JMXJsonServlet"
  23635. static="false" final="false" visibility="public"
  23636. deprecated="not deprecated">
  23637. </constructor>
  23638. <method name="init"
  23639. abstract="false" native="false" synchronized="false"
  23640. static="false" final="false" visibility="public"
  23641. deprecated="not deprecated">
  23642. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23643. <doc>
  23644. <![CDATA[Initialize this servlet.]]>
  23645. </doc>
  23646. </method>
  23647. <method name="doGet"
  23648. abstract="false" native="false" synchronized="false"
  23649. static="false" final="false" visibility="public"
  23650. deprecated="not deprecated">
  23651. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23652. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23653. <doc>
  23654. <![CDATA[Process a GET request for the specified resource.
  23655. @param request
  23656. The servlet request we are processing
  23657. @param response
  23658. The servlet response we are creating]]>
  23659. </doc>
  23660. </method>
  23661. <field name="mBeanServer" type="javax.management.MBeanServer"
  23662. transient="true" volatile="false"
  23663. static="false" final="false" visibility="protected"
  23664. deprecated="not deprecated">
  23665. <doc>
  23666. <![CDATA[MBean server.]]>
  23667. </doc>
  23668. </field>
  23669. <doc>
  23670. <![CDATA[Provides Read only web access to JMX.
  23671. <p>
  23672. This servlet generally will be placed under the /jmx URL for each
  23673. HttpServer. It provides read only
  23674. access to JMX metrics. The optional <code>qry</code> parameter
  23675. may be used to query only a subset of the JMX Beans. This query
  23676. functionality is provided through the
  23677. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  23678. method.
  23679. <p>
  23680. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  23681. all hadoop metrics exposed through JMX.
  23682. <p>
  23683. If the <code>qry</code> parameter is not formatted correctly then a
  23684. 400 BAD REQUEST http response code will be returned.
  23685. <p>
  23686. The return format is JSON and in the form
  23687. <p>
  23688. <code><pre>
  23689. {
  23690. "beans" : [
  23691. {
  23692. "name":"bean-name"
  23693. ...
  23694. }
  23695. ]
  23696. }
  23697. </pre></code>
  23698. <p>
  23699. The servlet attempts to convert the the JMXBeans into JSON. Each
  23700. bean's attributes will be converted to a JSON object member.
  23701. If the attribute is a boolean, a number, a string, or an array
  23702. it will be converted to the JSON equivalent.
  23703. If the value is a {@link CompositeData} then it will be converted
  23704. to a JSON object with the keys as the name of the JSON member and
  23705. the value is converted following these same rules.
  23706. If the value is a {@link TabularData} then it will be converted
  23707. to an array of the {@link CompositeData} elements that it contains.
  23708. All other objects will be converted to a string and output as such.
  23709. The bean's name and modelerType will be returned for all beans.]]>
  23710. </doc>
  23711. </class>
  23712. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  23713. </package>
  23714. <package name="org.apache.hadoop.log">
  23715. <!-- start class org.apache.hadoop.log.EventCounter -->
  23716. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23717. abstract="false"
  23718. static="false" final="false" visibility="public"
  23719. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23720. <constructor name="EventCounter"
  23721. static="false" final="false" visibility="public"
  23722. deprecated="not deprecated">
  23723. </constructor>
  23724. <doc>
  23725. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23726. fatal, error and warn. The class name is used in log4j.properties
  23727. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23728. </doc>
  23729. </class>
  23730. <!-- end class org.apache.hadoop.log.EventCounter -->
  23731. <!-- start class org.apache.hadoop.log.LogLevel -->
  23732. <class name="LogLevel" extends="java.lang.Object"
  23733. abstract="false"
  23734. static="false" final="false" visibility="public"
  23735. deprecated="not deprecated">
  23736. <constructor name="LogLevel"
  23737. static="false" final="false" visibility="public"
  23738. deprecated="not deprecated">
  23739. </constructor>
  23740. <method name="main"
  23741. abstract="false" native="false" synchronized="false"
  23742. static="true" final="false" visibility="public"
  23743. deprecated="not deprecated">
  23744. <param name="args" type="java.lang.String[]"/>
  23745. <doc>
  23746. <![CDATA[A command line implementation]]>
  23747. </doc>
  23748. </method>
  23749. <field name="USAGES" type="java.lang.String"
  23750. transient="false" volatile="false"
  23751. static="true" final="true" visibility="public"
  23752. deprecated="not deprecated">
  23753. </field>
  23754. <doc>
  23755. <![CDATA[Change log level in runtime.]]>
  23756. </doc>
  23757. </class>
  23758. <!-- end class org.apache.hadoop.log.LogLevel -->
  23759. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  23760. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  23761. abstract="false"
  23762. static="true" final="false" visibility="public"
  23763. deprecated="not deprecated">
  23764. <constructor name="LogLevel.Servlet"
  23765. static="false" final="false" visibility="public"
  23766. deprecated="not deprecated">
  23767. </constructor>
  23768. <method name="doGet"
  23769. abstract="false" native="false" synchronized="false"
  23770. static="false" final="false" visibility="public"
  23771. deprecated="not deprecated">
  23772. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23773. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23774. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23775. <exception name="IOException" type="java.io.IOException"/>
  23776. </method>
  23777. <doc>
  23778. <![CDATA[A servlet implementation]]>
  23779. </doc>
  23780. </class>
  23781. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  23782. </package>
  23783. <package name="org.apache.hadoop.log.metrics">
  23784. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  23785. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  23786. abstract="false"
  23787. static="false" final="false" visibility="public"
  23788. deprecated="not deprecated">
  23789. <constructor name="EventCounter"
  23790. static="false" final="false" visibility="public"
  23791. deprecated="not deprecated">
  23792. </constructor>
  23793. <method name="getFatal" return="long"
  23794. abstract="false" native="false" synchronized="false"
  23795. static="true" final="false" visibility="public"
  23796. deprecated="not deprecated">
  23797. </method>
  23798. <method name="getError" return="long"
  23799. abstract="false" native="false" synchronized="false"
  23800. static="true" final="false" visibility="public"
  23801. deprecated="not deprecated">
  23802. </method>
  23803. <method name="getWarn" return="long"
  23804. abstract="false" native="false" synchronized="false"
  23805. static="true" final="false" visibility="public"
  23806. deprecated="not deprecated">
  23807. </method>
  23808. <method name="getInfo" return="long"
  23809. abstract="false" native="false" synchronized="false"
  23810. static="true" final="false" visibility="public"
  23811. deprecated="not deprecated">
  23812. </method>
  23813. <method name="append"
  23814. abstract="false" native="false" synchronized="false"
  23815. static="false" final="false" visibility="public"
  23816. deprecated="not deprecated">
  23817. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  23818. </method>
  23819. <method name="close"
  23820. abstract="false" native="false" synchronized="false"
  23821. static="false" final="false" visibility="public"
  23822. deprecated="not deprecated">
  23823. </method>
  23824. <method name="requiresLayout" return="boolean"
  23825. abstract="false" native="false" synchronized="false"
  23826. static="false" final="false" visibility="public"
  23827. deprecated="not deprecated">
  23828. </method>
  23829. <doc>
  23830. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23831. fatal, error and warn. The class name is used in log4j.properties]]>
  23832. </doc>
  23833. </class>
  23834. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  23835. </package>
  23836. <package name="org.apache.hadoop.metrics">
  23837. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  23838. <class name="ContextFactory" extends="java.lang.Object"
  23839. abstract="false"
  23840. static="false" final="false" visibility="public"
  23841. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23842. <constructor name="ContextFactory"
  23843. static="false" final="false" visibility="protected"
  23844. deprecated="not deprecated">
  23845. <doc>
  23846. <![CDATA[Creates a new instance of ContextFactory]]>
  23847. </doc>
  23848. </constructor>
  23849. <method name="getAttribute" return="java.lang.Object"
  23850. abstract="false" native="false" synchronized="false"
  23851. static="false" final="false" visibility="public"
  23852. deprecated="not deprecated">
  23853. <param name="attributeName" type="java.lang.String"/>
  23854. <doc>
  23855. <![CDATA[Returns the value of the named attribute, or null if there is no
  23856. attribute of that name.
  23857. @param attributeName the attribute name
  23858. @return the attribute value]]>
  23859. </doc>
  23860. </method>
  23861. <method name="getAttributeNames" return="java.lang.String[]"
  23862. abstract="false" native="false" synchronized="false"
  23863. static="false" final="false" visibility="public"
  23864. deprecated="not deprecated">
  23865. <doc>
  23866. <![CDATA[Returns the names of all the factory's attributes.
  23867. @return the attribute names]]>
  23868. </doc>
  23869. </method>
  23870. <method name="setAttribute"
  23871. abstract="false" native="false" synchronized="false"
  23872. static="false" final="false" visibility="public"
  23873. deprecated="not deprecated">
  23874. <param name="attributeName" type="java.lang.String"/>
  23875. <param name="value" type="java.lang.Object"/>
  23876. <doc>
  23877. <![CDATA[Sets the named factory attribute to the specified value, creating it
  23878. if it did not already exist. If the value is null, this is the same as
  23879. calling removeAttribute.
  23880. @param attributeName the attribute name
  23881. @param value the new attribute value]]>
  23882. </doc>
  23883. </method>
  23884. <method name="removeAttribute"
  23885. abstract="false" native="false" synchronized="false"
  23886. static="false" final="false" visibility="public"
  23887. deprecated="not deprecated">
  23888. <param name="attributeName" type="java.lang.String"/>
  23889. <doc>
  23890. <![CDATA[Removes the named attribute if it exists.
  23891. @param attributeName the attribute name]]>
  23892. </doc>
  23893. </method>
  23894. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23895. abstract="false" native="false" synchronized="true"
  23896. static="false" final="false" visibility="public"
  23897. deprecated="not deprecated">
  23898. <param name="refName" type="java.lang.String"/>
  23899. <param name="contextName" type="java.lang.String"/>
  23900. <exception name="IOException" type="java.io.IOException"/>
  23901. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23902. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23903. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23904. <doc>
  23905. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  23906. using the factory's current configuration attributes. <p/>
  23907. When constructing the instance, if the factory property
  23908. <i>contextName</i>.class</code> exists,
  23909. its value is taken to be the name of the class to instantiate. Otherwise,
  23910. the default is to create an instance of
  23911. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  23912. dummy "no-op" context which will cause all metric data to be discarded.
  23913. @param contextName the name of the context
  23914. @return the named MetricsContext]]>
  23915. </doc>
  23916. </method>
  23917. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23918. abstract="false" native="false" synchronized="true"
  23919. static="false" final="false" visibility="public"
  23920. deprecated="not deprecated">
  23921. <param name="contextName" type="java.lang.String"/>
  23922. <exception name="IOException" type="java.io.IOException"/>
  23923. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23924. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23925. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23926. </method>
  23927. <method name="getAllContexts" return="java.util.Collection"
  23928. abstract="false" native="false" synchronized="true"
  23929. static="false" final="false" visibility="public"
  23930. deprecated="not deprecated">
  23931. <doc>
  23932. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  23933. </doc>
  23934. </method>
  23935. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  23936. abstract="false" native="false" synchronized="true"
  23937. static="true" final="false" visibility="public"
  23938. deprecated="not deprecated">
  23939. <param name="contextName" type="java.lang.String"/>
  23940. <doc>
  23941. <![CDATA[Returns a "null" context - one which does nothing.]]>
  23942. </doc>
  23943. </method>
  23944. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23945. abstract="false" native="false" synchronized="true"
  23946. static="true" final="false" visibility="public"
  23947. deprecated="not deprecated">
  23948. <exception name="IOException" type="java.io.IOException"/>
  23949. <doc>
  23950. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  23951. necessary. <p/>
  23952. When the instance is constructed, this method checks if the file
  23953. <code>hadoop-metrics.properties</code> exists on the class path. If it
  23954. exists, it must be in the format defined by java.util.Properties, and all
  23955. the properties in the file are set as attributes on the newly created
  23956. ContextFactory instance.
  23957. @return the singleton ContextFactory instance]]>
  23958. </doc>
  23959. </method>
  23960. <doc>
  23961. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  23962. of this class, use the static <code>getFactory()</code> method.
  23963. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23964. </doc>
  23965. </class>
  23966. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  23967. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  23968. <interface name="MetricsContext" abstract="true"
  23969. static="false" final="false" visibility="public"
  23970. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23971. <method name="init"
  23972. abstract="false" native="false" synchronized="false"
  23973. static="false" final="false" visibility="public"
  23974. deprecated="not deprecated">
  23975. <param name="contextName" type="java.lang.String"/>
  23976. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23977. <doc>
  23978. <![CDATA[Initialize this context.
  23979. @param contextName The given name for this context
  23980. @param factory The creator of this context]]>
  23981. </doc>
  23982. </method>
  23983. <method name="getContextName" return="java.lang.String"
  23984. abstract="false" native="false" synchronized="false"
  23985. static="false" final="false" visibility="public"
  23986. deprecated="not deprecated">
  23987. <doc>
  23988. <![CDATA[Returns the context name.
  23989. @return the context name]]>
  23990. </doc>
  23991. </method>
  23992. <method name="startMonitoring"
  23993. abstract="false" native="false" synchronized="false"
  23994. static="false" final="false" visibility="public"
  23995. deprecated="not deprecated">
  23996. <exception name="IOException" type="java.io.IOException"/>
  23997. <doc>
  23998. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  23999. updated.]]>
  24000. </doc>
  24001. </method>
  24002. <method name="stopMonitoring"
  24003. abstract="false" native="false" synchronized="false"
  24004. static="false" final="false" visibility="public"
  24005. deprecated="not deprecated">
  24006. <doc>
  24007. <![CDATA[Stops monitoring. This does not free any data that the implementation
  24008. may have buffered for sending at the next timer event. It
  24009. is OK to call <code>startMonitoring()</code> again after calling
  24010. this.
  24011. @see #close()]]>
  24012. </doc>
  24013. </method>
  24014. <method name="isMonitoring" return="boolean"
  24015. abstract="false" native="false" synchronized="false"
  24016. static="false" final="false" visibility="public"
  24017. deprecated="not deprecated">
  24018. <doc>
  24019. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24020. </doc>
  24021. </method>
  24022. <method name="close"
  24023. abstract="false" native="false" synchronized="false"
  24024. static="false" final="false" visibility="public"
  24025. deprecated="not deprecated">
  24026. <doc>
  24027. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  24028. object to its initial state.]]>
  24029. </doc>
  24030. </method>
  24031. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24032. abstract="false" native="false" synchronized="false"
  24033. static="false" final="false" visibility="public"
  24034. deprecated="not deprecated">
  24035. <param name="recordName" type="java.lang.String"/>
  24036. <doc>
  24037. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  24038. Throws an exception if the metrics implementation is configured with a fixed
  24039. set of record names and <code>recordName</code> is not in that set.
  24040. @param recordName the name of the record
  24041. @throws MetricsException if recordName conflicts with configuration data]]>
  24042. </doc>
  24043. </method>
  24044. <method name="registerUpdater"
  24045. abstract="false" native="false" synchronized="false"
  24046. static="false" final="false" visibility="public"
  24047. deprecated="not deprecated">
  24048. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24049. <doc>
  24050. <![CDATA[Registers a callback to be called at regular time intervals, as
  24051. determined by the implementation-class specific configuration.
  24052. @param updater object to be run periodically; it should updated
  24053. some metrics records and then return]]>
  24054. </doc>
  24055. </method>
  24056. <method name="unregisterUpdater"
  24057. abstract="false" native="false" synchronized="false"
  24058. static="false" final="false" visibility="public"
  24059. deprecated="not deprecated">
  24060. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24061. <doc>
  24062. <![CDATA[Removes a callback, if it exists.
  24063. @param updater object to be removed from the callback list]]>
  24064. </doc>
  24065. </method>
  24066. <method name="getPeriod" return="int"
  24067. abstract="false" native="false" synchronized="false"
  24068. static="false" final="false" visibility="public"
  24069. deprecated="not deprecated">
  24070. <doc>
  24071. <![CDATA[Returns the timer period.]]>
  24072. </doc>
  24073. </method>
  24074. <method name="getAllRecords" return="java.util.Map"
  24075. abstract="false" native="false" synchronized="false"
  24076. static="false" final="false" visibility="public"
  24077. deprecated="not deprecated">
  24078. <doc>
  24079. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24080. Useful for monitoring systems that are polling-based.
  24081. @return A non-null map from all record names to the records managed.]]>
  24082. </doc>
  24083. </method>
  24084. <field name="DEFAULT_PERIOD" type="int"
  24085. transient="false" volatile="false"
  24086. static="true" final="true" visibility="public"
  24087. deprecated="not deprecated">
  24088. <doc>
  24089. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  24090. </doc>
  24091. </field>
  24092. <doc>
  24093. <![CDATA[The main interface to the metrics package.
  24094. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24095. </doc>
  24096. </interface>
  24097. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  24098. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  24099. <class name="MetricsException" extends="java.lang.RuntimeException"
  24100. abstract="false"
  24101. static="false" final="false" visibility="public"
  24102. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  24103. <constructor name="MetricsException"
  24104. static="false" final="false" visibility="public"
  24105. deprecated="not deprecated">
  24106. <doc>
  24107. <![CDATA[Creates a new instance of MetricsException]]>
  24108. </doc>
  24109. </constructor>
  24110. <constructor name="MetricsException" type="java.lang.String"
  24111. static="false" final="false" visibility="public"
  24112. deprecated="not deprecated">
  24113. <doc>
  24114. <![CDATA[Creates a new instance of MetricsException
  24115. @param message an error message]]>
  24116. </doc>
  24117. </constructor>
  24118. <doc>
  24119. <![CDATA[General-purpose, unchecked metrics exception.
  24120. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  24121. </doc>
  24122. </class>
  24123. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  24124. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  24125. <interface name="MetricsRecord" abstract="true"
  24126. static="false" final="false" visibility="public"
  24127. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24128. <method name="getRecordName" return="java.lang.String"
  24129. abstract="false" native="false" synchronized="false"
  24130. static="false" final="false" visibility="public"
  24131. deprecated="not deprecated">
  24132. <doc>
  24133. <![CDATA[Returns the record name.
  24134. @return the record name]]>
  24135. </doc>
  24136. </method>
  24137. <method name="setTag"
  24138. abstract="false" native="false" synchronized="false"
  24139. static="false" final="false" visibility="public"
  24140. deprecated="not deprecated">
  24141. <param name="tagName" type="java.lang.String"/>
  24142. <param name="tagValue" type="java.lang.String"/>
  24143. <doc>
  24144. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  24145. which is treated the same as an empty String.
  24146. @param tagName name of the tag
  24147. @param tagValue new value of the tag
  24148. @throws MetricsException if the tagName conflicts with the configuration]]>
  24149. </doc>
  24150. </method>
  24151. <method name="setTag"
  24152. abstract="false" native="false" synchronized="false"
  24153. static="false" final="false" visibility="public"
  24154. deprecated="not deprecated">
  24155. <param name="tagName" type="java.lang.String"/>
  24156. <param name="tagValue" type="int"/>
  24157. <doc>
  24158. <![CDATA[Sets the named tag to the specified value.
  24159. @param tagName name of the tag
  24160. @param tagValue new value of the tag
  24161. @throws MetricsException if the tagName conflicts with the configuration]]>
  24162. </doc>
  24163. </method>
  24164. <method name="setTag"
  24165. abstract="false" native="false" synchronized="false"
  24166. static="false" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. <param name="tagName" type="java.lang.String"/>
  24169. <param name="tagValue" type="long"/>
  24170. <doc>
  24171. <![CDATA[Sets the named tag to the specified value.
  24172. @param tagName name of the tag
  24173. @param tagValue new value of the tag
  24174. @throws MetricsException if the tagName conflicts with the configuration]]>
  24175. </doc>
  24176. </method>
  24177. <method name="setTag"
  24178. abstract="false" native="false" synchronized="false"
  24179. static="false" final="false" visibility="public"
  24180. deprecated="not deprecated">
  24181. <param name="tagName" type="java.lang.String"/>
  24182. <param name="tagValue" type="short"/>
  24183. <doc>
  24184. <![CDATA[Sets the named tag to the specified value.
  24185. @param tagName name of the tag
  24186. @param tagValue new value of the tag
  24187. @throws MetricsException if the tagName conflicts with the configuration]]>
  24188. </doc>
  24189. </method>
  24190. <method name="setTag"
  24191. abstract="false" native="false" synchronized="false"
  24192. static="false" final="false" visibility="public"
  24193. deprecated="not deprecated">
  24194. <param name="tagName" type="java.lang.String"/>
  24195. <param name="tagValue" type="byte"/>
  24196. <doc>
  24197. <![CDATA[Sets the named tag to the specified value.
  24198. @param tagName name of the tag
  24199. @param tagValue new value of the tag
  24200. @throws MetricsException if the tagName conflicts with the configuration]]>
  24201. </doc>
  24202. </method>
  24203. <method name="removeTag"
  24204. abstract="false" native="false" synchronized="false"
  24205. static="false" final="false" visibility="public"
  24206. deprecated="not deprecated">
  24207. <param name="tagName" type="java.lang.String"/>
  24208. <doc>
  24209. <![CDATA[Removes any tag of the specified name.
  24210. @param tagName name of a tag]]>
  24211. </doc>
  24212. </method>
  24213. <method name="setMetric"
  24214. abstract="false" native="false" synchronized="false"
  24215. static="false" final="false" visibility="public"
  24216. deprecated="not deprecated">
  24217. <param name="metricName" type="java.lang.String"/>
  24218. <param name="metricValue" type="int"/>
  24219. <doc>
  24220. <![CDATA[Sets the named metric to the specified value.
  24221. @param metricName name of the metric
  24222. @param metricValue new value of the metric
  24223. @throws MetricsException if the metricName or the type of the metricValue
  24224. conflicts with the configuration]]>
  24225. </doc>
  24226. </method>
  24227. <method name="setMetric"
  24228. abstract="false" native="false" synchronized="false"
  24229. static="false" final="false" visibility="public"
  24230. deprecated="not deprecated">
  24231. <param name="metricName" type="java.lang.String"/>
  24232. <param name="metricValue" type="long"/>
  24233. <doc>
  24234. <![CDATA[Sets the named metric to the specified value.
  24235. @param metricName name of the metric
  24236. @param metricValue new value of the metric
  24237. @throws MetricsException if the metricName or the type of the metricValue
  24238. conflicts with the configuration]]>
  24239. </doc>
  24240. </method>
  24241. <method name="setMetric"
  24242. abstract="false" native="false" synchronized="false"
  24243. static="false" final="false" visibility="public"
  24244. deprecated="not deprecated">
  24245. <param name="metricName" type="java.lang.String"/>
  24246. <param name="metricValue" type="short"/>
  24247. <doc>
  24248. <![CDATA[Sets the named metric to the specified value.
  24249. @param metricName name of the metric
  24250. @param metricValue new value of the metric
  24251. @throws MetricsException if the metricName or the type of the metricValue
  24252. conflicts with the configuration]]>
  24253. </doc>
  24254. </method>
  24255. <method name="setMetric"
  24256. abstract="false" native="false" synchronized="false"
  24257. static="false" final="false" visibility="public"
  24258. deprecated="not deprecated">
  24259. <param name="metricName" type="java.lang.String"/>
  24260. <param name="metricValue" type="byte"/>
  24261. <doc>
  24262. <![CDATA[Sets the named metric to the specified value.
  24263. @param metricName name of the metric
  24264. @param metricValue new value of the metric
  24265. @throws MetricsException if the metricName or the type of the metricValue
  24266. conflicts with the configuration]]>
  24267. </doc>
  24268. </method>
  24269. <method name="setMetric"
  24270. abstract="false" native="false" synchronized="false"
  24271. static="false" final="false" visibility="public"
  24272. deprecated="not deprecated">
  24273. <param name="metricName" type="java.lang.String"/>
  24274. <param name="metricValue" type="float"/>
  24275. <doc>
  24276. <![CDATA[Sets the named metric to the specified value.
  24277. @param metricName name of the metric
  24278. @param metricValue new value of the metric
  24279. @throws MetricsException if the metricName or the type of the metricValue
  24280. conflicts with the configuration]]>
  24281. </doc>
  24282. </method>
  24283. <method name="incrMetric"
  24284. abstract="false" native="false" synchronized="false"
  24285. static="false" final="false" visibility="public"
  24286. deprecated="not deprecated">
  24287. <param name="metricName" type="java.lang.String"/>
  24288. <param name="metricValue" type="int"/>
  24289. <doc>
  24290. <![CDATA[Increments the named metric by the specified value.
  24291. @param metricName name of the metric
  24292. @param metricValue incremental value
  24293. @throws MetricsException if the metricName or the type of the metricValue
  24294. conflicts with the configuration]]>
  24295. </doc>
  24296. </method>
  24297. <method name="incrMetric"
  24298. abstract="false" native="false" synchronized="false"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. <param name="metricName" type="java.lang.String"/>
  24302. <param name="metricValue" type="long"/>
  24303. <doc>
  24304. <![CDATA[Increments the named metric by the specified value.
  24305. @param metricName name of the metric
  24306. @param metricValue incremental value
  24307. @throws MetricsException if the metricName or the type of the metricValue
  24308. conflicts with the configuration]]>
  24309. </doc>
  24310. </method>
  24311. <method name="incrMetric"
  24312. abstract="false" native="false" synchronized="false"
  24313. static="false" final="false" visibility="public"
  24314. deprecated="not deprecated">
  24315. <param name="metricName" type="java.lang.String"/>
  24316. <param name="metricValue" type="short"/>
  24317. <doc>
  24318. <![CDATA[Increments the named metric by the specified value.
  24319. @param metricName name of the metric
  24320. @param metricValue incremental value
  24321. @throws MetricsException if the metricName or the type of the metricValue
  24322. conflicts with the configuration]]>
  24323. </doc>
  24324. </method>
  24325. <method name="incrMetric"
  24326. abstract="false" native="false" synchronized="false"
  24327. static="false" final="false" visibility="public"
  24328. deprecated="not deprecated">
  24329. <param name="metricName" type="java.lang.String"/>
  24330. <param name="metricValue" type="byte"/>
  24331. <doc>
  24332. <![CDATA[Increments the named metric by the specified value.
  24333. @param metricName name of the metric
  24334. @param metricValue incremental value
  24335. @throws MetricsException if the metricName or the type of the metricValue
  24336. conflicts with the configuration]]>
  24337. </doc>
  24338. </method>
  24339. <method name="incrMetric"
  24340. abstract="false" native="false" synchronized="false"
  24341. static="false" final="false" visibility="public"
  24342. deprecated="not deprecated">
  24343. <param name="metricName" type="java.lang.String"/>
  24344. <param name="metricValue" type="float"/>
  24345. <doc>
  24346. <![CDATA[Increments the named metric by the specified value.
  24347. @param metricName name of the metric
  24348. @param metricValue incremental value
  24349. @throws MetricsException if the metricName or the type of the metricValue
  24350. conflicts with the configuration]]>
  24351. </doc>
  24352. </method>
  24353. <method name="update"
  24354. abstract="false" native="false" synchronized="false"
  24355. static="false" final="false" visibility="public"
  24356. deprecated="not deprecated">
  24357. <doc>
  24358. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24359. If the tag values match an existing row, that row is updated;
  24360. otherwise, a new row is added.]]>
  24361. </doc>
  24362. </method>
  24363. <method name="remove"
  24364. abstract="false" native="false" synchronized="false"
  24365. static="false" final="false" visibility="public"
  24366. deprecated="not deprecated">
  24367. <doc>
  24368. <![CDATA[Removes, from the buffered data table, all rows having tags
  24369. that equal the tags that have been set on this record. For example,
  24370. if there are no tags on this record, all rows for this record name
  24371. would be removed. Or, if there is a single tag on this record, then
  24372. just rows containing a tag with the same name and value would be removed.]]>
  24373. </doc>
  24374. </method>
  24375. <doc>
  24376. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  24377. system. <p/>
  24378. A record name identifies the kind of data to be reported. For example, a
  24379. program reporting statistics relating to the disks on a computer might use
  24380. a record name "diskStats".<p/>
  24381. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  24382. continue the example, the "diskStats" record might use a tag named
  24383. "diskName" to identify a particular disk. Sometimes it is useful to have
  24384. more than one tag, so there might also be a "diskType" with value "ide" or
  24385. "scsi" or whatever.<p/>
  24386. A record also has zero or more <i>metrics</i>. These are the named
  24387. values that are to be reported to the metrics system. In the "diskStats"
  24388. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  24389. "kbReadPerSecond", etc.<p/>
  24390. The general procedure for using a MetricsRecord is to fill in its tag and
  24391. metric values, and then call <code>update()</code> to pass the record to the
  24392. client library.
  24393. Metric data is not immediately sent to the metrics system
  24394. each time that <code>update()</code> is called.
  24395. An internal table is maintained, identified by the record name. This
  24396. table has columns
  24397. corresponding to the tag and the metric names, and rows
  24398. corresponding to each unique set of tag values. An update
  24399. either modifies an existing row in the table, or adds a new row with a set of
  24400. tag values that are different from all the other rows. Note that if there
  24401. are no tags, then there can be at most one row in the table. <p/>
  24402. Once a row is added to the table, its data will be sent to the metrics system
  24403. on every timer period, whether or not it has been updated since the previous
  24404. timer period. If this is inappropriate, for example if metrics were being
  24405. reported by some transient object in an application, the <code>remove()</code>
  24406. method can be used to remove the row and thus stop the data from being
  24407. sent.<p/>
  24408. Note that the <code>update()</code> method is atomic. This means that it is
  24409. safe for different threads to be updating the same metric. More precisely,
  24410. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  24411. with the same set of tag names and tag values. Different threads should
  24412. <b>not</b> use the same MetricsRecord instance at the same time.
  24413. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24414. </doc>
  24415. </interface>
  24416. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  24417. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  24418. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  24419. abstract="false"
  24420. static="false" final="false" visibility="public"
  24421. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24422. <constructor name="MetricsServlet"
  24423. static="false" final="false" visibility="public"
  24424. deprecated="not deprecated">
  24425. </constructor>
  24426. <method name="doGet"
  24427. abstract="false" native="false" synchronized="false"
  24428. static="false" final="false" visibility="public"
  24429. deprecated="not deprecated">
  24430. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24431. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24432. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24433. <exception name="IOException" type="java.io.IOException"/>
  24434. </method>
  24435. <doc>
  24436. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  24437. textual representation (no promises are made for parseability), and
  24438. users can use "?format=json" for parseable output.
  24439. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24440. </doc>
  24441. </class>
  24442. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  24443. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  24444. <class name="MetricsUtil" extends="java.lang.Object"
  24445. abstract="false"
  24446. static="false" final="false" visibility="public"
  24447. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24448. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24449. abstract="false" native="false" synchronized="false"
  24450. static="true" final="false" visibility="public"
  24451. deprecated="not deprecated">
  24452. <param name="contextName" type="java.lang.String"/>
  24453. </method>
  24454. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24455. abstract="false" native="false" synchronized="false"
  24456. static="true" final="false" visibility="public"
  24457. deprecated="not deprecated">
  24458. <param name="refName" type="java.lang.String"/>
  24459. <param name="contextName" type="java.lang.String"/>
  24460. <doc>
  24461. <![CDATA[Utility method to return the named context.
  24462. If the desired context cannot be created for any reason, the exception
  24463. is logged, and a null context is returned.]]>
  24464. </doc>
  24465. </method>
  24466. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24467. abstract="false" native="false" synchronized="false"
  24468. static="true" final="false" visibility="public"
  24469. deprecated="not deprecated">
  24470. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24471. <param name="recordName" type="java.lang.String"/>
  24472. <doc>
  24473. <![CDATA[Utility method to create and return new metrics record instance within the
  24474. given context. This record is tagged with the host name.
  24475. @param context the context
  24476. @param recordName name of the record
  24477. @return newly created metrics record]]>
  24478. </doc>
  24479. </method>
  24480. <field name="LOG" type="org.apache.commons.logging.Log"
  24481. transient="false" volatile="false"
  24482. static="true" final="true" visibility="public"
  24483. deprecated="not deprecated">
  24484. </field>
  24485. <doc>
  24486. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  24487. For examples of usage, see NameNodeMetrics.
  24488. @see org.apache.hadoop.metrics.MetricsRecord
  24489. @see org.apache.hadoop.metrics.MetricsContext
  24490. @see org.apache.hadoop.metrics.ContextFactory
  24491. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24492. </doc>
  24493. </class>
  24494. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  24495. <!-- start interface org.apache.hadoop.metrics.Updater -->
  24496. <interface name="Updater" abstract="true"
  24497. static="false" final="false" visibility="public"
  24498. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24499. <method name="doUpdates"
  24500. abstract="false" native="false" synchronized="false"
  24501. static="false" final="false" visibility="public"
  24502. deprecated="not deprecated">
  24503. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24504. <doc>
  24505. <![CDATA[Timer-based call-back from the metric library.]]>
  24506. </doc>
  24507. </method>
  24508. <doc>
  24509. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  24510. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24511. </doc>
  24512. </interface>
  24513. <!-- end interface org.apache.hadoop.metrics.Updater -->
  24514. </package>
  24515. <package name="org.apache.hadoop.metrics.file">
  24516. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  24517. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24518. abstract="false"
  24519. static="false" final="false" visibility="public"
  24520. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  24521. <constructor name="FileContext"
  24522. static="false" final="false" visibility="public"
  24523. deprecated="not deprecated">
  24524. <doc>
  24525. <![CDATA[Creates a new instance of FileContext]]>
  24526. </doc>
  24527. </constructor>
  24528. <method name="init"
  24529. abstract="false" native="false" synchronized="false"
  24530. static="false" final="false" visibility="public"
  24531. deprecated="not deprecated">
  24532. <param name="contextName" type="java.lang.String"/>
  24533. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24534. </method>
  24535. <method name="getFileName" return="java.lang.String"
  24536. abstract="false" native="false" synchronized="false"
  24537. static="false" final="false" visibility="public"
  24538. deprecated="not deprecated">
  24539. <doc>
  24540. <![CDATA[Returns the configured file name, or null.]]>
  24541. </doc>
  24542. </method>
  24543. <method name="startMonitoring"
  24544. abstract="false" native="false" synchronized="false"
  24545. static="false" final="false" visibility="public"
  24546. deprecated="not deprecated">
  24547. <exception name="IOException" type="java.io.IOException"/>
  24548. <doc>
  24549. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  24550. file specified by the <code>fileName</code> attribute,
  24551. if specified. Otherwise the data will be written to standard
  24552. output.]]>
  24553. </doc>
  24554. </method>
  24555. <method name="stopMonitoring"
  24556. abstract="false" native="false" synchronized="false"
  24557. static="false" final="false" visibility="public"
  24558. deprecated="not deprecated">
  24559. <doc>
  24560. <![CDATA[Stops monitoring, closing the file.
  24561. @see #close()]]>
  24562. </doc>
  24563. </method>
  24564. <method name="emitRecord"
  24565. abstract="false" native="false" synchronized="false"
  24566. static="false" final="false" visibility="public"
  24567. deprecated="not deprecated">
  24568. <param name="contextName" type="java.lang.String"/>
  24569. <param name="recordName" type="java.lang.String"/>
  24570. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24571. <doc>
  24572. <![CDATA[Emits a metrics record to a file.]]>
  24573. </doc>
  24574. </method>
  24575. <method name="flush"
  24576. abstract="false" native="false" synchronized="false"
  24577. static="false" final="false" visibility="public"
  24578. deprecated="not deprecated">
  24579. <doc>
  24580. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  24581. </doc>
  24582. </method>
  24583. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  24584. transient="false" volatile="false"
  24585. static="true" final="true" visibility="protected"
  24586. deprecated="not deprecated">
  24587. </field>
  24588. <field name="PERIOD_PROPERTY" type="java.lang.String"
  24589. transient="false" volatile="false"
  24590. static="true" final="true" visibility="protected"
  24591. deprecated="not deprecated">
  24592. </field>
  24593. <doc>
  24594. <![CDATA[Metrics context for writing metrics to a file.<p/>
  24595. This class is configured by setting ContextFactory attributes which in turn
  24596. are usually configured through a properties file. All the attributes are
  24597. prefixed by the contextName. For example, the properties file might contain:
  24598. <pre>
  24599. myContextName.fileName=/tmp/metrics.log
  24600. myContextName.period=5
  24601. </pre>
  24602. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  24603. </doc>
  24604. </class>
  24605. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  24606. </package>
  24607. <package name="org.apache.hadoop.metrics.ganglia">
  24608. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24609. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24610. abstract="false"
  24611. static="false" final="false" visibility="public"
  24612. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24613. <constructor name="GangliaContext"
  24614. static="false" final="false" visibility="public"
  24615. deprecated="not deprecated">
  24616. <doc>
  24617. <![CDATA[Creates a new instance of GangliaContext]]>
  24618. </doc>
  24619. </constructor>
  24620. <method name="init"
  24621. abstract="false" native="false" synchronized="false"
  24622. static="false" final="false" visibility="public"
  24623. deprecated="not deprecated">
  24624. <param name="contextName" type="java.lang.String"/>
  24625. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24626. </method>
  24627. <method name="emitRecord"
  24628. abstract="false" native="false" synchronized="false"
  24629. static="false" final="false" visibility="public"
  24630. deprecated="not deprecated">
  24631. <param name="contextName" type="java.lang.String"/>
  24632. <param name="recordName" type="java.lang.String"/>
  24633. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24634. <exception name="IOException" type="java.io.IOException"/>
  24635. </method>
  24636. <method name="emitMetric"
  24637. abstract="false" native="false" synchronized="false"
  24638. static="false" final="false" visibility="protected"
  24639. deprecated="not deprecated">
  24640. <param name="name" type="java.lang.String"/>
  24641. <param name="type" type="java.lang.String"/>
  24642. <param name="value" type="java.lang.String"/>
  24643. <exception name="IOException" type="java.io.IOException"/>
  24644. </method>
  24645. <method name="getUnits" return="java.lang.String"
  24646. abstract="false" native="false" synchronized="false"
  24647. static="false" final="false" visibility="protected"
  24648. deprecated="not deprecated">
  24649. <param name="metricName" type="java.lang.String"/>
  24650. </method>
  24651. <method name="getSlope" return="int"
  24652. abstract="false" native="false" synchronized="false"
  24653. static="false" final="false" visibility="protected"
  24654. deprecated="not deprecated">
  24655. <param name="metricName" type="java.lang.String"/>
  24656. </method>
  24657. <method name="getTmax" return="int"
  24658. abstract="false" native="false" synchronized="false"
  24659. static="false" final="false" visibility="protected"
  24660. deprecated="not deprecated">
  24661. <param name="metricName" type="java.lang.String"/>
  24662. </method>
  24663. <method name="getDmax" return="int"
  24664. abstract="false" native="false" synchronized="false"
  24665. static="false" final="false" visibility="protected"
  24666. deprecated="not deprecated">
  24667. <param name="metricName" type="java.lang.String"/>
  24668. </method>
  24669. <method name="xdr_string"
  24670. abstract="false" native="false" synchronized="false"
  24671. static="false" final="false" visibility="protected"
  24672. deprecated="not deprecated">
  24673. <param name="s" type="java.lang.String"/>
  24674. <doc>
  24675. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24676. as an int, followed by the bytes of the string, padded if necessary to
  24677. a multiple of 4.]]>
  24678. </doc>
  24679. </method>
  24680. <method name="xdr_int"
  24681. abstract="false" native="false" synchronized="false"
  24682. static="false" final="false" visibility="protected"
  24683. deprecated="not deprecated">
  24684. <param name="i" type="int"/>
  24685. <doc>
  24686. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  24687. </doc>
  24688. </method>
  24689. <field name="buffer" type="byte[]"
  24690. transient="false" volatile="false"
  24691. static="false" final="false" visibility="protected"
  24692. deprecated="not deprecated">
  24693. </field>
  24694. <field name="offset" type="int"
  24695. transient="false" volatile="false"
  24696. static="false" final="false" visibility="protected"
  24697. deprecated="not deprecated">
  24698. </field>
  24699. <field name="metricsServers" type="java.util.List"
  24700. transient="false" volatile="false"
  24701. static="false" final="false" visibility="protected"
  24702. deprecated="not deprecated">
  24703. </field>
  24704. <field name="datagramSocket" type="java.net.DatagramSocket"
  24705. transient="false" volatile="false"
  24706. static="false" final="false" visibility="protected"
  24707. deprecated="not deprecated">
  24708. </field>
  24709. <doc>
  24710. <![CDATA[Context for sending metrics to Ganglia.
  24711. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24712. </doc>
  24713. </class>
  24714. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24715. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  24716. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  24717. abstract="false"
  24718. static="false" final="false" visibility="public"
  24719. deprecated="not deprecated">
  24720. <constructor name="GangliaContext31"
  24721. static="false" final="false" visibility="public"
  24722. deprecated="not deprecated">
  24723. </constructor>
  24724. <method name="init"
  24725. abstract="false" native="false" synchronized="false"
  24726. static="false" final="false" visibility="public"
  24727. deprecated="not deprecated">
  24728. <param name="contextName" type="java.lang.String"/>
  24729. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24730. </method>
  24731. <method name="emitMetric"
  24732. abstract="false" native="false" synchronized="false"
  24733. static="false" final="false" visibility="protected"
  24734. deprecated="not deprecated">
  24735. <param name="name" type="java.lang.String"/>
  24736. <param name="type" type="java.lang.String"/>
  24737. <param name="value" type="java.lang.String"/>
  24738. <exception name="IOException" type="java.io.IOException"/>
  24739. </method>
  24740. <doc>
  24741. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  24742. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  24743. </doc>
  24744. </class>
  24745. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  24746. </package>
  24747. <package name="org.apache.hadoop.metrics.jvm">
  24748. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  24749. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  24750. abstract="false"
  24751. static="false" final="false" visibility="public"
  24752. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  24753. <constructor name="EventCounter"
  24754. static="false" final="false" visibility="public"
  24755. deprecated="not deprecated">
  24756. </constructor>
  24757. <doc>
  24758. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24759. fatal, error and warn.
  24760. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  24761. </doc>
  24762. </class>
  24763. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  24764. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  24765. <class name="JvmMetrics" extends="java.lang.Object"
  24766. abstract="false"
  24767. static="false" final="false" visibility="public"
  24768. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24769. <implements name="org.apache.hadoop.metrics.Updater"/>
  24770. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  24771. abstract="false" native="false" synchronized="true"
  24772. static="true" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. <param name="processName" type="java.lang.String"/>
  24775. <param name="sessionId" type="java.lang.String"/>
  24776. </method>
  24777. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  24778. abstract="false" native="false" synchronized="true"
  24779. static="true" final="false" visibility="public"
  24780. deprecated="not deprecated">
  24781. <param name="processName" type="java.lang.String"/>
  24782. <param name="sessionId" type="java.lang.String"/>
  24783. <param name="recordName" type="java.lang.String"/>
  24784. </method>
  24785. <method name="doUpdates"
  24786. abstract="false" native="false" synchronized="false"
  24787. static="false" final="false" visibility="public"
  24788. deprecated="not deprecated">
  24789. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24790. <doc>
  24791. <![CDATA[This will be called periodically (with the period being configuration
  24792. dependent).]]>
  24793. </doc>
  24794. </method>
  24795. <doc>
  24796. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  24797. Any application can create an instance of this class in order to emit
  24798. Java VM metrics.
  24799. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24800. </doc>
  24801. </class>
  24802. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  24803. </package>
  24804. <package name="org.apache.hadoop.metrics.spi">
  24805. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24806. <class name="AbstractMetricsContext" extends="java.lang.Object"
  24807. abstract="true"
  24808. static="false" final="false" visibility="public"
  24809. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24810. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  24811. <constructor name="AbstractMetricsContext"
  24812. static="false" final="false" visibility="protected"
  24813. deprecated="not deprecated">
  24814. <doc>
  24815. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  24816. </doc>
  24817. </constructor>
  24818. <method name="init"
  24819. abstract="false" native="false" synchronized="false"
  24820. static="false" final="false" visibility="public"
  24821. deprecated="not deprecated">
  24822. <param name="contextName" type="java.lang.String"/>
  24823. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24824. <doc>
  24825. <![CDATA[Initializes the context.]]>
  24826. </doc>
  24827. </method>
  24828. <method name="getAttribute" return="java.lang.String"
  24829. abstract="false" native="false" synchronized="false"
  24830. static="false" final="false" visibility="protected"
  24831. deprecated="not deprecated">
  24832. <param name="attributeName" type="java.lang.String"/>
  24833. <doc>
  24834. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  24835. </doc>
  24836. </method>
  24837. <method name="getAttributeTable" return="java.util.Map"
  24838. abstract="false" native="false" synchronized="false"
  24839. static="false" final="false" visibility="protected"
  24840. deprecated="not deprecated">
  24841. <param name="tableName" type="java.lang.String"/>
  24842. <doc>
  24843. <![CDATA[Returns an attribute-value map derived from the factory attributes
  24844. by finding all factory attributes that begin with
  24845. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  24846. those attributes with the contextName and tableName stripped off.]]>
  24847. </doc>
  24848. </method>
  24849. <method name="getContextName" return="java.lang.String"
  24850. abstract="false" native="false" synchronized="false"
  24851. static="false" final="false" visibility="public"
  24852. deprecated="not deprecated">
  24853. <doc>
  24854. <![CDATA[Returns the context name.]]>
  24855. </doc>
  24856. </method>
  24857. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24858. abstract="false" native="false" synchronized="false"
  24859. static="false" final="false" visibility="public"
  24860. deprecated="not deprecated">
  24861. <doc>
  24862. <![CDATA[Returns the factory by which this context was created.]]>
  24863. </doc>
  24864. </method>
  24865. <method name="startMonitoring"
  24866. abstract="false" native="false" synchronized="true"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. <exception name="IOException" type="java.io.IOException"/>
  24870. <doc>
  24871. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  24872. </doc>
  24873. </method>
  24874. <method name="stopMonitoring"
  24875. abstract="false" native="false" synchronized="true"
  24876. static="false" final="false" visibility="public"
  24877. deprecated="not deprecated">
  24878. <doc>
  24879. <![CDATA[Stops monitoring. This does not free buffered data.
  24880. @see #close()]]>
  24881. </doc>
  24882. </method>
  24883. <method name="isMonitoring" return="boolean"
  24884. abstract="false" native="false" synchronized="false"
  24885. static="false" final="false" visibility="public"
  24886. deprecated="not deprecated">
  24887. <doc>
  24888. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24889. </doc>
  24890. </method>
  24891. <method name="close"
  24892. abstract="false" native="false" synchronized="true"
  24893. static="false" final="false" visibility="public"
  24894. deprecated="not deprecated">
  24895. <doc>
  24896. <![CDATA[Stops monitoring and frees buffered data, returning this
  24897. object to its initial state.]]>
  24898. </doc>
  24899. </method>
  24900. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24901. abstract="false" native="false" synchronized="true"
  24902. static="false" final="true" visibility="public"
  24903. deprecated="not deprecated">
  24904. <param name="recordName" type="java.lang.String"/>
  24905. <doc>
  24906. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  24907. Throws an exception if the metrics implementation is configured with a fixed
  24908. set of record names and <code>recordName</code> is not in that set.
  24909. @param recordName the name of the record
  24910. @throws MetricsException if recordName conflicts with configuration data]]>
  24911. </doc>
  24912. </method>
  24913. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24914. abstract="false" native="false" synchronized="false"
  24915. static="false" final="false" visibility="protected"
  24916. deprecated="not deprecated">
  24917. <param name="recordName" type="java.lang.String"/>
  24918. <doc>
  24919. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  24920. @param recordName the name of the record
  24921. @return newly created instance of MetricsRecordImpl or subclass]]>
  24922. </doc>
  24923. </method>
  24924. <method name="registerUpdater"
  24925. abstract="false" native="false" synchronized="true"
  24926. static="false" final="false" visibility="public"
  24927. deprecated="not deprecated">
  24928. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24929. <doc>
  24930. <![CDATA[Registers a callback to be called at time intervals determined by
  24931. the configuration.
  24932. @param updater object to be run periodically; it should update
  24933. some metrics records]]>
  24934. </doc>
  24935. </method>
  24936. <method name="unregisterUpdater"
  24937. abstract="false" native="false" synchronized="true"
  24938. static="false" final="false" visibility="public"
  24939. deprecated="not deprecated">
  24940. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24941. <doc>
  24942. <![CDATA[Removes a callback, if it exists.
  24943. @param updater object to be removed from the callback list]]>
  24944. </doc>
  24945. </method>
  24946. <method name="getAllRecords" return="java.util.Map"
  24947. abstract="false" native="false" synchronized="true"
  24948. static="false" final="false" visibility="public"
  24949. deprecated="not deprecated">
  24950. <doc>
  24951. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24952. Useful for monitoring systems that are polling-based.
  24953. @return A non-null collection of all monitoring records.]]>
  24954. </doc>
  24955. </method>
  24956. <method name="emitRecord"
  24957. abstract="true" native="false" synchronized="false"
  24958. static="false" final="false" visibility="protected"
  24959. deprecated="not deprecated">
  24960. <param name="contextName" type="java.lang.String"/>
  24961. <param name="recordName" type="java.lang.String"/>
  24962. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24963. <exception name="IOException" type="java.io.IOException"/>
  24964. <doc>
  24965. <![CDATA[Sends a record to the metrics system.]]>
  24966. </doc>
  24967. </method>
  24968. <method name="flush"
  24969. abstract="false" native="false" synchronized="false"
  24970. static="false" final="false" visibility="protected"
  24971. deprecated="not deprecated">
  24972. <exception name="IOException" type="java.io.IOException"/>
  24973. <doc>
  24974. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  24975. Subclasses may override it in order to perform some kind of flush.]]>
  24976. </doc>
  24977. </method>
  24978. <method name="update"
  24979. abstract="false" native="false" synchronized="false"
  24980. static="false" final="false" visibility="protected"
  24981. deprecated="not deprecated">
  24982. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24983. <doc>
  24984. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  24985. the internal table of metric data.]]>
  24986. </doc>
  24987. </method>
  24988. <method name="remove"
  24989. abstract="false" native="false" synchronized="false"
  24990. static="false" final="false" visibility="protected"
  24991. deprecated="not deprecated">
  24992. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24993. <doc>
  24994. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  24995. the internal table of metric data. A row matches if it has the same
  24996. tag names and values as record, but it may also have additional
  24997. tags.]]>
  24998. </doc>
  24999. </method>
  25000. <method name="getPeriod" return="int"
  25001. abstract="false" native="false" synchronized="false"
  25002. static="false" final="false" visibility="public"
  25003. deprecated="not deprecated">
  25004. <doc>
  25005. <![CDATA[Returns the timer period.]]>
  25006. </doc>
  25007. </method>
  25008. <method name="setPeriod"
  25009. abstract="false" native="false" synchronized="false"
  25010. static="false" final="false" visibility="protected"
  25011. deprecated="not deprecated">
  25012. <param name="period" type="int"/>
  25013. <doc>
  25014. <![CDATA[Sets the timer period]]>
  25015. </doc>
  25016. </method>
  25017. <method name="parseAndSetPeriod"
  25018. abstract="false" native="false" synchronized="false"
  25019. static="false" final="false" visibility="protected"
  25020. deprecated="not deprecated">
  25021. <param name="attributeName" type="java.lang.String"/>
  25022. <doc>
  25023. <![CDATA[If a period is set in the attribute passed in, override
  25024. the default with it.]]>
  25025. </doc>
  25026. </method>
  25027. <doc>
  25028. <![CDATA[The main class of the Service Provider Interface. This class should be
  25029. extended in order to integrate the Metrics API with a specific metrics
  25030. client library. <p/>
  25031. This class implements the internal table of metric data, and the timer
  25032. on which data is to be sent to the metrics system. Subclasses must
  25033. override the abstract <code>emitRecord</code> method in order to transmit
  25034. the data. <p/>
  25035. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25036. </doc>
  25037. </class>
  25038. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25039. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25040. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  25041. abstract="false"
  25042. static="true" final="false" visibility="public"
  25043. deprecated="not deprecated">
  25044. </class>
  25045. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25046. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25047. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  25048. abstract="false"
  25049. static="true" final="false" visibility="public"
  25050. deprecated="not deprecated">
  25051. <method name="containsAll" return="boolean"
  25052. abstract="false" native="false" synchronized="false"
  25053. static="false" final="false" visibility="public"
  25054. deprecated="not deprecated">
  25055. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  25056. <doc>
  25057. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  25058. </doc>
  25059. </method>
  25060. </class>
  25061. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25062. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  25063. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25064. abstract="false"
  25065. static="false" final="false" visibility="public"
  25066. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25067. <constructor name="CompositeContext"
  25068. static="false" final="false" visibility="public"
  25069. deprecated="not deprecated">
  25070. </constructor>
  25071. <method name="init"
  25072. abstract="false" native="false" synchronized="false"
  25073. static="false" final="false" visibility="public"
  25074. deprecated="not deprecated">
  25075. <param name="contextName" type="java.lang.String"/>
  25076. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25077. </method>
  25078. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25079. abstract="false" native="false" synchronized="false"
  25080. static="false" final="false" visibility="public"
  25081. deprecated="not deprecated">
  25082. <param name="recordName" type="java.lang.String"/>
  25083. </method>
  25084. <method name="emitRecord"
  25085. abstract="false" native="false" synchronized="false"
  25086. static="false" final="false" visibility="protected"
  25087. deprecated="not deprecated">
  25088. <param name="contextName" type="java.lang.String"/>
  25089. <param name="recordName" type="java.lang.String"/>
  25090. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25091. <exception name="IOException" type="java.io.IOException"/>
  25092. </method>
  25093. <method name="flush"
  25094. abstract="false" native="false" synchronized="false"
  25095. static="false" final="false" visibility="protected"
  25096. deprecated="not deprecated">
  25097. <exception name="IOException" type="java.io.IOException"/>
  25098. </method>
  25099. <method name="startMonitoring"
  25100. abstract="false" native="false" synchronized="false"
  25101. static="false" final="false" visibility="public"
  25102. deprecated="not deprecated">
  25103. <exception name="IOException" type="java.io.IOException"/>
  25104. </method>
  25105. <method name="stopMonitoring"
  25106. abstract="false" native="false" synchronized="false"
  25107. static="false" final="false" visibility="public"
  25108. deprecated="not deprecated">
  25109. </method>
  25110. <method name="isMonitoring" return="boolean"
  25111. abstract="false" native="false" synchronized="false"
  25112. static="false" final="false" visibility="public"
  25113. deprecated="not deprecated">
  25114. <doc>
  25115. <![CDATA[Return true if all subcontexts are monitoring.]]>
  25116. </doc>
  25117. </method>
  25118. <method name="close"
  25119. abstract="false" native="false" synchronized="false"
  25120. static="false" final="false" visibility="public"
  25121. deprecated="not deprecated">
  25122. </method>
  25123. <method name="registerUpdater"
  25124. abstract="false" native="false" synchronized="false"
  25125. static="false" final="false" visibility="public"
  25126. deprecated="not deprecated">
  25127. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25128. </method>
  25129. <method name="unregisterUpdater"
  25130. abstract="false" native="false" synchronized="false"
  25131. static="false" final="false" visibility="public"
  25132. deprecated="not deprecated">
  25133. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25134. </method>
  25135. <doc>
  25136. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25137. </doc>
  25138. </class>
  25139. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  25140. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25141. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25142. abstract="false"
  25143. static="false" final="false" visibility="public"
  25144. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25145. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  25146. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25147. static="false" final="false" visibility="protected"
  25148. deprecated="not deprecated">
  25149. <doc>
  25150. <![CDATA[Creates a new instance of FileRecord]]>
  25151. </doc>
  25152. </constructor>
  25153. <method name="getRecordName" return="java.lang.String"
  25154. abstract="false" native="false" synchronized="false"
  25155. static="false" final="false" visibility="public"
  25156. deprecated="not deprecated">
  25157. <doc>
  25158. <![CDATA[Returns the record name.
  25159. @return the record name]]>
  25160. </doc>
  25161. </method>
  25162. <method name="setTag"
  25163. abstract="false" native="false" synchronized="false"
  25164. static="false" final="false" visibility="public"
  25165. deprecated="not deprecated">
  25166. <param name="tagName" type="java.lang.String"/>
  25167. <param name="tagValue" type="java.lang.String"/>
  25168. <doc>
  25169. <![CDATA[Sets the named tag to the specified value.
  25170. @param tagName name of the tag
  25171. @param tagValue new value of the tag
  25172. @throws MetricsException if the tagName conflicts with the configuration]]>
  25173. </doc>
  25174. </method>
  25175. <method name="setTag"
  25176. abstract="false" native="false" synchronized="false"
  25177. static="false" final="false" visibility="public"
  25178. deprecated="not deprecated">
  25179. <param name="tagName" type="java.lang.String"/>
  25180. <param name="tagValue" type="int"/>
  25181. <doc>
  25182. <![CDATA[Sets the named tag to the specified value.
  25183. @param tagName name of the tag
  25184. @param tagValue new value of the tag
  25185. @throws MetricsException if the tagName conflicts with the configuration]]>
  25186. </doc>
  25187. </method>
  25188. <method name="setTag"
  25189. abstract="false" native="false" synchronized="false"
  25190. static="false" final="false" visibility="public"
  25191. deprecated="not deprecated">
  25192. <param name="tagName" type="java.lang.String"/>
  25193. <param name="tagValue" type="long"/>
  25194. <doc>
  25195. <![CDATA[Sets the named tag to the specified value.
  25196. @param tagName name of the tag
  25197. @param tagValue new value of the tag
  25198. @throws MetricsException if the tagName conflicts with the configuration]]>
  25199. </doc>
  25200. </method>
  25201. <method name="setTag"
  25202. abstract="false" native="false" synchronized="false"
  25203. static="false" final="false" visibility="public"
  25204. deprecated="not deprecated">
  25205. <param name="tagName" type="java.lang.String"/>
  25206. <param name="tagValue" type="short"/>
  25207. <doc>
  25208. <![CDATA[Sets the named tag to the specified value.
  25209. @param tagName name of the tag
  25210. @param tagValue new value of the tag
  25211. @throws MetricsException if the tagName conflicts with the configuration]]>
  25212. </doc>
  25213. </method>
  25214. <method name="setTag"
  25215. abstract="false" native="false" synchronized="false"
  25216. static="false" final="false" visibility="public"
  25217. deprecated="not deprecated">
  25218. <param name="tagName" type="java.lang.String"/>
  25219. <param name="tagValue" type="byte"/>
  25220. <doc>
  25221. <![CDATA[Sets the named tag to the specified value.
  25222. @param tagName name of the tag
  25223. @param tagValue new value of the tag
  25224. @throws MetricsException if the tagName conflicts with the configuration]]>
  25225. </doc>
  25226. </method>
  25227. <method name="removeTag"
  25228. abstract="false" native="false" synchronized="false"
  25229. static="false" final="false" visibility="public"
  25230. deprecated="not deprecated">
  25231. <param name="tagName" type="java.lang.String"/>
  25232. <doc>
  25233. <![CDATA[Removes any tag of the specified name.]]>
  25234. </doc>
  25235. </method>
  25236. <method name="setMetric"
  25237. abstract="false" native="false" synchronized="false"
  25238. static="false" final="false" visibility="public"
  25239. deprecated="not deprecated">
  25240. <param name="metricName" type="java.lang.String"/>
  25241. <param name="metricValue" type="int"/>
  25242. <doc>
  25243. <![CDATA[Sets the named metric to the specified value.
  25244. @param metricName name of the metric
  25245. @param metricValue new value of the metric
  25246. @throws MetricsException if the metricName or the type of the metricValue
  25247. conflicts with the configuration]]>
  25248. </doc>
  25249. </method>
  25250. <method name="setMetric"
  25251. abstract="false" native="false" synchronized="false"
  25252. static="false" final="false" visibility="public"
  25253. deprecated="not deprecated">
  25254. <param name="metricName" type="java.lang.String"/>
  25255. <param name="metricValue" type="long"/>
  25256. <doc>
  25257. <![CDATA[Sets the named metric to the specified value.
  25258. @param metricName name of the metric
  25259. @param metricValue new value of the metric
  25260. @throws MetricsException if the metricName or the type of the metricValue
  25261. conflicts with the configuration]]>
  25262. </doc>
  25263. </method>
  25264. <method name="setMetric"
  25265. abstract="false" native="false" synchronized="false"
  25266. static="false" final="false" visibility="public"
  25267. deprecated="not deprecated">
  25268. <param name="metricName" type="java.lang.String"/>
  25269. <param name="metricValue" type="short"/>
  25270. <doc>
  25271. <![CDATA[Sets the named metric to the specified value.
  25272. @param metricName name of the metric
  25273. @param metricValue new value of the metric
  25274. @throws MetricsException if the metricName or the type of the metricValue
  25275. conflicts with the configuration]]>
  25276. </doc>
  25277. </method>
  25278. <method name="setMetric"
  25279. abstract="false" native="false" synchronized="false"
  25280. static="false" final="false" visibility="public"
  25281. deprecated="not deprecated">
  25282. <param name="metricName" type="java.lang.String"/>
  25283. <param name="metricValue" type="byte"/>
  25284. <doc>
  25285. <![CDATA[Sets the named metric to the specified value.
  25286. @param metricName name of the metric
  25287. @param metricValue new value of the metric
  25288. @throws MetricsException if the metricName or the type of the metricValue
  25289. conflicts with the configuration]]>
  25290. </doc>
  25291. </method>
  25292. <method name="setMetric"
  25293. abstract="false" native="false" synchronized="false"
  25294. static="false" final="false" visibility="public"
  25295. deprecated="not deprecated">
  25296. <param name="metricName" type="java.lang.String"/>
  25297. <param name="metricValue" type="float"/>
  25298. <doc>
  25299. <![CDATA[Sets the named metric to the specified value.
  25300. @param metricName name of the metric
  25301. @param metricValue new value of the metric
  25302. @throws MetricsException if the metricName or the type of the metricValue
  25303. conflicts with the configuration]]>
  25304. </doc>
  25305. </method>
  25306. <method name="incrMetric"
  25307. abstract="false" native="false" synchronized="false"
  25308. static="false" final="false" visibility="public"
  25309. deprecated="not deprecated">
  25310. <param name="metricName" type="java.lang.String"/>
  25311. <param name="metricValue" type="int"/>
  25312. <doc>
  25313. <![CDATA[Increments the named metric by the specified value.
  25314. @param metricName name of the metric
  25315. @param metricValue incremental value
  25316. @throws MetricsException if the metricName or the type of the metricValue
  25317. conflicts with the configuration]]>
  25318. </doc>
  25319. </method>
  25320. <method name="incrMetric"
  25321. abstract="false" native="false" synchronized="false"
  25322. static="false" final="false" visibility="public"
  25323. deprecated="not deprecated">
  25324. <param name="metricName" type="java.lang.String"/>
  25325. <param name="metricValue" type="long"/>
  25326. <doc>
  25327. <![CDATA[Increments the named metric by the specified value.
  25328. @param metricName name of the metric
  25329. @param metricValue incremental value
  25330. @throws MetricsException if the metricName or the type of the metricValue
  25331. conflicts with the configuration]]>
  25332. </doc>
  25333. </method>
  25334. <method name="incrMetric"
  25335. abstract="false" native="false" synchronized="false"
  25336. static="false" final="false" visibility="public"
  25337. deprecated="not deprecated">
  25338. <param name="metricName" type="java.lang.String"/>
  25339. <param name="metricValue" type="short"/>
  25340. <doc>
  25341. <![CDATA[Increments the named metric by the specified value.
  25342. @param metricName name of the metric
  25343. @param metricValue incremental value
  25344. @throws MetricsException if the metricName or the type of the metricValue
  25345. conflicts with the configuration]]>
  25346. </doc>
  25347. </method>
  25348. <method name="incrMetric"
  25349. abstract="false" native="false" synchronized="false"
  25350. static="false" final="false" visibility="public"
  25351. deprecated="not deprecated">
  25352. <param name="metricName" type="java.lang.String"/>
  25353. <param name="metricValue" type="byte"/>
  25354. <doc>
  25355. <![CDATA[Increments the named metric by the specified value.
  25356. @param metricName name of the metric
  25357. @param metricValue incremental value
  25358. @throws MetricsException if the metricName or the type of the metricValue
  25359. conflicts with the configuration]]>
  25360. </doc>
  25361. </method>
  25362. <method name="incrMetric"
  25363. abstract="false" native="false" synchronized="false"
  25364. static="false" final="false" visibility="public"
  25365. deprecated="not deprecated">
  25366. <param name="metricName" type="java.lang.String"/>
  25367. <param name="metricValue" type="float"/>
  25368. <doc>
  25369. <![CDATA[Increments the named metric by the specified value.
  25370. @param metricName name of the metric
  25371. @param metricValue incremental value
  25372. @throws MetricsException if the metricName or the type of the metricValue
  25373. conflicts with the configuration]]>
  25374. </doc>
  25375. </method>
  25376. <method name="update"
  25377. abstract="false" native="false" synchronized="false"
  25378. static="false" final="false" visibility="public"
  25379. deprecated="not deprecated">
  25380. <doc>
  25381. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25382. If the tag values match an existing row, that row is updated;
  25383. otherwise, a new row is added.]]>
  25384. </doc>
  25385. </method>
  25386. <method name="remove"
  25387. abstract="false" native="false" synchronized="false"
  25388. static="false" final="false" visibility="public"
  25389. deprecated="not deprecated">
  25390. <doc>
  25391. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25392. that equal the tags that have been set on this record.]]>
  25393. </doc>
  25394. </method>
  25395. <doc>
  25396. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25397. from which it was created, and delegates back to it on <code>update</code>
  25398. and <code>remove()</code>.
  25399. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25400. </doc>
  25401. </class>
  25402. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25403. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25404. <class name="MetricValue" extends="java.lang.Object"
  25405. abstract="false"
  25406. static="false" final="false" visibility="public"
  25407. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25408. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25409. static="false" final="false" visibility="public"
  25410. deprecated="not deprecated">
  25411. <doc>
  25412. <![CDATA[Creates a new instance of MetricValue]]>
  25413. </doc>
  25414. </constructor>
  25415. <method name="isIncrement" return="boolean"
  25416. abstract="false" native="false" synchronized="false"
  25417. static="false" final="false" visibility="public"
  25418. deprecated="not deprecated">
  25419. </method>
  25420. <method name="isAbsolute" return="boolean"
  25421. abstract="false" native="false" synchronized="false"
  25422. static="false" final="false" visibility="public"
  25423. deprecated="not deprecated">
  25424. </method>
  25425. <method name="getNumber" return="java.lang.Number"
  25426. abstract="false" native="false" synchronized="false"
  25427. static="false" final="false" visibility="public"
  25428. deprecated="not deprecated">
  25429. </method>
  25430. <field name="ABSOLUTE" type="boolean"
  25431. transient="false" volatile="false"
  25432. static="true" final="true" visibility="public"
  25433. deprecated="not deprecated">
  25434. </field>
  25435. <field name="INCREMENT" type="boolean"
  25436. transient="false" volatile="false"
  25437. static="true" final="true" visibility="public"
  25438. deprecated="not deprecated">
  25439. </field>
  25440. <doc>
  25441. <![CDATA[A Number that is either an absolute or an incremental amount.
  25442. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25443. </doc>
  25444. </class>
  25445. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25446. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25447. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25448. abstract="false"
  25449. static="false" final="false" visibility="public"
  25450. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25451. <constructor name="NoEmitMetricsContext"
  25452. static="false" final="false" visibility="public"
  25453. deprecated="not deprecated">
  25454. <doc>
  25455. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25456. </doc>
  25457. </constructor>
  25458. <method name="init"
  25459. abstract="false" native="false" synchronized="false"
  25460. static="false" final="false" visibility="public"
  25461. deprecated="not deprecated">
  25462. <param name="contextName" type="java.lang.String"/>
  25463. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25464. </method>
  25465. <method name="emitRecord"
  25466. abstract="false" native="false" synchronized="false"
  25467. static="false" final="false" visibility="protected"
  25468. deprecated="not deprecated">
  25469. <param name="contextName" type="java.lang.String"/>
  25470. <param name="recordName" type="java.lang.String"/>
  25471. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25472. <doc>
  25473. <![CDATA[Do-nothing version of emitRecord]]>
  25474. </doc>
  25475. </method>
  25476. <doc>
  25477. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25478. does save it for retrieval with getAllRecords().
  25479. This is useful if you want to support {@link MetricsServlet}, but
  25480. not emit metrics in any other way.
  25481. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25482. </doc>
  25483. </class>
  25484. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25485. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25486. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25487. abstract="false"
  25488. static="false" final="false" visibility="public"
  25489. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25490. <constructor name="NullContext"
  25491. static="false" final="false" visibility="public"
  25492. deprecated="not deprecated">
  25493. <doc>
  25494. <![CDATA[Creates a new instance of NullContext]]>
  25495. </doc>
  25496. </constructor>
  25497. <method name="startMonitoring"
  25498. abstract="false" native="false" synchronized="false"
  25499. static="false" final="false" visibility="public"
  25500. deprecated="not deprecated">
  25501. <doc>
  25502. <![CDATA[Do-nothing version of startMonitoring]]>
  25503. </doc>
  25504. </method>
  25505. <method name="emitRecord"
  25506. abstract="false" native="false" synchronized="false"
  25507. static="false" final="false" visibility="protected"
  25508. deprecated="not deprecated">
  25509. <param name="contextName" type="java.lang.String"/>
  25510. <param name="recordName" type="java.lang.String"/>
  25511. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25512. <doc>
  25513. <![CDATA[Do-nothing version of emitRecord]]>
  25514. </doc>
  25515. </method>
  25516. <method name="update"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="protected"
  25519. deprecated="not deprecated">
  25520. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25521. <doc>
  25522. <![CDATA[Do-nothing version of update]]>
  25523. </doc>
  25524. </method>
  25525. <method name="remove"
  25526. abstract="false" native="false" synchronized="false"
  25527. static="false" final="false" visibility="protected"
  25528. deprecated="not deprecated">
  25529. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25530. <doc>
  25531. <![CDATA[Do-nothing version of remove]]>
  25532. </doc>
  25533. </method>
  25534. <doc>
  25535. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25536. default context, so that no performance data is emitted if no configuration
  25537. data is found.
  25538. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25539. </doc>
  25540. </class>
  25541. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25542. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25543. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25544. abstract="false"
  25545. static="false" final="false" visibility="public"
  25546. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25547. <constructor name="NullContextWithUpdateThread"
  25548. static="false" final="false" visibility="public"
  25549. deprecated="not deprecated">
  25550. <doc>
  25551. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25552. </doc>
  25553. </constructor>
  25554. <method name="init"
  25555. abstract="false" native="false" synchronized="false"
  25556. static="false" final="false" visibility="public"
  25557. deprecated="not deprecated">
  25558. <param name="contextName" type="java.lang.String"/>
  25559. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25560. </method>
  25561. <method name="emitRecord"
  25562. abstract="false" native="false" synchronized="false"
  25563. static="false" final="false" visibility="protected"
  25564. deprecated="not deprecated">
  25565. <param name="contextName" type="java.lang.String"/>
  25566. <param name="recordName" type="java.lang.String"/>
  25567. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25568. <doc>
  25569. <![CDATA[Do-nothing version of emitRecord]]>
  25570. </doc>
  25571. </method>
  25572. <method name="update"
  25573. abstract="false" native="false" synchronized="false"
  25574. static="false" final="false" visibility="protected"
  25575. deprecated="not deprecated">
  25576. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25577. <doc>
  25578. <![CDATA[Do-nothing version of update]]>
  25579. </doc>
  25580. </method>
  25581. <method name="remove"
  25582. abstract="false" native="false" synchronized="false"
  25583. static="false" final="false" visibility="protected"
  25584. deprecated="not deprecated">
  25585. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25586. <doc>
  25587. <![CDATA[Do-nothing version of remove]]>
  25588. </doc>
  25589. </method>
  25590. <doc>
  25591. <![CDATA[A null context which has a thread calling
  25592. periodically when monitoring is started. This keeps the data sampled
  25593. correctly.
  25594. In all other respects, this is like the NULL context: No data is emitted.
  25595. This is suitable for Monitoring systems like JMX which reads the metrics
  25596. when someone reads the data from JMX.
  25597. The default impl of start and stop monitoring:
  25598. is the AbstractMetricsContext is good enough.
  25599. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25600. </doc>
  25601. </class>
  25602. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25603. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25604. <class name="OutputRecord" extends="java.lang.Object"
  25605. abstract="false"
  25606. static="false" final="false" visibility="public"
  25607. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25608. <method name="getTagNames" return="java.util.Set"
  25609. abstract="false" native="false" synchronized="false"
  25610. static="false" final="false" visibility="public"
  25611. deprecated="not deprecated">
  25612. <doc>
  25613. <![CDATA[Returns the set of tag names]]>
  25614. </doc>
  25615. </method>
  25616. <method name="getTag" return="java.lang.Object"
  25617. abstract="false" native="false" synchronized="false"
  25618. static="false" final="false" visibility="public"
  25619. deprecated="not deprecated">
  25620. <param name="name" type="java.lang.String"/>
  25621. <doc>
  25622. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25623. @return the tag value, or null if there is no such tag]]>
  25624. </doc>
  25625. </method>
  25626. <method name="getMetricNames" return="java.util.Set"
  25627. abstract="false" native="false" synchronized="false"
  25628. static="false" final="false" visibility="public"
  25629. deprecated="not deprecated">
  25630. <doc>
  25631. <![CDATA[Returns the set of metric names.]]>
  25632. </doc>
  25633. </method>
  25634. <method name="getMetric" return="java.lang.Number"
  25635. abstract="false" native="false" synchronized="false"
  25636. static="false" final="false" visibility="public"
  25637. deprecated="not deprecated">
  25638. <param name="name" type="java.lang.String"/>
  25639. <doc>
  25640. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25641. </doc>
  25642. </method>
  25643. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25644. abstract="false" native="false" synchronized="false"
  25645. static="false" final="false" visibility="public"
  25646. deprecated="not deprecated">
  25647. <doc>
  25648. <![CDATA[Returns a copy of this record's tags.]]>
  25649. </doc>
  25650. </method>
  25651. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25652. abstract="false" native="false" synchronized="false"
  25653. static="false" final="false" visibility="public"
  25654. deprecated="not deprecated">
  25655. <doc>
  25656. <![CDATA[Returns a copy of this record's metrics.]]>
  25657. </doc>
  25658. </method>
  25659. <doc>
  25660. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25661. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25662. </doc>
  25663. </class>
  25664. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25665. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25666. <class name="Util" extends="java.lang.Object"
  25667. abstract="false"
  25668. static="false" final="false" visibility="public"
  25669. deprecated="not deprecated">
  25670. <method name="parse" return="java.util.List"
  25671. abstract="false" native="false" synchronized="false"
  25672. static="true" final="false" visibility="public"
  25673. deprecated="not deprecated">
  25674. <param name="specs" type="java.lang.String"/>
  25675. <param name="defaultPort" type="int"/>
  25676. <doc>
  25677. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  25678. of the form <i>hostname</i> or <i>hostname:port</i>. If
  25679. the specs string is null, defaults to localhost:defaultPort.
  25680. @return a list of InetSocketAddress objects.]]>
  25681. </doc>
  25682. </method>
  25683. <doc>
  25684. <![CDATA[Static utility methods]]>
  25685. </doc>
  25686. </class>
  25687. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  25688. </package>
  25689. <package name="org.apache.hadoop.metrics.util">
  25690. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  25691. <class name="MBeanUtil" extends="java.lang.Object"
  25692. abstract="false"
  25693. static="false" final="false" visibility="public"
  25694. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  25695. <constructor name="MBeanUtil"
  25696. static="false" final="false" visibility="public"
  25697. deprecated="not deprecated">
  25698. </constructor>
  25699. <method name="registerMBean" return="javax.management.ObjectName"
  25700. abstract="false" native="false" synchronized="false"
  25701. static="true" final="false" visibility="public"
  25702. deprecated="not deprecated">
  25703. <param name="serviceName" type="java.lang.String"/>
  25704. <param name="nameName" type="java.lang.String"/>
  25705. <param name="theMbean" type="java.lang.Object"/>
  25706. <doc>
  25707. <![CDATA[Register the MBean using our standard MBeanName format
  25708. "hadoop:service=<serviceName>,name=<nameName>"
  25709. Where the <serviceName> and <nameName> are the supplied parameters
  25710. @param serviceName
  25711. @param nameName
  25712. @param theMbean - the MBean to register
  25713. @return the named used to register the MBean]]>
  25714. </doc>
  25715. </method>
  25716. <method name="unregisterMBean"
  25717. abstract="false" native="false" synchronized="false"
  25718. static="true" final="false" visibility="public"
  25719. deprecated="not deprecated">
  25720. <param name="mbeanName" type="javax.management.ObjectName"/>
  25721. </method>
  25722. <doc>
  25723. <![CDATA[This util class provides a method to register an MBean using
  25724. our standard naming convention as described in the doc
  25725. for {@link #registerMBean(String, String, Object)}
  25726. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  25727. </doc>
  25728. </class>
  25729. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  25730. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  25731. <class name="MetricsBase" extends="java.lang.Object"
  25732. abstract="true"
  25733. static="false" final="false" visibility="public"
  25734. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25735. <constructor name="MetricsBase" type="java.lang.String"
  25736. static="false" final="false" visibility="protected"
  25737. deprecated="not deprecated">
  25738. </constructor>
  25739. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  25740. static="false" final="false" visibility="protected"
  25741. deprecated="not deprecated">
  25742. </constructor>
  25743. <method name="pushMetric"
  25744. abstract="true" native="false" synchronized="false"
  25745. static="false" final="false" visibility="public"
  25746. deprecated="not deprecated">
  25747. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25748. </method>
  25749. <method name="getName" return="java.lang.String"
  25750. abstract="false" native="false" synchronized="false"
  25751. static="false" final="false" visibility="public"
  25752. deprecated="not deprecated">
  25753. </method>
  25754. <method name="getDescription" return="java.lang.String"
  25755. abstract="false" native="false" synchronized="false"
  25756. static="false" final="false" visibility="public"
  25757. deprecated="not deprecated">
  25758. </method>
  25759. <field name="NO_DESCRIPTION" type="java.lang.String"
  25760. transient="false" volatile="false"
  25761. static="true" final="true" visibility="public"
  25762. deprecated="not deprecated">
  25763. </field>
  25764. <doc>
  25765. <![CDATA[This is base class for all metrics
  25766. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25767. </doc>
  25768. </class>
  25769. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  25770. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  25771. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  25772. abstract="true"
  25773. static="false" final="false" visibility="public"
  25774. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25775. <implements name="javax.management.DynamicMBean"/>
  25776. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25777. static="false" final="false" visibility="protected"
  25778. deprecated="not deprecated">
  25779. </constructor>
  25780. <method name="getAttribute" return="java.lang.Object"
  25781. abstract="false" native="false" synchronized="false"
  25782. static="false" final="false" visibility="public"
  25783. deprecated="not deprecated">
  25784. <param name="attributeName" type="java.lang.String"/>
  25785. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  25786. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25787. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25788. </method>
  25789. <method name="getAttributes" return="javax.management.AttributeList"
  25790. abstract="false" native="false" synchronized="false"
  25791. static="false" final="false" visibility="public"
  25792. deprecated="not deprecated">
  25793. <param name="attributeNames" type="java.lang.String[]"/>
  25794. </method>
  25795. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  25796. abstract="false" native="false" synchronized="false"
  25797. static="false" final="false" visibility="public"
  25798. deprecated="not deprecated">
  25799. </method>
  25800. <method name="invoke" return="java.lang.Object"
  25801. abstract="false" native="false" synchronized="false"
  25802. static="false" final="false" visibility="public"
  25803. deprecated="not deprecated">
  25804. <param name="actionName" type="java.lang.String"/>
  25805. <param name="parms" type="java.lang.Object[]"/>
  25806. <param name="signature" type="java.lang.String[]"/>
  25807. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25808. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25809. </method>
  25810. <method name="setAttribute"
  25811. abstract="false" native="false" synchronized="false"
  25812. static="false" final="false" visibility="public"
  25813. deprecated="not deprecated">
  25814. <param name="attribute" type="javax.management.Attribute"/>
  25815. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  25816. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  25817. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25818. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25819. </method>
  25820. <method name="setAttributes" return="javax.management.AttributeList"
  25821. abstract="false" native="false" synchronized="false"
  25822. static="false" final="false" visibility="public"
  25823. deprecated="not deprecated">
  25824. <param name="attributes" type="javax.management.AttributeList"/>
  25825. </method>
  25826. <doc>
  25827. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  25828. metrics.
  25829. The metrics constructors registers metrics in a registry.
  25830. Different categories of metrics should be in differnt classes with their own
  25831. registry (as in NameNodeMetrics and DataNodeMetrics).
  25832. Then the MBean can be created passing the registry to the constructor.
  25833. The MBean should be then registered using a mbean name (example):
  25834. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  25835. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  25836. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  25837. "TestStatistics", theMBean);
  25838. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25839. </doc>
  25840. </class>
  25841. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  25842. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25843. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25844. abstract="false"
  25845. static="false" final="false" visibility="public"
  25846. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  25847. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25848. static="false" final="false" visibility="public"
  25849. deprecated="not deprecated">
  25850. <doc>
  25851. <![CDATA[Constructor - create a new metric
  25852. @param nam the name of the metrics to be used to publish the metric
  25853. @param registry - where the metrics object will be registered]]>
  25854. </doc>
  25855. </constructor>
  25856. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25857. static="false" final="false" visibility="public"
  25858. deprecated="not deprecated">
  25859. <doc>
  25860. <![CDATA[Constructor - create a new metric
  25861. @param nam the name of the metrics to be used to publish the metric
  25862. @param registry - where the metrics object will be registered
  25863. A description of {@link #NO_DESCRIPTION} is used]]>
  25864. </doc>
  25865. </constructor>
  25866. <method name="set"
  25867. abstract="false" native="false" synchronized="true"
  25868. static="false" final="false" visibility="public"
  25869. deprecated="not deprecated">
  25870. <param name="newValue" type="int"/>
  25871. <doc>
  25872. <![CDATA[Set the value
  25873. @param newValue]]>
  25874. </doc>
  25875. </method>
  25876. <method name="get" return="int"
  25877. abstract="false" native="false" synchronized="true"
  25878. static="false" final="false" visibility="public"
  25879. deprecated="not deprecated">
  25880. <doc>
  25881. <![CDATA[Get value
  25882. @return the value last set]]>
  25883. </doc>
  25884. </method>
  25885. <method name="pushMetric"
  25886. abstract="false" native="false" synchronized="true"
  25887. static="false" final="false" visibility="public"
  25888. deprecated="not deprecated">
  25889. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25890. <doc>
  25891. <![CDATA[Push the metric to the mr.
  25892. The metric is pushed only if it was updated since last push
  25893. Note this does NOT push to JMX
  25894. (JMX gets the info via {@link #get()}
  25895. @param mr]]>
  25896. </doc>
  25897. </method>
  25898. <doc>
  25899. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  25900. but changes only when it is set.
  25901. Each time its value is set, it is published only *once* at the next update
  25902. call.
  25903. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  25904. </doc>
  25905. </class>
  25906. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25907. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25908. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25909. abstract="false"
  25910. static="false" final="false" visibility="public"
  25911. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25912. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25913. static="false" final="false" visibility="public"
  25914. deprecated="not deprecated">
  25915. <doc>
  25916. <![CDATA[Constructor - create a new metric
  25917. @param nam the name of the metrics to be used to publish the metric
  25918. @param registry - where the metrics object will be registered]]>
  25919. </doc>
  25920. </constructor>
  25921. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25922. static="false" final="false" visibility="public"
  25923. deprecated="not deprecated">
  25924. <doc>
  25925. <![CDATA[Constructor - create a new metric
  25926. @param nam the name of the metrics to be used to publish the metric
  25927. @param registry - where the metrics object will be registered
  25928. A description of {@link #NO_DESCRIPTION} is used]]>
  25929. </doc>
  25930. </constructor>
  25931. <method name="set"
  25932. abstract="false" native="false" synchronized="true"
  25933. static="false" final="false" visibility="public"
  25934. deprecated="not deprecated">
  25935. <param name="newValue" type="long"/>
  25936. <doc>
  25937. <![CDATA[Set the value
  25938. @param newValue]]>
  25939. </doc>
  25940. </method>
  25941. <method name="get" return="long"
  25942. abstract="false" native="false" synchronized="true"
  25943. static="false" final="false" visibility="public"
  25944. deprecated="not deprecated">
  25945. <doc>
  25946. <![CDATA[Get value
  25947. @return the value last set]]>
  25948. </doc>
  25949. </method>
  25950. <method name="pushMetric"
  25951. abstract="false" native="false" synchronized="true"
  25952. static="false" final="false" visibility="public"
  25953. deprecated="not deprecated">
  25954. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25955. <doc>
  25956. <![CDATA[Push the metric to the mr.
  25957. The metric is pushed only if it was updated since last push
  25958. Note this does NOT push to JMX
  25959. (JMX gets the info via {@link #get()}
  25960. @param mr]]>
  25961. </doc>
  25962. </method>
  25963. <doc>
  25964. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  25965. but changes only when it is set.
  25966. Each time its value is set, it is published only *once* at the next update
  25967. call.
  25968. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25969. </doc>
  25970. </class>
  25971. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25972. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  25973. <class name="MetricsRegistry" extends="java.lang.Object"
  25974. abstract="false"
  25975. static="false" final="false" visibility="public"
  25976. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  25977. <constructor name="MetricsRegistry"
  25978. static="false" final="false" visibility="public"
  25979. deprecated="not deprecated">
  25980. </constructor>
  25981. <method name="size" return="int"
  25982. abstract="false" native="false" synchronized="false"
  25983. static="false" final="false" visibility="public"
  25984. deprecated="not deprecated">
  25985. <doc>
  25986. <![CDATA[@return number of metrics in the registry]]>
  25987. </doc>
  25988. </method>
  25989. <method name="add"
  25990. abstract="false" native="false" synchronized="true"
  25991. static="false" final="false" visibility="public"
  25992. deprecated="not deprecated">
  25993. <param name="metricsName" type="java.lang.String"/>
  25994. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  25995. <doc>
  25996. <![CDATA[Add a new metrics to the registry
  25997. @param metricsName - the name
  25998. @param theMetricsObj - the metrics
  25999. @throws IllegalArgumentException if a name is already registered]]>
  26000. </doc>
  26001. </method>
  26002. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  26003. abstract="false" native="false" synchronized="true"
  26004. static="false" final="false" visibility="public"
  26005. deprecated="not deprecated">
  26006. <param name="metricsName" type="java.lang.String"/>
  26007. <doc>
  26008. <![CDATA[@param metricsName
  26009. @return the metrics if there is one registered by the supplied name.
  26010. Returns null if none is registered]]>
  26011. </doc>
  26012. </method>
  26013. <method name="getKeyList" return="java.util.Collection"
  26014. abstract="false" native="false" synchronized="true"
  26015. static="false" final="false" visibility="public"
  26016. deprecated="not deprecated">
  26017. <doc>
  26018. <![CDATA[@return the list of metrics names]]>
  26019. </doc>
  26020. </method>
  26021. <method name="getMetricsList" return="java.util.Collection"
  26022. abstract="false" native="false" synchronized="true"
  26023. static="false" final="false" visibility="public"
  26024. deprecated="not deprecated">
  26025. <doc>
  26026. <![CDATA[@return the list of metrics]]>
  26027. </doc>
  26028. </method>
  26029. <doc>
  26030. <![CDATA[This is the registry for metrics.
  26031. Related set of metrics should be declared in a holding class and registered
  26032. in a registry for those metrics which is also stored in the the holding class.
  26033. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  26034. </doc>
  26035. </class>
  26036. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26037. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26038. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26039. abstract="false"
  26040. static="false" final="false" visibility="public"
  26041. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  26042. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26043. static="false" final="false" visibility="public"
  26044. deprecated="not deprecated">
  26045. <doc>
  26046. <![CDATA[Constructor - create a new metric
  26047. @param nam the name of the metrics to be used to publish the metric
  26048. @param registry - where the metrics object will be registered
  26049. @param description - the description]]>
  26050. </doc>
  26051. </constructor>
  26052. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26053. static="false" final="false" visibility="public"
  26054. deprecated="not deprecated">
  26055. <doc>
  26056. <![CDATA[Constructor - create a new metric
  26057. @param nam the name of the metrics to be used to publish the metric
  26058. @param registry - where the metrics object will be registered
  26059. A description of {@link #NO_DESCRIPTION} is used]]>
  26060. </doc>
  26061. </constructor>
  26062. <method name="inc"
  26063. abstract="false" native="false" synchronized="true"
  26064. static="false" final="false" visibility="public"
  26065. deprecated="not deprecated">
  26066. <param name="incr" type="int"/>
  26067. <doc>
  26068. <![CDATA[Inc metrics for incr vlaue
  26069. @param incr - number of operations]]>
  26070. </doc>
  26071. </method>
  26072. <method name="inc"
  26073. abstract="false" native="false" synchronized="true"
  26074. static="false" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. <doc>
  26077. <![CDATA[Inc metrics by one]]>
  26078. </doc>
  26079. </method>
  26080. <method name="pushMetric"
  26081. abstract="false" native="false" synchronized="true"
  26082. static="false" final="false" visibility="public"
  26083. deprecated="not deprecated">
  26084. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26085. <doc>
  26086. <![CDATA[Push the delta metrics to the mr.
  26087. The delta is since the last push/interval.
  26088. Note this does NOT push to JMX
  26089. (JMX gets the info via {@link #previousIntervalValue}
  26090. @param mr]]>
  26091. </doc>
  26092. </method>
  26093. <method name="getPreviousIntervalValue" return="int"
  26094. abstract="false" native="false" synchronized="true"
  26095. static="false" final="false" visibility="public"
  26096. deprecated="not deprecated">
  26097. <doc>
  26098. <![CDATA[The Value at the Previous interval
  26099. @return prev interval value]]>
  26100. </doc>
  26101. </method>
  26102. <method name="getCurrentIntervalValue" return="int"
  26103. abstract="false" native="false" synchronized="true"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <doc>
  26107. <![CDATA[The Value at the current interval
  26108. @return prev interval value]]>
  26109. </doc>
  26110. </method>
  26111. <doc>
  26112. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  26113. varies over time (e.g. number of files created). The metrics is accumulated
  26114. over an interval (set in the metrics config file); the metrics is
  26115. published at the end of each interval and then
  26116. reset to zero. Hence the counter has the value in the current interval.
  26117. Note if one wants a time associated with the metric then use
  26118. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26119. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  26120. </doc>
  26121. </class>
  26122. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26123. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26124. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26125. abstract="false"
  26126. static="false" final="false" visibility="public"
  26127. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  26128. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26129. static="false" final="false" visibility="public"
  26130. deprecated="not deprecated">
  26131. <doc>
  26132. <![CDATA[Constructor - create a new metric
  26133. @param nam the name of the metrics to be used to publish the metric
  26134. @param registry - where the metrics object will be registered]]>
  26135. </doc>
  26136. </constructor>
  26137. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26138. static="false" final="false" visibility="public"
  26139. deprecated="not deprecated">
  26140. <doc>
  26141. <![CDATA[Constructor - create a new metric
  26142. @param nam the name of the metrics to be used to publish the metric
  26143. @param registry - where the metrics object will be registered
  26144. A description of {@link #NO_DESCRIPTION} is used]]>
  26145. </doc>
  26146. </constructor>
  26147. <method name="inc"
  26148. abstract="false" native="false" synchronized="true"
  26149. static="false" final="false" visibility="public"
  26150. deprecated="not deprecated">
  26151. <param name="incr" type="long"/>
  26152. <doc>
  26153. <![CDATA[Inc metrics for incr vlaue
  26154. @param incr - number of operations]]>
  26155. </doc>
  26156. </method>
  26157. <method name="inc"
  26158. abstract="false" native="false" synchronized="true"
  26159. static="false" final="false" visibility="public"
  26160. deprecated="not deprecated">
  26161. <doc>
  26162. <![CDATA[Inc metrics by one]]>
  26163. </doc>
  26164. </method>
  26165. <method name="pushMetric"
  26166. abstract="false" native="false" synchronized="true"
  26167. static="false" final="false" visibility="public"
  26168. deprecated="not deprecated">
  26169. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26170. <doc>
  26171. <![CDATA[Push the delta metrics to the mr.
  26172. The delta is since the last push/interval.
  26173. Note this does NOT push to JMX
  26174. (JMX gets the info via {@link #previousIntervalValue}
  26175. @param mr]]>
  26176. </doc>
  26177. </method>
  26178. <method name="getPreviousIntervalValue" return="long"
  26179. abstract="false" native="false" synchronized="true"
  26180. static="false" final="false" visibility="public"
  26181. deprecated="not deprecated">
  26182. <doc>
  26183. <![CDATA[The Value at the Previous interval
  26184. @return prev interval value]]>
  26185. </doc>
  26186. </method>
  26187. <method name="getCurrentIntervalValue" return="long"
  26188. abstract="false" native="false" synchronized="true"
  26189. static="false" final="false" visibility="public"
  26190. deprecated="not deprecated">
  26191. <doc>
  26192. <![CDATA[The Value at the current interval
  26193. @return prev interval value]]>
  26194. </doc>
  26195. </method>
  26196. <doc>
  26197. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  26198. varies over time (e.g. number of files created). The metrics is accumulated
  26199. over an interval (set in the metrics config file); the metrics is
  26200. published at the end of each interval and then
  26201. reset to zero. Hence the counter has the value in the current interval.
  26202. Note if one wants a time associated with the metric then use
  26203. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26204. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  26205. </doc>
  26206. </class>
  26207. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26208. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26209. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26210. abstract="false"
  26211. static="false" final="false" visibility="public"
  26212. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  26213. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26214. static="false" final="false" visibility="public"
  26215. deprecated="not deprecated">
  26216. <doc>
  26217. <![CDATA[Constructor - create a new metric
  26218. @param nam the name of the metrics to be used to publish the metric
  26219. @param registry - where the metrics object will be registered]]>
  26220. </doc>
  26221. </constructor>
  26222. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26223. static="false" final="false" visibility="public"
  26224. deprecated="not deprecated">
  26225. <doc>
  26226. <![CDATA[Constructor - create a new metric
  26227. @param nam the name of the metrics to be used to publish the metric
  26228. @param registry - where the metrics object will be registered
  26229. A description of {@link #NO_DESCRIPTION} is used]]>
  26230. </doc>
  26231. </constructor>
  26232. <method name="inc"
  26233. abstract="false" native="false" synchronized="true"
  26234. static="false" final="false" visibility="public"
  26235. deprecated="not deprecated">
  26236. <param name="numOps" type="int"/>
  26237. <param name="time" type="long"/>
  26238. <doc>
  26239. <![CDATA[Increment the metrics for numOps operations
  26240. @param numOps - number of operations
  26241. @param time - time for numOps operations]]>
  26242. </doc>
  26243. </method>
  26244. <method name="inc"
  26245. abstract="false" native="false" synchronized="true"
  26246. static="false" final="false" visibility="public"
  26247. deprecated="not deprecated">
  26248. <param name="time" type="long"/>
  26249. <doc>
  26250. <![CDATA[Increment the metrics for one operation
  26251. @param time for one operation]]>
  26252. </doc>
  26253. </method>
  26254. <method name="pushMetric"
  26255. abstract="false" native="false" synchronized="true"
  26256. static="false" final="false" visibility="public"
  26257. deprecated="not deprecated">
  26258. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26259. <doc>
  26260. <![CDATA[Push the delta metrics to the mr.
  26261. The delta is since the last push/interval.
  26262. Note this does NOT push to JMX
  26263. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  26264. {@link #getPreviousIntervalNumOps()}
  26265. @param mr]]>
  26266. </doc>
  26267. </method>
  26268. <method name="getPreviousIntervalNumOps" return="int"
  26269. abstract="false" native="false" synchronized="true"
  26270. static="false" final="false" visibility="public"
  26271. deprecated="not deprecated">
  26272. <doc>
  26273. <![CDATA[The number of operations in the previous interval
  26274. @return - ops in prev interval]]>
  26275. </doc>
  26276. </method>
  26277. <method name="getPreviousIntervalAverageTime" return="long"
  26278. abstract="false" native="false" synchronized="true"
  26279. static="false" final="false" visibility="public"
  26280. deprecated="not deprecated">
  26281. <doc>
  26282. <![CDATA[The average rate of an operation in the previous interval
  26283. @return - the average rate.]]>
  26284. </doc>
  26285. </method>
  26286. <method name="getMinTime" return="long"
  26287. abstract="false" native="false" synchronized="true"
  26288. static="false" final="false" visibility="public"
  26289. deprecated="not deprecated">
  26290. <doc>
  26291. <![CDATA[The min time for a single operation since the last reset
  26292. {@link #resetMinMax()}
  26293. @return min time for an operation]]>
  26294. </doc>
  26295. </method>
  26296. <method name="getMaxTime" return="long"
  26297. abstract="false" native="false" synchronized="true"
  26298. static="false" final="false" visibility="public"
  26299. deprecated="not deprecated">
  26300. <doc>
  26301. <![CDATA[The max time for a single operation since the last reset
  26302. {@link #resetMinMax()}
  26303. @return max time for an operation]]>
  26304. </doc>
  26305. </method>
  26306. <method name="resetMinMax"
  26307. abstract="false" native="false" synchronized="true"
  26308. static="false" final="false" visibility="public"
  26309. deprecated="not deprecated">
  26310. <doc>
  26311. <![CDATA[Reset the min max values]]>
  26312. </doc>
  26313. </method>
  26314. <doc>
  26315. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  26316. naturally varies over time (e.g. time taken to create a file).
  26317. The rate is averaged at each interval heart beat (the interval
  26318. is set in the metrics config file).
  26319. This class also keeps track of the min and max rates along with
  26320. a method to reset the min-max.
  26321. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  26322. </doc>
  26323. </class>
  26324. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26325. </package>
  26326. <package name="org.apache.hadoop.metrics2">
  26327. <!-- start class org.apache.hadoop.metrics2.Metric -->
  26328. <class name="Metric" extends="java.lang.Object"
  26329. abstract="true"
  26330. static="false" final="false" visibility="public"
  26331. deprecated="not deprecated">
  26332. <constructor name="Metric" type="java.lang.String"
  26333. static="false" final="false" visibility="public"
  26334. deprecated="not deprecated">
  26335. <doc>
  26336. <![CDATA[Construct the metric with name only
  26337. @param name of the metric]]>
  26338. </doc>
  26339. </constructor>
  26340. <constructor name="Metric" type="java.lang.String, java.lang.String"
  26341. static="false" final="false" visibility="public"
  26342. deprecated="not deprecated">
  26343. <doc>
  26344. <![CDATA[Construct the metric with a name and a description
  26345. @param name of the metric
  26346. @param desc description of the metric]]>
  26347. </doc>
  26348. </constructor>
  26349. <method name="name" return="java.lang.String"
  26350. abstract="false" native="false" synchronized="false"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. <doc>
  26354. <![CDATA[Get the name of the metric
  26355. @return the name]]>
  26356. </doc>
  26357. </method>
  26358. <method name="description" return="java.lang.String"
  26359. abstract="false" native="false" synchronized="false"
  26360. static="false" final="false" visibility="public"
  26361. deprecated="not deprecated">
  26362. <doc>
  26363. <![CDATA[Get the description of the metric
  26364. @return the description]]>
  26365. </doc>
  26366. </method>
  26367. <method name="value" return="java.lang.Number"
  26368. abstract="true" native="false" synchronized="false"
  26369. static="false" final="false" visibility="public"
  26370. deprecated="not deprecated">
  26371. <doc>
  26372. <![CDATA[Get the value of the metric
  26373. @return the value of the metric]]>
  26374. </doc>
  26375. </method>
  26376. <method name="visit"
  26377. abstract="true" native="false" synchronized="false"
  26378. static="false" final="false" visibility="public"
  26379. deprecated="not deprecated">
  26380. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  26381. <doc>
  26382. <![CDATA[Accept a visitor interface
  26383. @param visitor of the metric]]>
  26384. </doc>
  26385. </method>
  26386. <method name="equals" return="boolean"
  26387. abstract="false" native="false" synchronized="false"
  26388. static="false" final="false" visibility="public"
  26389. deprecated="not deprecated">
  26390. <param name="obj" type="java.lang.Object"/>
  26391. </method>
  26392. <method name="hashCode" return="int"
  26393. abstract="false" native="false" synchronized="false"
  26394. static="false" final="false" visibility="public"
  26395. deprecated="not deprecated">
  26396. </method>
  26397. <method name="toString" return="java.lang.String"
  26398. abstract="false" native="false" synchronized="false"
  26399. static="false" final="false" visibility="public"
  26400. deprecated="not deprecated">
  26401. </method>
  26402. <field name="NO_DESCRIPTION" type="java.lang.String"
  26403. transient="false" volatile="false"
  26404. static="true" final="true" visibility="public"
  26405. deprecated="not deprecated">
  26406. </field>
  26407. <doc>
  26408. <![CDATA[The immutable metric]]>
  26409. </doc>
  26410. </class>
  26411. <!-- end class org.apache.hadoop.metrics2.Metric -->
  26412. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  26413. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  26414. abstract="true"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  26418. static="false" final="false" visibility="public"
  26419. deprecated="not deprecated">
  26420. <doc>
  26421. <![CDATA[Construct a counter metric
  26422. @param name of the metric
  26423. @param description of the metric]]>
  26424. </doc>
  26425. </constructor>
  26426. <method name="value" return="java.lang.Number"
  26427. abstract="true" native="false" synchronized="false"
  26428. static="false" final="false" visibility="public"
  26429. deprecated="not deprecated">
  26430. </method>
  26431. <doc>
  26432. <![CDATA[A generic immutable counter metric type
  26433. @param <T> value type of the metric]]>
  26434. </doc>
  26435. </class>
  26436. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  26437. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  26438. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  26439. abstract="true"
  26440. static="false" final="false" visibility="public"
  26441. deprecated="not deprecated">
  26442. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  26443. static="false" final="false" visibility="public"
  26444. deprecated="not deprecated">
  26445. <doc>
  26446. <![CDATA[Construct a gauge metric
  26447. @param name of the metric
  26448. @param description of the metric]]>
  26449. </doc>
  26450. </constructor>
  26451. <method name="value" return="java.lang.Number"
  26452. abstract="true" native="false" synchronized="false"
  26453. static="false" final="false" visibility="public"
  26454. deprecated="not deprecated">
  26455. </method>
  26456. <doc>
  26457. <![CDATA[A generic immutable gauge metric
  26458. @param <T> value type of the metric]]>
  26459. </doc>
  26460. </class>
  26461. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  26462. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26463. <interface name="MetricsBuilder" abstract="true"
  26464. static="false" final="false" visibility="public"
  26465. deprecated="not deprecated">
  26466. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26467. abstract="false" native="false" synchronized="false"
  26468. static="false" final="false" visibility="public"
  26469. deprecated="not deprecated">
  26470. <param name="name" type="java.lang.String"/>
  26471. <doc>
  26472. <![CDATA[Add a metrics record
  26473. @param name of the record
  26474. @return a metrics record builder for the record]]>
  26475. </doc>
  26476. </method>
  26477. <doc>
  26478. <![CDATA[The metrics builder interface]]>
  26479. </doc>
  26480. </interface>
  26481. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26482. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  26483. <class name="MetricsException" extends="java.lang.RuntimeException"
  26484. abstract="false"
  26485. static="false" final="false" visibility="public"
  26486. deprecated="not deprecated">
  26487. <constructor name="MetricsException" type="java.lang.String"
  26488. static="false" final="false" visibility="public"
  26489. deprecated="not deprecated">
  26490. <doc>
  26491. <![CDATA[Construct the exception with a message
  26492. @param message for the exception]]>
  26493. </doc>
  26494. </constructor>
  26495. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  26496. static="false" final="false" visibility="public"
  26497. deprecated="not deprecated">
  26498. <doc>
  26499. <![CDATA[Construct the exception with a message and a cause
  26500. @param message for the exception
  26501. @param cause of the exception]]>
  26502. </doc>
  26503. </constructor>
  26504. <constructor name="MetricsException" type="java.lang.Throwable"
  26505. static="false" final="false" visibility="public"
  26506. deprecated="not deprecated">
  26507. <doc>
  26508. <![CDATA[Construct the exception with a cause
  26509. @param cause of the exception]]>
  26510. </doc>
  26511. </constructor>
  26512. <doc>
  26513. <![CDATA[A general metrics exception wrapper]]>
  26514. </doc>
  26515. </class>
  26516. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  26517. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  26518. <class name="MetricsFilter" extends="java.lang.Object"
  26519. abstract="true"
  26520. static="false" final="false" visibility="public"
  26521. deprecated="not deprecated">
  26522. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26523. <constructor name="MetricsFilter"
  26524. static="false" final="false" visibility="public"
  26525. deprecated="not deprecated">
  26526. </constructor>
  26527. <method name="init"
  26528. abstract="true" native="false" synchronized="false"
  26529. static="false" final="false" visibility="public"
  26530. deprecated="not deprecated">
  26531. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26532. </method>
  26533. <method name="accepts" return="boolean"
  26534. abstract="true" native="false" synchronized="false"
  26535. static="false" final="false" visibility="public"
  26536. deprecated="not deprecated">
  26537. <param name="name" type="java.lang.String"/>
  26538. <doc>
  26539. <![CDATA[Whether to accept the name
  26540. @param name to filter on
  26541. @return true to accept; false otherwise.]]>
  26542. </doc>
  26543. </method>
  26544. <method name="accepts" return="boolean"
  26545. abstract="true" native="false" synchronized="false"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26549. <doc>
  26550. <![CDATA[Whether to accept the tag
  26551. @param tag to filter on
  26552. @return true to accept; false otherwise]]>
  26553. </doc>
  26554. </method>
  26555. <method name="accepts" return="boolean"
  26556. abstract="true" native="false" synchronized="false"
  26557. static="false" final="false" visibility="public"
  26558. deprecated="not deprecated">
  26559. <param name="tags" type="java.lang.Iterable"/>
  26560. <doc>
  26561. <![CDATA[Whether to accept the tags
  26562. @param tags to filter on
  26563. @return true to accept; false otherwise]]>
  26564. </doc>
  26565. </method>
  26566. <method name="accepts" return="boolean"
  26567. abstract="false" native="false" synchronized="false"
  26568. static="false" final="false" visibility="public"
  26569. deprecated="not deprecated">
  26570. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26571. <doc>
  26572. <![CDATA[Whether to accept the record
  26573. @param record to filter on
  26574. @return true to accept; false otherwise.]]>
  26575. </doc>
  26576. </method>
  26577. <doc>
  26578. <![CDATA[The metrics filter interface]]>
  26579. </doc>
  26580. </class>
  26581. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  26582. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26583. <interface name="MetricsPlugin" abstract="true"
  26584. static="false" final="false" visibility="public"
  26585. deprecated="not deprecated">
  26586. <method name="init"
  26587. abstract="false" native="false" synchronized="false"
  26588. static="false" final="false" visibility="public"
  26589. deprecated="not deprecated">
  26590. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26591. <doc>
  26592. <![CDATA[Initialize the plugin
  26593. @param conf the configuration object for the plugin]]>
  26594. </doc>
  26595. </method>
  26596. <doc>
  26597. <![CDATA[A fairly generic plugin interface]]>
  26598. </doc>
  26599. </interface>
  26600. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26601. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  26602. <interface name="MetricsRecord" abstract="true"
  26603. static="false" final="false" visibility="public"
  26604. deprecated="not deprecated">
  26605. <method name="timestamp" return="long"
  26606. abstract="false" native="false" synchronized="false"
  26607. static="false" final="false" visibility="public"
  26608. deprecated="not deprecated">
  26609. <doc>
  26610. <![CDATA[Get the timestamp of the metrics
  26611. @return the timestamp]]>
  26612. </doc>
  26613. </method>
  26614. <method name="name" return="java.lang.String"
  26615. abstract="false" native="false" synchronized="false"
  26616. static="false" final="false" visibility="public"
  26617. deprecated="not deprecated">
  26618. <doc>
  26619. <![CDATA[Get the record name of the metrics
  26620. @return the record name]]>
  26621. </doc>
  26622. </method>
  26623. <method name="context" return="java.lang.String"
  26624. abstract="false" native="false" synchronized="false"
  26625. static="false" final="false" visibility="public"
  26626. deprecated="not deprecated">
  26627. <doc>
  26628. <![CDATA[Get the context name of the metrics
  26629. @return the context name]]>
  26630. </doc>
  26631. </method>
  26632. <method name="tags" return="java.lang.Iterable"
  26633. abstract="false" native="false" synchronized="false"
  26634. static="false" final="false" visibility="public"
  26635. deprecated="not deprecated">
  26636. <doc>
  26637. <![CDATA[Get the tags of the record
  26638. @return the tags]]>
  26639. </doc>
  26640. </method>
  26641. <method name="metrics" return="java.lang.Iterable"
  26642. abstract="false" native="false" synchronized="false"
  26643. static="false" final="false" visibility="public"
  26644. deprecated="not deprecated">
  26645. <doc>
  26646. <![CDATA[Get the metrics of the record
  26647. @return the metrics]]>
  26648. </doc>
  26649. </method>
  26650. <doc>
  26651. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  26652. </doc>
  26653. </interface>
  26654. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  26655. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26656. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  26657. abstract="true"
  26658. static="false" final="false" visibility="public"
  26659. deprecated="not deprecated">
  26660. <constructor name="MetricsRecordBuilder"
  26661. static="false" final="false" visibility="public"
  26662. deprecated="not deprecated">
  26663. </constructor>
  26664. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26665. abstract="true" native="false" synchronized="false"
  26666. static="false" final="false" visibility="public"
  26667. deprecated="not deprecated">
  26668. <param name="name" type="java.lang.String"/>
  26669. <param name="description" type="java.lang.String"/>
  26670. <param name="value" type="java.lang.String"/>
  26671. <doc>
  26672. <![CDATA[Add a metrics tag
  26673. @param name of the tag
  26674. @param description of the tag
  26675. @param value of the tag
  26676. @return self]]>
  26677. </doc>
  26678. </method>
  26679. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26680. abstract="true" native="false" synchronized="false"
  26681. static="false" final="false" visibility="public"
  26682. deprecated="not deprecated">
  26683. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26684. <doc>
  26685. <![CDATA[Add an immutable metrics tag object
  26686. @param tag a pre-made tag object (potentially save an object construction)
  26687. @return self]]>
  26688. </doc>
  26689. </method>
  26690. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26691. abstract="true" native="false" synchronized="false"
  26692. static="false" final="false" visibility="public"
  26693. deprecated="not deprecated">
  26694. <param name="value" type="java.lang.String"/>
  26695. <doc>
  26696. <![CDATA[Set the context tag
  26697. @param value of the context
  26698. @return self]]>
  26699. </doc>
  26700. </method>
  26701. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26702. abstract="true" native="false" synchronized="false"
  26703. static="false" final="false" visibility="public"
  26704. deprecated="not deprecated">
  26705. <param name="name" type="java.lang.String"/>
  26706. <param name="description" type="java.lang.String"/>
  26707. <param name="value" type="int"/>
  26708. <doc>
  26709. <![CDATA[Add an int counter metric
  26710. @param name of the metric
  26711. @param description of the metric
  26712. @param value of the metric
  26713. @return self]]>
  26714. </doc>
  26715. </method>
  26716. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26717. abstract="true" native="false" synchronized="false"
  26718. static="false" final="false" visibility="public"
  26719. deprecated="not deprecated">
  26720. <param name="name" type="java.lang.String"/>
  26721. <param name="description" type="java.lang.String"/>
  26722. <param name="value" type="long"/>
  26723. <doc>
  26724. <![CDATA[Add an long counter metric
  26725. @param name of the metric
  26726. @param description of the metric
  26727. @param value of the metric
  26728. @return self]]>
  26729. </doc>
  26730. </method>
  26731. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26732. abstract="true" native="false" synchronized="false"
  26733. static="false" final="false" visibility="public"
  26734. deprecated="not deprecated">
  26735. <param name="name" type="java.lang.String"/>
  26736. <param name="description" type="java.lang.String"/>
  26737. <param name="value" type="int"/>
  26738. <doc>
  26739. <![CDATA[Add a int gauge metric
  26740. @param name of the metric
  26741. @param description of the metric
  26742. @param value of the metric
  26743. @return self]]>
  26744. </doc>
  26745. </method>
  26746. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26747. abstract="true" native="false" synchronized="false"
  26748. static="false" final="false" visibility="public"
  26749. deprecated="not deprecated">
  26750. <param name="name" type="java.lang.String"/>
  26751. <param name="description" type="java.lang.String"/>
  26752. <param name="value" type="long"/>
  26753. <doc>
  26754. <![CDATA[Add a long gauge metric
  26755. @param name of the metric
  26756. @param description of the metric
  26757. @param value of the metric
  26758. @return self]]>
  26759. </doc>
  26760. </method>
  26761. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26762. abstract="true" native="false" synchronized="false"
  26763. static="false" final="false" visibility="public"
  26764. deprecated="not deprecated">
  26765. <param name="name" type="java.lang.String"/>
  26766. <param name="description" type="java.lang.String"/>
  26767. <param name="value" type="float"/>
  26768. <doc>
  26769. <![CDATA[Add a float gauge metric
  26770. @param name of the metric
  26771. @param description of the metric
  26772. @param value of the metric
  26773. @return self]]>
  26774. </doc>
  26775. </method>
  26776. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26777. abstract="true" native="false" synchronized="false"
  26778. static="false" final="false" visibility="public"
  26779. deprecated="not deprecated">
  26780. <param name="name" type="java.lang.String"/>
  26781. <param name="description" type="java.lang.String"/>
  26782. <param name="value" type="double"/>
  26783. <doc>
  26784. <![CDATA[Add a double gauge metric
  26785. @param name of the metric
  26786. @param description of the metric
  26787. @param value of the metric
  26788. @return self]]>
  26789. </doc>
  26790. </method>
  26791. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26792. abstract="true" native="false" synchronized="false"
  26793. static="false" final="false" visibility="public"
  26794. deprecated="not deprecated">
  26795. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  26796. <doc>
  26797. <![CDATA[Add a pre-made immutable metric object
  26798. @param metric the pre-made metric to save an object construction
  26799. @return self]]>
  26800. </doc>
  26801. </method>
  26802. <doc>
  26803. <![CDATA[The metrics record builder interface]]>
  26804. </doc>
  26805. </class>
  26806. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26807. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  26808. <interface name="MetricsSink" abstract="true"
  26809. static="false" final="false" visibility="public"
  26810. deprecated="not deprecated">
  26811. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26812. <method name="putMetrics"
  26813. abstract="false" native="false" synchronized="false"
  26814. static="false" final="false" visibility="public"
  26815. deprecated="not deprecated">
  26816. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26817. <doc>
  26818. <![CDATA[Put a metrics record in the sink
  26819. @param record the record to put]]>
  26820. </doc>
  26821. </method>
  26822. <method name="flush"
  26823. abstract="false" native="false" synchronized="false"
  26824. static="false" final="false" visibility="public"
  26825. deprecated="not deprecated">
  26826. <doc>
  26827. <![CDATA[Flush any buffered metrics]]>
  26828. </doc>
  26829. </method>
  26830. <doc>
  26831. <![CDATA[The metrics sink interface]]>
  26832. </doc>
  26833. </interface>
  26834. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  26835. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  26836. <interface name="MetricsSource" abstract="true"
  26837. static="false" final="false" visibility="public"
  26838. deprecated="not deprecated">
  26839. <method name="getMetrics"
  26840. abstract="false" native="false" synchronized="false"
  26841. static="false" final="false" visibility="public"
  26842. deprecated="not deprecated">
  26843. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26844. <param name="all" type="boolean"/>
  26845. <doc>
  26846. <![CDATA[Get metrics from the source
  26847. @param builder to contain the resulting metrics snapshot
  26848. @param all if true, return all metrics even if unchanged.]]>
  26849. </doc>
  26850. </method>
  26851. <doc>
  26852. <![CDATA[The metrics source interface]]>
  26853. </doc>
  26854. </interface>
  26855. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  26856. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  26857. <interface name="MetricsSystem" abstract="true"
  26858. static="false" final="false" visibility="public"
  26859. deprecated="not deprecated">
  26860. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  26861. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26862. abstract="false" native="false" synchronized="false"
  26863. static="false" final="false" visibility="public"
  26864. deprecated="not deprecated">
  26865. <param name="name" type="java.lang.String"/>
  26866. <param name="desc" type="java.lang.String"/>
  26867. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26868. <doc>
  26869. <![CDATA[Register a metrics source
  26870. @param <T> the type of the source
  26871. @param source to register
  26872. @param name of the source. Must be unique.
  26873. @param desc the description of the source.
  26874. @return the source
  26875. @exception MetricsException]]>
  26876. </doc>
  26877. </method>
  26878. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26879. abstract="false" native="false" synchronized="false"
  26880. static="false" final="false" visibility="public"
  26881. deprecated="not deprecated">
  26882. <param name="name" type="java.lang.String"/>
  26883. <param name="desc" type="java.lang.String"/>
  26884. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26885. <doc>
  26886. <![CDATA[Register a metrics sink
  26887. @param <T> the type of the sink
  26888. @param sink to register
  26889. @param name of the sink. Must be unique.
  26890. @param desc the description of the sink
  26891. @return the sink
  26892. @exception MetricsException]]>
  26893. </doc>
  26894. </method>
  26895. <method name="register"
  26896. abstract="false" native="false" synchronized="false"
  26897. static="false" final="false" visibility="public"
  26898. deprecated="not deprecated">
  26899. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26900. <doc>
  26901. <![CDATA[Register a callback interface for JMX events
  26902. @param callback the callback object implementing the MBean interface.]]>
  26903. </doc>
  26904. </method>
  26905. <method name="shutdown"
  26906. abstract="false" native="false" synchronized="false"
  26907. static="false" final="false" visibility="public"
  26908. deprecated="not deprecated">
  26909. <doc>
  26910. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  26911. The MetricsSystemMXBean will be unregistered.]]>
  26912. </doc>
  26913. </method>
  26914. <doc>
  26915. <![CDATA[The metrics system interface]]>
  26916. </doc>
  26917. </interface>
  26918. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  26919. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26920. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  26921. abstract="true"
  26922. static="true" final="false" visibility="public"
  26923. deprecated="not deprecated">
  26924. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26925. <constructor name="MetricsSystem.AbstractCallback"
  26926. static="false" final="false" visibility="public"
  26927. deprecated="not deprecated">
  26928. </constructor>
  26929. <method name="preStart"
  26930. abstract="false" native="false" synchronized="false"
  26931. static="false" final="false" visibility="public"
  26932. deprecated="not deprecated">
  26933. </method>
  26934. <method name="postStart"
  26935. abstract="false" native="false" synchronized="false"
  26936. static="false" final="false" visibility="public"
  26937. deprecated="not deprecated">
  26938. </method>
  26939. <method name="preStop"
  26940. abstract="false" native="false" synchronized="false"
  26941. static="false" final="false" visibility="public"
  26942. deprecated="not deprecated">
  26943. </method>
  26944. <method name="postStop"
  26945. abstract="false" native="false" synchronized="false"
  26946. static="false" final="false" visibility="public"
  26947. deprecated="not deprecated">
  26948. </method>
  26949. <doc>
  26950. <![CDATA[Convenient abstract class for implementing callback interface]]>
  26951. </doc>
  26952. </class>
  26953. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26954. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  26955. <interface name="MetricsSystem.Callback" abstract="true"
  26956. static="true" final="false" visibility="public"
  26957. deprecated="not deprecated">
  26958. <method name="preStart"
  26959. abstract="false" native="false" synchronized="false"
  26960. static="false" final="false" visibility="public"
  26961. deprecated="not deprecated">
  26962. <doc>
  26963. <![CDATA[Called before start()]]>
  26964. </doc>
  26965. </method>
  26966. <method name="postStart"
  26967. abstract="false" native="false" synchronized="false"
  26968. static="false" final="false" visibility="public"
  26969. deprecated="not deprecated">
  26970. <doc>
  26971. <![CDATA[Called after start()]]>
  26972. </doc>
  26973. </method>
  26974. <method name="preStop"
  26975. abstract="false" native="false" synchronized="false"
  26976. static="false" final="false" visibility="public"
  26977. deprecated="not deprecated">
  26978. <doc>
  26979. <![CDATA[Called before stop()]]>
  26980. </doc>
  26981. </method>
  26982. <method name="postStop"
  26983. abstract="false" native="false" synchronized="false"
  26984. static="false" final="false" visibility="public"
  26985. deprecated="not deprecated">
  26986. <doc>
  26987. <![CDATA[Called after stop()]]>
  26988. </doc>
  26989. </method>
  26990. <doc>
  26991. <![CDATA[The metrics system callback interface]]>
  26992. </doc>
  26993. </interface>
  26994. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  26995. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26996. <interface name="MetricsSystemMXBean" abstract="true"
  26997. static="false" final="false" visibility="public"
  26998. deprecated="not deprecated">
  26999. <method name="start"
  27000. abstract="false" native="false" synchronized="false"
  27001. static="false" final="false" visibility="public"
  27002. deprecated="not deprecated">
  27003. <doc>
  27004. <![CDATA[Start the metrics system
  27005. @exception MetricsException]]>
  27006. </doc>
  27007. </method>
  27008. <method name="stop"
  27009. abstract="false" native="false" synchronized="false"
  27010. static="false" final="false" visibility="public"
  27011. deprecated="not deprecated">
  27012. <doc>
  27013. <![CDATA[Stop the metrics system
  27014. @exception MetricsException]]>
  27015. </doc>
  27016. </method>
  27017. <method name="refreshMBeans"
  27018. abstract="false" native="false" synchronized="false"
  27019. static="false" final="false" visibility="public"
  27020. deprecated="not deprecated">
  27021. <doc>
  27022. <![CDATA[Force a refresh of MBeans
  27023. @exception MetricsException]]>
  27024. </doc>
  27025. </method>
  27026. <method name="currentConfig" return="java.lang.String"
  27027. abstract="false" native="false" synchronized="false"
  27028. static="false" final="false" visibility="public"
  27029. deprecated="not deprecated">
  27030. <doc>
  27031. <![CDATA[@return the current config
  27032. Note, avoid getConfig, as it'll turn it into an attribute,
  27033. which doesn't support multiple lines in the values.
  27034. @exception MetricsException]]>
  27035. </doc>
  27036. </method>
  27037. <doc>
  27038. <![CDATA[The JMX interface to the metrics system]]>
  27039. </doc>
  27040. </interface>
  27041. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27042. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  27043. <class name="MetricsTag" extends="java.lang.Object"
  27044. abstract="false"
  27045. static="false" final="false" visibility="public"
  27046. deprecated="not deprecated">
  27047. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  27048. static="false" final="false" visibility="public"
  27049. deprecated="not deprecated">
  27050. <doc>
  27051. <![CDATA[Construct the tag with name, description and value
  27052. @param name of the tag
  27053. @param description of the tag
  27054. @param value of the tag]]>
  27055. </doc>
  27056. </constructor>
  27057. <method name="name" return="java.lang.String"
  27058. abstract="false" native="false" synchronized="false"
  27059. static="false" final="false" visibility="public"
  27060. deprecated="not deprecated">
  27061. <doc>
  27062. <![CDATA[Get the name of the tag
  27063. @return the name]]>
  27064. </doc>
  27065. </method>
  27066. <method name="description" return="java.lang.String"
  27067. abstract="false" native="false" synchronized="false"
  27068. static="false" final="false" visibility="public"
  27069. deprecated="not deprecated">
  27070. <doc>
  27071. <![CDATA[Get the description of the tag
  27072. @return the description]]>
  27073. </doc>
  27074. </method>
  27075. <method name="value" return="java.lang.String"
  27076. abstract="false" native="false" synchronized="false"
  27077. static="false" final="false" visibility="public"
  27078. deprecated="not deprecated">
  27079. <doc>
  27080. <![CDATA[Get the value of the tag
  27081. @return the value]]>
  27082. </doc>
  27083. </method>
  27084. <method name="equals" return="boolean"
  27085. abstract="false" native="false" synchronized="false"
  27086. static="false" final="false" visibility="public"
  27087. deprecated="not deprecated">
  27088. <param name="obj" type="java.lang.Object"/>
  27089. </method>
  27090. <method name="hashCode" return="int"
  27091. abstract="false" native="false" synchronized="false"
  27092. static="false" final="false" visibility="public"
  27093. deprecated="not deprecated">
  27094. </method>
  27095. <method name="toString" return="java.lang.String"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. </method>
  27100. <doc>
  27101. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  27102. </doc>
  27103. </class>
  27104. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  27105. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27106. <interface name="MetricsVisitor" abstract="true"
  27107. static="false" final="false" visibility="public"
  27108. deprecated="not deprecated">
  27109. <method name="gauge"
  27110. abstract="false" native="false" synchronized="false"
  27111. static="false" final="false" visibility="public"
  27112. deprecated="not deprecated">
  27113. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27114. <param name="value" type="int"/>
  27115. <doc>
  27116. <![CDATA[Callback for int value gauges
  27117. @param metric the metric object
  27118. @param value of the metric]]>
  27119. </doc>
  27120. </method>
  27121. <method name="gauge"
  27122. abstract="false" native="false" synchronized="false"
  27123. static="false" final="false" visibility="public"
  27124. deprecated="not deprecated">
  27125. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27126. <param name="value" type="long"/>
  27127. <doc>
  27128. <![CDATA[Callback for long value gauges
  27129. @param metric the metric object
  27130. @param value of the metric]]>
  27131. </doc>
  27132. </method>
  27133. <method name="gauge"
  27134. abstract="false" native="false" synchronized="false"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27138. <param name="value" type="float"/>
  27139. <doc>
  27140. <![CDATA[Callback for float value gauges
  27141. @param metric the metric object
  27142. @param value of the metric]]>
  27143. </doc>
  27144. </method>
  27145. <method name="gauge"
  27146. abstract="false" native="false" synchronized="false"
  27147. static="false" final="false" visibility="public"
  27148. deprecated="not deprecated">
  27149. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27150. <param name="value" type="double"/>
  27151. <doc>
  27152. <![CDATA[Callback for double value gauges
  27153. @param metric the metric object
  27154. @param value of the metric]]>
  27155. </doc>
  27156. </method>
  27157. <method name="counter"
  27158. abstract="false" native="false" synchronized="false"
  27159. static="false" final="false" visibility="public"
  27160. deprecated="not deprecated">
  27161. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27162. <param name="value" type="int"/>
  27163. <doc>
  27164. <![CDATA[Callback for integer value counters
  27165. @param metric the metric object
  27166. @param value of the metric]]>
  27167. </doc>
  27168. </method>
  27169. <method name="counter"
  27170. abstract="false" native="false" synchronized="false"
  27171. static="false" final="false" visibility="public"
  27172. deprecated="not deprecated">
  27173. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27174. <param name="value" type="long"/>
  27175. <doc>
  27176. <![CDATA[Callback for long value counters
  27177. @param metric the metric object
  27178. @param value of the metric]]>
  27179. </doc>
  27180. </method>
  27181. <doc>
  27182. <![CDATA[A visitor interface for metrics]]>
  27183. </doc>
  27184. </interface>
  27185. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27186. </package>
  27187. <package name="org.apache.hadoop.metrics2.filter">
  27188. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27189. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27190. abstract="false"
  27191. static="false" final="false" visibility="public"
  27192. deprecated="not deprecated">
  27193. <constructor name="GlobFilter"
  27194. static="false" final="false" visibility="public"
  27195. deprecated="not deprecated">
  27196. </constructor>
  27197. <method name="compile" return="java.util.regex.Pattern"
  27198. abstract="false" native="false" synchronized="false"
  27199. static="false" final="false" visibility="protected"
  27200. deprecated="not deprecated">
  27201. <param name="s" type="java.lang.String"/>
  27202. </method>
  27203. <doc>
  27204. <![CDATA[A glob pattern filter for metrics]]>
  27205. </doc>
  27206. </class>
  27207. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27208. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27209. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27210. abstract="false"
  27211. static="false" final="false" visibility="public"
  27212. deprecated="not deprecated">
  27213. <constructor name="RegexFilter"
  27214. static="false" final="false" visibility="public"
  27215. deprecated="not deprecated">
  27216. </constructor>
  27217. <method name="compile" return="java.util.regex.Pattern"
  27218. abstract="false" native="false" synchronized="false"
  27219. static="false" final="false" visibility="protected"
  27220. deprecated="not deprecated">
  27221. <param name="s" type="java.lang.String"/>
  27222. </method>
  27223. <doc>
  27224. <![CDATA[A regex pattern filter for metrics]]>
  27225. </doc>
  27226. </class>
  27227. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27228. </package>
  27229. <package name="org.apache.hadoop.metrics2.impl">
  27230. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27231. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  27232. abstract="false"
  27233. static="false" final="false" visibility="public"
  27234. deprecated="not deprecated">
  27235. <doc>
  27236. <![CDATA[The metrics configuration runtime exception]]>
  27237. </doc>
  27238. </class>
  27239. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27240. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27241. <class name="MetricsRecordImpl" extends="java.lang.Object"
  27242. abstract="false"
  27243. static="false" final="false" visibility="public"
  27244. deprecated="not deprecated">
  27245. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  27246. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  27247. static="false" final="false" visibility="public"
  27248. deprecated="not deprecated">
  27249. <doc>
  27250. <![CDATA[Construct a metrics record
  27251. @param name of the record
  27252. @param timestamp of the record
  27253. @param tags of the record
  27254. @param metrics of the record]]>
  27255. </doc>
  27256. </constructor>
  27257. <method name="timestamp" return="long"
  27258. abstract="false" native="false" synchronized="false"
  27259. static="false" final="false" visibility="public"
  27260. deprecated="not deprecated">
  27261. </method>
  27262. <method name="name" return="java.lang.String"
  27263. abstract="false" native="false" synchronized="false"
  27264. static="false" final="false" visibility="public"
  27265. deprecated="not deprecated">
  27266. </method>
  27267. <method name="context" return="java.lang.String"
  27268. abstract="false" native="false" synchronized="false"
  27269. static="false" final="false" visibility="public"
  27270. deprecated="not deprecated">
  27271. </method>
  27272. <method name="tags" return="java.lang.Iterable"
  27273. abstract="false" native="false" synchronized="false"
  27274. static="false" final="false" visibility="public"
  27275. deprecated="not deprecated">
  27276. </method>
  27277. <method name="metrics" return="java.lang.Iterable"
  27278. abstract="false" native="false" synchronized="false"
  27279. static="false" final="false" visibility="public"
  27280. deprecated="not deprecated">
  27281. </method>
  27282. <method name="equals" return="boolean"
  27283. abstract="false" native="false" synchronized="false"
  27284. static="false" final="false" visibility="public"
  27285. deprecated="not deprecated">
  27286. <param name="obj" type="java.lang.Object"/>
  27287. </method>
  27288. <method name="hashCode" return="int"
  27289. abstract="false" native="false" synchronized="false"
  27290. static="false" final="false" visibility="public"
  27291. deprecated="not deprecated">
  27292. </method>
  27293. <method name="toString" return="java.lang.String"
  27294. abstract="false" native="false" synchronized="false"
  27295. static="false" final="false" visibility="public"
  27296. deprecated="not deprecated">
  27297. </method>
  27298. <field name="CONTEXT_KEY" type="java.lang.String"
  27299. transient="false" volatile="false"
  27300. static="true" final="true" visibility="protected"
  27301. deprecated="not deprecated">
  27302. </field>
  27303. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  27304. transient="false" volatile="false"
  27305. static="true" final="true" visibility="protected"
  27306. deprecated="not deprecated">
  27307. </field>
  27308. </class>
  27309. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27310. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27311. <class name="MetricsSystemImpl" extends="java.lang.Object"
  27312. abstract="false"
  27313. static="false" final="false" visibility="public"
  27314. deprecated="not deprecated">
  27315. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27316. <constructor name="MetricsSystemImpl" type="java.lang.String"
  27317. static="false" final="false" visibility="public"
  27318. deprecated="not deprecated">
  27319. <doc>
  27320. <![CDATA[Construct the metrics system
  27321. @param prefix for the system]]>
  27322. </doc>
  27323. </constructor>
  27324. <constructor name="MetricsSystemImpl"
  27325. static="false" final="false" visibility="public"
  27326. deprecated="not deprecated">
  27327. <doc>
  27328. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  27329. </doc>
  27330. </constructor>
  27331. <method name="init"
  27332. abstract="false" native="false" synchronized="true"
  27333. static="false" final="false" visibility="public"
  27334. deprecated="not deprecated">
  27335. <param name="prefix" type="java.lang.String"/>
  27336. <doc>
  27337. <![CDATA[Initialized the metrics system with a prefix.
  27338. @param prefix the system will look for configs with the prefix]]>
  27339. </doc>
  27340. </method>
  27341. <method name="start"
  27342. abstract="false" native="false" synchronized="true"
  27343. static="false" final="false" visibility="public"
  27344. deprecated="not deprecated">
  27345. </method>
  27346. <method name="stop"
  27347. abstract="false" native="false" synchronized="true"
  27348. static="false" final="false" visibility="public"
  27349. deprecated="not deprecated">
  27350. </method>
  27351. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27352. abstract="false" native="false" synchronized="true"
  27353. static="false" final="false" visibility="public"
  27354. deprecated="not deprecated">
  27355. <param name="name" type="java.lang.String"/>
  27356. <param name="desc" type="java.lang.String"/>
  27357. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27358. </method>
  27359. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27360. abstract="false" native="false" synchronized="true"
  27361. static="false" final="false" visibility="public"
  27362. deprecated="not deprecated">
  27363. <param name="name" type="java.lang.String"/>
  27364. <param name="description" type="java.lang.String"/>
  27365. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27366. </method>
  27367. <method name="register"
  27368. abstract="false" native="false" synchronized="true"
  27369. static="false" final="false" visibility="public"
  27370. deprecated="not deprecated">
  27371. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27372. </method>
  27373. <method name="refreshMBeans"
  27374. abstract="false" native="false" synchronized="true"
  27375. static="false" final="false" visibility="public"
  27376. deprecated="not deprecated">
  27377. </method>
  27378. <method name="currentConfig" return="java.lang.String"
  27379. abstract="false" native="false" synchronized="true"
  27380. static="false" final="false" visibility="public"
  27381. deprecated="not deprecated">
  27382. </method>
  27383. <method name="shutdown"
  27384. abstract="false" native="false" synchronized="true"
  27385. static="false" final="false" visibility="public"
  27386. deprecated="not deprecated">
  27387. </method>
  27388. <doc>
  27389. <![CDATA[A base class for metrics system singletons]]>
  27390. </doc>
  27391. </class>
  27392. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27393. </package>
  27394. <package name="org.apache.hadoop.metrics2.lib">
  27395. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27396. <class name="AbstractMetricsSource" extends="java.lang.Object"
  27397. abstract="true"
  27398. static="false" final="false" visibility="public"
  27399. deprecated="not deprecated">
  27400. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27401. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  27402. static="false" final="false" visibility="public"
  27403. deprecated="not deprecated">
  27404. <doc>
  27405. <![CDATA[Construct the source with name and a mutable metrics factory
  27406. @param name of the default record
  27407. @param mf the factory to create mutable metrics]]>
  27408. </doc>
  27409. </constructor>
  27410. <constructor name="AbstractMetricsSource" type="java.lang.String"
  27411. static="false" final="false" visibility="public"
  27412. deprecated="not deprecated">
  27413. <doc>
  27414. <![CDATA[Construct the source with a name with a default factory
  27415. @param name of the default record]]>
  27416. </doc>
  27417. </constructor>
  27418. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27419. abstract="false" native="false" synchronized="false"
  27420. static="false" final="false" visibility="public"
  27421. deprecated="not deprecated">
  27422. <doc>
  27423. <![CDATA[@return the registry for mutable metrics]]>
  27424. </doc>
  27425. </method>
  27426. <method name="getMetrics"
  27427. abstract="false" native="false" synchronized="false"
  27428. static="false" final="false" visibility="public"
  27429. deprecated="not deprecated">
  27430. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27431. <param name="all" type="boolean"/>
  27432. </method>
  27433. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27434. transient="false" volatile="false"
  27435. static="false" final="true" visibility="protected"
  27436. deprecated="not deprecated">
  27437. </field>
  27438. <doc>
  27439. <![CDATA[A convenient base class for writing metrics sources]]>
  27440. </doc>
  27441. </class>
  27442. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27443. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27444. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  27445. abstract="false"
  27446. static="false" final="true" visibility="public"
  27447. deprecated="not deprecated">
  27448. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27449. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  27450. abstract="false" native="false" synchronized="false"
  27451. static="true" final="false" visibility="public"
  27452. deprecated="not deprecated">
  27453. </method>
  27454. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27455. abstract="false" native="false" synchronized="false"
  27456. static="true" final="false" visibility="public"
  27457. deprecated="not deprecated">
  27458. <param name="name" type="java.lang.String"/>
  27459. </method>
  27460. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  27461. abstract="false" native="false" synchronized="false"
  27462. static="true" final="false" visibility="public"
  27463. deprecated="not deprecated">
  27464. <param name="prefix" type="java.lang.String"/>
  27465. <doc>
  27466. <![CDATA[Common static convenience method to initialize the metrics system
  27467. @param prefix for configuration
  27468. @return the metrics system instance]]>
  27469. </doc>
  27470. </method>
  27471. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27472. abstract="false" native="false" synchronized="false"
  27473. static="false" final="false" visibility="public"
  27474. deprecated="not deprecated">
  27475. <param name="name" type="java.lang.String"/>
  27476. <param name="desc" type="java.lang.String"/>
  27477. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27478. </method>
  27479. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  27480. abstract="false" native="false" synchronized="false"
  27481. static="true" final="false" visibility="public"
  27482. deprecated="not deprecated">
  27483. <param name="name" type="java.lang.String"/>
  27484. <param name="desc" type="java.lang.String"/>
  27485. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27486. <doc>
  27487. <![CDATA[Common static method to register a source
  27488. @param <T> type of the source
  27489. @param name of the source
  27490. @param desc description
  27491. @param source the source object to register
  27492. @return the source object]]>
  27493. </doc>
  27494. </method>
  27495. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27496. abstract="false" native="false" synchronized="false"
  27497. static="false" final="false" visibility="public"
  27498. deprecated="not deprecated">
  27499. <param name="name" type="java.lang.String"/>
  27500. <param name="desc" type="java.lang.String"/>
  27501. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27502. </method>
  27503. <method name="register"
  27504. abstract="false" native="false" synchronized="false"
  27505. static="false" final="false" visibility="public"
  27506. deprecated="not deprecated">
  27507. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27508. </method>
  27509. <method name="start"
  27510. abstract="false" native="false" synchronized="false"
  27511. static="false" final="false" visibility="public"
  27512. deprecated="not deprecated">
  27513. </method>
  27514. <method name="stop"
  27515. abstract="false" native="false" synchronized="false"
  27516. static="false" final="false" visibility="public"
  27517. deprecated="not deprecated">
  27518. </method>
  27519. <method name="refreshMBeans"
  27520. abstract="false" native="false" synchronized="false"
  27521. static="false" final="false" visibility="public"
  27522. deprecated="not deprecated">
  27523. </method>
  27524. <method name="currentConfig" return="java.lang.String"
  27525. abstract="false" native="false" synchronized="false"
  27526. static="false" final="false" visibility="public"
  27527. deprecated="not deprecated">
  27528. </method>
  27529. <method name="shutdown"
  27530. abstract="false" native="false" synchronized="false"
  27531. static="false" final="false" visibility="public"
  27532. deprecated="not deprecated">
  27533. </method>
  27534. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27535. transient="false" volatile="false"
  27536. static="true" final="true" visibility="public"
  27537. deprecated="not deprecated">
  27538. <doc>
  27539. <![CDATA[The singleton instance]]>
  27540. </doc>
  27541. </field>
  27542. <doc>
  27543. <![CDATA[The default metrics system singleton]]>
  27544. </doc>
  27545. </class>
  27546. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27547. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27548. <class name="MetricMutable" extends="java.lang.Object"
  27549. abstract="true"
  27550. static="false" final="false" visibility="public"
  27551. deprecated="not deprecated">
  27552. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  27553. static="false" final="false" visibility="public"
  27554. deprecated="not deprecated">
  27555. <doc>
  27556. <![CDATA[Construct a mutable metric
  27557. @param name of the metric
  27558. @param description of the metric]]>
  27559. </doc>
  27560. </constructor>
  27561. <method name="snapshot"
  27562. abstract="true" native="false" synchronized="false"
  27563. static="false" final="false" visibility="public"
  27564. deprecated="not deprecated">
  27565. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27566. <param name="all" type="boolean"/>
  27567. <doc>
  27568. <![CDATA[Get a snapshot/snapshot of the metric
  27569. @param builder the metrics record builder
  27570. @param all if true, snapshot unchanged metrics as well]]>
  27571. </doc>
  27572. </method>
  27573. <method name="snapshot"
  27574. abstract="false" native="false" synchronized="false"
  27575. static="false" final="false" visibility="public"
  27576. deprecated="not deprecated">
  27577. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27578. <doc>
  27579. <![CDATA[Get a sampe/snapshot of metric if changed
  27580. @param builder the metrics record builder]]>
  27581. </doc>
  27582. </method>
  27583. <method name="setChanged"
  27584. abstract="false" native="false" synchronized="false"
  27585. static="false" final="false" visibility="protected"
  27586. deprecated="not deprecated">
  27587. <doc>
  27588. <![CDATA[Set the changed flag in mutable operations]]>
  27589. </doc>
  27590. </method>
  27591. <method name="clearChanged"
  27592. abstract="false" native="false" synchronized="false"
  27593. static="false" final="false" visibility="protected"
  27594. deprecated="not deprecated">
  27595. <doc>
  27596. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27597. </doc>
  27598. </method>
  27599. <method name="changed" return="boolean"
  27600. abstract="false" native="false" synchronized="false"
  27601. static="false" final="false" visibility="public"
  27602. deprecated="not deprecated">
  27603. <doc>
  27604. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27605. </doc>
  27606. </method>
  27607. <field name="name" type="java.lang.String"
  27608. transient="false" volatile="false"
  27609. static="false" final="true" visibility="public"
  27610. deprecated="not deprecated">
  27611. <doc>
  27612. <![CDATA[name of the metric]]>
  27613. </doc>
  27614. </field>
  27615. <field name="description" type="java.lang.String"
  27616. transient="false" volatile="false"
  27617. static="false" final="true" visibility="public"
  27618. deprecated="not deprecated">
  27619. <doc>
  27620. <![CDATA[description of the metric]]>
  27621. </doc>
  27622. </field>
  27623. <doc>
  27624. <![CDATA[The mutable metric interface]]>
  27625. </doc>
  27626. </class>
  27627. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27628. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27629. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27630. abstract="true"
  27631. static="false" final="false" visibility="public"
  27632. deprecated="not deprecated">
  27633. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  27634. static="false" final="false" visibility="public"
  27635. deprecated="not deprecated">
  27636. <doc>
  27637. <![CDATA[Construct the metric with name and description
  27638. @param name
  27639. @param description]]>
  27640. </doc>
  27641. </constructor>
  27642. <method name="incr"
  27643. abstract="true" native="false" synchronized="false"
  27644. static="false" final="false" visibility="public"
  27645. deprecated="not deprecated">
  27646. <doc>
  27647. <![CDATA[Increment the metric value by 1.]]>
  27648. </doc>
  27649. </method>
  27650. <doc>
  27651. <![CDATA[The mutable counter (monotonically increasing) metric interface
  27652. @param <T> the type of the metric]]>
  27653. </doc>
  27654. </class>
  27655. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27656. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27657. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27658. abstract="false"
  27659. static="false" final="false" visibility="public"
  27660. deprecated="not deprecated">
  27661. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  27662. static="false" final="false" visibility="public"
  27663. deprecated="not deprecated">
  27664. <doc>
  27665. <![CDATA[Construct a mutable int counter
  27666. @param name of the counter
  27667. @param description of the counter
  27668. @param initValue the initial value of the counter]]>
  27669. </doc>
  27670. </constructor>
  27671. <method name="incr"
  27672. abstract="false" native="false" synchronized="true"
  27673. static="false" final="false" visibility="public"
  27674. deprecated="not deprecated">
  27675. </method>
  27676. <method name="incr"
  27677. abstract="false" native="false" synchronized="true"
  27678. static="false" final="false" visibility="public"
  27679. deprecated="not deprecated">
  27680. <param name="delta" type="int"/>
  27681. <doc>
  27682. <![CDATA[Increment the value by a delta
  27683. @param delta of the increment]]>
  27684. </doc>
  27685. </method>
  27686. <method name="snapshot"
  27687. abstract="false" native="false" synchronized="false"
  27688. static="false" final="false" visibility="public"
  27689. deprecated="not deprecated">
  27690. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27691. <param name="all" type="boolean"/>
  27692. </method>
  27693. <doc>
  27694. <![CDATA[A mutable int counter for implementing metrics sources]]>
  27695. </doc>
  27696. </class>
  27697. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27698. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  27699. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27700. abstract="false"
  27701. static="false" final="false" visibility="public"
  27702. deprecated="not deprecated">
  27703. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  27704. static="false" final="false" visibility="public"
  27705. deprecated="not deprecated">
  27706. <doc>
  27707. <![CDATA[Construct a mutable long counter
  27708. @param name of the counter
  27709. @param description of the counter
  27710. @param initValue the initial value of the counter]]>
  27711. </doc>
  27712. </constructor>
  27713. <method name="incr"
  27714. abstract="false" native="false" synchronized="true"
  27715. static="false" final="false" visibility="public"
  27716. deprecated="not deprecated">
  27717. </method>
  27718. <method name="incr"
  27719. abstract="false" native="false" synchronized="true"
  27720. static="false" final="false" visibility="public"
  27721. deprecated="not deprecated">
  27722. <param name="delta" type="long"/>
  27723. <doc>
  27724. <![CDATA[Increment the value by a delta
  27725. @param delta of the increment]]>
  27726. </doc>
  27727. </method>
  27728. <method name="snapshot"
  27729. abstract="false" native="false" synchronized="false"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27733. <param name="all" type="boolean"/>
  27734. </method>
  27735. <doc>
  27736. <![CDATA[A mutable long counter]]>
  27737. </doc>
  27738. </class>
  27739. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  27740. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27741. <class name="MetricMutableFactory" extends="java.lang.Object"
  27742. abstract="false"
  27743. static="false" final="false" visibility="public"
  27744. deprecated="not deprecated">
  27745. <constructor name="MetricMutableFactory"
  27746. static="false" final="false" visibility="public"
  27747. deprecated="not deprecated">
  27748. </constructor>
  27749. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  27750. abstract="false" native="false" synchronized="false"
  27751. static="false" final="false" visibility="public"
  27752. deprecated="not deprecated">
  27753. <param name="name" type="java.lang.String"/>
  27754. <doc>
  27755. <![CDATA[Create a new mutable metric by name
  27756. Usually overridden by app specific factory
  27757. @param name of the metric
  27758. @return a new metric object]]>
  27759. </doc>
  27760. </method>
  27761. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27762. abstract="false" native="false" synchronized="false"
  27763. static="false" final="false" visibility="public"
  27764. deprecated="not deprecated">
  27765. <param name="name" type="java.lang.String"/>
  27766. <param name="description" type="java.lang.String"/>
  27767. <param name="initValue" type="int"/>
  27768. <doc>
  27769. <![CDATA[Create a mutable integer counter
  27770. @param name of the metric
  27771. @param description of the metric
  27772. @param initValue of the metric
  27773. @return a new metric object]]>
  27774. </doc>
  27775. </method>
  27776. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27777. abstract="false" native="false" synchronized="false"
  27778. static="false" final="false" visibility="public"
  27779. deprecated="not deprecated">
  27780. <param name="name" type="java.lang.String"/>
  27781. <doc>
  27782. <![CDATA[Create a mutable integer counter with name only.
  27783. Usually gets overridden.
  27784. @param name of the metric
  27785. @return a new metric object]]>
  27786. </doc>
  27787. </method>
  27788. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27789. abstract="false" native="false" synchronized="false"
  27790. static="false" final="false" visibility="public"
  27791. deprecated="not deprecated">
  27792. <param name="name" type="java.lang.String"/>
  27793. <param name="description" type="java.lang.String"/>
  27794. <param name="initValue" type="long"/>
  27795. <doc>
  27796. <![CDATA[Create a mutable long integer counter
  27797. @param name of the metric
  27798. @param description of the metric
  27799. @param initValue of the metric
  27800. @return a new metric object]]>
  27801. </doc>
  27802. </method>
  27803. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27804. abstract="false" native="false" synchronized="false"
  27805. static="false" final="false" visibility="public"
  27806. deprecated="not deprecated">
  27807. <param name="name" type="java.lang.String"/>
  27808. <doc>
  27809. <![CDATA[Create a mutable long integer counter with a name
  27810. Usually gets overridden.
  27811. @param name of the metric
  27812. @return a new metric object]]>
  27813. </doc>
  27814. </method>
  27815. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27816. abstract="false" native="false" synchronized="false"
  27817. static="false" final="false" visibility="public"
  27818. deprecated="not deprecated">
  27819. <param name="name" type="java.lang.String"/>
  27820. <param name="description" type="java.lang.String"/>
  27821. <param name="initValue" type="int"/>
  27822. <doc>
  27823. <![CDATA[Create a mutable integer gauge
  27824. @param name of the metric
  27825. @param description of the metric
  27826. @param initValue of the metric
  27827. @return a new metric object]]>
  27828. </doc>
  27829. </method>
  27830. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27831. abstract="false" native="false" synchronized="false"
  27832. static="false" final="false" visibility="public"
  27833. deprecated="not deprecated">
  27834. <param name="name" type="java.lang.String"/>
  27835. <doc>
  27836. <![CDATA[Create a mutable integer gauge with name only.
  27837. Usually gets overridden.
  27838. @param name of the metric
  27839. @return a new metric object]]>
  27840. </doc>
  27841. </method>
  27842. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27843. abstract="false" native="false" synchronized="false"
  27844. static="false" final="false" visibility="public"
  27845. deprecated="not deprecated">
  27846. <param name="name" type="java.lang.String"/>
  27847. <param name="description" type="java.lang.String"/>
  27848. <param name="initValue" type="long"/>
  27849. <doc>
  27850. <![CDATA[Create a mutable long integer gauge
  27851. @param name of the metric
  27852. @param description of the metric
  27853. @param initValue of the metric
  27854. @return a new metric object]]>
  27855. </doc>
  27856. </method>
  27857. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27858. abstract="false" native="false" synchronized="false"
  27859. static="false" final="false" visibility="public"
  27860. deprecated="not deprecated">
  27861. <param name="name" type="java.lang.String"/>
  27862. <doc>
  27863. <![CDATA[Create a mutable long integer gauge with name only.
  27864. Usually gets overridden.
  27865. @param name of the metric
  27866. @return a new metric object]]>
  27867. </doc>
  27868. </method>
  27869. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27870. abstract="false" native="false" synchronized="false"
  27871. static="false" final="false" visibility="public"
  27872. deprecated="not deprecated">
  27873. <param name="name" type="java.lang.String"/>
  27874. <param name="description" type="java.lang.String"/>
  27875. <param name="sampleName" type="java.lang.String"/>
  27876. <param name="valueName" type="java.lang.String"/>
  27877. <param name="extended" type="boolean"/>
  27878. <doc>
  27879. <![CDATA[Create a mutable stat metric
  27880. @param name of the metric
  27881. @param description of the metric
  27882. @param sampleName of the metric (e.g., ops)
  27883. @param valueName of the metric (e.g., time or latency)
  27884. @param extended if true, produces extended stat (stdev, min/max etc.)
  27885. @return a new metric object]]>
  27886. </doc>
  27887. </method>
  27888. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27889. abstract="false" native="false" synchronized="false"
  27890. static="false" final="false" visibility="public"
  27891. deprecated="not deprecated">
  27892. <param name="name" type="java.lang.String"/>
  27893. <doc>
  27894. <![CDATA[Create a mutable stat metric with name only.
  27895. Usually gets overridden.
  27896. @param name of the metric
  27897. @return a new metric object]]>
  27898. </doc>
  27899. </method>
  27900. <doc>
  27901. <![CDATA[Factory class for mutable metrics]]>
  27902. </doc>
  27903. </class>
  27904. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27905. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27906. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27907. abstract="true"
  27908. static="false" final="false" visibility="public"
  27909. deprecated="not deprecated">
  27910. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  27911. static="false" final="false" visibility="public"
  27912. deprecated="not deprecated">
  27913. <doc>
  27914. <![CDATA[Construct the metric with name and description
  27915. @param name of the metric
  27916. @param description of the metric]]>
  27917. </doc>
  27918. </constructor>
  27919. <method name="incr"
  27920. abstract="true" native="false" synchronized="false"
  27921. static="false" final="false" visibility="public"
  27922. deprecated="not deprecated">
  27923. <doc>
  27924. <![CDATA[Increment the value of the metric by 1]]>
  27925. </doc>
  27926. </method>
  27927. <method name="decr"
  27928. abstract="true" native="false" synchronized="false"
  27929. static="false" final="false" visibility="public"
  27930. deprecated="not deprecated">
  27931. <doc>
  27932. <![CDATA[Decrement the value of the metric by 1]]>
  27933. </doc>
  27934. </method>
  27935. <doc>
  27936. <![CDATA[The mutable gauge metric interface
  27937. @param <T> the type of the metric]]>
  27938. </doc>
  27939. </class>
  27940. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27941. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  27942. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  27943. abstract="false"
  27944. static="false" final="false" visibility="public"
  27945. deprecated="not deprecated">
  27946. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  27947. static="false" final="false" visibility="public"
  27948. deprecated="not deprecated">
  27949. <doc>
  27950. <![CDATA[Construct a mutable int gauge metric
  27951. @param name of the gauge
  27952. @param description of the gauge
  27953. @param initValue the initial value of the gauge]]>
  27954. </doc>
  27955. </constructor>
  27956. <method name="incr"
  27957. abstract="false" native="false" synchronized="true"
  27958. static="false" final="false" visibility="public"
  27959. deprecated="not deprecated">
  27960. </method>
  27961. <method name="incr"
  27962. abstract="false" native="false" synchronized="true"
  27963. static="false" final="false" visibility="public"
  27964. deprecated="not deprecated">
  27965. <param name="delta" type="int"/>
  27966. <doc>
  27967. <![CDATA[Increment by delta
  27968. @param delta of the increment]]>
  27969. </doc>
  27970. </method>
  27971. <method name="decr"
  27972. abstract="false" native="false" synchronized="true"
  27973. static="false" final="false" visibility="public"
  27974. deprecated="not deprecated">
  27975. </method>
  27976. <method name="decr"
  27977. abstract="false" native="false" synchronized="true"
  27978. static="false" final="false" visibility="public"
  27979. deprecated="not deprecated">
  27980. <param name="delta" type="int"/>
  27981. <doc>
  27982. <![CDATA[decrement by delta
  27983. @param delta of the decrement]]>
  27984. </doc>
  27985. </method>
  27986. <method name="set"
  27987. abstract="false" native="false" synchronized="false"
  27988. static="false" final="false" visibility="public"
  27989. deprecated="not deprecated">
  27990. <param name="value" type="int"/>
  27991. <doc>
  27992. <![CDATA[Set the value of the metric
  27993. @param value to set]]>
  27994. </doc>
  27995. </method>
  27996. <method name="snapshot"
  27997. abstract="false" native="false" synchronized="false"
  27998. static="false" final="false" visibility="public"
  27999. deprecated="not deprecated">
  28000. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28001. <param name="all" type="boolean"/>
  28002. </method>
  28003. <doc>
  28004. <![CDATA[A mutable int gauge]]>
  28005. </doc>
  28006. </class>
  28007. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  28008. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28009. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  28010. abstract="false"
  28011. static="false" final="false" visibility="public"
  28012. deprecated="not deprecated">
  28013. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  28014. static="false" final="false" visibility="public"
  28015. deprecated="not deprecated">
  28016. <doc>
  28017. <![CDATA[Construct a mutable long gauge metric
  28018. @param name of the gauge
  28019. @param description of the gauge
  28020. @param initValue the initial value of the gauge]]>
  28021. </doc>
  28022. </constructor>
  28023. <method name="incr"
  28024. abstract="false" native="false" synchronized="true"
  28025. static="false" final="false" visibility="public"
  28026. deprecated="not deprecated">
  28027. </method>
  28028. <method name="incr"
  28029. abstract="false" native="false" synchronized="true"
  28030. static="false" final="false" visibility="public"
  28031. deprecated="not deprecated">
  28032. <param name="delta" type="long"/>
  28033. <doc>
  28034. <![CDATA[Increment by delta
  28035. @param delta of the increment]]>
  28036. </doc>
  28037. </method>
  28038. <method name="decr"
  28039. abstract="false" native="false" synchronized="true"
  28040. static="false" final="false" visibility="public"
  28041. deprecated="not deprecated">
  28042. </method>
  28043. <method name="decr"
  28044. abstract="false" native="false" synchronized="true"
  28045. static="false" final="false" visibility="public"
  28046. deprecated="not deprecated">
  28047. <param name="delta" type="long"/>
  28048. <doc>
  28049. <![CDATA[decrement by delta
  28050. @param delta of the decrement]]>
  28051. </doc>
  28052. </method>
  28053. <method name="set"
  28054. abstract="false" native="false" synchronized="false"
  28055. static="false" final="false" visibility="public"
  28056. deprecated="not deprecated">
  28057. <param name="value" type="long"/>
  28058. <doc>
  28059. <![CDATA[Set the value of the metric
  28060. @param value to set]]>
  28061. </doc>
  28062. </method>
  28063. <method name="snapshot"
  28064. abstract="false" native="false" synchronized="false"
  28065. static="false" final="false" visibility="public"
  28066. deprecated="not deprecated">
  28067. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28068. <param name="all" type="boolean"/>
  28069. </method>
  28070. <doc>
  28071. <![CDATA[A mutable long gauge]]>
  28072. </doc>
  28073. </class>
  28074. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28075. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28076. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28077. abstract="false"
  28078. static="false" final="false" visibility="public"
  28079. deprecated="not deprecated">
  28080. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  28081. static="false" final="false" visibility="public"
  28082. deprecated="not deprecated">
  28083. <doc>
  28084. <![CDATA[Construct a sample statistics metric
  28085. @param name of the metric
  28086. @param description of the metric
  28087. @param sampleName of the metric (e.g. "ops")
  28088. @param valueName of the metric (e.g. "time", "latency")
  28089. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  28090. </doc>
  28091. </constructor>
  28092. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  28093. static="false" final="false" visibility="public"
  28094. deprecated="not deprecated">
  28095. <doc>
  28096. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  28097. @param name of the metric
  28098. @param description of the metric
  28099. @param sampleName of the metric (e.g. "ops")
  28100. @param valueName of the metric (e.g. "time", "latency")]]>
  28101. </doc>
  28102. </constructor>
  28103. <method name="add"
  28104. abstract="false" native="false" synchronized="true"
  28105. static="false" final="false" visibility="public"
  28106. deprecated="not deprecated">
  28107. <param name="numSamples" type="long"/>
  28108. <param name="sum" type="long"/>
  28109. <doc>
  28110. <![CDATA[Add a number of samples and their sum to the running stat
  28111. @param numSamples number of samples
  28112. @param sum of the samples]]>
  28113. </doc>
  28114. </method>
  28115. <method name="add"
  28116. abstract="false" native="false" synchronized="true"
  28117. static="false" final="false" visibility="public"
  28118. deprecated="not deprecated">
  28119. <param name="value" type="long"/>
  28120. <doc>
  28121. <![CDATA[Add a snapshot to the metric
  28122. @param value of the metric]]>
  28123. </doc>
  28124. </method>
  28125. <method name="snapshot"
  28126. abstract="false" native="false" synchronized="true"
  28127. static="false" final="false" visibility="public"
  28128. deprecated="not deprecated">
  28129. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28130. <param name="all" type="boolean"/>
  28131. </method>
  28132. <method name="resetMinMax"
  28133. abstract="false" native="false" synchronized="false"
  28134. static="false" final="false" visibility="public"
  28135. deprecated="not deprecated">
  28136. <doc>
  28137. <![CDATA[Reset the all time min max of the metric]]>
  28138. </doc>
  28139. </method>
  28140. <doc>
  28141. <![CDATA[A mutable metric with stats
  28142. Useful for keep throughput/latency stats.
  28143. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  28144. </doc>
  28145. </class>
  28146. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28147. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28148. <class name="MetricsRegistry" extends="java.lang.Object"
  28149. abstract="false"
  28150. static="false" final="false" visibility="public"
  28151. deprecated="not deprecated">
  28152. <constructor name="MetricsRegistry" type="java.lang.String"
  28153. static="false" final="false" visibility="public"
  28154. deprecated="not deprecated">
  28155. <doc>
  28156. <![CDATA[Construct the registry with a record name
  28157. @param name of the record of the metrics]]>
  28158. </doc>
  28159. </constructor>
  28160. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  28161. static="false" final="false" visibility="public"
  28162. deprecated="not deprecated">
  28163. <doc>
  28164. <![CDATA[Construct the registry with a name and a metric factory
  28165. @param name of the record of the metrics
  28166. @param factory for creating new mutable metrics]]>
  28167. </doc>
  28168. </constructor>
  28169. <method name="name" return="java.lang.String"
  28170. abstract="false" native="false" synchronized="false"
  28171. static="false" final="false" visibility="public"
  28172. deprecated="not deprecated">
  28173. <doc>
  28174. <![CDATA[@return the name of the metrics registry]]>
  28175. </doc>
  28176. </method>
  28177. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28178. abstract="false" native="false" synchronized="false"
  28179. static="false" final="false" visibility="public"
  28180. deprecated="not deprecated">
  28181. <param name="name" type="java.lang.String"/>
  28182. <doc>
  28183. <![CDATA[Get a metric by name
  28184. @param name of the metric
  28185. @return the metric object]]>
  28186. </doc>
  28187. </method>
  28188. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28189. abstract="false" native="false" synchronized="false"
  28190. static="false" final="false" visibility="public"
  28191. deprecated="not deprecated">
  28192. <param name="name" type="java.lang.String"/>
  28193. <param name="description" type="java.lang.String"/>
  28194. <param name="initValue" type="int"/>
  28195. <doc>
  28196. <![CDATA[Create a mutable integer counter
  28197. @param name of the metric
  28198. @param description of the metric
  28199. @param initValue of the metric
  28200. @return a new counter object]]>
  28201. </doc>
  28202. </method>
  28203. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28204. abstract="false" native="false" synchronized="false"
  28205. static="false" final="false" visibility="public"
  28206. deprecated="not deprecated">
  28207. <param name="name" type="java.lang.String"/>
  28208. <param name="description" type="java.lang.String"/>
  28209. <param name="initValue" type="long"/>
  28210. <doc>
  28211. <![CDATA[Create a mutable long integer counter
  28212. @param name of the metric
  28213. @param description of the metric
  28214. @param initValue of the metric
  28215. @return a new counter object]]>
  28216. </doc>
  28217. </method>
  28218. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28219. abstract="false" native="false" synchronized="false"
  28220. static="false" final="false" visibility="public"
  28221. deprecated="not deprecated">
  28222. <param name="name" type="java.lang.String"/>
  28223. <param name="description" type="java.lang.String"/>
  28224. <param name="initValue" type="int"/>
  28225. <doc>
  28226. <![CDATA[Create a mutable integer gauge
  28227. @param name of the metric
  28228. @param description of the metric
  28229. @param initValue of the metric
  28230. @return a new gauge object]]>
  28231. </doc>
  28232. </method>
  28233. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28234. abstract="false" native="false" synchronized="false"
  28235. static="false" final="false" visibility="public"
  28236. deprecated="not deprecated">
  28237. <param name="name" type="java.lang.String"/>
  28238. <param name="description" type="java.lang.String"/>
  28239. <param name="initValue" type="long"/>
  28240. <doc>
  28241. <![CDATA[Create a mutable long integer gauge
  28242. @param name of the metric
  28243. @param description of the metric
  28244. @param initValue of the metric
  28245. @return a new gauge object]]>
  28246. </doc>
  28247. </method>
  28248. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28249. abstract="false" native="false" synchronized="false"
  28250. static="false" final="false" visibility="public"
  28251. deprecated="not deprecated">
  28252. <param name="name" type="java.lang.String"/>
  28253. <param name="description" type="java.lang.String"/>
  28254. <param name="sampleName" type="java.lang.String"/>
  28255. <param name="valueName" type="java.lang.String"/>
  28256. <param name="extended" type="boolean"/>
  28257. <doc>
  28258. <![CDATA[Create a mutable metric with stats
  28259. @param name of the metric
  28260. @param description of the metric
  28261. @param sampleName of the metric (e.g., "ops")
  28262. @param valueName of the metric (e.g., "time" or "latency")
  28263. @param extended produce extended stat (stdev, min/max etc.) if true.
  28264. @return a new metric object]]>
  28265. </doc>
  28266. </method>
  28267. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28268. abstract="false" native="false" synchronized="false"
  28269. static="false" final="false" visibility="public"
  28270. deprecated="not deprecated">
  28271. <param name="name" type="java.lang.String"/>
  28272. <param name="description" type="java.lang.String"/>
  28273. <param name="sampleName" type="java.lang.String"/>
  28274. <param name="valueName" type="java.lang.String"/>
  28275. <doc>
  28276. <![CDATA[Create a mutable metric with stats
  28277. @param name of the metric
  28278. @param description of the metric
  28279. @param sampleName of the metric (e.g., "ops")
  28280. @param valueName of the metric (e.g., "time" or "latency")
  28281. @return a new metric object]]>
  28282. </doc>
  28283. </method>
  28284. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  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. <doc>
  28290. <![CDATA[Create a mutable metric with stats using the name only
  28291. @param name of the metric
  28292. @return a new metric object]]>
  28293. </doc>
  28294. </method>
  28295. <method name="incr"
  28296. abstract="false" native="false" synchronized="false"
  28297. static="false" final="false" visibility="public"
  28298. deprecated="not deprecated">
  28299. <param name="name" type="java.lang.String"/>
  28300. <doc>
  28301. <![CDATA[Increment a metric by name.
  28302. @param name of the metric]]>
  28303. </doc>
  28304. </method>
  28305. <method name="incr"
  28306. abstract="false" native="false" synchronized="false"
  28307. static="false" final="false" visibility="public"
  28308. deprecated="not deprecated">
  28309. <param name="name" type="java.lang.String"/>
  28310. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28311. <doc>
  28312. <![CDATA[Increment a metric by name.
  28313. @param name of the metric
  28314. @param factory to lazily create the metric if not null]]>
  28315. </doc>
  28316. </method>
  28317. <method name="decr"
  28318. abstract="false" native="false" synchronized="false"
  28319. static="false" final="false" visibility="public"
  28320. deprecated="not deprecated">
  28321. <param name="name" type="java.lang.String"/>
  28322. <doc>
  28323. <![CDATA[Decrement a metric by name.
  28324. @param name of the metric]]>
  28325. </doc>
  28326. </method>
  28327. <method name="decr"
  28328. abstract="false" native="false" synchronized="false"
  28329. static="false" final="false" visibility="public"
  28330. deprecated="not deprecated">
  28331. <param name="name" type="java.lang.String"/>
  28332. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28333. <doc>
  28334. <![CDATA[Decrement a metric by name.
  28335. @param name of the metric
  28336. @param factory to lazily create the metric if not null]]>
  28337. </doc>
  28338. </method>
  28339. <method name="add"
  28340. abstract="false" native="false" synchronized="false"
  28341. static="false" final="false" visibility="public"
  28342. deprecated="not deprecated">
  28343. <param name="name" type="java.lang.String"/>
  28344. <param name="value" type="long"/>
  28345. <doc>
  28346. <![CDATA[Add a value to a metric by name.
  28347. @param name of the metric
  28348. @param value of the snapshot to add]]>
  28349. </doc>
  28350. </method>
  28351. <method name="add"
  28352. abstract="false" native="false" synchronized="false"
  28353. static="false" final="false" visibility="public"
  28354. deprecated="not deprecated">
  28355. <param name="name" type="java.lang.String"/>
  28356. <param name="value" type="long"/>
  28357. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28358. <doc>
  28359. <![CDATA[Decrement a metric by name.
  28360. @param name of the metric
  28361. @param value of the snapshot to add
  28362. @param factory to lazily create the metric if not null]]>
  28363. </doc>
  28364. </method>
  28365. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28366. abstract="false" native="false" synchronized="false"
  28367. static="false" final="false" visibility="public"
  28368. deprecated="not deprecated">
  28369. <param name="name" type="java.lang.String"/>
  28370. <doc>
  28371. <![CDATA[Set the metrics context tag
  28372. @param name of the context
  28373. @return the registry itself as a convenience]]>
  28374. </doc>
  28375. </method>
  28376. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28377. abstract="false" native="false" synchronized="false"
  28378. static="false" final="false" visibility="public"
  28379. deprecated="not deprecated">
  28380. <param name="name" type="java.lang.String"/>
  28381. <param name="description" type="java.lang.String"/>
  28382. <param name="value" type="java.lang.String"/>
  28383. <doc>
  28384. <![CDATA[Add a tag to the metrics
  28385. @param name of the tag
  28386. @param description of the tag
  28387. @param value of the tag
  28388. @return the registry (for keep adding tags)]]>
  28389. </doc>
  28390. </method>
  28391. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28392. abstract="false" native="false" synchronized="false"
  28393. static="false" final="false" visibility="public"
  28394. deprecated="not deprecated">
  28395. <param name="name" type="java.lang.String"/>
  28396. <param name="description" type="java.lang.String"/>
  28397. <param name="value" type="java.lang.String"/>
  28398. <param name="override" type="boolean"/>
  28399. <doc>
  28400. <![CDATA[Add a tag to the metrics
  28401. @param name of the tag
  28402. @param description of the tag
  28403. @param value of the tag
  28404. @param override existing tag if true
  28405. @return the registry (for keep adding tags)]]>
  28406. </doc>
  28407. </method>
  28408. <method name="tags" return="java.util.Set"
  28409. abstract="false" native="false" synchronized="false"
  28410. static="false" final="false" visibility="public"
  28411. deprecated="not deprecated">
  28412. <doc>
  28413. <![CDATA[Get the tags
  28414. @return the tags set]]>
  28415. </doc>
  28416. </method>
  28417. <method name="metrics" return="java.util.Set"
  28418. abstract="false" native="false" synchronized="false"
  28419. static="false" final="false" visibility="public"
  28420. deprecated="not deprecated">
  28421. <doc>
  28422. <![CDATA[Get the metrics
  28423. @return the metrics set]]>
  28424. </doc>
  28425. </method>
  28426. <method name="snapshot"
  28427. abstract="false" native="false" synchronized="false"
  28428. static="false" final="false" visibility="public"
  28429. deprecated="not deprecated">
  28430. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28431. <param name="all" type="boolean"/>
  28432. <doc>
  28433. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  28434. @param builder to contain the metrics snapshot
  28435. @param all get all the metrics even if the values are not changed.]]>
  28436. </doc>
  28437. </method>
  28438. <field name="CONTEXT_KEY" type="java.lang.String"
  28439. transient="false" volatile="false"
  28440. static="true" final="true" visibility="public"
  28441. deprecated="not deprecated">
  28442. <doc>
  28443. <![CDATA[key for the context tag]]>
  28444. </doc>
  28445. </field>
  28446. <field name="CONTEXT_DESC" type="java.lang.String"
  28447. transient="false" volatile="false"
  28448. static="true" final="true" visibility="public"
  28449. deprecated="not deprecated">
  28450. <doc>
  28451. <![CDATA[description for the context tag]]>
  28452. </doc>
  28453. </field>
  28454. <doc>
  28455. <![CDATA[An optional metrics registry class for creating and maintaining a
  28456. collection of MetricsMutables, making writing metrics source easier.]]>
  28457. </doc>
  28458. </class>
  28459. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28460. </package>
  28461. <package name="org.apache.hadoop.metrics2.sink">
  28462. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  28463. <class name="FileSink" extends="java.lang.Object"
  28464. abstract="false"
  28465. static="false" final="false" visibility="public"
  28466. deprecated="not deprecated">
  28467. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28468. <constructor name="FileSink"
  28469. static="false" final="false" visibility="public"
  28470. deprecated="not deprecated">
  28471. </constructor>
  28472. <method name="init"
  28473. abstract="false" native="false" synchronized="false"
  28474. static="false" final="false" visibility="public"
  28475. deprecated="not deprecated">
  28476. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28477. </method>
  28478. <method name="putMetrics"
  28479. abstract="false" native="false" synchronized="false"
  28480. static="false" final="false" visibility="public"
  28481. deprecated="not deprecated">
  28482. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28483. </method>
  28484. <method name="flush"
  28485. abstract="false" native="false" synchronized="false"
  28486. static="false" final="false" visibility="public"
  28487. deprecated="not deprecated">
  28488. </method>
  28489. </class>
  28490. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  28491. </package>
  28492. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  28493. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28494. <class name="AbstractGangliaSink" extends="java.lang.Object"
  28495. abstract="true"
  28496. static="false" final="false" visibility="public"
  28497. deprecated="not deprecated">
  28498. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28499. <constructor name="AbstractGangliaSink"
  28500. static="false" final="false" visibility="public"
  28501. deprecated="not deprecated">
  28502. </constructor>
  28503. <method name="init"
  28504. abstract="false" native="false" synchronized="false"
  28505. static="false" final="false" visibility="public"
  28506. deprecated="not deprecated">
  28507. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28508. </method>
  28509. <method name="flush"
  28510. abstract="false" native="false" synchronized="false"
  28511. static="false" final="false" visibility="public"
  28512. deprecated="not deprecated">
  28513. </method>
  28514. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  28515. abstract="false" native="false" synchronized="false"
  28516. static="false" final="false" visibility="protected"
  28517. deprecated="not deprecated">
  28518. <param name="metricName" type="java.lang.String"/>
  28519. <doc>
  28520. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  28521. @param metricName
  28522. @return looked up GangliaConf]]>
  28523. </doc>
  28524. </method>
  28525. <method name="getHostName" return="java.lang.String"
  28526. abstract="false" native="false" synchronized="false"
  28527. static="false" final="false" visibility="protected"
  28528. deprecated="not deprecated">
  28529. <doc>
  28530. <![CDATA[@return the hostName]]>
  28531. </doc>
  28532. </method>
  28533. <method name="xdr_string"
  28534. abstract="false" native="false" synchronized="false"
  28535. static="false" final="false" visibility="protected"
  28536. deprecated="not deprecated">
  28537. <param name="s" type="java.lang.String"/>
  28538. <doc>
  28539. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  28540. int, followed by the bytes of the string, padded if necessary to a multiple
  28541. of 4.
  28542. @param s the string to be written to buffer at offset location]]>
  28543. </doc>
  28544. </method>
  28545. <method name="xdr_int"
  28546. abstract="false" native="false" synchronized="false"
  28547. static="false" final="false" visibility="protected"
  28548. deprecated="not deprecated">
  28549. <param name="i" type="int"/>
  28550. <doc>
  28551. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  28552. </doc>
  28553. </method>
  28554. <method name="emitToGangliaHosts"
  28555. abstract="false" native="false" synchronized="false"
  28556. static="false" final="false" visibility="protected"
  28557. deprecated="not deprecated">
  28558. <exception name="IOException" type="java.io.IOException"/>
  28559. <doc>
  28560. <![CDATA[Sends Ganglia Metrics to the configured hosts
  28561. @throws IOException]]>
  28562. </doc>
  28563. </method>
  28564. <method name="isSupportSparseMetrics" return="boolean"
  28565. abstract="false" native="false" synchronized="false"
  28566. static="false" final="false" visibility="protected"
  28567. deprecated="not deprecated">
  28568. <doc>
  28569. <![CDATA[@return whether sparse metrics are supported]]>
  28570. </doc>
  28571. </method>
  28572. <field name="LOG" type="org.apache.commons.logging.Log"
  28573. transient="false" volatile="false"
  28574. static="false" final="true" visibility="public"
  28575. deprecated="not deprecated">
  28576. </field>
  28577. <field name="DEFAULT_UNITS" type="java.lang.String"
  28578. transient="false" volatile="false"
  28579. static="true" final="true" visibility="public"
  28580. deprecated="not deprecated">
  28581. </field>
  28582. <field name="DEFAULT_TMAX" type="int"
  28583. transient="false" volatile="false"
  28584. static="true" final="true" visibility="public"
  28585. deprecated="not deprecated">
  28586. </field>
  28587. <field name="DEFAULT_DMAX" type="int"
  28588. transient="false" volatile="false"
  28589. static="true" final="true" visibility="public"
  28590. deprecated="not deprecated">
  28591. </field>
  28592. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28593. transient="false" volatile="false"
  28594. static="true" final="true" visibility="public"
  28595. deprecated="not deprecated">
  28596. </field>
  28597. <field name="DEFAULT_PORT" type="int"
  28598. transient="false" volatile="false"
  28599. static="true" final="true" visibility="public"
  28600. deprecated="not deprecated">
  28601. </field>
  28602. <field name="SERVERS_PROPERTY" type="java.lang.String"
  28603. transient="false" volatile="false"
  28604. static="true" final="true" visibility="public"
  28605. deprecated="not deprecated">
  28606. </field>
  28607. <field name="BUFFER_SIZE" type="int"
  28608. transient="false" volatile="false"
  28609. static="true" final="true" visibility="public"
  28610. deprecated="not deprecated">
  28611. </field>
  28612. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  28613. transient="false" volatile="false"
  28614. static="true" final="true" visibility="public"
  28615. deprecated="not deprecated">
  28616. </field>
  28617. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  28618. transient="false" volatile="false"
  28619. static="true" final="true" visibility="public"
  28620. deprecated="not deprecated">
  28621. </field>
  28622. <field name="EQUAL" type="java.lang.String"
  28623. transient="false" volatile="false"
  28624. static="true" final="true" visibility="public"
  28625. deprecated="not deprecated">
  28626. </field>
  28627. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  28628. transient="false" volatile="false"
  28629. static="false" final="true" visibility="protected"
  28630. deprecated="not deprecated">
  28631. <doc>
  28632. <![CDATA[Used for visiting Metrics]]>
  28633. </doc>
  28634. </field>
  28635. <doc>
  28636. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  28637. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  28638. As per the documentation, sink implementations doesn't have to worry about
  28639. thread safety. Hence the code wasn't written for thread safety and should
  28640. be modified in case the above assumption changes in the future.]]>
  28641. </doc>
  28642. </class>
  28643. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28644. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28645. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  28646. abstract="false"
  28647. static="true" final="true" visibility="public"
  28648. deprecated="not deprecated">
  28649. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  28650. abstract="false" native="false" synchronized="false"
  28651. static="true" final="false" visibility="public"
  28652. deprecated="not deprecated">
  28653. </method>
  28654. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28655. abstract="false" native="false" synchronized="false"
  28656. static="true" final="false" visibility="public"
  28657. deprecated="not deprecated">
  28658. <param name="name" type="java.lang.String"/>
  28659. </method>
  28660. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28661. transient="false" volatile="false"
  28662. static="true" final="true" visibility="public"
  28663. deprecated="not deprecated">
  28664. </field>
  28665. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28666. transient="false" volatile="false"
  28667. static="true" final="true" visibility="public"
  28668. deprecated="not deprecated">
  28669. </field>
  28670. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28671. transient="false" volatile="false"
  28672. static="true" final="true" visibility="public"
  28673. deprecated="not deprecated">
  28674. </field>
  28675. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28676. transient="false" volatile="false"
  28677. static="true" final="true" visibility="public"
  28678. deprecated="not deprecated">
  28679. </field>
  28680. <doc>
  28681. <![CDATA[define enum for various type of conf]]>
  28682. </doc>
  28683. </class>
  28684. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28685. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  28686. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  28687. abstract="false"
  28688. static="true" final="true" visibility="public"
  28689. deprecated="not deprecated">
  28690. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  28691. abstract="false" native="false" synchronized="false"
  28692. static="true" final="false" visibility="public"
  28693. deprecated="not deprecated">
  28694. </method>
  28695. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28696. abstract="false" native="false" synchronized="false"
  28697. static="true" final="false" visibility="public"
  28698. deprecated="not deprecated">
  28699. <param name="name" type="java.lang.String"/>
  28700. </method>
  28701. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28702. transient="false" volatile="false"
  28703. static="true" final="true" visibility="public"
  28704. deprecated="not deprecated">
  28705. </field>
  28706. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28707. transient="false" volatile="false"
  28708. static="true" final="true" visibility="public"
  28709. deprecated="not deprecated">
  28710. </field>
  28711. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28712. transient="false" volatile="false"
  28713. static="true" final="true" visibility="public"
  28714. deprecated="not deprecated">
  28715. </field>
  28716. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28717. transient="false" volatile="false"
  28718. static="true" final="true" visibility="public"
  28719. deprecated="not deprecated">
  28720. </field>
  28721. <doc>
  28722. <![CDATA[ganglia slope values which equal the ordinal]]>
  28723. </doc>
  28724. </class>
  28725. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  28726. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  28727. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  28728. abstract="false"
  28729. static="false" final="false" visibility="public"
  28730. deprecated="not deprecated">
  28731. <constructor name="GangliaSink30"
  28732. static="false" final="false" visibility="public"
  28733. deprecated="not deprecated">
  28734. </constructor>
  28735. <method name="putMetrics"
  28736. abstract="false" native="false" synchronized="false"
  28737. static="false" final="false" visibility="public"
  28738. deprecated="not deprecated">
  28739. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28740. </method>
  28741. <method name="emitMetric"
  28742. abstract="false" native="false" synchronized="false"
  28743. static="false" final="false" visibility="protected"
  28744. deprecated="not deprecated">
  28745. <param name="groupName" type="java.lang.String"/>
  28746. <param name="name" type="java.lang.String"/>
  28747. <param name="type" type="java.lang.String"/>
  28748. <param name="value" type="java.lang.String"/>
  28749. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  28750. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  28751. <exception name="IOException" type="java.io.IOException"/>
  28752. <doc>
  28753. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  28754. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  28755. order to keep it in sync.
  28756. @param groupName The group name of the metric
  28757. @param name The metric name
  28758. @param type The type of the metric
  28759. @param value The value of the metric
  28760. @param gConf The GangliaConf for this metric
  28761. @param gSlope The slope for this metric
  28762. @throws IOException]]>
  28763. </doc>
  28764. </method>
  28765. <field name="LOG" type="org.apache.commons.logging.Log"
  28766. transient="false" volatile="false"
  28767. static="false" final="true" visibility="public"
  28768. deprecated="not deprecated">
  28769. </field>
  28770. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  28771. transient="false" volatile="false"
  28772. static="false" final="false" visibility="protected"
  28773. deprecated="not deprecated">
  28774. </field>
  28775. <doc>
  28776. <![CDATA[This code supports Ganglia 3.0]]>
  28777. </doc>
  28778. </class>
  28779. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  28780. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  28781. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  28782. abstract="false"
  28783. static="false" final="false" visibility="public"
  28784. deprecated="not deprecated">
  28785. <constructor name="GangliaSink31"
  28786. static="false" final="false" visibility="public"
  28787. deprecated="not deprecated">
  28788. </constructor>
  28789. <method name="emitMetric"
  28790. abstract="false" native="false" synchronized="false"
  28791. static="false" final="false" visibility="protected"
  28792. deprecated="not deprecated">
  28793. <param name="groupName" type="java.lang.String"/>
  28794. <param name="name" type="java.lang.String"/>
  28795. <param name="type" type="java.lang.String"/>
  28796. <param name="value" type="java.lang.String"/>
  28797. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  28798. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  28799. <exception name="IOException" type="java.io.IOException"/>
  28800. <doc>
  28801. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  28802. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  28803. order to keep it in sync.
  28804. @param groupName The group name of the metric
  28805. @param name The metric name
  28806. @param type The type of the metric
  28807. @param value The value of the metric
  28808. @param gConf The GangliaConf for this metric
  28809. @param gSlope The slope for this metric
  28810. @throws IOException]]>
  28811. </doc>
  28812. </method>
  28813. <field name="LOG" type="org.apache.commons.logging.Log"
  28814. transient="false" volatile="false"
  28815. static="false" final="true" visibility="public"
  28816. deprecated="not deprecated">
  28817. </field>
  28818. <doc>
  28819. <![CDATA[This code supports Ganglia 3.1]]>
  28820. </doc>
  28821. </class>
  28822. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  28823. </package>
  28824. <package name="org.apache.hadoop.metrics2.source">
  28825. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28826. <class name="JvmMetricsSource" extends="java.lang.Object"
  28827. abstract="false"
  28828. static="false" final="false" visibility="public"
  28829. deprecated="not deprecated">
  28830. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  28831. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  28832. abstract="false" native="false" synchronized="false"
  28833. static="true" final="false" visibility="public"
  28834. deprecated="not deprecated">
  28835. <param name="processName" type="java.lang.String"/>
  28836. <param name="sessionId" type="java.lang.String"/>
  28837. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  28838. </method>
  28839. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  28840. abstract="false" native="false" synchronized="false"
  28841. static="true" final="false" visibility="public"
  28842. deprecated="not deprecated">
  28843. <param name="processName" type="java.lang.String"/>
  28844. <param name="sessionId" type="java.lang.String"/>
  28845. </method>
  28846. <method name="getMetrics"
  28847. abstract="false" native="false" synchronized="false"
  28848. static="false" final="false" visibility="public"
  28849. deprecated="not deprecated">
  28850. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  28851. <param name="all" type="boolean"/>
  28852. </method>
  28853. </class>
  28854. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28855. </package>
  28856. <package name="org.apache.hadoop.metrics2.util">
  28857. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  28858. <class name="Contracts" extends="java.lang.Object"
  28859. abstract="false"
  28860. static="false" final="false" visibility="public"
  28861. deprecated="not deprecated">
  28862. <method name="checkNotNull" return="java.lang.Object"
  28863. abstract="false" native="false" synchronized="false"
  28864. static="true" final="false" visibility="public"
  28865. deprecated="not deprecated">
  28866. <param name="ref" type="java.lang.Object"/>
  28867. <param name="msg" type="java.lang.Object"/>
  28868. <doc>
  28869. <![CDATA[Check that a reference is not null.
  28870. @param <T> type of the reference
  28871. @param ref the reference to check
  28872. @param msg the error message
  28873. @throws NullPointerException if {@code ref} is null
  28874. @return the checked reference for convenience]]>
  28875. </doc>
  28876. </method>
  28877. <method name="checkState"
  28878. abstract="false" native="false" synchronized="false"
  28879. static="true" final="false" visibility="public"
  28880. deprecated="not deprecated">
  28881. <param name="expression" type="boolean"/>
  28882. <param name="msg" type="java.lang.Object"/>
  28883. <doc>
  28884. <![CDATA[Check the state expression for false conditions
  28885. @param expression the boolean expression to check
  28886. @param msg the error message if {@code expression} is false
  28887. @throws IllegalStateException if {@code expression} is false]]>
  28888. </doc>
  28889. </method>
  28890. <method name="checkArg" return="java.lang.Object"
  28891. abstract="false" native="false" synchronized="false"
  28892. static="true" final="false" visibility="public"
  28893. deprecated="not deprecated">
  28894. <param name="arg" type="java.lang.Object"/>
  28895. <param name="expression" type="boolean"/>
  28896. <param name="msg" type="java.lang.Object"/>
  28897. <doc>
  28898. <![CDATA[Check an argument for false conditions
  28899. @param <T> type of the argument
  28900. @param arg the argument to check
  28901. @param expression the boolean expression for the condition
  28902. @param msg the error message if {@code expression} is false
  28903. @return the argument for convenience]]>
  28904. </doc>
  28905. </method>
  28906. <method name="checkArg" return="int"
  28907. abstract="false" native="false" synchronized="false"
  28908. static="true" final="false" visibility="public"
  28909. deprecated="not deprecated">
  28910. <param name="arg" type="int"/>
  28911. <param name="expression" type="boolean"/>
  28912. <param name="msg" type="java.lang.Object"/>
  28913. <doc>
  28914. <![CDATA[Check an argument for false conditions
  28915. @param arg the argument to check
  28916. @param expression the boolean expression for the condition
  28917. @param msg the error message if {@code expression} is false
  28918. @return the argument for convenience]]>
  28919. </doc>
  28920. </method>
  28921. <method name="checkArg" return="long"
  28922. abstract="false" native="false" synchronized="false"
  28923. static="true" final="false" visibility="public"
  28924. deprecated="not deprecated">
  28925. <param name="arg" type="long"/>
  28926. <param name="expression" type="boolean"/>
  28927. <param name="msg" type="java.lang.Object"/>
  28928. <doc>
  28929. <![CDATA[Check an argument for false conditions
  28930. @param arg the argument to check
  28931. @param expression the boolean expression for the condition
  28932. @param msg the error message if {@code expression} is false
  28933. @return the argument for convenience]]>
  28934. </doc>
  28935. </method>
  28936. <method name="checkArg" return="float"
  28937. abstract="false" native="false" synchronized="false"
  28938. static="true" final="false" visibility="public"
  28939. deprecated="not deprecated">
  28940. <param name="arg" type="float"/>
  28941. <param name="expression" type="boolean"/>
  28942. <param name="msg" type="java.lang.Object"/>
  28943. <doc>
  28944. <![CDATA[Check an argument for false conditions
  28945. @param arg the argument to check
  28946. @param expression the boolean expression for the condition
  28947. @param msg the error message if {@code expression} is false
  28948. @return the argument for convenience]]>
  28949. </doc>
  28950. </method>
  28951. <method name="checkArg" return="double"
  28952. abstract="false" native="false" synchronized="false"
  28953. static="true" final="false" visibility="public"
  28954. deprecated="not deprecated">
  28955. <param name="arg" type="double"/>
  28956. <param name="expression" type="boolean"/>
  28957. <param name="msg" type="java.lang.Object"/>
  28958. <doc>
  28959. <![CDATA[Check an argument for false conditions
  28960. @param arg the argument to check
  28961. @param expression the boolean expression for the condition
  28962. @param msg the error message if {@code expression} is false
  28963. @return the argument for convenience]]>
  28964. </doc>
  28965. </method>
  28966. <doc>
  28967. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  28968. </doc>
  28969. </class>
  28970. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  28971. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  28972. <class name="MBeans" extends="java.lang.Object"
  28973. abstract="false"
  28974. static="false" final="false" visibility="public"
  28975. deprecated="not deprecated">
  28976. <constructor name="MBeans"
  28977. static="false" final="false" visibility="public"
  28978. deprecated="not deprecated">
  28979. </constructor>
  28980. <method name="register" return="javax.management.ObjectName"
  28981. abstract="false" native="false" synchronized="false"
  28982. static="true" final="false" visibility="public"
  28983. deprecated="not deprecated">
  28984. <param name="serviceName" type="java.lang.String"/>
  28985. <param name="nameName" type="java.lang.String"/>
  28986. <param name="theMbean" type="java.lang.Object"/>
  28987. <doc>
  28988. <![CDATA[Register the MBean using our standard MBeanName format
  28989. "hadoop:service=<serviceName>,name=<nameName>"
  28990. Where the <serviceName> and <nameName> are the supplied parameters
  28991. @param serviceName
  28992. @param nameName
  28993. @param theMbean - the MBean to register
  28994. @return the named used to register the MBean]]>
  28995. </doc>
  28996. </method>
  28997. <method name="unregister"
  28998. abstract="false" native="false" synchronized="false"
  28999. static="true" final="false" visibility="public"
  29000. deprecated="not deprecated">
  29001. <param name="mbeanName" type="javax.management.ObjectName"/>
  29002. </method>
  29003. <doc>
  29004. <![CDATA[This util class provides a method to register an MBean using
  29005. our standard naming convention as described in the doc
  29006. for {link {@link #register(String, String, Object)}]]>
  29007. </doc>
  29008. </class>
  29009. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  29010. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  29011. <class name="MetricsCache" extends="java.lang.Object"
  29012. abstract="false"
  29013. static="false" final="false" visibility="public"
  29014. deprecated="not deprecated">
  29015. <constructor name="MetricsCache"
  29016. static="false" final="false" visibility="public"
  29017. deprecated="not deprecated">
  29018. </constructor>
  29019. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29020. abstract="false" native="false" synchronized="false"
  29021. static="false" final="false" visibility="public"
  29022. deprecated="not deprecated">
  29023. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29024. <param name="includingTags" type="boolean"/>
  29025. <doc>
  29026. <![CDATA[Update the cache and return the cached record
  29027. @param mr the update record
  29028. @param includingTags cache tag values (for later lookup by name) if true
  29029. @return the updated cached record]]>
  29030. </doc>
  29031. </method>
  29032. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29033. abstract="false" native="false" synchronized="false"
  29034. static="false" final="false" visibility="public"
  29035. deprecated="not deprecated">
  29036. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29037. </method>
  29038. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29039. abstract="false" native="false" synchronized="false"
  29040. static="false" final="false" visibility="public"
  29041. deprecated="not deprecated">
  29042. <param name="name" type="java.lang.String"/>
  29043. <param name="tags" type="java.util.Collection"/>
  29044. <doc>
  29045. <![CDATA[Get the cached record
  29046. @param name of the record
  29047. @param tags of the record
  29048. @return the cached record or null]]>
  29049. </doc>
  29050. </method>
  29051. <doc>
  29052. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  29053. </doc>
  29054. </class>
  29055. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  29056. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29057. <class name="MetricsCache.Record" extends="java.lang.Object"
  29058. abstract="false"
  29059. static="true" final="false" visibility="public"
  29060. deprecated="not deprecated">
  29061. <constructor name="MetricsCache.Record"
  29062. static="false" final="false" visibility="public"
  29063. deprecated="not deprecated">
  29064. </constructor>
  29065. <method name="getTag" return="java.lang.String"
  29066. abstract="false" native="false" synchronized="false"
  29067. static="false" final="false" visibility="public"
  29068. deprecated="not deprecated">
  29069. <param name="key" type="java.lang.String"/>
  29070. <doc>
  29071. <![CDATA[Get the tag value
  29072. @param key name of the tag
  29073. @return the tag value]]>
  29074. </doc>
  29075. </method>
  29076. <method name="getMetric" return="java.lang.Number"
  29077. abstract="false" native="false" synchronized="false"
  29078. static="false" final="false" visibility="public"
  29079. deprecated="not deprecated">
  29080. <param name="key" type="java.lang.String"/>
  29081. <doc>
  29082. <![CDATA[Get the metric value
  29083. @param key name of the metric
  29084. @return the metric value]]>
  29085. </doc>
  29086. </method>
  29087. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  29088. abstract="false" native="false" synchronized="false"
  29089. static="false" final="false" visibility="public"
  29090. deprecated="not deprecated">
  29091. <param name="key" type="java.lang.String"/>
  29092. <doc>
  29093. <![CDATA[Get the metric value
  29094. @param key name of the metric
  29095. @return the metric value]]>
  29096. </doc>
  29097. </method>
  29098. <method name="metrics" return="java.util.Set"
  29099. abstract="false" native="false" synchronized="false"
  29100. static="false" final="false" visibility="public"
  29101. deprecated="not deprecated">
  29102. <doc>
  29103. <![CDATA[@return entry set of metrics]]>
  29104. </doc>
  29105. </method>
  29106. <method name="metricsEntrySet" return="java.util.Set"
  29107. abstract="false" native="false" synchronized="false"
  29108. static="false" final="false" visibility="public"
  29109. deprecated="not deprecated">
  29110. <doc>
  29111. <![CDATA[@return entry set of metrics]]>
  29112. </doc>
  29113. </method>
  29114. <doc>
  29115. <![CDATA[Cached record]]>
  29116. </doc>
  29117. </class>
  29118. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29119. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  29120. <class name="SampleStat" extends="java.lang.Object"
  29121. abstract="false"
  29122. static="false" final="false" visibility="public"
  29123. deprecated="not deprecated">
  29124. <constructor name="SampleStat"
  29125. static="false" final="false" visibility="public"
  29126. deprecated="not deprecated">
  29127. <doc>
  29128. <![CDATA[Construct a new running sample stat]]>
  29129. </doc>
  29130. </constructor>
  29131. <method name="reset"
  29132. abstract="false" native="false" synchronized="false"
  29133. static="false" final="false" visibility="public"
  29134. deprecated="not deprecated">
  29135. </method>
  29136. <method name="copyTo"
  29137. abstract="false" native="false" synchronized="false"
  29138. static="false" final="false" visibility="public"
  29139. deprecated="not deprecated">
  29140. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  29141. <doc>
  29142. <![CDATA[Copy the values to other (saves object creation and gc.)
  29143. @param other the destination to hold our values]]>
  29144. </doc>
  29145. </method>
  29146. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29147. abstract="false" native="false" synchronized="false"
  29148. static="false" final="false" visibility="public"
  29149. deprecated="not deprecated">
  29150. <param name="x" type="double"/>
  29151. <doc>
  29152. <![CDATA[Add a sample the running stat.
  29153. @param x the sample number
  29154. @return self]]>
  29155. </doc>
  29156. </method>
  29157. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29158. abstract="false" native="false" synchronized="false"
  29159. static="false" final="false" visibility="public"
  29160. deprecated="not deprecated">
  29161. <param name="nSamples" type="long"/>
  29162. <param name="x" type="double"/>
  29163. <doc>
  29164. <![CDATA[Add some sample and a partial sum to the running stat.
  29165. Note, min/max is not evaluated using this method.
  29166. @param nSamples number of samples
  29167. @param x the partial sum
  29168. @return self]]>
  29169. </doc>
  29170. </method>
  29171. <method name="numSamples" return="long"
  29172. abstract="false" native="false" synchronized="false"
  29173. static="false" final="false" visibility="public"
  29174. deprecated="not deprecated">
  29175. <doc>
  29176. <![CDATA[@return the total number of samples]]>
  29177. </doc>
  29178. </method>
  29179. <method name="mean" return="double"
  29180. abstract="false" native="false" synchronized="false"
  29181. static="false" final="false" visibility="public"
  29182. deprecated="not deprecated">
  29183. <doc>
  29184. <![CDATA[@return the arithmetic mean of the samples]]>
  29185. </doc>
  29186. </method>
  29187. <method name="variance" return="double"
  29188. abstract="false" native="false" synchronized="false"
  29189. static="false" final="false" visibility="public"
  29190. deprecated="not deprecated">
  29191. <doc>
  29192. <![CDATA[@return the variance of the samples]]>
  29193. </doc>
  29194. </method>
  29195. <method name="stddev" return="double"
  29196. abstract="false" native="false" synchronized="false"
  29197. static="false" final="false" visibility="public"
  29198. deprecated="not deprecated">
  29199. <doc>
  29200. <![CDATA[@return the standard deviation of the samples]]>
  29201. </doc>
  29202. </method>
  29203. <method name="min" return="double"
  29204. abstract="false" native="false" synchronized="false"
  29205. static="false" final="false" visibility="public"
  29206. deprecated="not deprecated">
  29207. <doc>
  29208. <![CDATA[@return the minimum value of the samples]]>
  29209. </doc>
  29210. </method>
  29211. <method name="max" return="double"
  29212. abstract="false" native="false" synchronized="false"
  29213. static="false" final="false" visibility="public"
  29214. deprecated="not deprecated">
  29215. <doc>
  29216. <![CDATA[@return the maximum value of the samples]]>
  29217. </doc>
  29218. </method>
  29219. <doc>
  29220. <![CDATA[Helper to compute running sample stats]]>
  29221. </doc>
  29222. </class>
  29223. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  29224. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29225. <class name="SampleStat.MinMax" extends="java.lang.Object"
  29226. abstract="false"
  29227. static="true" final="false" visibility="public"
  29228. deprecated="not deprecated">
  29229. <constructor name="SampleStat.MinMax"
  29230. static="false" final="false" visibility="public"
  29231. deprecated="not deprecated">
  29232. </constructor>
  29233. <method name="add"
  29234. abstract="false" native="false" synchronized="false"
  29235. static="false" final="false" visibility="public"
  29236. deprecated="not deprecated">
  29237. <param name="value" type="double"/>
  29238. </method>
  29239. <method name="min" return="double"
  29240. abstract="false" native="false" synchronized="false"
  29241. static="false" final="false" visibility="public"
  29242. deprecated="not deprecated">
  29243. </method>
  29244. <method name="max" return="double"
  29245. abstract="false" native="false" synchronized="false"
  29246. static="false" final="false" visibility="public"
  29247. deprecated="not deprecated">
  29248. </method>
  29249. <method name="reset"
  29250. abstract="false" native="false" synchronized="false"
  29251. static="false" final="false" visibility="public"
  29252. deprecated="not deprecated">
  29253. </method>
  29254. <method name="reset"
  29255. abstract="false" native="false" synchronized="false"
  29256. static="false" final="false" visibility="public"
  29257. deprecated="not deprecated">
  29258. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  29259. </method>
  29260. <doc>
  29261. <![CDATA[Helper to keep running min/max]]>
  29262. </doc>
  29263. </class>
  29264. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29265. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  29266. <class name="Servers" extends="java.lang.Object"
  29267. abstract="false"
  29268. static="false" final="false" visibility="public"
  29269. deprecated="not deprecated">
  29270. <method name="parse" return="java.util.List"
  29271. abstract="false" native="false" synchronized="false"
  29272. static="true" final="false" visibility="public"
  29273. deprecated="not deprecated">
  29274. <param name="specs" type="java.lang.String"/>
  29275. <param name="defaultPort" type="int"/>
  29276. <doc>
  29277. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  29278. of the form <i>hostname</i> or <i>hostname:port</i>. If
  29279. the specs string is null, defaults to localhost:defaultPort.
  29280. @param specs server specs (see description)
  29281. @param defaultPort the default port if not specified
  29282. @return a list of InetSocketAddress objects.]]>
  29283. </doc>
  29284. </method>
  29285. <doc>
  29286. <![CDATA[Helpers to handle server addresses]]>
  29287. </doc>
  29288. </class>
  29289. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  29290. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  29291. <class name="TryIterator" extends="java.lang.Object"
  29292. abstract="true"
  29293. static="false" final="false" visibility="public"
  29294. deprecated="not deprecated">
  29295. <implements name="java.util.Iterator"/>
  29296. <constructor name="TryIterator"
  29297. static="false" final="false" visibility="public"
  29298. deprecated="not deprecated">
  29299. </constructor>
  29300. <method name="tryNext" return="java.lang.Object"
  29301. abstract="true" native="false" synchronized="false"
  29302. static="false" final="false" visibility="protected"
  29303. deprecated="not deprecated">
  29304. <doc>
  29305. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  29306. infinite loop could occur. If this method throws an exception, any
  29307. further attempts to use the iterator would result in an
  29308. {@link IllegalStateException}.
  29309. @return the next element if there is one or return {@link #done()}]]>
  29310. </doc>
  29311. </method>
  29312. <method name="done" return="java.lang.Object"
  29313. abstract="false" native="false" synchronized="false"
  29314. static="false" final="true" visibility="protected"
  29315. deprecated="not deprecated">
  29316. <doc>
  29317. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  29318. when there are no more elements left in the iteration.
  29319. @return null as a convenience to implement {@link #tryNext()}]]>
  29320. </doc>
  29321. </method>
  29322. <method name="hasNext" return="boolean"
  29323. abstract="false" native="false" synchronized="false"
  29324. static="false" final="true" visibility="public"
  29325. deprecated="not deprecated">
  29326. <doc>
  29327. <![CDATA[@return true if we have a next element or false otherwise.]]>
  29328. </doc>
  29329. </method>
  29330. <method name="next" return="java.lang.Object"
  29331. abstract="false" native="false" synchronized="false"
  29332. static="false" final="true" visibility="public"
  29333. deprecated="not deprecated">
  29334. <doc>
  29335. <![CDATA[@return the next element if we have one.]]>
  29336. </doc>
  29337. </method>
  29338. <method name="current" return="java.lang.Object"
  29339. abstract="false" native="false" synchronized="false"
  29340. static="false" final="true" visibility="public"
  29341. deprecated="not deprecated">
  29342. <doc>
  29343. <![CDATA[@return the current element without advancing the iterator]]>
  29344. </doc>
  29345. </method>
  29346. <method name="remove"
  29347. abstract="false" native="false" synchronized="false"
  29348. static="false" final="true" visibility="public"
  29349. deprecated="not deprecated">
  29350. <doc>
  29351. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  29352. </doc>
  29353. </method>
  29354. <doc>
  29355. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  29356. This class also makes writing filtering iterators easier, where the only
  29357. way to discover the end of data is by trying to read it. The same applies
  29358. to writing iterator wrappers around stream read calls.
  29359. One only needs to implement the tryNext() method and call done() when done.
  29360. @param <T> the type of the iterator]]>
  29361. </doc>
  29362. </class>
  29363. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  29364. </package>
  29365. <package name="org.apache.hadoop.net">
  29366. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29367. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  29368. abstract="false"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  29372. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29373. static="false" final="false" visibility="public"
  29374. deprecated="not deprecated">
  29375. </constructor>
  29376. <method name="resolve" return="java.util.List"
  29377. abstract="false" native="false" synchronized="false"
  29378. static="false" final="false" visibility="public"
  29379. deprecated="not deprecated">
  29380. <param name="names" type="java.util.List"/>
  29381. </method>
  29382. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29383. transient="false" volatile="false"
  29384. static="false" final="false" visibility="protected"
  29385. deprecated="not deprecated">
  29386. </field>
  29387. <doc>
  29388. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  29389. raw DNSToSwitchMapping and stores the resolved network location in
  29390. a cache. The following calls to a resolved network location
  29391. will get its location from the cache.]]>
  29392. </doc>
  29393. </class>
  29394. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29395. <!-- start class org.apache.hadoop.net.DNS -->
  29396. <class name="DNS" extends="java.lang.Object"
  29397. abstract="false"
  29398. static="false" final="false" visibility="public"
  29399. deprecated="not deprecated">
  29400. <constructor name="DNS"
  29401. static="false" final="false" visibility="public"
  29402. deprecated="not deprecated">
  29403. </constructor>
  29404. <method name="reverseDns" return="java.lang.String"
  29405. abstract="false" native="false" synchronized="false"
  29406. static="true" final="false" visibility="public"
  29407. deprecated="not deprecated">
  29408. <param name="hostIp" type="java.net.InetAddress"/>
  29409. <param name="ns" type="java.lang.String"/>
  29410. <exception name="NamingException" type="javax.naming.NamingException"/>
  29411. <doc>
  29412. <![CDATA[Returns the hostname associated with the specified IP address by the
  29413. provided nameserver.
  29414. @param hostIp
  29415. The address to reverse lookup
  29416. @param ns
  29417. The host name of a reachable DNS server
  29418. @return The host name associated with the provided IP
  29419. @throws NamingException
  29420. If a NamingException is encountered]]>
  29421. </doc>
  29422. </method>
  29423. <method name="getIPs" return="java.lang.String[]"
  29424. abstract="false" native="false" synchronized="false"
  29425. static="true" final="false" visibility="public"
  29426. deprecated="not deprecated">
  29427. <param name="strInterface" type="java.lang.String"/>
  29428. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29429. <doc>
  29430. <![CDATA[Like {@link DNS#getIPs(String, boolean)}, but returns all
  29431. IPs associated with the given interface and its subinterfaces.]]>
  29432. </doc>
  29433. </method>
  29434. <method name="getIPs" return="java.lang.String[]"
  29435. abstract="false" native="false" synchronized="false"
  29436. static="true" final="false" visibility="public"
  29437. deprecated="not deprecated">
  29438. <param name="strInterface" type="java.lang.String"/>
  29439. <param name="returnSubinterfaces" type="boolean"/>
  29440. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29441. <doc>
  29442. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  29443. textual form.
  29444. @param strInterface
  29445. The name of the network interface or subinterface to query
  29446. (eg eth0 or eth0:0) or the string "default"
  29447. @param returnSubinterfaces
  29448. Whether to return IPs associated with subinterfaces of
  29449. the given interface
  29450. @return A string vector of all the IPs associated with the provided
  29451. interface
  29452. @throws UnknownHostException
  29453. If an UnknownHostException is encountered in querying the
  29454. default interface or the given interface can not be found]]>
  29455. </doc>
  29456. </method>
  29457. <method name="getDefaultIP" return="java.lang.String"
  29458. abstract="false" native="false" synchronized="false"
  29459. static="true" final="false" visibility="public"
  29460. deprecated="not deprecated">
  29461. <param name="strInterface" type="java.lang.String"/>
  29462. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29463. <doc>
  29464. <![CDATA[Returns the first available IP address associated with the provided
  29465. network interface
  29466. @param strInterface
  29467. The name of the network interface or subinterface to query
  29468. (e.g. eth0 or eth0:0) or the string "default"
  29469. @return The IP address in text form
  29470. @throws UnknownHostException
  29471. If one is encountered in querying the default interface]]>
  29472. </doc>
  29473. </method>
  29474. <method name="getHosts" 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. <param name="nameserver" type="java.lang.String"/>
  29480. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29481. <doc>
  29482. <![CDATA[Returns all the host names associated by the provided nameserver with the
  29483. address bound to the specified network interface
  29484. @param strInterface
  29485. The name of the network interface or subinterface to query
  29486. (e.g. eth0 or eth0:0) or the string "default"
  29487. @param nameserver
  29488. The DNS host name
  29489. @return A string vector of all host names associated with the IPs tied to
  29490. the specified interface
  29491. @throws UnknownHostException]]>
  29492. </doc>
  29493. </method>
  29494. <method name="getHosts" return="java.lang.String[]"
  29495. abstract="false" native="false" synchronized="false"
  29496. static="true" final="false" visibility="public"
  29497. deprecated="not deprecated">
  29498. <param name="strInterface" type="java.lang.String"/>
  29499. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29500. <doc>
  29501. <![CDATA[Returns all the host names associated by the default nameserver with the
  29502. address bound to the specified network interface
  29503. @param strInterface
  29504. The name of the network interface to query (e.g. eth0)
  29505. @return The list of host names associated with IPs bound to the network
  29506. interface
  29507. @throws UnknownHostException
  29508. If one is encountered while querying the deault interface]]>
  29509. </doc>
  29510. </method>
  29511. <method name="getDefaultHost" return="java.lang.String"
  29512. abstract="false" native="false" synchronized="false"
  29513. static="true" final="false" visibility="public"
  29514. deprecated="not deprecated">
  29515. <param name="strInterface" type="java.lang.String"/>
  29516. <param name="nameserver" type="java.lang.String"/>
  29517. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29518. <doc>
  29519. <![CDATA[Returns the default (first) host name associated by the provided
  29520. nameserver with the address bound to the specified network interface
  29521. @param strInterface
  29522. The name of the network interface to query (e.g. eth0)
  29523. @param nameserver
  29524. The DNS host name
  29525. @return The default host names associated with IPs bound to the network
  29526. interface
  29527. @throws UnknownHostException
  29528. If one is encountered while querying the deault interface]]>
  29529. </doc>
  29530. </method>
  29531. <method name="getDefaultHost" return="java.lang.String"
  29532. abstract="false" native="false" synchronized="false"
  29533. static="true" final="false" visibility="public"
  29534. deprecated="not deprecated">
  29535. <param name="strInterface" type="java.lang.String"/>
  29536. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29537. <doc>
  29538. <![CDATA[Returns the default (first) host name associated by the default
  29539. nameserver with the address bound to the specified network interface
  29540. @param strInterface
  29541. The name of the network interface to query (e.g. eth0)
  29542. @return The default host name associated with IPs bound to the network
  29543. interface
  29544. @throws UnknownHostException
  29545. If one is encountered while querying the deault interface]]>
  29546. </doc>
  29547. </method>
  29548. <field name="LOG" type="org.apache.commons.logging.Log"
  29549. transient="false" volatile="false"
  29550. static="true" final="true" visibility="public"
  29551. deprecated="not deprecated">
  29552. </field>
  29553. <doc>
  29554. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  29555. the querying of specific network interfaces or nameservers.]]>
  29556. </doc>
  29557. </class>
  29558. <!-- end class org.apache.hadoop.net.DNS -->
  29559. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29560. <interface name="DNSToSwitchMapping" abstract="true"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <method name="resolve" return="java.util.List"
  29564. abstract="false" native="false" synchronized="false"
  29565. static="false" final="false" visibility="public"
  29566. deprecated="not deprecated">
  29567. <param name="names" type="java.util.List"/>
  29568. <doc>
  29569. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  29570. switch information (network paths). One-to-one correspondence must be
  29571. maintained between the elements in the lists.
  29572. Consider an element in the argument list - x.y.com. The switch information
  29573. that is returned must be a network path of the form /foo/rack,
  29574. where / is the root, and 'foo' is the switch where 'rack' is connected.
  29575. Note the hostname/ip-address is not part of the returned path.
  29576. The network topology of the cluster would determine the number of
  29577. components in the network path.
  29578. @param names
  29579. @return list of resolved network paths]]>
  29580. </doc>
  29581. </method>
  29582. <doc>
  29583. <![CDATA[An interface that should be implemented to allow pluggable
  29584. DNS-name/IP-address to RackID resolvers.]]>
  29585. </doc>
  29586. </interface>
  29587. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29588. <!-- start class org.apache.hadoop.net.NetUtils -->
  29589. <class name="NetUtils" extends="java.lang.Object"
  29590. abstract="false"
  29591. static="false" final="false" visibility="public"
  29592. deprecated="not deprecated">
  29593. <constructor name="NetUtils"
  29594. static="false" final="false" visibility="public"
  29595. deprecated="not deprecated">
  29596. </constructor>
  29597. <method name="getSocketFactory" return="javax.net.SocketFactory"
  29598. abstract="false" native="false" synchronized="false"
  29599. static="true" final="false" visibility="public"
  29600. deprecated="not deprecated">
  29601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29602. <param name="clazz" type="java.lang.Class"/>
  29603. <doc>
  29604. <![CDATA[Get the socket factory for the given class according to its
  29605. configuration parameter
  29606. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  29607. such parameter exists then fall back on the default socket factory as
  29608. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  29609. this default socket factory is not configured, then fall back on the JVM
  29610. default socket factory.
  29611. @param conf the configuration
  29612. @param clazz the class (usually a {@link VersionedProtocol})
  29613. @return a socket factory]]>
  29614. </doc>
  29615. </method>
  29616. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  29617. abstract="false" native="false" synchronized="false"
  29618. static="true" final="false" visibility="public"
  29619. deprecated="not deprecated">
  29620. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29621. <doc>
  29622. <![CDATA[Get the default socket factory as specified by the configuration
  29623. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  29624. @param conf the configuration
  29625. @return the default socket factory as specified in the configuration or
  29626. the JVM default socket factory if the configuration does not
  29627. contain a default socket factory property.]]>
  29628. </doc>
  29629. </method>
  29630. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  29631. abstract="false" native="false" synchronized="false"
  29632. static="true" final="false" visibility="public"
  29633. deprecated="not deprecated">
  29634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29635. <param name="propValue" type="java.lang.String"/>
  29636. <doc>
  29637. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  29638. given proxy URI corresponds to an absence of configuration parameter,
  29639. returns null. If the URI is malformed raises an exception.
  29640. @param propValue the property which is the class name of the
  29641. SocketFactory to instantiate; assumed non null and non empty.
  29642. @return a socket factory as defined in the property value.]]>
  29643. </doc>
  29644. </method>
  29645. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29646. abstract="false" native="false" synchronized="false"
  29647. static="true" final="false" visibility="public"
  29648. deprecated="not deprecated">
  29649. <param name="target" type="java.lang.String"/>
  29650. <doc>
  29651. <![CDATA[Util method to build socket addr from either:
  29652. <host>:<post>
  29653. <fs>://<host>:<port>/<path>]]>
  29654. </doc>
  29655. </method>
  29656. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29657. abstract="false" native="false" synchronized="false"
  29658. static="true" final="false" visibility="public"
  29659. deprecated="not deprecated">
  29660. <param name="target" type="java.lang.String"/>
  29661. <param name="defaultPort" type="int"/>
  29662. <doc>
  29663. <![CDATA[Util method to build socket addr from either:
  29664. <host>
  29665. <host>:<post>
  29666. <fs>://<host>:<port>/<path>]]>
  29667. </doc>
  29668. </method>
  29669. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  29670. abstract="false" native="false" synchronized="false"
  29671. static="true" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. <param name="host" type="java.lang.String"/>
  29674. <param name="port" type="int"/>
  29675. <doc>
  29676. <![CDATA[Create a socket address with the given host and port. The hostname
  29677. might be replaced with another host that was set via
  29678. {@link #addStaticResolution(String, String)}. The value of
  29679. hadoop.security.token.service.use_ip will determine whether the
  29680. standard java host resolver is used, or if the fully qualified resolver
  29681. is used.
  29682. @param host the hostname or IP use to instantiate the object
  29683. @param port the port number
  29684. @return InetSocketAddress]]>
  29685. </doc>
  29686. </method>
  29687. <method name="getCanonicalUri" return="java.net.URI"
  29688. abstract="false" native="false" synchronized="false"
  29689. static="true" final="false" visibility="public"
  29690. deprecated="not deprecated">
  29691. <param name="uri" type="java.net.URI"/>
  29692. <param name="defaultPort" type="int"/>
  29693. <doc>
  29694. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  29695. @param uri to resolve
  29696. @param defaultPort if none is given
  29697. @return URI
  29698. @throws UnknownHostException]]>
  29699. </doc>
  29700. </method>
  29701. <method name="getServerAddress" return="java.lang.String"
  29702. abstract="false" native="false" synchronized="false"
  29703. static="true" final="false" visibility="public"
  29704. deprecated="not deprecated">
  29705. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29706. <param name="oldBindAddressName" type="java.lang.String"/>
  29707. <param name="oldPortName" type="java.lang.String"/>
  29708. <param name="newBindAddressName" type="java.lang.String"/>
  29709. <doc>
  29710. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  29711. to a single colon separated one.
  29712. @param conf the configuration to check
  29713. @param oldBindAddressName the old address attribute name
  29714. @param oldPortName the old port attribute name
  29715. @param newBindAddressName the new combined name
  29716. @return the complete address from the configuration]]>
  29717. </doc>
  29718. </method>
  29719. <method name="addStaticResolution"
  29720. abstract="false" native="false" synchronized="false"
  29721. static="true" final="false" visibility="public"
  29722. deprecated="not deprecated">
  29723. <param name="host" type="java.lang.String"/>
  29724. <param name="resolvedName" type="java.lang.String"/>
  29725. <doc>
  29726. <![CDATA[Adds a static resolution for host. This can be used for setting up
  29727. hostnames with names that are fake to point to a well known host. For e.g.
  29728. in some testcases we require to have daemons with different hostnames
  29729. running on the same machine. In order to create connections to these
  29730. daemons, one can set up mappings from those hostnames to "localhost".
  29731. {@link NetUtils#getStaticResolution(String)} can be used to query for
  29732. the actual hostname.
  29733. @param host
  29734. @param resolvedName]]>
  29735. </doc>
  29736. </method>
  29737. <method name="getStaticResolution" return="java.lang.String"
  29738. abstract="false" native="false" synchronized="false"
  29739. static="true" final="false" visibility="public"
  29740. deprecated="not deprecated">
  29741. <param name="host" type="java.lang.String"/>
  29742. <doc>
  29743. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  29744. have been set earlier using
  29745. {@link NetUtils#addStaticResolution(String, String)}
  29746. @param host
  29747. @return the resolution]]>
  29748. </doc>
  29749. </method>
  29750. <method name="getAllStaticResolutions" return="java.util.List"
  29751. abstract="false" native="false" synchronized="false"
  29752. static="true" final="false" visibility="public"
  29753. deprecated="not deprecated">
  29754. <doc>
  29755. <![CDATA[This is used to get all the resolutions that were added using
  29756. {@link NetUtils#addStaticResolution(String, String)}. The return
  29757. value is a List each element of which contains an array of String
  29758. of the form String[0]=hostname, String[1]=resolved-hostname
  29759. @return the list of resolutions]]>
  29760. </doc>
  29761. </method>
  29762. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  29763. abstract="false" native="false" synchronized="false"
  29764. static="true" final="false" visibility="public"
  29765. deprecated="not deprecated">
  29766. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  29767. <doc>
  29768. <![CDATA[Returns InetSocketAddress that a client can use to
  29769. connect to the server. Server.getListenerAddress() is not correct when
  29770. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  29771. the getListenerAddress() returns "0.0.0.0:port".
  29772. @param server
  29773. @return socket address that a client can use to connect to the server.]]>
  29774. </doc>
  29775. </method>
  29776. <method name="getInputStream" return="java.io.InputStream"
  29777. abstract="false" native="false" synchronized="false"
  29778. static="true" final="false" visibility="public"
  29779. deprecated="not deprecated">
  29780. <param name="socket" type="java.net.Socket"/>
  29781. <exception name="IOException" type="java.io.IOException"/>
  29782. <doc>
  29783. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  29784. From documentation for {@link #getInputStream(Socket, long)}:<br>
  29785. Returns InputStream for the socket. If the socket has an associated
  29786. SocketChannel then it returns a
  29787. {@link SocketInputStream} with the given timeout. If the socket does not
  29788. have a channel, {@link Socket#getInputStream()} is returned. In the later
  29789. case, the timeout argument is ignored and the timeout set with
  29790. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  29791. Any socket created using socket factories returned by {@link NetUtils},
  29792. must use this interface instead of {@link Socket#getInputStream()}.
  29793. @see #getInputStream(Socket, long)
  29794. @param socket
  29795. @return InputStream for reading from the socket.
  29796. @throws IOException]]>
  29797. </doc>
  29798. </method>
  29799. <method name="getInputStream" return="java.io.InputStream"
  29800. abstract="false" native="false" synchronized="false"
  29801. static="true" final="false" visibility="public"
  29802. deprecated="not deprecated">
  29803. <param name="socket" type="java.net.Socket"/>
  29804. <param name="timeout" type="long"/>
  29805. <exception name="IOException" type="java.io.IOException"/>
  29806. <doc>
  29807. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  29808. SocketChannel then it returns a
  29809. {@link SocketInputStream} with the given timeout. If the socket does not
  29810. have a channel, {@link Socket#getInputStream()} is returned. In the later
  29811. case, the timeout argument is ignored and the timeout set with
  29812. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  29813. Any socket created using socket factories returned by {@link NetUtils},
  29814. must use this interface instead of {@link Socket#getInputStream()}.
  29815. @see Socket#getChannel()
  29816. @param socket
  29817. @param timeout timeout in milliseconds. This may not always apply. zero
  29818. for waiting as long as necessary.
  29819. @return InputStream for reading from the socket.
  29820. @throws IOException]]>
  29821. </doc>
  29822. </method>
  29823. <method name="getOutputStream" return="java.io.OutputStream"
  29824. abstract="false" native="false" synchronized="false"
  29825. static="true" final="false" visibility="public"
  29826. deprecated="not deprecated">
  29827. <param name="socket" type="java.net.Socket"/>
  29828. <exception name="IOException" type="java.io.IOException"/>
  29829. <doc>
  29830. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  29831. wait until data is available.<br><br>
  29832. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  29833. Returns OutputStream for the socket. If the socket has an associated
  29834. SocketChannel then it returns a
  29835. {@link SocketOutputStream} with the given timeout. If the socket does not
  29836. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  29837. case, the timeout argument is ignored and the write will wait until
  29838. data is available.<br><br>
  29839. Any socket created using socket factories returned by {@link NetUtils},
  29840. must use this interface instead of {@link Socket#getOutputStream()}.
  29841. @see #getOutputStream(Socket, long)
  29842. @param socket
  29843. @return OutputStream for writing to the socket.
  29844. @throws IOException]]>
  29845. </doc>
  29846. </method>
  29847. <method name="getOutputStream" return="java.io.OutputStream"
  29848. abstract="false" native="false" synchronized="false"
  29849. static="true" final="false" visibility="public"
  29850. deprecated="not deprecated">
  29851. <param name="socket" type="java.net.Socket"/>
  29852. <param name="timeout" type="long"/>
  29853. <exception name="IOException" type="java.io.IOException"/>
  29854. <doc>
  29855. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  29856. SocketChannel then it returns a
  29857. {@link SocketOutputStream} with the given timeout. If the socket does not
  29858. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  29859. case, the timeout argument is ignored and the write will wait until
  29860. data is available.<br><br>
  29861. Any socket created using socket factories returned by {@link NetUtils},
  29862. must use this interface instead of {@link Socket#getOutputStream()}.
  29863. @see Socket#getChannel()
  29864. @param socket
  29865. @param timeout timeout in milliseconds. This may not always apply. zero
  29866. for waiting as long as necessary.
  29867. @return OutputStream for writing to the socket.
  29868. @throws IOException]]>
  29869. </doc>
  29870. </method>
  29871. <method name="connect"
  29872. abstract="false" native="false" synchronized="false"
  29873. static="true" final="false" visibility="public"
  29874. deprecated="not deprecated">
  29875. <param name="socket" type="java.net.Socket"/>
  29876. <param name="address" type="java.net.SocketAddress"/>
  29877. <param name="timeout" type="int"/>
  29878. <exception name="IOException" type="java.io.IOException"/>
  29879. <doc>
  29880. <![CDATA[This is a drop-in replacement for
  29881. {@link Socket#connect(SocketAddress, int)}.
  29882. In the case of normal sockets that don't have associated channels, this
  29883. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  29884. <code>socket.getChannel()</code> returns a non-null channel,
  29885. connect is implemented using Hadoop's selectors. This is done mainly
  29886. to avoid Sun's connect implementation from creating thread-local
  29887. selectors, since Hadoop does not have control on when these are closed
  29888. and could end up taking all the available file descriptors.
  29889. @see java.net.Socket#connect(java.net.SocketAddress, int)
  29890. @param socket
  29891. @param address the remote address
  29892. @param timeout timeout in milliseconds]]>
  29893. </doc>
  29894. </method>
  29895. <method name="connect"
  29896. abstract="false" native="false" synchronized="false"
  29897. static="true" final="false" visibility="public"
  29898. deprecated="not deprecated">
  29899. <param name="socket" type="java.net.Socket"/>
  29900. <param name="endpoint" type="java.net.SocketAddress"/>
  29901. <param name="localAddr" type="java.net.SocketAddress"/>
  29902. <param name="timeout" type="int"/>
  29903. <exception name="IOException" type="java.io.IOException"/>
  29904. <doc>
  29905. <![CDATA[Like {@link NetUtils#connect(Socket, SocketAddress, int)} but
  29906. also takes a local address and port to bind the socket to.
  29907. @param socket
  29908. @param endpoint the remote address
  29909. @param localAddr the local address to bind the socket to
  29910. @param timeout timeout in milliseconds]]>
  29911. </doc>
  29912. </method>
  29913. <method name="normalizeHostName" return="java.lang.String"
  29914. abstract="false" native="false" synchronized="false"
  29915. static="true" final="false" visibility="public"
  29916. deprecated="not deprecated">
  29917. <param name="name" type="java.lang.String"/>
  29918. <doc>
  29919. <![CDATA[Given a string representation of a host, return its ip address
  29920. in textual presentation.
  29921. @param name a string representation of a host:
  29922. either a textual representation its IP address or its host name
  29923. @return its IP address in the string format]]>
  29924. </doc>
  29925. </method>
  29926. <method name="normalizeHostNames" return="java.util.List"
  29927. abstract="false" native="false" synchronized="false"
  29928. static="true" final="false" visibility="public"
  29929. deprecated="not deprecated">
  29930. <param name="names" type="java.util.Collection"/>
  29931. <doc>
  29932. <![CDATA[Given a collection of string representation of hosts, return a list of
  29933. corresponding IP addresses in the textual representation.
  29934. @param names a collection of string representations of hosts
  29935. @return a list of corresponding IP addresses in the string format
  29936. @see #normalizeHostName(String)]]>
  29937. </doc>
  29938. </method>
  29939. <method name="verifyHostnames"
  29940. abstract="false" native="false" synchronized="false"
  29941. static="true" final="false" visibility="public"
  29942. deprecated="not deprecated">
  29943. <param name="names" type="java.lang.String[]"/>
  29944. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29945. <doc>
  29946. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  29947. appear to be valid.
  29948. @param names - List of hostnames/IPs
  29949. @throws UnknownHostException]]>
  29950. </doc>
  29951. </method>
  29952. <method name="getLocalInetAddress" return="java.net.InetAddress"
  29953. abstract="false" native="false" synchronized="false"
  29954. static="true" final="false" visibility="public"
  29955. deprecated="not deprecated">
  29956. <param name="host" type="java.lang.String"/>
  29957. <exception name="SocketException" type="java.net.SocketException"/>
  29958. <doc>
  29959. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  29960. corresponding to that address.
  29961. @param host the specified host
  29962. @return a valid local {@link InetAddress} or null
  29963. @throws SocketException if an I/O error occurs]]>
  29964. </doc>
  29965. </method>
  29966. <method name="isValidSubnet" return="boolean"
  29967. abstract="false" native="false" synchronized="false"
  29968. static="true" final="false" visibility="public"
  29969. deprecated="not deprecated">
  29970. <param name="subnet" type="java.lang.String"/>
  29971. <doc>
  29972. <![CDATA[@return true if the given string is a subnet specified
  29973. using CIDR notation, false otherwise]]>
  29974. </doc>
  29975. </method>
  29976. <method name="getIPs" return="java.util.List"
  29977. abstract="false" native="false" synchronized="false"
  29978. static="true" final="false" visibility="public"
  29979. deprecated="not deprecated">
  29980. <param name="subnet" type="java.lang.String"/>
  29981. <param name="returnSubinterfaces" type="boolean"/>
  29982. <doc>
  29983. <![CDATA[Return an InetAddress for each interface that matches the
  29984. given subnet specified using CIDR notation.
  29985. @param subnet subnet specified using CIDR notation
  29986. @param returnSubinterfaces
  29987. whether to return IPs associated with subinterfaces
  29988. @throws IllegalArgumentException if subnet is invalid]]>
  29989. </doc>
  29990. </method>
  29991. </class>
  29992. <!-- end class org.apache.hadoop.net.NetUtils -->
  29993. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  29994. <class name="NetworkTopology" extends="java.lang.Object"
  29995. abstract="false"
  29996. static="false" final="false" visibility="public"
  29997. deprecated="not deprecated">
  29998. <constructor name="NetworkTopology"
  29999. static="false" final="false" visibility="public"
  30000. deprecated="not deprecated">
  30001. </constructor>
  30002. <method name="add"
  30003. abstract="false" native="false" synchronized="false"
  30004. static="false" final="false" visibility="public"
  30005. deprecated="not deprecated">
  30006. <param name="node" type="org.apache.hadoop.net.Node"/>
  30007. <doc>
  30008. <![CDATA[Add a leaf node
  30009. Update node counter & rack counter if neccessary
  30010. @param node
  30011. node to be added
  30012. @exception IllegalArgumentException if add a node to a leave
  30013. or node to be added is not a leaf]]>
  30014. </doc>
  30015. </method>
  30016. <method name="remove"
  30017. abstract="false" native="false" synchronized="false"
  30018. static="false" final="false" visibility="public"
  30019. deprecated="not deprecated">
  30020. <param name="node" type="org.apache.hadoop.net.Node"/>
  30021. <doc>
  30022. <![CDATA[Remove a node
  30023. Update node counter & rack counter if neccessary
  30024. @param node
  30025. node to be removed]]>
  30026. </doc>
  30027. </method>
  30028. <method name="contains" return="boolean"
  30029. abstract="false" native="false" synchronized="false"
  30030. static="false" final="false" visibility="public"
  30031. deprecated="not deprecated">
  30032. <param name="node" type="org.apache.hadoop.net.Node"/>
  30033. <doc>
  30034. <![CDATA[Check if the tree contains node <i>node</i>
  30035. @param node
  30036. a node
  30037. @return true if <i>node</i> is already in the tree; false otherwise]]>
  30038. </doc>
  30039. </method>
  30040. <method name="getNode" return="org.apache.hadoop.net.Node"
  30041. abstract="false" native="false" synchronized="false"
  30042. static="false" final="false" visibility="public"
  30043. deprecated="not deprecated">
  30044. <param name="loc" type="java.lang.String"/>
  30045. <doc>
  30046. <![CDATA[Given a string representation of a node, return its reference
  30047. @param loc
  30048. a path-like string representation of a node
  30049. @return a reference to the node; null if the node is not in the tree]]>
  30050. </doc>
  30051. </method>
  30052. <method name="getNumOfRacks" return="int"
  30053. abstract="false" native="false" synchronized="false"
  30054. static="false" final="false" visibility="public"
  30055. deprecated="not deprecated">
  30056. <doc>
  30057. <![CDATA[Return the total number of racks]]>
  30058. </doc>
  30059. </method>
  30060. <method name="getNumOfLeaves" return="int"
  30061. abstract="false" native="false" synchronized="false"
  30062. static="false" final="false" visibility="public"
  30063. deprecated="not deprecated">
  30064. <doc>
  30065. <![CDATA[Return the total number of nodes]]>
  30066. </doc>
  30067. </method>
  30068. <method name="getDistance" return="int"
  30069. abstract="false" native="false" synchronized="false"
  30070. static="false" final="false" visibility="public"
  30071. deprecated="not deprecated">
  30072. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30073. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30074. <doc>
  30075. <![CDATA[Return the distance between two nodes
  30076. It is assumed that the distance from one node to its parent is 1
  30077. The distance between two nodes is calculated by summing up their distances
  30078. to their closest common ancestor.
  30079. @param node1 one node
  30080. @param node2 another node
  30081. @return the distance between node1 and node2
  30082. node1 or node2 do not belong to the cluster]]>
  30083. </doc>
  30084. </method>
  30085. <method name="isOnSameRack" return="boolean"
  30086. abstract="false" native="false" synchronized="false"
  30087. static="false" final="false" visibility="public"
  30088. deprecated="not deprecated">
  30089. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30090. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30091. <doc>
  30092. <![CDATA[Check if two nodes are on the same rack
  30093. @param node1 one node
  30094. @param node2 another node
  30095. @return true if node1 and node2 are pm the same rack; false otherwise
  30096. @exception IllegalArgumentException when either node1 or node2 is null, or
  30097. node1 or node2 do not belong to the cluster]]>
  30098. </doc>
  30099. </method>
  30100. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  30101. abstract="false" native="false" synchronized="false"
  30102. static="false" final="false" visibility="public"
  30103. deprecated="not deprecated">
  30104. <param name="scope" type="java.lang.String"/>
  30105. <doc>
  30106. <![CDATA[randomly choose one node from <i>scope</i>
  30107. if scope starts with ~, choose one from the all nodes except for the
  30108. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  30109. @param scope range of nodes from which a node will be choosen
  30110. @return the choosen node]]>
  30111. </doc>
  30112. </method>
  30113. <method name="countNumOfAvailableNodes" return="int"
  30114. abstract="false" native="false" synchronized="false"
  30115. static="false" final="false" visibility="public"
  30116. deprecated="not deprecated">
  30117. <param name="scope" type="java.lang.String"/>
  30118. <param name="excludedNodes" type="java.util.List"/>
  30119. <doc>
  30120. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  30121. if scope starts with ~, return the number of nodes that are not
  30122. in <i>scope</i> and <i>excludedNodes</i>;
  30123. @param scope a path string that may start with ~
  30124. @param excludedNodes a list of nodes
  30125. @return number of available nodes]]>
  30126. </doc>
  30127. </method>
  30128. <method name="toString" return="java.lang.String"
  30129. abstract="false" native="false" synchronized="false"
  30130. static="false" final="false" visibility="public"
  30131. deprecated="not deprecated">
  30132. <doc>
  30133. <![CDATA[convert a network tree to a string]]>
  30134. </doc>
  30135. </method>
  30136. <method name="pseudoSortByDistance"
  30137. abstract="false" native="false" synchronized="false"
  30138. static="false" final="false" visibility="public"
  30139. deprecated="not deprecated">
  30140. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30141. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30142. <doc>
  30143. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30144. It linearly scans the array, if a local node is found, swap it with
  30145. the first element of the array.
  30146. If a local rack node is found, swap it with the first element following
  30147. the local node.
  30148. If neither local node or local rack node is found, put a random replica
  30149. location at postion 0.
  30150. It leaves the rest nodes untouched.]]>
  30151. </doc>
  30152. </method>
  30153. <field name="DEFAULT_RACK" type="java.lang.String"
  30154. transient="false" volatile="false"
  30155. static="true" final="true" visibility="public"
  30156. deprecated="not deprecated">
  30157. </field>
  30158. <field name="DEFAULT_HOST_LEVEL" type="int"
  30159. transient="false" volatile="false"
  30160. static="true" final="true" visibility="public"
  30161. deprecated="not deprecated">
  30162. </field>
  30163. <field name="LOG" type="org.apache.commons.logging.Log"
  30164. transient="false" volatile="false"
  30165. static="true" final="true" visibility="public"
  30166. deprecated="not deprecated">
  30167. </field>
  30168. <doc>
  30169. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  30170. network topology.
  30171. For example, a cluster may be consists of many data centers filled
  30172. with racks of computers.
  30173. In a network topology, leaves represent data nodes (computers) and inner
  30174. nodes represent switches/routers that manage traffic in/out of data centers
  30175. or racks.]]>
  30176. </doc>
  30177. </class>
  30178. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  30179. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30180. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  30181. abstract="false"
  30182. static="true" final="false" visibility="public"
  30183. deprecated="not deprecated">
  30184. <constructor name="NetworkTopology.InvalidTopologyException" type="java.lang.String"
  30185. static="false" final="false" visibility="public"
  30186. deprecated="not deprecated">
  30187. </constructor>
  30188. </class>
  30189. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30190. <!-- start interface org.apache.hadoop.net.Node -->
  30191. <interface name="Node" abstract="true"
  30192. static="false" final="false" visibility="public"
  30193. deprecated="not deprecated">
  30194. <method name="getNetworkLocation" return="java.lang.String"
  30195. abstract="false" native="false" synchronized="false"
  30196. static="false" final="false" visibility="public"
  30197. deprecated="not deprecated">
  30198. <doc>
  30199. <![CDATA[Return the string representation of this node's network location]]>
  30200. </doc>
  30201. </method>
  30202. <method name="setNetworkLocation"
  30203. abstract="false" native="false" synchronized="false"
  30204. static="false" final="false" visibility="public"
  30205. deprecated="not deprecated">
  30206. <param name="location" type="java.lang.String"/>
  30207. <doc>
  30208. <![CDATA[Set the node's network location]]>
  30209. </doc>
  30210. </method>
  30211. <method name="getName" return="java.lang.String"
  30212. abstract="false" native="false" synchronized="false"
  30213. static="false" final="false" visibility="public"
  30214. deprecated="not deprecated">
  30215. <doc>
  30216. <![CDATA[Return this node's name]]>
  30217. </doc>
  30218. </method>
  30219. <method name="getParent" return="org.apache.hadoop.net.Node"
  30220. abstract="false" native="false" synchronized="false"
  30221. static="false" final="false" visibility="public"
  30222. deprecated="not deprecated">
  30223. <doc>
  30224. <![CDATA[Return this node's parent]]>
  30225. </doc>
  30226. </method>
  30227. <method name="setParent"
  30228. abstract="false" native="false" synchronized="false"
  30229. static="false" final="false" visibility="public"
  30230. deprecated="not deprecated">
  30231. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30232. <doc>
  30233. <![CDATA[Set this node's parent]]>
  30234. </doc>
  30235. </method>
  30236. <method name="getLevel" return="int"
  30237. abstract="false" native="false" synchronized="false"
  30238. static="false" final="false" visibility="public"
  30239. deprecated="not deprecated">
  30240. <doc>
  30241. <![CDATA[Return this node's level in the tree.
  30242. E.g. the root of a tree returns 0 and its children return 1]]>
  30243. </doc>
  30244. </method>
  30245. <method name="setLevel"
  30246. abstract="false" native="false" synchronized="false"
  30247. static="false" final="false" visibility="public"
  30248. deprecated="not deprecated">
  30249. <param name="i" type="int"/>
  30250. <doc>
  30251. <![CDATA[Set this node's level in the tree.]]>
  30252. </doc>
  30253. </method>
  30254. <doc>
  30255. <![CDATA[The interface defines a node in a network topology.
  30256. A node may be a leave representing a data node or an inner
  30257. node representing a datacenter or rack.
  30258. Each data has a name and its location in the network is
  30259. decided by a string with syntax similar to a file name.
  30260. For example, a data node's name is hostname:port# and if it's located at
  30261. rack "orange" in datacenter "dog", the string representation of its
  30262. network location is /dog/orange]]>
  30263. </doc>
  30264. </interface>
  30265. <!-- end interface org.apache.hadoop.net.Node -->
  30266. <!-- start class org.apache.hadoop.net.NodeBase -->
  30267. <class name="NodeBase" extends="java.lang.Object"
  30268. abstract="false"
  30269. static="false" final="false" visibility="public"
  30270. deprecated="not deprecated">
  30271. <implements name="org.apache.hadoop.net.Node"/>
  30272. <constructor name="NodeBase"
  30273. static="false" final="false" visibility="public"
  30274. deprecated="not deprecated">
  30275. <doc>
  30276. <![CDATA[Default constructor]]>
  30277. </doc>
  30278. </constructor>
  30279. <constructor name="NodeBase" type="java.lang.String"
  30280. static="false" final="false" visibility="public"
  30281. deprecated="not deprecated">
  30282. <doc>
  30283. <![CDATA[Construct a node from its path
  30284. @param path
  30285. a concatenation of this node's location, the path seperator, and its name]]>
  30286. </doc>
  30287. </constructor>
  30288. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  30289. static="false" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <doc>
  30292. <![CDATA[Construct a node from its name and its location
  30293. @param name this node's name
  30294. @param location this node's location]]>
  30295. </doc>
  30296. </constructor>
  30297. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  30298. static="false" final="false" visibility="public"
  30299. deprecated="not deprecated">
  30300. <doc>
  30301. <![CDATA[Construct a node from its name and its location
  30302. @param name this node's name
  30303. @param location this node's location
  30304. @param parent this node's parent node
  30305. @param level this node's level in the tree]]>
  30306. </doc>
  30307. </constructor>
  30308. <method name="getName" return="java.lang.String"
  30309. abstract="false" native="false" synchronized="false"
  30310. static="false" final="false" visibility="public"
  30311. deprecated="not deprecated">
  30312. <doc>
  30313. <![CDATA[Return this node's name]]>
  30314. </doc>
  30315. </method>
  30316. <method name="getNetworkLocation" return="java.lang.String"
  30317. abstract="false" native="false" synchronized="false"
  30318. static="false" final="false" visibility="public"
  30319. deprecated="not deprecated">
  30320. <doc>
  30321. <![CDATA[Return this node's network location]]>
  30322. </doc>
  30323. </method>
  30324. <method name="setNetworkLocation"
  30325. abstract="false" native="false" synchronized="false"
  30326. static="false" final="false" visibility="public"
  30327. deprecated="not deprecated">
  30328. <param name="location" type="java.lang.String"/>
  30329. <doc>
  30330. <![CDATA[Set this node's network location]]>
  30331. </doc>
  30332. </method>
  30333. <method name="getPath" return="java.lang.String"
  30334. abstract="false" native="false" synchronized="false"
  30335. static="true" final="false" visibility="public"
  30336. deprecated="not deprecated">
  30337. <param name="node" type="org.apache.hadoop.net.Node"/>
  30338. <doc>
  30339. <![CDATA[Return this node's path]]>
  30340. </doc>
  30341. </method>
  30342. <method name="toString" return="java.lang.String"
  30343. abstract="false" native="false" synchronized="false"
  30344. static="false" final="false" visibility="public"
  30345. deprecated="not deprecated">
  30346. <doc>
  30347. <![CDATA[Return this node's string representation]]>
  30348. </doc>
  30349. </method>
  30350. <method name="normalize" return="java.lang.String"
  30351. abstract="false" native="false" synchronized="false"
  30352. static="true" final="false" visibility="public"
  30353. deprecated="not deprecated">
  30354. <param name="path" type="java.lang.String"/>
  30355. <doc>
  30356. <![CDATA[Normalize a path]]>
  30357. </doc>
  30358. </method>
  30359. <method name="getParent" return="org.apache.hadoop.net.Node"
  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 parent]]>
  30365. </doc>
  30366. </method>
  30367. <method name="setParent"
  30368. abstract="false" native="false" synchronized="false"
  30369. static="false" final="false" visibility="public"
  30370. deprecated="not deprecated">
  30371. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30372. <doc>
  30373. <![CDATA[Set this node's parent]]>
  30374. </doc>
  30375. </method>
  30376. <method name="getLevel" return="int"
  30377. abstract="false" native="false" synchronized="false"
  30378. static="false" final="false" visibility="public"
  30379. deprecated="not deprecated">
  30380. <doc>
  30381. <![CDATA[Return this node's level in the tree.
  30382. E.g. the root of a tree returns 0 and its children return 1]]>
  30383. </doc>
  30384. </method>
  30385. <method name="setLevel"
  30386. abstract="false" native="false" synchronized="false"
  30387. static="false" final="false" visibility="public"
  30388. deprecated="not deprecated">
  30389. <param name="level" type="int"/>
  30390. <doc>
  30391. <![CDATA[Set this node's level in the tree]]>
  30392. </doc>
  30393. </method>
  30394. <field name="PATH_SEPARATOR" type="char"
  30395. transient="false" volatile="false"
  30396. static="true" final="true" visibility="public"
  30397. deprecated="not deprecated">
  30398. </field>
  30399. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  30400. transient="false" volatile="false"
  30401. static="true" final="true" visibility="public"
  30402. deprecated="not deprecated">
  30403. </field>
  30404. <field name="ROOT" type="java.lang.String"
  30405. transient="false" volatile="false"
  30406. static="true" final="true" visibility="public"
  30407. deprecated="not deprecated">
  30408. </field>
  30409. <field name="name" type="java.lang.String"
  30410. transient="false" volatile="false"
  30411. static="false" final="false" visibility="protected"
  30412. deprecated="not deprecated">
  30413. </field>
  30414. <field name="location" type="java.lang.String"
  30415. transient="false" volatile="false"
  30416. static="false" final="false" visibility="protected"
  30417. deprecated="not deprecated">
  30418. </field>
  30419. <field name="level" type="int"
  30420. transient="false" volatile="false"
  30421. static="false" final="false" visibility="protected"
  30422. deprecated="not deprecated">
  30423. </field>
  30424. <field name="parent" type="org.apache.hadoop.net.Node"
  30425. transient="false" volatile="false"
  30426. static="false" final="false" visibility="protected"
  30427. deprecated="not deprecated">
  30428. </field>
  30429. <doc>
  30430. <![CDATA[A base class that implements interface Node]]>
  30431. </doc>
  30432. </class>
  30433. <!-- end class org.apache.hadoop.net.NodeBase -->
  30434. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  30435. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  30436. abstract="false"
  30437. static="false" final="true" visibility="public"
  30438. deprecated="not deprecated">
  30439. <implements name="org.apache.hadoop.conf.Configurable"/>
  30440. <constructor name="ScriptBasedMapping"
  30441. static="false" final="false" visibility="public"
  30442. deprecated="not deprecated">
  30443. </constructor>
  30444. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  30445. static="false" final="false" visibility="public"
  30446. deprecated="not deprecated">
  30447. </constructor>
  30448. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30449. abstract="false" native="false" synchronized="false"
  30450. static="false" final="false" visibility="public"
  30451. deprecated="not deprecated">
  30452. </method>
  30453. <method name="setConf"
  30454. abstract="false" native="false" synchronized="false"
  30455. static="false" final="false" visibility="public"
  30456. deprecated="not deprecated">
  30457. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30458. </method>
  30459. <doc>
  30460. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  30461. script configured via topology.script.file.name .]]>
  30462. </doc>
  30463. </class>
  30464. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  30465. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  30466. <class name="SocketInputStream" extends="java.io.InputStream"
  30467. abstract="false"
  30468. static="false" final="false" visibility="public"
  30469. deprecated="not deprecated">
  30470. <implements name="java.nio.channels.ReadableByteChannel"/>
  30471. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  30472. static="false" final="false" visibility="public"
  30473. deprecated="not deprecated">
  30474. <exception name="IOException" type="java.io.IOException"/>
  30475. <doc>
  30476. <![CDATA[Create a new input stream with the given timeout. If the timeout
  30477. is zero, it will be treated as infinite timeout. The socket's
  30478. channel will be configured to be non-blocking.
  30479. @param channel
  30480. Channel for reading, should also be a {@link SelectableChannel}.
  30481. The channel will be configured to be non-blocking.
  30482. @param timeout timeout in milliseconds. must not be negative.
  30483. @throws IOException]]>
  30484. </doc>
  30485. </constructor>
  30486. <constructor name="SocketInputStream" type="java.net.Socket, long"
  30487. static="false" final="false" visibility="public"
  30488. deprecated="not deprecated">
  30489. <exception name="IOException" type="java.io.IOException"/>
  30490. <doc>
  30491. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  30492. Create a new input stream with the given timeout. If the timeout
  30493. is zero, it will be treated as infinite timeout. The socket's
  30494. channel will be configured to be non-blocking.
  30495. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  30496. @param socket should have a channel associated with it.
  30497. @param timeout timeout timeout in milliseconds. must not be negative.
  30498. @throws IOException]]>
  30499. </doc>
  30500. </constructor>
  30501. <constructor name="SocketInputStream" type="java.net.Socket"
  30502. static="false" final="false" visibility="public"
  30503. deprecated="not deprecated">
  30504. <exception name="IOException" type="java.io.IOException"/>
  30505. <doc>
  30506. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  30507. :<br><br>
  30508. Create a new input stream with the given timeout. If the timeout
  30509. is zero, it will be treated as infinite timeout. The socket's
  30510. channel will be configured to be non-blocking.
  30511. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  30512. @param socket should have a channel associated with it.
  30513. @throws IOException]]>
  30514. </doc>
  30515. </constructor>
  30516. <method name="read" return="int"
  30517. abstract="false" native="false" synchronized="false"
  30518. static="false" final="false" visibility="public"
  30519. deprecated="not deprecated">
  30520. <exception name="IOException" type="java.io.IOException"/>
  30521. </method>
  30522. <method name="read" return="int"
  30523. abstract="false" native="false" synchronized="false"
  30524. static="false" final="false" visibility="public"
  30525. deprecated="not deprecated">
  30526. <param name="b" type="byte[]"/>
  30527. <param name="off" type="int"/>
  30528. <param name="len" type="int"/>
  30529. <exception name="IOException" type="java.io.IOException"/>
  30530. </method>
  30531. <method name="close"
  30532. abstract="false" native="false" synchronized="true"
  30533. static="false" final="false" visibility="public"
  30534. deprecated="not deprecated">
  30535. <exception name="IOException" type="java.io.IOException"/>
  30536. </method>
  30537. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  30538. abstract="false" native="false" synchronized="false"
  30539. static="false" final="false" visibility="public"
  30540. deprecated="not deprecated">
  30541. <doc>
  30542. <![CDATA[Returns underlying channel used by inputstream.
  30543. This is useful in certain cases like channel for
  30544. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  30545. </doc>
  30546. </method>
  30547. <method name="isOpen" return="boolean"
  30548. abstract="false" native="false" synchronized="false"
  30549. static="false" final="false" visibility="public"
  30550. deprecated="not deprecated">
  30551. </method>
  30552. <method name="read" return="int"
  30553. abstract="false" native="false" synchronized="false"
  30554. static="false" final="false" visibility="public"
  30555. deprecated="not deprecated">
  30556. <param name="dst" type="java.nio.ByteBuffer"/>
  30557. <exception name="IOException" type="java.io.IOException"/>
  30558. </method>
  30559. <method name="waitForReadable"
  30560. abstract="false" native="false" synchronized="false"
  30561. static="false" final="false" visibility="public"
  30562. deprecated="not deprecated">
  30563. <exception name="IOException" type="java.io.IOException"/>
  30564. <doc>
  30565. <![CDATA[waits for the underlying channel to be ready for reading.
  30566. The timeout specified for this stream applies to this wait.
  30567. @throws SocketTimeoutException
  30568. if select on the channel times out.
  30569. @throws IOException
  30570. if any other I/O error occurs.]]>
  30571. </doc>
  30572. </method>
  30573. <doc>
  30574. <![CDATA[This implements an input stream that can have a timeout while reading.
  30575. This sets non-blocking flag on the socket channel.
  30576. So after create this object, read() on
  30577. {@link Socket#getInputStream()} and write() on
  30578. {@link Socket#getOutputStream()} for the associated socket will throw
  30579. IllegalBlockingModeException.
  30580. Please use {@link SocketOutputStream} for writing.]]>
  30581. </doc>
  30582. </class>
  30583. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  30584. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  30585. <class name="SocketOutputStream" extends="java.io.OutputStream"
  30586. abstract="false"
  30587. static="false" final="false" visibility="public"
  30588. deprecated="not deprecated">
  30589. <implements name="java.nio.channels.WritableByteChannel"/>
  30590. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  30591. static="false" final="false" visibility="public"
  30592. deprecated="not deprecated">
  30593. <exception name="IOException" type="java.io.IOException"/>
  30594. <doc>
  30595. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  30596. is zero, it will be treated as infinite timeout. The socket's
  30597. channel will be configured to be non-blocking.
  30598. @param channel
  30599. Channel for writing, should also be a {@link SelectableChannel}.
  30600. The channel will be configured to be non-blocking.
  30601. @param timeout timeout in milliseconds. must not be negative.
  30602. @throws IOException]]>
  30603. </doc>
  30604. </constructor>
  30605. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  30606. static="false" final="false" visibility="public"
  30607. deprecated="not deprecated">
  30608. <exception name="IOException" type="java.io.IOException"/>
  30609. <doc>
  30610. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  30611. Create a new ouput stream with the given timeout. If the timeout
  30612. is zero, it will be treated as infinite timeout. The socket's
  30613. channel will be configured to be non-blocking.
  30614. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  30615. @param socket should have a channel associated with it.
  30616. @param timeout timeout timeout in milliseconds. must not be negative.
  30617. @throws IOException]]>
  30618. </doc>
  30619. </constructor>
  30620. <method name="write"
  30621. abstract="false" native="false" synchronized="false"
  30622. static="false" final="false" visibility="public"
  30623. deprecated="not deprecated">
  30624. <param name="b" type="int"/>
  30625. <exception name="IOException" type="java.io.IOException"/>
  30626. </method>
  30627. <method name="write"
  30628. abstract="false" native="false" synchronized="false"
  30629. static="false" final="false" visibility="public"
  30630. deprecated="not deprecated">
  30631. <param name="b" type="byte[]"/>
  30632. <param name="off" type="int"/>
  30633. <param name="len" type="int"/>
  30634. <exception name="IOException" type="java.io.IOException"/>
  30635. </method>
  30636. <method name="close"
  30637. abstract="false" native="false" synchronized="true"
  30638. static="false" final="false" visibility="public"
  30639. deprecated="not deprecated">
  30640. <exception name="IOException" type="java.io.IOException"/>
  30641. </method>
  30642. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  30643. abstract="false" native="false" synchronized="false"
  30644. static="false" final="false" visibility="public"
  30645. deprecated="not deprecated">
  30646. <doc>
  30647. <![CDATA[Returns underlying channel used by this stream.
  30648. This is useful in certain cases like channel for
  30649. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  30650. </doc>
  30651. </method>
  30652. <method name="isOpen" return="boolean"
  30653. abstract="false" native="false" synchronized="false"
  30654. static="false" final="false" visibility="public"
  30655. deprecated="not deprecated">
  30656. </method>
  30657. <method name="write" return="int"
  30658. abstract="false" native="false" synchronized="false"
  30659. static="false" final="false" visibility="public"
  30660. deprecated="not deprecated">
  30661. <param name="src" type="java.nio.ByteBuffer"/>
  30662. <exception name="IOException" type="java.io.IOException"/>
  30663. </method>
  30664. <method name="waitForWritable"
  30665. abstract="false" native="false" synchronized="false"
  30666. static="false" final="false" visibility="public"
  30667. deprecated="not deprecated">
  30668. <exception name="IOException" type="java.io.IOException"/>
  30669. <doc>
  30670. <![CDATA[waits for the underlying channel to be ready for writing.
  30671. The timeout specified for this stream applies to this wait.
  30672. @throws SocketTimeoutException
  30673. if select on the channel times out.
  30674. @throws IOException
  30675. if any other I/O error occurs.]]>
  30676. </doc>
  30677. </method>
  30678. <method name="transferToFully"
  30679. abstract="false" native="false" synchronized="false"
  30680. static="false" final="false" visibility="public"
  30681. deprecated="not deprecated">
  30682. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  30683. <param name="position" type="long"/>
  30684. <param name="count" type="int"/>
  30685. <exception name="IOException" type="java.io.IOException"/>
  30686. <doc>
  30687. <![CDATA[Transfers data from FileChannel using
  30688. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  30689. Similar to readFully(), this waits till requested amount of
  30690. data is transfered.
  30691. @param fileCh FileChannel to transfer data from.
  30692. @param position position within the channel where the transfer begins
  30693. @param count number of bytes to transfer.
  30694. @throws EOFException
  30695. If end of input file is reached before requested number of
  30696. bytes are transfered.
  30697. @throws SocketTimeoutException
  30698. If this channel blocks transfer longer than timeout for
  30699. this stream.
  30700. @throws IOException Includes any exception thrown by
  30701. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  30702. </doc>
  30703. </method>
  30704. <doc>
  30705. <![CDATA[This implements an output stream that can have a timeout while writing.
  30706. This sets non-blocking flag on the socket channel.
  30707. So after creating this object , read() on
  30708. {@link Socket#getInputStream()} and write() on
  30709. {@link Socket#getOutputStream()} on the associated socket will throw
  30710. llegalBlockingModeException.
  30711. Please use {@link SocketInputStream} for reading.]]>
  30712. </doc>
  30713. </class>
  30714. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  30715. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  30716. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  30717. abstract="false"
  30718. static="false" final="false" visibility="public"
  30719. deprecated="not deprecated">
  30720. <implements name="org.apache.hadoop.conf.Configurable"/>
  30721. <constructor name="SocksSocketFactory"
  30722. static="false" final="false" visibility="public"
  30723. deprecated="not deprecated">
  30724. <doc>
  30725. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30726. </doc>
  30727. </constructor>
  30728. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  30729. static="false" final="false" visibility="public"
  30730. deprecated="not deprecated">
  30731. <doc>
  30732. <![CDATA[Constructor with a supplied Proxy
  30733. @param proxy the proxy to use to create sockets]]>
  30734. </doc>
  30735. </constructor>
  30736. <method name="createSocket" return="java.net.Socket"
  30737. abstract="false" native="false" synchronized="false"
  30738. static="false" final="false" visibility="public"
  30739. deprecated="not deprecated">
  30740. <exception name="IOException" type="java.io.IOException"/>
  30741. </method>
  30742. <method name="createSocket" return="java.net.Socket"
  30743. abstract="false" native="false" synchronized="false"
  30744. static="false" final="false" visibility="public"
  30745. deprecated="not deprecated">
  30746. <param name="addr" type="java.net.InetAddress"/>
  30747. <param name="port" type="int"/>
  30748. <exception name="IOException" type="java.io.IOException"/>
  30749. </method>
  30750. <method name="createSocket" return="java.net.Socket"
  30751. abstract="false" native="false" synchronized="false"
  30752. static="false" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. <param name="addr" type="java.net.InetAddress"/>
  30755. <param name="port" type="int"/>
  30756. <param name="localHostAddr" type="java.net.InetAddress"/>
  30757. <param name="localPort" type="int"/>
  30758. <exception name="IOException" type="java.io.IOException"/>
  30759. </method>
  30760. <method name="createSocket" return="java.net.Socket"
  30761. abstract="false" native="false" synchronized="false"
  30762. static="false" final="false" visibility="public"
  30763. deprecated="not deprecated">
  30764. <param name="host" type="java.lang.String"/>
  30765. <param name="port" type="int"/>
  30766. <exception name="IOException" type="java.io.IOException"/>
  30767. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30768. </method>
  30769. <method name="createSocket" return="java.net.Socket"
  30770. abstract="false" native="false" synchronized="false"
  30771. static="false" final="false" visibility="public"
  30772. deprecated="not deprecated">
  30773. <param name="host" type="java.lang.String"/>
  30774. <param name="port" type="int"/>
  30775. <param name="localHostAddr" type="java.net.InetAddress"/>
  30776. <param name="localPort" type="int"/>
  30777. <exception name="IOException" type="java.io.IOException"/>
  30778. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30779. </method>
  30780. <method name="hashCode" return="int"
  30781. abstract="false" native="false" synchronized="false"
  30782. static="false" final="false" visibility="public"
  30783. deprecated="not deprecated">
  30784. </method>
  30785. <method name="equals" return="boolean"
  30786. abstract="false" native="false" synchronized="false"
  30787. static="false" final="false" visibility="public"
  30788. deprecated="not deprecated">
  30789. <param name="obj" type="java.lang.Object"/>
  30790. </method>
  30791. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30792. abstract="false" native="false" synchronized="false"
  30793. static="false" final="false" visibility="public"
  30794. deprecated="not deprecated">
  30795. </method>
  30796. <method name="setConf"
  30797. abstract="false" native="false" synchronized="false"
  30798. static="false" final="false" visibility="public"
  30799. deprecated="not deprecated">
  30800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30801. </method>
  30802. <doc>
  30803. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30804. </doc>
  30805. </class>
  30806. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  30807. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  30808. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  30809. abstract="false"
  30810. static="false" final="false" visibility="public"
  30811. deprecated="not deprecated">
  30812. <constructor name="StandardSocketFactory"
  30813. static="false" final="false" visibility="public"
  30814. deprecated="not deprecated">
  30815. <doc>
  30816. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30817. </doc>
  30818. </constructor>
  30819. <method name="createSocket" return="java.net.Socket"
  30820. abstract="false" native="false" synchronized="false"
  30821. static="false" final="false" visibility="public"
  30822. deprecated="not deprecated">
  30823. <exception name="IOException" type="java.io.IOException"/>
  30824. </method>
  30825. <method name="createSocket" return="java.net.Socket"
  30826. abstract="false" native="false" synchronized="false"
  30827. static="false" final="false" visibility="public"
  30828. deprecated="not deprecated">
  30829. <param name="addr" type="java.net.InetAddress"/>
  30830. <param name="port" type="int"/>
  30831. <exception name="IOException" type="java.io.IOException"/>
  30832. </method>
  30833. <method name="createSocket" return="java.net.Socket"
  30834. abstract="false" native="false" synchronized="false"
  30835. static="false" final="false" visibility="public"
  30836. deprecated="not deprecated">
  30837. <param name="addr" type="java.net.InetAddress"/>
  30838. <param name="port" type="int"/>
  30839. <param name="localHostAddr" type="java.net.InetAddress"/>
  30840. <param name="localPort" type="int"/>
  30841. <exception name="IOException" type="java.io.IOException"/>
  30842. </method>
  30843. <method name="createSocket" return="java.net.Socket"
  30844. abstract="false" native="false" synchronized="false"
  30845. static="false" final="false" visibility="public"
  30846. deprecated="not deprecated">
  30847. <param name="host" type="java.lang.String"/>
  30848. <param name="port" type="int"/>
  30849. <exception name="IOException" type="java.io.IOException"/>
  30850. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30851. </method>
  30852. <method name="createSocket" return="java.net.Socket"
  30853. abstract="false" native="false" synchronized="false"
  30854. static="false" final="false" visibility="public"
  30855. deprecated="not deprecated">
  30856. <param name="host" type="java.lang.String"/>
  30857. <param name="port" type="int"/>
  30858. <param name="localHostAddr" type="java.net.InetAddress"/>
  30859. <param name="localPort" type="int"/>
  30860. <exception name="IOException" type="java.io.IOException"/>
  30861. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30862. </method>
  30863. <method name="equals" return="boolean"
  30864. abstract="false" native="false" synchronized="false"
  30865. static="false" final="false" visibility="public"
  30866. deprecated="not deprecated">
  30867. <param name="obj" type="java.lang.Object"/>
  30868. </method>
  30869. <method name="hashCode" return="int"
  30870. abstract="false" native="false" synchronized="false"
  30871. static="false" final="false" visibility="public"
  30872. deprecated="not deprecated">
  30873. </method>
  30874. <doc>
  30875. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30876. </doc>
  30877. </class>
  30878. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  30879. </package>
  30880. <package name="org.apache.hadoop.record">
  30881. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  30882. <class name="BinaryRecordInput" extends="java.lang.Object"
  30883. abstract="false"
  30884. static="false" final="false" visibility="public"
  30885. deprecated="not deprecated">
  30886. <implements name="org.apache.hadoop.record.RecordInput"/>
  30887. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  30888. static="false" final="false" visibility="public"
  30889. deprecated="not deprecated">
  30890. <doc>
  30891. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  30892. </doc>
  30893. </constructor>
  30894. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  30895. static="false" final="false" visibility="public"
  30896. deprecated="not deprecated">
  30897. <doc>
  30898. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  30899. </doc>
  30900. </constructor>
  30901. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  30902. abstract="false" native="false" synchronized="false"
  30903. static="true" final="false" visibility="public"
  30904. deprecated="not deprecated">
  30905. <param name="inp" type="java.io.DataInput"/>
  30906. <doc>
  30907. <![CDATA[Get a thread-local record input for the supplied DataInput.
  30908. @param inp data input stream
  30909. @return binary record input corresponding to the supplied DataInput.]]>
  30910. </doc>
  30911. </method>
  30912. <method name="readByte" return="byte"
  30913. abstract="false" native="false" synchronized="false"
  30914. static="false" final="false" visibility="public"
  30915. deprecated="not deprecated">
  30916. <param name="tag" type="java.lang.String"/>
  30917. <exception name="IOException" type="java.io.IOException"/>
  30918. </method>
  30919. <method name="readBool" return="boolean"
  30920. abstract="false" native="false" synchronized="false"
  30921. static="false" final="false" visibility="public"
  30922. deprecated="not deprecated">
  30923. <param name="tag" type="java.lang.String"/>
  30924. <exception name="IOException" type="java.io.IOException"/>
  30925. </method>
  30926. <method name="readInt" return="int"
  30927. abstract="false" native="false" synchronized="false"
  30928. static="false" final="false" visibility="public"
  30929. deprecated="not deprecated">
  30930. <param name="tag" type="java.lang.String"/>
  30931. <exception name="IOException" type="java.io.IOException"/>
  30932. </method>
  30933. <method name="readLong" return="long"
  30934. abstract="false" native="false" synchronized="false"
  30935. static="false" final="false" visibility="public"
  30936. deprecated="not deprecated">
  30937. <param name="tag" type="java.lang.String"/>
  30938. <exception name="IOException" type="java.io.IOException"/>
  30939. </method>
  30940. <method name="readFloat" return="float"
  30941. abstract="false" native="false" synchronized="false"
  30942. static="false" final="false" visibility="public"
  30943. deprecated="not deprecated">
  30944. <param name="tag" type="java.lang.String"/>
  30945. <exception name="IOException" type="java.io.IOException"/>
  30946. </method>
  30947. <method name="readDouble" return="double"
  30948. abstract="false" native="false" synchronized="false"
  30949. static="false" final="false" visibility="public"
  30950. deprecated="not deprecated">
  30951. <param name="tag" type="java.lang.String"/>
  30952. <exception name="IOException" type="java.io.IOException"/>
  30953. </method>
  30954. <method name="readString" return="java.lang.String"
  30955. abstract="false" native="false" synchronized="false"
  30956. static="false" final="false" visibility="public"
  30957. deprecated="not deprecated">
  30958. <param name="tag" type="java.lang.String"/>
  30959. <exception name="IOException" type="java.io.IOException"/>
  30960. </method>
  30961. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30962. abstract="false" native="false" synchronized="false"
  30963. static="false" final="false" visibility="public"
  30964. deprecated="not deprecated">
  30965. <param name="tag" type="java.lang.String"/>
  30966. <exception name="IOException" type="java.io.IOException"/>
  30967. </method>
  30968. <method name="startRecord"
  30969. abstract="false" native="false" synchronized="false"
  30970. static="false" final="false" visibility="public"
  30971. deprecated="not deprecated">
  30972. <param name="tag" type="java.lang.String"/>
  30973. <exception name="IOException" type="java.io.IOException"/>
  30974. </method>
  30975. <method name="endRecord"
  30976. abstract="false" native="false" synchronized="false"
  30977. static="false" final="false" visibility="public"
  30978. deprecated="not deprecated">
  30979. <param name="tag" type="java.lang.String"/>
  30980. <exception name="IOException" type="java.io.IOException"/>
  30981. </method>
  30982. <method name="startVector" return="org.apache.hadoop.record.Index"
  30983. abstract="false" native="false" synchronized="false"
  30984. static="false" final="false" visibility="public"
  30985. deprecated="not deprecated">
  30986. <param name="tag" type="java.lang.String"/>
  30987. <exception name="IOException" type="java.io.IOException"/>
  30988. </method>
  30989. <method name="endVector"
  30990. abstract="false" native="false" synchronized="false"
  30991. static="false" final="false" visibility="public"
  30992. deprecated="not deprecated">
  30993. <param name="tag" type="java.lang.String"/>
  30994. <exception name="IOException" type="java.io.IOException"/>
  30995. </method>
  30996. <method name="startMap" return="org.apache.hadoop.record.Index"
  30997. abstract="false" native="false" synchronized="false"
  30998. static="false" final="false" visibility="public"
  30999. deprecated="not deprecated">
  31000. <param name="tag" type="java.lang.String"/>
  31001. <exception name="IOException" type="java.io.IOException"/>
  31002. </method>
  31003. <method name="endMap"
  31004. abstract="false" native="false" synchronized="false"
  31005. static="false" final="false" visibility="public"
  31006. deprecated="not deprecated">
  31007. <param name="tag" type="java.lang.String"/>
  31008. <exception name="IOException" type="java.io.IOException"/>
  31009. </method>
  31010. </class>
  31011. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  31012. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  31013. <class name="BinaryRecordOutput" extends="java.lang.Object"
  31014. abstract="false"
  31015. static="false" final="false" visibility="public"
  31016. deprecated="not deprecated">
  31017. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31018. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  31019. static="false" final="false" visibility="public"
  31020. deprecated="not deprecated">
  31021. <doc>
  31022. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31023. </doc>
  31024. </constructor>
  31025. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. <doc>
  31029. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31030. </doc>
  31031. </constructor>
  31032. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  31033. abstract="false" native="false" synchronized="false"
  31034. static="true" final="false" visibility="public"
  31035. deprecated="not deprecated">
  31036. <param name="out" type="java.io.DataOutput"/>
  31037. <doc>
  31038. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  31039. @param out data output stream
  31040. @return binary record output corresponding to the supplied DataOutput.]]>
  31041. </doc>
  31042. </method>
  31043. <method name="writeByte"
  31044. abstract="false" native="false" synchronized="false"
  31045. static="false" final="false" visibility="public"
  31046. deprecated="not deprecated">
  31047. <param name="b" type="byte"/>
  31048. <param name="tag" type="java.lang.String"/>
  31049. <exception name="IOException" type="java.io.IOException"/>
  31050. </method>
  31051. <method name="writeBool"
  31052. abstract="false" native="false" synchronized="false"
  31053. static="false" final="false" visibility="public"
  31054. deprecated="not deprecated">
  31055. <param name="b" type="boolean"/>
  31056. <param name="tag" type="java.lang.String"/>
  31057. <exception name="IOException" type="java.io.IOException"/>
  31058. </method>
  31059. <method name="writeInt"
  31060. abstract="false" native="false" synchronized="false"
  31061. static="false" final="false" visibility="public"
  31062. deprecated="not deprecated">
  31063. <param name="i" type="int"/>
  31064. <param name="tag" type="java.lang.String"/>
  31065. <exception name="IOException" type="java.io.IOException"/>
  31066. </method>
  31067. <method name="writeLong"
  31068. abstract="false" native="false" synchronized="false"
  31069. static="false" final="false" visibility="public"
  31070. deprecated="not deprecated">
  31071. <param name="l" type="long"/>
  31072. <param name="tag" type="java.lang.String"/>
  31073. <exception name="IOException" type="java.io.IOException"/>
  31074. </method>
  31075. <method name="writeFloat"
  31076. abstract="false" native="false" synchronized="false"
  31077. static="false" final="false" visibility="public"
  31078. deprecated="not deprecated">
  31079. <param name="f" type="float"/>
  31080. <param name="tag" type="java.lang.String"/>
  31081. <exception name="IOException" type="java.io.IOException"/>
  31082. </method>
  31083. <method name="writeDouble"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="false" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <param name="d" type="double"/>
  31088. <param name="tag" type="java.lang.String"/>
  31089. <exception name="IOException" type="java.io.IOException"/>
  31090. </method>
  31091. <method name="writeString"
  31092. abstract="false" native="false" synchronized="false"
  31093. static="false" final="false" visibility="public"
  31094. deprecated="not deprecated">
  31095. <param name="s" type="java.lang.String"/>
  31096. <param name="tag" type="java.lang.String"/>
  31097. <exception name="IOException" type="java.io.IOException"/>
  31098. </method>
  31099. <method name="writeBuffer"
  31100. abstract="false" native="false" synchronized="false"
  31101. static="false" final="false" visibility="public"
  31102. deprecated="not deprecated">
  31103. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31104. <param name="tag" type="java.lang.String"/>
  31105. <exception name="IOException" type="java.io.IOException"/>
  31106. </method>
  31107. <method name="startRecord"
  31108. abstract="false" native="false" synchronized="false"
  31109. static="false" final="false" visibility="public"
  31110. deprecated="not deprecated">
  31111. <param name="r" type="org.apache.hadoop.record.Record"/>
  31112. <param name="tag" type="java.lang.String"/>
  31113. <exception name="IOException" type="java.io.IOException"/>
  31114. </method>
  31115. <method name="endRecord"
  31116. abstract="false" native="false" synchronized="false"
  31117. static="false" final="false" visibility="public"
  31118. deprecated="not deprecated">
  31119. <param name="r" type="org.apache.hadoop.record.Record"/>
  31120. <param name="tag" type="java.lang.String"/>
  31121. <exception name="IOException" type="java.io.IOException"/>
  31122. </method>
  31123. <method name="startVector"
  31124. abstract="false" native="false" synchronized="false"
  31125. static="false" final="false" visibility="public"
  31126. deprecated="not deprecated">
  31127. <param name="v" type="java.util.ArrayList"/>
  31128. <param name="tag" type="java.lang.String"/>
  31129. <exception name="IOException" type="java.io.IOException"/>
  31130. </method>
  31131. <method name="endVector"
  31132. abstract="false" native="false" synchronized="false"
  31133. static="false" final="false" visibility="public"
  31134. deprecated="not deprecated">
  31135. <param name="v" type="java.util.ArrayList"/>
  31136. <param name="tag" type="java.lang.String"/>
  31137. <exception name="IOException" type="java.io.IOException"/>
  31138. </method>
  31139. <method name="startMap"
  31140. abstract="false" native="false" synchronized="false"
  31141. static="false" final="false" visibility="public"
  31142. deprecated="not deprecated">
  31143. <param name="v" type="java.util.TreeMap"/>
  31144. <param name="tag" type="java.lang.String"/>
  31145. <exception name="IOException" type="java.io.IOException"/>
  31146. </method>
  31147. <method name="endMap"
  31148. abstract="false" native="false" synchronized="false"
  31149. static="false" final="false" visibility="public"
  31150. deprecated="not deprecated">
  31151. <param name="v" type="java.util.TreeMap"/>
  31152. <param name="tag" type="java.lang.String"/>
  31153. <exception name="IOException" type="java.io.IOException"/>
  31154. </method>
  31155. </class>
  31156. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  31157. <!-- start class org.apache.hadoop.record.Buffer -->
  31158. <class name="Buffer" extends="java.lang.Object"
  31159. abstract="false"
  31160. static="false" final="false" visibility="public"
  31161. deprecated="not deprecated">
  31162. <implements name="java.lang.Comparable"/>
  31163. <implements name="java.lang.Cloneable"/>
  31164. <constructor name="Buffer"
  31165. static="false" final="false" visibility="public"
  31166. deprecated="not deprecated">
  31167. <doc>
  31168. <![CDATA[Create a zero-count sequence.]]>
  31169. </doc>
  31170. </constructor>
  31171. <constructor name="Buffer" type="byte[]"
  31172. static="false" final="false" visibility="public"
  31173. deprecated="not deprecated">
  31174. <doc>
  31175. <![CDATA[Create a Buffer using the byte array as the initial value.
  31176. @param bytes This array becomes the backing storage for the object.]]>
  31177. </doc>
  31178. </constructor>
  31179. <constructor name="Buffer" type="byte[], int, int"
  31180. static="false" final="false" visibility="public"
  31181. deprecated="not deprecated">
  31182. <doc>
  31183. <![CDATA[Create a Buffer using the byte range as the initial value.
  31184. @param bytes Copy of this array becomes the backing storage for the object.
  31185. @param offset offset into byte array
  31186. @param length length of data]]>
  31187. </doc>
  31188. </constructor>
  31189. <method name="set"
  31190. abstract="false" native="false" synchronized="false"
  31191. static="false" final="false" visibility="public"
  31192. deprecated="not deprecated">
  31193. <param name="bytes" type="byte[]"/>
  31194. <doc>
  31195. <![CDATA[Use the specified bytes array as underlying sequence.
  31196. @param bytes byte sequence]]>
  31197. </doc>
  31198. </method>
  31199. <method name="copy"
  31200. abstract="false" native="false" synchronized="false"
  31201. static="false" final="true" visibility="public"
  31202. deprecated="not deprecated">
  31203. <param name="bytes" type="byte[]"/>
  31204. <param name="offset" type="int"/>
  31205. <param name="length" type="int"/>
  31206. <doc>
  31207. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  31208. @param bytes byte array to be assigned
  31209. @param offset offset into byte array
  31210. @param length length of data]]>
  31211. </doc>
  31212. </method>
  31213. <method name="get" return="byte[]"
  31214. abstract="false" native="false" synchronized="false"
  31215. static="false" final="false" visibility="public"
  31216. deprecated="not deprecated">
  31217. <doc>
  31218. <![CDATA[Get the data from the Buffer.
  31219. @return The data is only valid between 0 and getCount() - 1.]]>
  31220. </doc>
  31221. </method>
  31222. <method name="getCount" return="int"
  31223. abstract="false" native="false" synchronized="false"
  31224. static="false" final="false" visibility="public"
  31225. deprecated="not deprecated">
  31226. <doc>
  31227. <![CDATA[Get the current count of the buffer.]]>
  31228. </doc>
  31229. </method>
  31230. <method name="getCapacity" return="int"
  31231. abstract="false" native="false" synchronized="false"
  31232. static="false" final="false" visibility="public"
  31233. deprecated="not deprecated">
  31234. <doc>
  31235. <![CDATA[Get the capacity, which is the maximum count that could handled without
  31236. resizing the backing storage.
  31237. @return The number of bytes]]>
  31238. </doc>
  31239. </method>
  31240. <method name="setCapacity"
  31241. abstract="false" native="false" synchronized="false"
  31242. static="false" final="false" visibility="public"
  31243. deprecated="not deprecated">
  31244. <param name="newCapacity" type="int"/>
  31245. <doc>
  31246. <![CDATA[Change the capacity of the backing storage.
  31247. The data is preserved if newCapacity >= getCount().
  31248. @param newCapacity The new capacity in bytes.]]>
  31249. </doc>
  31250. </method>
  31251. <method name="reset"
  31252. abstract="false" native="false" synchronized="false"
  31253. static="false" final="false" visibility="public"
  31254. deprecated="not deprecated">
  31255. <doc>
  31256. <![CDATA[Reset the buffer to 0 size]]>
  31257. </doc>
  31258. </method>
  31259. <method name="truncate"
  31260. abstract="false" native="false" synchronized="false"
  31261. static="false" final="false" visibility="public"
  31262. deprecated="not deprecated">
  31263. <doc>
  31264. <![CDATA[Change the capacity of the backing store to be the same as the current
  31265. count of buffer.]]>
  31266. </doc>
  31267. </method>
  31268. <method name="append"
  31269. abstract="false" native="false" synchronized="false"
  31270. static="false" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. <param name="bytes" type="byte[]"/>
  31273. <param name="offset" type="int"/>
  31274. <param name="length" type="int"/>
  31275. <doc>
  31276. <![CDATA[Append specified bytes to the buffer.
  31277. @param bytes byte array to be appended
  31278. @param offset offset into byte array
  31279. @param length length of data]]>
  31280. </doc>
  31281. </method>
  31282. <method name="append"
  31283. abstract="false" native="false" synchronized="false"
  31284. static="false" final="false" visibility="public"
  31285. deprecated="not deprecated">
  31286. <param name="bytes" type="byte[]"/>
  31287. <doc>
  31288. <![CDATA[Append specified bytes to the buffer
  31289. @param bytes byte array to be appended]]>
  31290. </doc>
  31291. </method>
  31292. <method name="hashCode" return="int"
  31293. abstract="false" native="false" synchronized="false"
  31294. static="false" final="false" visibility="public"
  31295. deprecated="not deprecated">
  31296. </method>
  31297. <method name="compareTo" return="int"
  31298. abstract="false" native="false" synchronized="false"
  31299. static="false" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. <param name="other" type="java.lang.Object"/>
  31302. <doc>
  31303. <![CDATA[Define the sort order of the Buffer.
  31304. @param other The other buffer
  31305. @return Positive if this is bigger than other, 0 if they are equal, and
  31306. negative if this is smaller than other.]]>
  31307. </doc>
  31308. </method>
  31309. <method name="equals" return="boolean"
  31310. abstract="false" native="false" synchronized="false"
  31311. static="false" final="false" visibility="public"
  31312. deprecated="not deprecated">
  31313. <param name="other" type="java.lang.Object"/>
  31314. </method>
  31315. <method name="toString" return="java.lang.String"
  31316. abstract="false" native="false" synchronized="false"
  31317. static="false" final="false" visibility="public"
  31318. deprecated="not deprecated">
  31319. </method>
  31320. <method name="toString" return="java.lang.String"
  31321. abstract="false" native="false" synchronized="false"
  31322. static="false" final="false" visibility="public"
  31323. deprecated="not deprecated">
  31324. <param name="charsetName" type="java.lang.String"/>
  31325. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31326. <doc>
  31327. <![CDATA[Convert the byte buffer to a string an specific character encoding
  31328. @param charsetName Valid Java Character Set Name]]>
  31329. </doc>
  31330. </method>
  31331. <method name="clone" return="java.lang.Object"
  31332. abstract="false" native="false" synchronized="false"
  31333. static="false" final="false" visibility="public"
  31334. deprecated="not deprecated">
  31335. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  31336. </method>
  31337. <doc>
  31338. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  31339. It is resizable and distinguishes between the count of the seqeunce and
  31340. the current capacity.]]>
  31341. </doc>
  31342. </class>
  31343. <!-- end class org.apache.hadoop.record.Buffer -->
  31344. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  31345. <class name="CsvRecordInput" extends="java.lang.Object"
  31346. abstract="false"
  31347. static="false" final="false" visibility="public"
  31348. deprecated="not deprecated">
  31349. <implements name="org.apache.hadoop.record.RecordInput"/>
  31350. <constructor name="CsvRecordInput" type="java.io.InputStream"
  31351. static="false" final="false" visibility="public"
  31352. deprecated="not deprecated">
  31353. <doc>
  31354. <![CDATA[Creates a new instance of CsvRecordInput]]>
  31355. </doc>
  31356. </constructor>
  31357. <method name="readByte" return="byte"
  31358. abstract="false" native="false" synchronized="false"
  31359. static="false" final="false" visibility="public"
  31360. deprecated="not deprecated">
  31361. <param name="tag" type="java.lang.String"/>
  31362. <exception name="IOException" type="java.io.IOException"/>
  31363. </method>
  31364. <method name="readBool" return="boolean"
  31365. abstract="false" native="false" synchronized="false"
  31366. static="false" final="false" visibility="public"
  31367. deprecated="not deprecated">
  31368. <param name="tag" type="java.lang.String"/>
  31369. <exception name="IOException" type="java.io.IOException"/>
  31370. </method>
  31371. <method name="readInt" return="int"
  31372. abstract="false" native="false" synchronized="false"
  31373. static="false" final="false" visibility="public"
  31374. deprecated="not deprecated">
  31375. <param name="tag" type="java.lang.String"/>
  31376. <exception name="IOException" type="java.io.IOException"/>
  31377. </method>
  31378. <method name="readLong" return="long"
  31379. abstract="false" native="false" synchronized="false"
  31380. static="false" final="false" visibility="public"
  31381. deprecated="not deprecated">
  31382. <param name="tag" type="java.lang.String"/>
  31383. <exception name="IOException" type="java.io.IOException"/>
  31384. </method>
  31385. <method name="readFloat" return="float"
  31386. abstract="false" native="false" synchronized="false"
  31387. static="false" final="false" visibility="public"
  31388. deprecated="not deprecated">
  31389. <param name="tag" type="java.lang.String"/>
  31390. <exception name="IOException" type="java.io.IOException"/>
  31391. </method>
  31392. <method name="readDouble" return="double"
  31393. abstract="false" native="false" synchronized="false"
  31394. static="false" final="false" visibility="public"
  31395. deprecated="not deprecated">
  31396. <param name="tag" type="java.lang.String"/>
  31397. <exception name="IOException" type="java.io.IOException"/>
  31398. </method>
  31399. <method name="readString" return="java.lang.String"
  31400. abstract="false" native="false" synchronized="false"
  31401. static="false" final="false" visibility="public"
  31402. deprecated="not deprecated">
  31403. <param name="tag" type="java.lang.String"/>
  31404. <exception name="IOException" type="java.io.IOException"/>
  31405. </method>
  31406. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31407. abstract="false" native="false" synchronized="false"
  31408. static="false" final="false" visibility="public"
  31409. deprecated="not deprecated">
  31410. <param name="tag" type="java.lang.String"/>
  31411. <exception name="IOException" type="java.io.IOException"/>
  31412. </method>
  31413. <method name="startRecord"
  31414. abstract="false" native="false" synchronized="false"
  31415. static="false" final="false" visibility="public"
  31416. deprecated="not deprecated">
  31417. <param name="tag" type="java.lang.String"/>
  31418. <exception name="IOException" type="java.io.IOException"/>
  31419. </method>
  31420. <method name="endRecord"
  31421. abstract="false" native="false" synchronized="false"
  31422. static="false" final="false" visibility="public"
  31423. deprecated="not deprecated">
  31424. <param name="tag" type="java.lang.String"/>
  31425. <exception name="IOException" type="java.io.IOException"/>
  31426. </method>
  31427. <method name="startVector" return="org.apache.hadoop.record.Index"
  31428. abstract="false" native="false" synchronized="false"
  31429. static="false" final="false" visibility="public"
  31430. deprecated="not deprecated">
  31431. <param name="tag" type="java.lang.String"/>
  31432. <exception name="IOException" type="java.io.IOException"/>
  31433. </method>
  31434. <method name="endVector"
  31435. abstract="false" native="false" synchronized="false"
  31436. static="false" final="false" visibility="public"
  31437. deprecated="not deprecated">
  31438. <param name="tag" type="java.lang.String"/>
  31439. <exception name="IOException" type="java.io.IOException"/>
  31440. </method>
  31441. <method name="startMap" return="org.apache.hadoop.record.Index"
  31442. abstract="false" native="false" synchronized="false"
  31443. static="false" final="false" visibility="public"
  31444. deprecated="not deprecated">
  31445. <param name="tag" type="java.lang.String"/>
  31446. <exception name="IOException" type="java.io.IOException"/>
  31447. </method>
  31448. <method name="endMap"
  31449. abstract="false" native="false" synchronized="false"
  31450. static="false" final="false" visibility="public"
  31451. deprecated="not deprecated">
  31452. <param name="tag" type="java.lang.String"/>
  31453. <exception name="IOException" type="java.io.IOException"/>
  31454. </method>
  31455. </class>
  31456. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  31457. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  31458. <class name="CsvRecordOutput" extends="java.lang.Object"
  31459. abstract="false"
  31460. static="false" final="false" visibility="public"
  31461. deprecated="not deprecated">
  31462. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31463. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  31464. static="false" final="false" visibility="public"
  31465. deprecated="not deprecated">
  31466. <doc>
  31467. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  31468. </doc>
  31469. </constructor>
  31470. <method name="writeByte"
  31471. abstract="false" native="false" synchronized="false"
  31472. static="false" final="false" visibility="public"
  31473. deprecated="not deprecated">
  31474. <param name="b" type="byte"/>
  31475. <param name="tag" type="java.lang.String"/>
  31476. <exception name="IOException" type="java.io.IOException"/>
  31477. </method>
  31478. <method name="writeBool"
  31479. abstract="false" native="false" synchronized="false"
  31480. static="false" final="false" visibility="public"
  31481. deprecated="not deprecated">
  31482. <param name="b" type="boolean"/>
  31483. <param name="tag" type="java.lang.String"/>
  31484. <exception name="IOException" type="java.io.IOException"/>
  31485. </method>
  31486. <method name="writeInt"
  31487. abstract="false" native="false" synchronized="false"
  31488. static="false" final="false" visibility="public"
  31489. deprecated="not deprecated">
  31490. <param name="i" type="int"/>
  31491. <param name="tag" type="java.lang.String"/>
  31492. <exception name="IOException" type="java.io.IOException"/>
  31493. </method>
  31494. <method name="writeLong"
  31495. abstract="false" native="false" synchronized="false"
  31496. static="false" final="false" visibility="public"
  31497. deprecated="not deprecated">
  31498. <param name="l" type="long"/>
  31499. <param name="tag" type="java.lang.String"/>
  31500. <exception name="IOException" type="java.io.IOException"/>
  31501. </method>
  31502. <method name="writeFloat"
  31503. abstract="false" native="false" synchronized="false"
  31504. static="false" final="false" visibility="public"
  31505. deprecated="not deprecated">
  31506. <param name="f" type="float"/>
  31507. <param name="tag" type="java.lang.String"/>
  31508. <exception name="IOException" type="java.io.IOException"/>
  31509. </method>
  31510. <method name="writeDouble"
  31511. abstract="false" native="false" synchronized="false"
  31512. static="false" final="false" visibility="public"
  31513. deprecated="not deprecated">
  31514. <param name="d" type="double"/>
  31515. <param name="tag" type="java.lang.String"/>
  31516. <exception name="IOException" type="java.io.IOException"/>
  31517. </method>
  31518. <method name="writeString"
  31519. abstract="false" native="false" synchronized="false"
  31520. static="false" final="false" visibility="public"
  31521. deprecated="not deprecated">
  31522. <param name="s" type="java.lang.String"/>
  31523. <param name="tag" type="java.lang.String"/>
  31524. <exception name="IOException" type="java.io.IOException"/>
  31525. </method>
  31526. <method name="writeBuffer"
  31527. abstract="false" native="false" synchronized="false"
  31528. static="false" final="false" visibility="public"
  31529. deprecated="not deprecated">
  31530. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31531. <param name="tag" type="java.lang.String"/>
  31532. <exception name="IOException" type="java.io.IOException"/>
  31533. </method>
  31534. <method name="startRecord"
  31535. abstract="false" native="false" synchronized="false"
  31536. static="false" final="false" visibility="public"
  31537. deprecated="not deprecated">
  31538. <param name="r" type="org.apache.hadoop.record.Record"/>
  31539. <param name="tag" type="java.lang.String"/>
  31540. <exception name="IOException" type="java.io.IOException"/>
  31541. </method>
  31542. <method name="endRecord"
  31543. abstract="false" native="false" synchronized="false"
  31544. static="false" final="false" visibility="public"
  31545. deprecated="not deprecated">
  31546. <param name="r" type="org.apache.hadoop.record.Record"/>
  31547. <param name="tag" type="java.lang.String"/>
  31548. <exception name="IOException" type="java.io.IOException"/>
  31549. </method>
  31550. <method name="startVector"
  31551. abstract="false" native="false" synchronized="false"
  31552. static="false" final="false" visibility="public"
  31553. deprecated="not deprecated">
  31554. <param name="v" type="java.util.ArrayList"/>
  31555. <param name="tag" type="java.lang.String"/>
  31556. <exception name="IOException" type="java.io.IOException"/>
  31557. </method>
  31558. <method name="endVector"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="false" visibility="public"
  31561. deprecated="not deprecated">
  31562. <param name="v" type="java.util.ArrayList"/>
  31563. <param name="tag" type="java.lang.String"/>
  31564. <exception name="IOException" type="java.io.IOException"/>
  31565. </method>
  31566. <method name="startMap"
  31567. abstract="false" native="false" synchronized="false"
  31568. static="false" final="false" visibility="public"
  31569. deprecated="not deprecated">
  31570. <param name="v" type="java.util.TreeMap"/>
  31571. <param name="tag" type="java.lang.String"/>
  31572. <exception name="IOException" type="java.io.IOException"/>
  31573. </method>
  31574. <method name="endMap"
  31575. abstract="false" native="false" synchronized="false"
  31576. static="false" final="false" visibility="public"
  31577. deprecated="not deprecated">
  31578. <param name="v" type="java.util.TreeMap"/>
  31579. <param name="tag" type="java.lang.String"/>
  31580. <exception name="IOException" type="java.io.IOException"/>
  31581. </method>
  31582. </class>
  31583. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  31584. <!-- start interface org.apache.hadoop.record.Index -->
  31585. <interface name="Index" abstract="true"
  31586. static="false" final="false" visibility="public"
  31587. deprecated="not deprecated">
  31588. <method name="done" return="boolean"
  31589. abstract="false" native="false" synchronized="false"
  31590. static="false" final="false" visibility="public"
  31591. deprecated="not deprecated">
  31592. </method>
  31593. <method name="incr"
  31594. abstract="false" native="false" synchronized="false"
  31595. static="false" final="false" visibility="public"
  31596. deprecated="not deprecated">
  31597. </method>
  31598. <doc>
  31599. <![CDATA[Interface that acts as an iterator for deserializing maps.
  31600. The deserializer returns an instance that the record uses to
  31601. read vectors and maps. An example of usage is as follows:
  31602. <code>
  31603. Index idx = startVector(...);
  31604. while (!idx.done()) {
  31605. .... // read element of a vector
  31606. idx.incr();
  31607. }
  31608. </code>]]>
  31609. </doc>
  31610. </interface>
  31611. <!-- end interface org.apache.hadoop.record.Index -->
  31612. <!-- start class org.apache.hadoop.record.Record -->
  31613. <class name="Record" extends="java.lang.Object"
  31614. abstract="true"
  31615. static="false" final="false" visibility="public"
  31616. deprecated="not deprecated">
  31617. <implements name="org.apache.hadoop.io.WritableComparable"/>
  31618. <implements name="java.lang.Cloneable"/>
  31619. <constructor name="Record"
  31620. static="false" final="false" visibility="public"
  31621. deprecated="not deprecated">
  31622. </constructor>
  31623. <method name="serialize"
  31624. abstract="true" native="false" synchronized="false"
  31625. static="false" final="false" visibility="public"
  31626. deprecated="not deprecated">
  31627. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  31628. <param name="tag" type="java.lang.String"/>
  31629. <exception name="IOException" type="java.io.IOException"/>
  31630. <doc>
  31631. <![CDATA[Serialize a record with tag (ususally field name)
  31632. @param rout Record output destination
  31633. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  31634. </doc>
  31635. </method>
  31636. <method name="deserialize"
  31637. abstract="true" native="false" synchronized="false"
  31638. static="false" final="false" visibility="public"
  31639. deprecated="not deprecated">
  31640. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  31641. <param name="tag" type="java.lang.String"/>
  31642. <exception name="IOException" type="java.io.IOException"/>
  31643. <doc>
  31644. <![CDATA[Deserialize a record with a tag (usually field name)
  31645. @param rin Record input source
  31646. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  31647. </doc>
  31648. </method>
  31649. <method name="compareTo" return="int"
  31650. abstract="true" native="false" synchronized="false"
  31651. static="false" final="false" visibility="public"
  31652. deprecated="not deprecated">
  31653. <param name="peer" type="java.lang.Object"/>
  31654. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  31655. </method>
  31656. <method name="serialize"
  31657. abstract="false" native="false" synchronized="false"
  31658. static="false" final="false" visibility="public"
  31659. deprecated="not deprecated">
  31660. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  31661. <exception name="IOException" type="java.io.IOException"/>
  31662. <doc>
  31663. <![CDATA[Serialize a record without a tag
  31664. @param rout Record output destination]]>
  31665. </doc>
  31666. </method>
  31667. <method name="deserialize"
  31668. abstract="false" native="false" synchronized="false"
  31669. static="false" final="false" visibility="public"
  31670. deprecated="not deprecated">
  31671. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  31672. <exception name="IOException" type="java.io.IOException"/>
  31673. <doc>
  31674. <![CDATA[Deserialize a record without a tag
  31675. @param rin Record input source]]>
  31676. </doc>
  31677. </method>
  31678. <method name="write"
  31679. abstract="false" native="false" synchronized="false"
  31680. static="false" final="false" visibility="public"
  31681. deprecated="not deprecated">
  31682. <param name="out" type="java.io.DataOutput"/>
  31683. <exception name="IOException" type="java.io.IOException"/>
  31684. </method>
  31685. <method name="readFields"
  31686. abstract="false" native="false" synchronized="false"
  31687. static="false" final="false" visibility="public"
  31688. deprecated="not deprecated">
  31689. <param name="din" type="java.io.DataInput"/>
  31690. <exception name="IOException" type="java.io.IOException"/>
  31691. </method>
  31692. <method name="toString" return="java.lang.String"
  31693. abstract="false" native="false" synchronized="false"
  31694. static="false" final="false" visibility="public"
  31695. deprecated="not deprecated">
  31696. </method>
  31697. <doc>
  31698. <![CDATA[Abstract class that is extended by generated classes.]]>
  31699. </doc>
  31700. </class>
  31701. <!-- end class org.apache.hadoop.record.Record -->
  31702. <!-- start class org.apache.hadoop.record.RecordComparator -->
  31703. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  31704. abstract="true"
  31705. static="false" final="false" visibility="public"
  31706. deprecated="not deprecated">
  31707. <constructor name="RecordComparator" type="java.lang.Class"
  31708. static="false" final="false" visibility="protected"
  31709. deprecated="not deprecated">
  31710. <doc>
  31711. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  31712. </doc>
  31713. </constructor>
  31714. <method name="compare" return="int"
  31715. abstract="true" native="false" synchronized="false"
  31716. static="false" final="false" visibility="public"
  31717. deprecated="not deprecated">
  31718. <param name="b1" type="byte[]"/>
  31719. <param name="s1" type="int"/>
  31720. <param name="l1" type="int"/>
  31721. <param name="b2" type="byte[]"/>
  31722. <param name="s2" type="int"/>
  31723. <param name="l2" type="int"/>
  31724. </method>
  31725. <method name="define"
  31726. abstract="false" native="false" synchronized="true"
  31727. static="true" final="false" visibility="public"
  31728. deprecated="not deprecated">
  31729. <param name="c" type="java.lang.Class"/>
  31730. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  31731. <doc>
  31732. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  31733. @param c record classs for which a raw comparator is provided
  31734. @param comparator Raw comparator instance for class c]]>
  31735. </doc>
  31736. </method>
  31737. <doc>
  31738. <![CDATA[A raw record comparator base class]]>
  31739. </doc>
  31740. </class>
  31741. <!-- end class org.apache.hadoop.record.RecordComparator -->
  31742. <!-- start interface org.apache.hadoop.record.RecordInput -->
  31743. <interface name="RecordInput" abstract="true"
  31744. static="false" final="false" visibility="public"
  31745. deprecated="not deprecated">
  31746. <method name="readByte" return="byte"
  31747. abstract="false" native="false" synchronized="false"
  31748. static="false" final="false" visibility="public"
  31749. deprecated="not deprecated">
  31750. <param name="tag" type="java.lang.String"/>
  31751. <exception name="IOException" type="java.io.IOException"/>
  31752. <doc>
  31753. <![CDATA[Read a byte from serialized record.
  31754. @param tag Used by tagged serialization formats (such as XML)
  31755. @return value read from serialized record.]]>
  31756. </doc>
  31757. </method>
  31758. <method name="readBool" return="boolean"
  31759. abstract="false" native="false" synchronized="false"
  31760. static="false" final="false" visibility="public"
  31761. deprecated="not deprecated">
  31762. <param name="tag" type="java.lang.String"/>
  31763. <exception name="IOException" type="java.io.IOException"/>
  31764. <doc>
  31765. <![CDATA[Read a boolean from serialized record.
  31766. @param tag Used by tagged serialization formats (such as XML)
  31767. @return value read from serialized record.]]>
  31768. </doc>
  31769. </method>
  31770. <method name="readInt" return="int"
  31771. abstract="false" native="false" synchronized="false"
  31772. static="false" final="false" visibility="public"
  31773. deprecated="not deprecated">
  31774. <param name="tag" type="java.lang.String"/>
  31775. <exception name="IOException" type="java.io.IOException"/>
  31776. <doc>
  31777. <![CDATA[Read an integer from serialized record.
  31778. @param tag Used by tagged serialization formats (such as XML)
  31779. @return value read from serialized record.]]>
  31780. </doc>
  31781. </method>
  31782. <method name="readLong" return="long"
  31783. abstract="false" native="false" synchronized="false"
  31784. static="false" final="false" visibility="public"
  31785. deprecated="not deprecated">
  31786. <param name="tag" type="java.lang.String"/>
  31787. <exception name="IOException" type="java.io.IOException"/>
  31788. <doc>
  31789. <![CDATA[Read a long integer from serialized record.
  31790. @param tag Used by tagged serialization formats (such as XML)
  31791. @return value read from serialized record.]]>
  31792. </doc>
  31793. </method>
  31794. <method name="readFloat" return="float"
  31795. abstract="false" native="false" synchronized="false"
  31796. static="false" final="false" visibility="public"
  31797. deprecated="not deprecated">
  31798. <param name="tag" type="java.lang.String"/>
  31799. <exception name="IOException" type="java.io.IOException"/>
  31800. <doc>
  31801. <![CDATA[Read a single-precision float from serialized record.
  31802. @param tag Used by tagged serialization formats (such as XML)
  31803. @return value read from serialized record.]]>
  31804. </doc>
  31805. </method>
  31806. <method name="readDouble" return="double"
  31807. abstract="false" native="false" synchronized="false"
  31808. static="false" final="false" visibility="public"
  31809. deprecated="not deprecated">
  31810. <param name="tag" type="java.lang.String"/>
  31811. <exception name="IOException" type="java.io.IOException"/>
  31812. <doc>
  31813. <![CDATA[Read a double-precision number from serialized record.
  31814. @param tag Used by tagged serialization formats (such as XML)
  31815. @return value read from serialized record.]]>
  31816. </doc>
  31817. </method>
  31818. <method name="readString" return="java.lang.String"
  31819. abstract="false" native="false" synchronized="false"
  31820. static="false" final="false" visibility="public"
  31821. deprecated="not deprecated">
  31822. <param name="tag" type="java.lang.String"/>
  31823. <exception name="IOException" type="java.io.IOException"/>
  31824. <doc>
  31825. <![CDATA[Read a UTF-8 encoded string from serialized record.
  31826. @param tag Used by tagged serialization formats (such as XML)
  31827. @return value read from serialized record.]]>
  31828. </doc>
  31829. </method>
  31830. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31831. abstract="false" native="false" synchronized="false"
  31832. static="false" final="false" visibility="public"
  31833. deprecated="not deprecated">
  31834. <param name="tag" type="java.lang.String"/>
  31835. <exception name="IOException" type="java.io.IOException"/>
  31836. <doc>
  31837. <![CDATA[Read byte array from serialized record.
  31838. @param tag Used by tagged serialization formats (such as XML)
  31839. @return value read from serialized record.]]>
  31840. </doc>
  31841. </method>
  31842. <method name="startRecord"
  31843. abstract="false" native="false" synchronized="false"
  31844. static="false" final="false" visibility="public"
  31845. deprecated="not deprecated">
  31846. <param name="tag" type="java.lang.String"/>
  31847. <exception name="IOException" type="java.io.IOException"/>
  31848. <doc>
  31849. <![CDATA[Check the mark for start of the serialized record.
  31850. @param tag Used by tagged serialization formats (such as XML)]]>
  31851. </doc>
  31852. </method>
  31853. <method name="endRecord"
  31854. abstract="false" native="false" synchronized="false"
  31855. static="false" final="false" visibility="public"
  31856. deprecated="not deprecated">
  31857. <param name="tag" type="java.lang.String"/>
  31858. <exception name="IOException" type="java.io.IOException"/>
  31859. <doc>
  31860. <![CDATA[Check the mark for end of the serialized record.
  31861. @param tag Used by tagged serialization formats (such as XML)]]>
  31862. </doc>
  31863. </method>
  31864. <method name="startVector" return="org.apache.hadoop.record.Index"
  31865. abstract="false" native="false" synchronized="false"
  31866. static="false" final="false" visibility="public"
  31867. deprecated="not deprecated">
  31868. <param name="tag" type="java.lang.String"/>
  31869. <exception name="IOException" type="java.io.IOException"/>
  31870. <doc>
  31871. <![CDATA[Check the mark for start of the serialized vector.
  31872. @param tag Used by tagged serialization formats (such as XML)
  31873. @return Index that is used to count the number of elements.]]>
  31874. </doc>
  31875. </method>
  31876. <method name="endVector"
  31877. abstract="false" native="false" synchronized="false"
  31878. static="false" final="false" visibility="public"
  31879. deprecated="not deprecated">
  31880. <param name="tag" type="java.lang.String"/>
  31881. <exception name="IOException" type="java.io.IOException"/>
  31882. <doc>
  31883. <![CDATA[Check the mark for end of the serialized vector.
  31884. @param tag Used by tagged serialization formats (such as XML)]]>
  31885. </doc>
  31886. </method>
  31887. <method name="startMap" return="org.apache.hadoop.record.Index"
  31888. abstract="false" native="false" synchronized="false"
  31889. static="false" final="false" visibility="public"
  31890. deprecated="not deprecated">
  31891. <param name="tag" type="java.lang.String"/>
  31892. <exception name="IOException" type="java.io.IOException"/>
  31893. <doc>
  31894. <![CDATA[Check the mark for start of the serialized map.
  31895. @param tag Used by tagged serialization formats (such as XML)
  31896. @return Index that is used to count the number of map entries.]]>
  31897. </doc>
  31898. </method>
  31899. <method name="endMap"
  31900. abstract="false" native="false" synchronized="false"
  31901. static="false" final="false" visibility="public"
  31902. deprecated="not deprecated">
  31903. <param name="tag" type="java.lang.String"/>
  31904. <exception name="IOException" type="java.io.IOException"/>
  31905. <doc>
  31906. <![CDATA[Check the mark for end of the serialized map.
  31907. @param tag Used by tagged serialization formats (such as XML)]]>
  31908. </doc>
  31909. </method>
  31910. <doc>
  31911. <![CDATA[Interface that all the Deserializers have to implement.]]>
  31912. </doc>
  31913. </interface>
  31914. <!-- end interface org.apache.hadoop.record.RecordInput -->
  31915. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  31916. <interface name="RecordOutput" abstract="true"
  31917. static="false" final="false" visibility="public"
  31918. deprecated="not deprecated">
  31919. <method name="writeByte"
  31920. abstract="false" native="false" synchronized="false"
  31921. static="false" final="false" visibility="public"
  31922. deprecated="not deprecated">
  31923. <param name="b" type="byte"/>
  31924. <param name="tag" type="java.lang.String"/>
  31925. <exception name="IOException" type="java.io.IOException"/>
  31926. <doc>
  31927. <![CDATA[Write a byte to serialized record.
  31928. @param b Byte to be serialized
  31929. @param tag Used by tagged serialization formats (such as XML)
  31930. @throws IOException Indicates error in serialization]]>
  31931. </doc>
  31932. </method>
  31933. <method name="writeBool"
  31934. abstract="false" native="false" synchronized="false"
  31935. static="false" final="false" visibility="public"
  31936. deprecated="not deprecated">
  31937. <param name="b" type="boolean"/>
  31938. <param name="tag" type="java.lang.String"/>
  31939. <exception name="IOException" type="java.io.IOException"/>
  31940. <doc>
  31941. <![CDATA[Write a boolean to serialized record.
  31942. @param b Boolean to be serialized
  31943. @param tag Used by tagged serialization formats (such as XML)
  31944. @throws IOException Indicates error in serialization]]>
  31945. </doc>
  31946. </method>
  31947. <method name="writeInt"
  31948. abstract="false" native="false" synchronized="false"
  31949. static="false" final="false" visibility="public"
  31950. deprecated="not deprecated">
  31951. <param name="i" type="int"/>
  31952. <param name="tag" type="java.lang.String"/>
  31953. <exception name="IOException" type="java.io.IOException"/>
  31954. <doc>
  31955. <![CDATA[Write an integer to serialized record.
  31956. @param i Integer to be serialized
  31957. @param tag Used by tagged serialization formats (such as XML)
  31958. @throws IOException Indicates error in serialization]]>
  31959. </doc>
  31960. </method>
  31961. <method name="writeLong"
  31962. abstract="false" native="false" synchronized="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. <param name="l" type="long"/>
  31966. <param name="tag" type="java.lang.String"/>
  31967. <exception name="IOException" type="java.io.IOException"/>
  31968. <doc>
  31969. <![CDATA[Write a long integer to serialized record.
  31970. @param l Long to be serialized
  31971. @param tag Used by tagged serialization formats (such as XML)
  31972. @throws IOException Indicates error in serialization]]>
  31973. </doc>
  31974. </method>
  31975. <method name="writeFloat"
  31976. abstract="false" native="false" synchronized="false"
  31977. static="false" final="false" visibility="public"
  31978. deprecated="not deprecated">
  31979. <param name="f" type="float"/>
  31980. <param name="tag" type="java.lang.String"/>
  31981. <exception name="IOException" type="java.io.IOException"/>
  31982. <doc>
  31983. <![CDATA[Write a single-precision float to serialized record.
  31984. @param f Float to be serialized
  31985. @param tag Used by tagged serialization formats (such as XML)
  31986. @throws IOException Indicates error in serialization]]>
  31987. </doc>
  31988. </method>
  31989. <method name="writeDouble"
  31990. abstract="false" native="false" synchronized="false"
  31991. static="false" final="false" visibility="public"
  31992. deprecated="not deprecated">
  31993. <param name="d" type="double"/>
  31994. <param name="tag" type="java.lang.String"/>
  31995. <exception name="IOException" type="java.io.IOException"/>
  31996. <doc>
  31997. <![CDATA[Write a double precision floating point number to serialized record.
  31998. @param d Double to be serialized
  31999. @param tag Used by tagged serialization formats (such as XML)
  32000. @throws IOException Indicates error in serialization]]>
  32001. </doc>
  32002. </method>
  32003. <method name="writeString"
  32004. abstract="false" native="false" synchronized="false"
  32005. static="false" final="false" visibility="public"
  32006. deprecated="not deprecated">
  32007. <param name="s" type="java.lang.String"/>
  32008. <param name="tag" type="java.lang.String"/>
  32009. <exception name="IOException" type="java.io.IOException"/>
  32010. <doc>
  32011. <![CDATA[Write a unicode string to serialized record.
  32012. @param s String to be serialized
  32013. @param tag Used by tagged serialization formats (such as XML)
  32014. @throws IOException Indicates error in serialization]]>
  32015. </doc>
  32016. </method>
  32017. <method name="writeBuffer"
  32018. abstract="false" native="false" synchronized="false"
  32019. static="false" final="false" visibility="public"
  32020. deprecated="not deprecated">
  32021. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32022. <param name="tag" type="java.lang.String"/>
  32023. <exception name="IOException" type="java.io.IOException"/>
  32024. <doc>
  32025. <![CDATA[Write a buffer to serialized record.
  32026. @param buf Buffer to be serialized
  32027. @param tag Used by tagged serialization formats (such as XML)
  32028. @throws IOException Indicates error in serialization]]>
  32029. </doc>
  32030. </method>
  32031. <method name="startRecord"
  32032. abstract="false" native="false" synchronized="false"
  32033. static="false" final="false" visibility="public"
  32034. deprecated="not deprecated">
  32035. <param name="r" type="org.apache.hadoop.record.Record"/>
  32036. <param name="tag" type="java.lang.String"/>
  32037. <exception name="IOException" type="java.io.IOException"/>
  32038. <doc>
  32039. <![CDATA[Mark the start of a record to be serialized.
  32040. @param r Record to be serialized
  32041. @param tag Used by tagged serialization formats (such as XML)
  32042. @throws IOException Indicates error in serialization]]>
  32043. </doc>
  32044. </method>
  32045. <method name="endRecord"
  32046. abstract="false" native="false" synchronized="false"
  32047. static="false" final="false" visibility="public"
  32048. deprecated="not deprecated">
  32049. <param name="r" type="org.apache.hadoop.record.Record"/>
  32050. <param name="tag" type="java.lang.String"/>
  32051. <exception name="IOException" type="java.io.IOException"/>
  32052. <doc>
  32053. <![CDATA[Mark the end of a serialized record.
  32054. @param r Record to be serialized
  32055. @param tag Used by tagged serialization formats (such as XML)
  32056. @throws IOException Indicates error in serialization]]>
  32057. </doc>
  32058. </method>
  32059. <method name="startVector"
  32060. abstract="false" native="false" synchronized="false"
  32061. static="false" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <param name="v" type="java.util.ArrayList"/>
  32064. <param name="tag" type="java.lang.String"/>
  32065. <exception name="IOException" type="java.io.IOException"/>
  32066. <doc>
  32067. <![CDATA[Mark the start of a vector to be serialized.
  32068. @param v Vector to be serialized
  32069. @param tag Used by tagged serialization formats (such as XML)
  32070. @throws IOException Indicates error in serialization]]>
  32071. </doc>
  32072. </method>
  32073. <method name="endVector"
  32074. abstract="false" native="false" synchronized="false"
  32075. static="false" final="false" visibility="public"
  32076. deprecated="not deprecated">
  32077. <param name="v" type="java.util.ArrayList"/>
  32078. <param name="tag" type="java.lang.String"/>
  32079. <exception name="IOException" type="java.io.IOException"/>
  32080. <doc>
  32081. <![CDATA[Mark the end of a serialized vector.
  32082. @param v Vector to be serialized
  32083. @param tag Used by tagged serialization formats (such as XML)
  32084. @throws IOException Indicates error in serialization]]>
  32085. </doc>
  32086. </method>
  32087. <method name="startMap"
  32088. abstract="false" native="false" synchronized="false"
  32089. static="false" final="false" visibility="public"
  32090. deprecated="not deprecated">
  32091. <param name="m" type="java.util.TreeMap"/>
  32092. <param name="tag" type="java.lang.String"/>
  32093. <exception name="IOException" type="java.io.IOException"/>
  32094. <doc>
  32095. <![CDATA[Mark the start of a map to be serialized.
  32096. @param m Map to be serialized
  32097. @param tag Used by tagged serialization formats (such as XML)
  32098. @throws IOException Indicates error in serialization]]>
  32099. </doc>
  32100. </method>
  32101. <method name="endMap"
  32102. abstract="false" native="false" synchronized="false"
  32103. static="false" final="false" visibility="public"
  32104. deprecated="not deprecated">
  32105. <param name="m" type="java.util.TreeMap"/>
  32106. <param name="tag" type="java.lang.String"/>
  32107. <exception name="IOException" type="java.io.IOException"/>
  32108. <doc>
  32109. <![CDATA[Mark the end of a serialized map.
  32110. @param m Map to be serialized
  32111. @param tag Used by tagged serialization formats (such as XML)
  32112. @throws IOException Indicates error in serialization]]>
  32113. </doc>
  32114. </method>
  32115. <doc>
  32116. <![CDATA[Interface that alll the serializers have to implement.]]>
  32117. </doc>
  32118. </interface>
  32119. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  32120. <!-- start class org.apache.hadoop.record.Utils -->
  32121. <class name="Utils" extends="java.lang.Object"
  32122. abstract="false"
  32123. static="false" final="false" visibility="public"
  32124. deprecated="not deprecated">
  32125. <method name="readFloat" return="float"
  32126. abstract="false" native="false" synchronized="false"
  32127. static="true" final="false" visibility="public"
  32128. deprecated="not deprecated">
  32129. <param name="bytes" type="byte[]"/>
  32130. <param name="start" type="int"/>
  32131. <doc>
  32132. <![CDATA[Parse a float from a byte array.]]>
  32133. </doc>
  32134. </method>
  32135. <method name="readDouble" return="double"
  32136. abstract="false" native="false" synchronized="false"
  32137. static="true" final="false" visibility="public"
  32138. deprecated="not deprecated">
  32139. <param name="bytes" type="byte[]"/>
  32140. <param name="start" type="int"/>
  32141. <doc>
  32142. <![CDATA[Parse a double from a byte array.]]>
  32143. </doc>
  32144. </method>
  32145. <method name="readVLong" return="long"
  32146. abstract="false" native="false" synchronized="false"
  32147. static="true" final="false" visibility="public"
  32148. deprecated="not deprecated">
  32149. <param name="bytes" type="byte[]"/>
  32150. <param name="start" type="int"/>
  32151. <exception name="IOException" type="java.io.IOException"/>
  32152. <doc>
  32153. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  32154. @param bytes byte array with decode long
  32155. @param start starting index
  32156. @throws java.io.IOException
  32157. @return deserialized long]]>
  32158. </doc>
  32159. </method>
  32160. <method name="readVInt" return="int"
  32161. abstract="false" native="false" synchronized="false"
  32162. static="true" final="false" visibility="public"
  32163. deprecated="not deprecated">
  32164. <param name="bytes" type="byte[]"/>
  32165. <param name="start" type="int"/>
  32166. <exception name="IOException" type="java.io.IOException"/>
  32167. <doc>
  32168. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  32169. @param bytes byte array with the encoded integer
  32170. @param start start index
  32171. @throws java.io.IOException
  32172. @return deserialized integer]]>
  32173. </doc>
  32174. </method>
  32175. <method name="readVLong" return="long"
  32176. abstract="false" native="false" synchronized="false"
  32177. static="true" final="false" visibility="public"
  32178. deprecated="not deprecated">
  32179. <param name="in" type="java.io.DataInput"/>
  32180. <exception name="IOException" type="java.io.IOException"/>
  32181. <doc>
  32182. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  32183. @param in input stream
  32184. @throws java.io.IOException
  32185. @return deserialized long]]>
  32186. </doc>
  32187. </method>
  32188. <method name="readVInt" return="int"
  32189. abstract="false" native="false" synchronized="false"
  32190. static="true" final="false" visibility="public"
  32191. deprecated="not deprecated">
  32192. <param name="in" type="java.io.DataInput"/>
  32193. <exception name="IOException" type="java.io.IOException"/>
  32194. <doc>
  32195. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  32196. @param in input stream
  32197. @throws java.io.IOException
  32198. @return deserialized integer]]>
  32199. </doc>
  32200. </method>
  32201. <method name="getVIntSize" return="int"
  32202. abstract="false" native="false" synchronized="false"
  32203. static="true" final="false" visibility="public"
  32204. deprecated="not deprecated">
  32205. <param name="i" type="long"/>
  32206. <doc>
  32207. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  32208. @return the encoded length]]>
  32209. </doc>
  32210. </method>
  32211. <method name="writeVLong"
  32212. abstract="false" native="false" synchronized="false"
  32213. static="true" final="false" visibility="public"
  32214. deprecated="not deprecated">
  32215. <param name="stream" type="java.io.DataOutput"/>
  32216. <param name="i" type="long"/>
  32217. <exception name="IOException" type="java.io.IOException"/>
  32218. <doc>
  32219. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  32220. For -112 <= i <= 127, only one byte is used with the actual value.
  32221. For other values of i, the first byte value indicates whether the
  32222. long is positive or negative, and the number of bytes that follow.
  32223. If the first byte value v is between -113 and -120, the following long
  32224. is positive, with number of bytes that follow are -(v+112).
  32225. If the first byte value v is between -121 and -128, the following long
  32226. is negative, with number of bytes that follow are -(v+120). Bytes are
  32227. stored in the high-non-zero-byte-first order.
  32228. @param stream Binary output stream
  32229. @param i Long to be serialized
  32230. @throws java.io.IOException]]>
  32231. </doc>
  32232. </method>
  32233. <method name="writeVInt"
  32234. abstract="false" native="false" synchronized="false"
  32235. static="true" final="false" visibility="public"
  32236. deprecated="not deprecated">
  32237. <param name="stream" type="java.io.DataOutput"/>
  32238. <param name="i" type="int"/>
  32239. <exception name="IOException" type="java.io.IOException"/>
  32240. <doc>
  32241. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  32242. @param stream Binary output stream
  32243. @param i int to be serialized
  32244. @throws java.io.IOException]]>
  32245. </doc>
  32246. </method>
  32247. <method name="compareBytes" return="int"
  32248. abstract="false" native="false" synchronized="false"
  32249. static="true" final="false" visibility="public"
  32250. deprecated="not deprecated">
  32251. <param name="b1" type="byte[]"/>
  32252. <param name="s1" type="int"/>
  32253. <param name="l1" type="int"/>
  32254. <param name="b2" type="byte[]"/>
  32255. <param name="s2" type="int"/>
  32256. <param name="l2" type="int"/>
  32257. <doc>
  32258. <![CDATA[Lexicographic order of binary data.]]>
  32259. </doc>
  32260. </method>
  32261. <field name="hexchars" type="char[]"
  32262. transient="false" volatile="false"
  32263. static="true" final="true" visibility="public"
  32264. deprecated="not deprecated">
  32265. </field>
  32266. <doc>
  32267. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  32268. </doc>
  32269. </class>
  32270. <!-- end class org.apache.hadoop.record.Utils -->
  32271. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  32272. <class name="XmlRecordInput" extends="java.lang.Object"
  32273. abstract="false"
  32274. static="false" final="false" visibility="public"
  32275. deprecated="not deprecated">
  32276. <implements name="org.apache.hadoop.record.RecordInput"/>
  32277. <constructor name="XmlRecordInput" type="java.io.InputStream"
  32278. static="false" final="false" visibility="public"
  32279. deprecated="not deprecated">
  32280. <doc>
  32281. <![CDATA[Creates a new instance of XmlRecordInput]]>
  32282. </doc>
  32283. </constructor>
  32284. <method name="readByte" return="byte"
  32285. abstract="false" native="false" synchronized="false"
  32286. static="false" final="false" visibility="public"
  32287. deprecated="not deprecated">
  32288. <param name="tag" type="java.lang.String"/>
  32289. <exception name="IOException" type="java.io.IOException"/>
  32290. </method>
  32291. <method name="readBool" return="boolean"
  32292. abstract="false" native="false" synchronized="false"
  32293. static="false" final="false" visibility="public"
  32294. deprecated="not deprecated">
  32295. <param name="tag" type="java.lang.String"/>
  32296. <exception name="IOException" type="java.io.IOException"/>
  32297. </method>
  32298. <method name="readInt" return="int"
  32299. abstract="false" native="false" synchronized="false"
  32300. static="false" final="false" visibility="public"
  32301. deprecated="not deprecated">
  32302. <param name="tag" type="java.lang.String"/>
  32303. <exception name="IOException" type="java.io.IOException"/>
  32304. </method>
  32305. <method name="readLong" return="long"
  32306. abstract="false" native="false" synchronized="false"
  32307. static="false" final="false" visibility="public"
  32308. deprecated="not deprecated">
  32309. <param name="tag" type="java.lang.String"/>
  32310. <exception name="IOException" type="java.io.IOException"/>
  32311. </method>
  32312. <method name="readFloat" return="float"
  32313. abstract="false" native="false" synchronized="false"
  32314. static="false" final="false" visibility="public"
  32315. deprecated="not deprecated">
  32316. <param name="tag" type="java.lang.String"/>
  32317. <exception name="IOException" type="java.io.IOException"/>
  32318. </method>
  32319. <method name="readDouble" return="double"
  32320. abstract="false" native="false" synchronized="false"
  32321. static="false" final="false" visibility="public"
  32322. deprecated="not deprecated">
  32323. <param name="tag" type="java.lang.String"/>
  32324. <exception name="IOException" type="java.io.IOException"/>
  32325. </method>
  32326. <method name="readString" return="java.lang.String"
  32327. abstract="false" native="false" synchronized="false"
  32328. static="false" final="false" visibility="public"
  32329. deprecated="not deprecated">
  32330. <param name="tag" type="java.lang.String"/>
  32331. <exception name="IOException" type="java.io.IOException"/>
  32332. </method>
  32333. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32334. abstract="false" native="false" synchronized="false"
  32335. static="false" final="false" visibility="public"
  32336. deprecated="not deprecated">
  32337. <param name="tag" type="java.lang.String"/>
  32338. <exception name="IOException" type="java.io.IOException"/>
  32339. </method>
  32340. <method name="startRecord"
  32341. abstract="false" native="false" synchronized="false"
  32342. static="false" final="false" visibility="public"
  32343. deprecated="not deprecated">
  32344. <param name="tag" type="java.lang.String"/>
  32345. <exception name="IOException" type="java.io.IOException"/>
  32346. </method>
  32347. <method name="endRecord"
  32348. abstract="false" native="false" synchronized="false"
  32349. static="false" final="false" visibility="public"
  32350. deprecated="not deprecated">
  32351. <param name="tag" type="java.lang.String"/>
  32352. <exception name="IOException" type="java.io.IOException"/>
  32353. </method>
  32354. <method name="startVector" return="org.apache.hadoop.record.Index"
  32355. abstract="false" native="false" synchronized="false"
  32356. static="false" final="false" visibility="public"
  32357. deprecated="not deprecated">
  32358. <param name="tag" type="java.lang.String"/>
  32359. <exception name="IOException" type="java.io.IOException"/>
  32360. </method>
  32361. <method name="endVector"
  32362. abstract="false" native="false" synchronized="false"
  32363. static="false" final="false" visibility="public"
  32364. deprecated="not deprecated">
  32365. <param name="tag" type="java.lang.String"/>
  32366. <exception name="IOException" type="java.io.IOException"/>
  32367. </method>
  32368. <method name="startMap" return="org.apache.hadoop.record.Index"
  32369. abstract="false" native="false" synchronized="false"
  32370. static="false" final="false" visibility="public"
  32371. deprecated="not deprecated">
  32372. <param name="tag" type="java.lang.String"/>
  32373. <exception name="IOException" type="java.io.IOException"/>
  32374. </method>
  32375. <method name="endMap"
  32376. abstract="false" native="false" synchronized="false"
  32377. static="false" final="false" visibility="public"
  32378. deprecated="not deprecated">
  32379. <param name="tag" type="java.lang.String"/>
  32380. <exception name="IOException" type="java.io.IOException"/>
  32381. </method>
  32382. <doc>
  32383. <![CDATA[XML Deserializer.]]>
  32384. </doc>
  32385. </class>
  32386. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  32387. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  32388. <class name="XmlRecordOutput" extends="java.lang.Object"
  32389. abstract="false"
  32390. static="false" final="false" visibility="public"
  32391. deprecated="not deprecated">
  32392. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32393. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  32394. static="false" final="false" visibility="public"
  32395. deprecated="not deprecated">
  32396. <doc>
  32397. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  32398. </doc>
  32399. </constructor>
  32400. <method name="writeByte"
  32401. abstract="false" native="false" synchronized="false"
  32402. static="false" final="false" visibility="public"
  32403. deprecated="not deprecated">
  32404. <param name="b" type="byte"/>
  32405. <param name="tag" type="java.lang.String"/>
  32406. <exception name="IOException" type="java.io.IOException"/>
  32407. </method>
  32408. <method name="writeBool"
  32409. abstract="false" native="false" synchronized="false"
  32410. static="false" final="false" visibility="public"
  32411. deprecated="not deprecated">
  32412. <param name="b" type="boolean"/>
  32413. <param name="tag" type="java.lang.String"/>
  32414. <exception name="IOException" type="java.io.IOException"/>
  32415. </method>
  32416. <method name="writeInt"
  32417. abstract="false" native="false" synchronized="false"
  32418. static="false" final="false" visibility="public"
  32419. deprecated="not deprecated">
  32420. <param name="i" type="int"/>
  32421. <param name="tag" type="java.lang.String"/>
  32422. <exception name="IOException" type="java.io.IOException"/>
  32423. </method>
  32424. <method name="writeLong"
  32425. abstract="false" native="false" synchronized="false"
  32426. static="false" final="false" visibility="public"
  32427. deprecated="not deprecated">
  32428. <param name="l" type="long"/>
  32429. <param name="tag" type="java.lang.String"/>
  32430. <exception name="IOException" type="java.io.IOException"/>
  32431. </method>
  32432. <method name="writeFloat"
  32433. abstract="false" native="false" synchronized="false"
  32434. static="false" final="false" visibility="public"
  32435. deprecated="not deprecated">
  32436. <param name="f" type="float"/>
  32437. <param name="tag" type="java.lang.String"/>
  32438. <exception name="IOException" type="java.io.IOException"/>
  32439. </method>
  32440. <method name="writeDouble"
  32441. abstract="false" native="false" synchronized="false"
  32442. static="false" final="false" visibility="public"
  32443. deprecated="not deprecated">
  32444. <param name="d" type="double"/>
  32445. <param name="tag" type="java.lang.String"/>
  32446. <exception name="IOException" type="java.io.IOException"/>
  32447. </method>
  32448. <method name="writeString"
  32449. abstract="false" native="false" synchronized="false"
  32450. static="false" final="false" visibility="public"
  32451. deprecated="not deprecated">
  32452. <param name="s" type="java.lang.String"/>
  32453. <param name="tag" type="java.lang.String"/>
  32454. <exception name="IOException" type="java.io.IOException"/>
  32455. </method>
  32456. <method name="writeBuffer"
  32457. abstract="false" native="false" synchronized="false"
  32458. static="false" final="false" visibility="public"
  32459. deprecated="not deprecated">
  32460. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32461. <param name="tag" type="java.lang.String"/>
  32462. <exception name="IOException" type="java.io.IOException"/>
  32463. </method>
  32464. <method name="startRecord"
  32465. abstract="false" native="false" synchronized="false"
  32466. static="false" final="false" visibility="public"
  32467. deprecated="not deprecated">
  32468. <param name="r" type="org.apache.hadoop.record.Record"/>
  32469. <param name="tag" type="java.lang.String"/>
  32470. <exception name="IOException" type="java.io.IOException"/>
  32471. </method>
  32472. <method name="endRecord"
  32473. abstract="false" native="false" synchronized="false"
  32474. static="false" final="false" visibility="public"
  32475. deprecated="not deprecated">
  32476. <param name="r" type="org.apache.hadoop.record.Record"/>
  32477. <param name="tag" type="java.lang.String"/>
  32478. <exception name="IOException" type="java.io.IOException"/>
  32479. </method>
  32480. <method name="startVector"
  32481. abstract="false" native="false" synchronized="false"
  32482. static="false" final="false" visibility="public"
  32483. deprecated="not deprecated">
  32484. <param name="v" type="java.util.ArrayList"/>
  32485. <param name="tag" type="java.lang.String"/>
  32486. <exception name="IOException" type="java.io.IOException"/>
  32487. </method>
  32488. <method name="endVector"
  32489. abstract="false" native="false" synchronized="false"
  32490. static="false" final="false" visibility="public"
  32491. deprecated="not deprecated">
  32492. <param name="v" type="java.util.ArrayList"/>
  32493. <param name="tag" type="java.lang.String"/>
  32494. <exception name="IOException" type="java.io.IOException"/>
  32495. </method>
  32496. <method name="startMap"
  32497. abstract="false" native="false" synchronized="false"
  32498. static="false" final="false" visibility="public"
  32499. deprecated="not deprecated">
  32500. <param name="v" type="java.util.TreeMap"/>
  32501. <param name="tag" type="java.lang.String"/>
  32502. <exception name="IOException" type="java.io.IOException"/>
  32503. </method>
  32504. <method name="endMap"
  32505. abstract="false" native="false" synchronized="false"
  32506. static="false" final="false" visibility="public"
  32507. deprecated="not deprecated">
  32508. <param name="v" type="java.util.TreeMap"/>
  32509. <param name="tag" type="java.lang.String"/>
  32510. <exception name="IOException" type="java.io.IOException"/>
  32511. </method>
  32512. <doc>
  32513. <![CDATA[XML Serializer.]]>
  32514. </doc>
  32515. </class>
  32516. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  32517. </package>
  32518. <package name="org.apache.hadoop.record.compiler">
  32519. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  32520. <class name="CodeBuffer" extends="java.lang.Object"
  32521. abstract="false"
  32522. static="false" final="false" visibility="public"
  32523. deprecated="not deprecated">
  32524. <method name="toString" return="java.lang.String"
  32525. abstract="false" native="false" synchronized="false"
  32526. static="false" final="false" visibility="public"
  32527. deprecated="not deprecated">
  32528. </method>
  32529. <doc>
  32530. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  32531. </doc>
  32532. </class>
  32533. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  32534. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  32535. <class name="Consts" extends="java.lang.Object"
  32536. abstract="false"
  32537. static="false" final="false" visibility="public"
  32538. deprecated="not deprecated">
  32539. <field name="RIO_PREFIX" type="java.lang.String"
  32540. transient="false" volatile="false"
  32541. static="true" final="true" visibility="public"
  32542. deprecated="not deprecated">
  32543. </field>
  32544. <field name="RTI_VAR" type="java.lang.String"
  32545. transient="false" volatile="false"
  32546. static="true" final="true" visibility="public"
  32547. deprecated="not deprecated">
  32548. </field>
  32549. <field name="RTI_FILTER" type="java.lang.String"
  32550. transient="false" volatile="false"
  32551. static="true" final="true" visibility="public"
  32552. deprecated="not deprecated">
  32553. </field>
  32554. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  32555. transient="false" volatile="false"
  32556. static="true" final="true" visibility="public"
  32557. deprecated="not deprecated">
  32558. </field>
  32559. <field name="RECORD_OUTPUT" type="java.lang.String"
  32560. transient="false" volatile="false"
  32561. static="true" final="true" visibility="public"
  32562. deprecated="not deprecated">
  32563. </field>
  32564. <field name="RECORD_INPUT" type="java.lang.String"
  32565. transient="false" volatile="false"
  32566. static="true" final="true" visibility="public"
  32567. deprecated="not deprecated">
  32568. </field>
  32569. <field name="TAG" type="java.lang.String"
  32570. transient="false" volatile="false"
  32571. static="true" final="true" visibility="public"
  32572. deprecated="not deprecated">
  32573. </field>
  32574. <doc>
  32575. <![CDATA[const definitions for Record I/O compiler]]>
  32576. </doc>
  32577. </class>
  32578. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  32579. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  32580. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  32581. abstract="false"
  32582. static="false" final="false" visibility="public"
  32583. deprecated="not deprecated">
  32584. <constructor name="JBoolean"
  32585. static="false" final="false" visibility="public"
  32586. deprecated="not deprecated">
  32587. <doc>
  32588. <![CDATA[Creates a new instance of JBoolean]]>
  32589. </doc>
  32590. </constructor>
  32591. </class>
  32592. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  32593. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  32594. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  32595. abstract="false"
  32596. static="false" final="false" visibility="public"
  32597. deprecated="not deprecated">
  32598. <constructor name="JBuffer"
  32599. static="false" final="false" visibility="public"
  32600. deprecated="not deprecated">
  32601. <doc>
  32602. <![CDATA[Creates a new instance of JBuffer]]>
  32603. </doc>
  32604. </constructor>
  32605. <doc>
  32606. <![CDATA[Code generator for "buffer" type.]]>
  32607. </doc>
  32608. </class>
  32609. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  32610. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  32611. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  32612. abstract="false"
  32613. static="false" final="false" visibility="public"
  32614. deprecated="not deprecated">
  32615. <constructor name="JByte"
  32616. static="false" final="false" visibility="public"
  32617. deprecated="not deprecated">
  32618. </constructor>
  32619. <doc>
  32620. <![CDATA[Code generator for "byte" type.]]>
  32621. </doc>
  32622. </class>
  32623. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  32624. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  32625. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  32626. abstract="false"
  32627. static="false" final="false" visibility="public"
  32628. deprecated="not deprecated">
  32629. <constructor name="JDouble"
  32630. static="false" final="false" visibility="public"
  32631. deprecated="not deprecated">
  32632. <doc>
  32633. <![CDATA[Creates a new instance of JDouble]]>
  32634. </doc>
  32635. </constructor>
  32636. </class>
  32637. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  32638. <!-- start class org.apache.hadoop.record.compiler.JField -->
  32639. <class name="JField" extends="java.lang.Object"
  32640. abstract="false"
  32641. static="false" final="false" visibility="public"
  32642. deprecated="not deprecated">
  32643. <constructor name="JField" type="java.lang.String, java.lang.Object"
  32644. static="false" final="false" visibility="public"
  32645. deprecated="not deprecated">
  32646. <doc>
  32647. <![CDATA[Creates a new instance of JField]]>
  32648. </doc>
  32649. </constructor>
  32650. <doc>
  32651. <![CDATA[A thin wrappper around record field.]]>
  32652. </doc>
  32653. </class>
  32654. <!-- end class org.apache.hadoop.record.compiler.JField -->
  32655. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  32656. <class name="JFile" extends="java.lang.Object"
  32657. abstract="false"
  32658. static="false" final="false" visibility="public"
  32659. deprecated="not deprecated">
  32660. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  32661. static="false" final="false" visibility="public"
  32662. deprecated="not deprecated">
  32663. <doc>
  32664. <![CDATA[Creates a new instance of JFile
  32665. @param name possibly full pathname to the file
  32666. @param inclFiles included files (as JFile)
  32667. @param recList List of records defined within this file]]>
  32668. </doc>
  32669. </constructor>
  32670. <method name="genCode" return="int"
  32671. abstract="false" native="false" synchronized="false"
  32672. static="false" final="false" visibility="public"
  32673. deprecated="not deprecated">
  32674. <param name="language" type="java.lang.String"/>
  32675. <param name="destDir" type="java.lang.String"/>
  32676. <param name="options" type="java.util.ArrayList"/>
  32677. <exception name="IOException" type="java.io.IOException"/>
  32678. <doc>
  32679. <![CDATA[Generate record code in given language. Language should be all
  32680. lowercase.]]>
  32681. </doc>
  32682. </method>
  32683. <doc>
  32684. <![CDATA[Container for the Hadoop Record DDL.
  32685. The main components of the file are filename, list of included files,
  32686. and records defined in that file.]]>
  32687. </doc>
  32688. </class>
  32689. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  32690. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  32691. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  32692. abstract="false"
  32693. static="false" final="false" visibility="public"
  32694. deprecated="not deprecated">
  32695. <constructor name="JFloat"
  32696. static="false" final="false" visibility="public"
  32697. deprecated="not deprecated">
  32698. <doc>
  32699. <![CDATA[Creates a new instance of JFloat]]>
  32700. </doc>
  32701. </constructor>
  32702. </class>
  32703. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  32704. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  32705. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  32706. abstract="false"
  32707. static="false" final="false" visibility="public"
  32708. deprecated="not deprecated">
  32709. <constructor name="JInt"
  32710. static="false" final="false" visibility="public"
  32711. deprecated="not deprecated">
  32712. <doc>
  32713. <![CDATA[Creates a new instance of JInt]]>
  32714. </doc>
  32715. </constructor>
  32716. <doc>
  32717. <![CDATA[Code generator for "int" type]]>
  32718. </doc>
  32719. </class>
  32720. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  32721. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  32722. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  32723. abstract="false"
  32724. static="false" final="false" visibility="public"
  32725. deprecated="not deprecated">
  32726. <constructor name="JLong"
  32727. static="false" final="false" visibility="public"
  32728. deprecated="not deprecated">
  32729. <doc>
  32730. <![CDATA[Creates a new instance of JLong]]>
  32731. </doc>
  32732. </constructor>
  32733. <doc>
  32734. <![CDATA[Code generator for "long" type]]>
  32735. </doc>
  32736. </class>
  32737. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  32738. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  32739. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  32740. abstract="false"
  32741. static="false" final="false" visibility="public"
  32742. deprecated="not deprecated">
  32743. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  32744. static="false" final="false" visibility="public"
  32745. deprecated="not deprecated">
  32746. <doc>
  32747. <![CDATA[Creates a new instance of JMap]]>
  32748. </doc>
  32749. </constructor>
  32750. </class>
  32751. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  32752. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  32753. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  32754. abstract="false"
  32755. static="false" final="false" visibility="public"
  32756. deprecated="not deprecated">
  32757. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  32758. static="false" final="false" visibility="public"
  32759. deprecated="not deprecated">
  32760. <doc>
  32761. <![CDATA[Creates a new instance of JRecord]]>
  32762. </doc>
  32763. </constructor>
  32764. </class>
  32765. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  32766. <!-- start class org.apache.hadoop.record.compiler.JString -->
  32767. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  32768. abstract="false"
  32769. static="false" final="false" visibility="public"
  32770. deprecated="not deprecated">
  32771. <constructor name="JString"
  32772. static="false" final="false" visibility="public"
  32773. deprecated="not deprecated">
  32774. <doc>
  32775. <![CDATA[Creates a new instance of JString]]>
  32776. </doc>
  32777. </constructor>
  32778. </class>
  32779. <!-- end class org.apache.hadoop.record.compiler.JString -->
  32780. <!-- start class org.apache.hadoop.record.compiler.JType -->
  32781. <class name="JType" extends="java.lang.Object"
  32782. abstract="true"
  32783. static="false" final="false" visibility="public"
  32784. deprecated="not deprecated">
  32785. <constructor name="JType"
  32786. static="false" final="false" visibility="public"
  32787. deprecated="not deprecated">
  32788. </constructor>
  32789. <doc>
  32790. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  32791. </doc>
  32792. </class>
  32793. <!-- end class org.apache.hadoop.record.compiler.JType -->
  32794. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  32795. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  32796. abstract="false"
  32797. static="false" final="false" visibility="public"
  32798. deprecated="not deprecated">
  32799. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  32800. static="false" final="false" visibility="public"
  32801. deprecated="not deprecated">
  32802. <doc>
  32803. <![CDATA[Creates a new instance of JVector]]>
  32804. </doc>
  32805. </constructor>
  32806. </class>
  32807. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  32808. </package>
  32809. <package name="org.apache.hadoop.record.compiler.ant">
  32810. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  32811. <class name="RccTask" extends="org.apache.tools.ant.Task"
  32812. abstract="false"
  32813. static="false" final="false" visibility="public"
  32814. deprecated="not deprecated">
  32815. <constructor name="RccTask"
  32816. static="false" final="false" visibility="public"
  32817. deprecated="not deprecated">
  32818. <doc>
  32819. <![CDATA[Creates a new instance of RccTask]]>
  32820. </doc>
  32821. </constructor>
  32822. <method name="setLanguage"
  32823. abstract="false" native="false" synchronized="false"
  32824. static="false" final="false" visibility="public"
  32825. deprecated="not deprecated">
  32826. <param name="language" type="java.lang.String"/>
  32827. <doc>
  32828. <![CDATA[Sets the output language option
  32829. @param language "java"/"c++"]]>
  32830. </doc>
  32831. </method>
  32832. <method name="setFile"
  32833. abstract="false" native="false" synchronized="false"
  32834. static="false" final="false" visibility="public"
  32835. deprecated="not deprecated">
  32836. <param name="file" type="java.io.File"/>
  32837. <doc>
  32838. <![CDATA[Sets the record definition file attribute
  32839. @param file record definition file]]>
  32840. </doc>
  32841. </method>
  32842. <method name="setFailonerror"
  32843. abstract="false" native="false" synchronized="false"
  32844. static="false" final="false" visibility="public"
  32845. deprecated="not deprecated">
  32846. <param name="flag" type="boolean"/>
  32847. <doc>
  32848. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  32849. @param flag true will throw build exception in case of failure (default)]]>
  32850. </doc>
  32851. </method>
  32852. <method name="setDestdir"
  32853. abstract="false" native="false" synchronized="false"
  32854. static="false" final="false" visibility="public"
  32855. deprecated="not deprecated">
  32856. <param name="dir" type="java.io.File"/>
  32857. <doc>
  32858. <![CDATA[Sets directory where output files will be generated
  32859. @param dir output directory]]>
  32860. </doc>
  32861. </method>
  32862. <method name="addFileset"
  32863. abstract="false" native="false" synchronized="false"
  32864. static="false" final="false" visibility="public"
  32865. deprecated="not deprecated">
  32866. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  32867. <doc>
  32868. <![CDATA[Adds a fileset that can consist of one or more files
  32869. @param set Set of record definition files]]>
  32870. </doc>
  32871. </method>
  32872. <method name="execute"
  32873. abstract="false" native="false" synchronized="false"
  32874. static="false" final="false" visibility="public"
  32875. deprecated="not deprecated">
  32876. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  32877. <doc>
  32878. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  32879. </doc>
  32880. </method>
  32881. <doc>
  32882. <![CDATA[Hadoop record compiler ant Task
  32883. <p> This task takes the given record definition files and compiles them into
  32884. java or c++
  32885. files. It is then up to the user to compile the generated files.
  32886. <p> The task requires the <code>file</code> or the nested fileset element to be
  32887. specified. Optional attributes are <code>language</code> (set the output
  32888. language, default is "java"),
  32889. <code>destdir</code> (name of the destination directory for generated java/c++
  32890. code, default is ".") and <code>failonerror</code> (specifies error handling
  32891. behavior. default is true).
  32892. <p><h4>Usage</h4>
  32893. <pre>
  32894. &lt;recordcc
  32895. destdir="${basedir}/gensrc"
  32896. language="java"&gt;
  32897. &lt;fileset include="**\/*.jr" /&gt;
  32898. &lt;/recordcc&gt;
  32899. </pre>]]>
  32900. </doc>
  32901. </class>
  32902. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  32903. </package>
  32904. <package name="org.apache.hadoop.record.compiler.generated">
  32905. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  32906. <class name="ParseException" extends="java.lang.Exception"
  32907. abstract="false"
  32908. static="false" final="false" visibility="public"
  32909. deprecated="not deprecated">
  32910. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  32911. static="false" final="false" visibility="public"
  32912. deprecated="not deprecated">
  32913. <doc>
  32914. <![CDATA[This constructor is used by the method "generateParseException"
  32915. in the generated parser. Calling this constructor generates
  32916. a new object of this type with the fields "currentToken",
  32917. "expectedTokenSequences", and "tokenImage" set. The boolean
  32918. flag "specialConstructor" is also set to true to indicate that
  32919. this constructor was used to create this object.
  32920. This constructor calls its super class with the empty string
  32921. to force the "toString" method of parent class "Throwable" to
  32922. print the error message in the form:
  32923. ParseException: <result of getMessage>]]>
  32924. </doc>
  32925. </constructor>
  32926. <constructor name="ParseException"
  32927. static="false" final="false" visibility="public"
  32928. deprecated="not deprecated">
  32929. <doc>
  32930. <![CDATA[The following constructors are for use by you for whatever
  32931. purpose you can think of. Constructing the exception in this
  32932. manner makes the exception behave in the normal way - i.e., as
  32933. documented in the class "Throwable". The fields "errorToken",
  32934. "expectedTokenSequences", and "tokenImage" do not contain
  32935. relevant information. The JavaCC generated code does not use
  32936. these constructors.]]>
  32937. </doc>
  32938. </constructor>
  32939. <constructor name="ParseException" type="java.lang.String"
  32940. static="false" final="false" visibility="public"
  32941. deprecated="not deprecated">
  32942. </constructor>
  32943. <method name="getMessage" return="java.lang.String"
  32944. abstract="false" native="false" synchronized="false"
  32945. static="false" final="false" visibility="public"
  32946. deprecated="not deprecated">
  32947. <doc>
  32948. <![CDATA[This method has the standard behavior when this object has been
  32949. created using the standard constructors. Otherwise, it uses
  32950. "currentToken" and "expectedTokenSequences" to generate a parse
  32951. error message and returns it. If this object has been created
  32952. due to a parse error, and you do not catch it (it gets thrown
  32953. from the parser), then this method is called during the printing
  32954. of the final stack trace, and hence the correct error message
  32955. gets displayed.]]>
  32956. </doc>
  32957. </method>
  32958. <method name="add_escapes" return="java.lang.String"
  32959. abstract="false" native="false" synchronized="false"
  32960. static="false" final="false" visibility="protected"
  32961. deprecated="not deprecated">
  32962. <param name="str" type="java.lang.String"/>
  32963. <doc>
  32964. <![CDATA[Used to convert raw characters to their escaped version
  32965. when these raw version cannot be used as part of an ASCII
  32966. string literal.]]>
  32967. </doc>
  32968. </method>
  32969. <field name="specialConstructor" type="boolean"
  32970. transient="false" volatile="false"
  32971. static="false" final="false" visibility="protected"
  32972. deprecated="not deprecated">
  32973. <doc>
  32974. <![CDATA[This variable determines which constructor was used to create
  32975. this object and thereby affects the semantics of the
  32976. "getMessage" method (see below).]]>
  32977. </doc>
  32978. </field>
  32979. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32980. transient="false" volatile="false"
  32981. static="false" final="false" visibility="public"
  32982. deprecated="not deprecated">
  32983. <doc>
  32984. <![CDATA[This is the last token that has been consumed successfully. If
  32985. this object has been created due to a parse error, the token
  32986. followng this token will (therefore) be the first error token.]]>
  32987. </doc>
  32988. </field>
  32989. <field name="expectedTokenSequences" type="int[][]"
  32990. transient="false" volatile="false"
  32991. static="false" final="false" visibility="public"
  32992. deprecated="not deprecated">
  32993. <doc>
  32994. <![CDATA[Each entry in this array is an array of integers. Each array
  32995. of integers represents a sequence of tokens (by their ordinal
  32996. values) that is expected at this point of the parse.]]>
  32997. </doc>
  32998. </field>
  32999. <field name="tokenImage" type="java.lang.String[]"
  33000. transient="false" volatile="false"
  33001. static="false" final="false" visibility="public"
  33002. deprecated="not deprecated">
  33003. <doc>
  33004. <![CDATA[This is a reference to the "tokenImage" array of the generated
  33005. parser within which the parse error occurred. This array is
  33006. defined in the generated ...Constants interface.]]>
  33007. </doc>
  33008. </field>
  33009. <field name="eol" type="java.lang.String"
  33010. transient="false" volatile="false"
  33011. static="false" final="false" visibility="protected"
  33012. deprecated="not deprecated">
  33013. <doc>
  33014. <![CDATA[The end of line string for this machine.]]>
  33015. </doc>
  33016. </field>
  33017. <doc>
  33018. <![CDATA[This exception is thrown when parse errors are encountered.
  33019. You can explicitly create objects of this exception type by
  33020. calling the method generateParseException in the generated
  33021. parser.
  33022. You can modify this class to customize your error reporting
  33023. mechanisms so long as you retain the public fields.]]>
  33024. </doc>
  33025. </class>
  33026. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  33027. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  33028. <class name="Rcc" extends="java.lang.Object"
  33029. abstract="false"
  33030. static="false" final="false" visibility="public"
  33031. deprecated="not deprecated">
  33032. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33033. <constructor name="Rcc" type="java.io.InputStream"
  33034. static="false" final="false" visibility="public"
  33035. deprecated="not deprecated">
  33036. </constructor>
  33037. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  33038. static="false" final="false" visibility="public"
  33039. deprecated="not deprecated">
  33040. </constructor>
  33041. <constructor name="Rcc" type="java.io.Reader"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. </constructor>
  33045. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33046. static="false" final="false" visibility="public"
  33047. deprecated="not deprecated">
  33048. </constructor>
  33049. <method name="main"
  33050. abstract="false" native="false" synchronized="false"
  33051. static="true" final="false" visibility="public"
  33052. deprecated="not deprecated">
  33053. <param name="args" type="java.lang.String[]"/>
  33054. </method>
  33055. <method name="usage"
  33056. abstract="false" native="false" synchronized="false"
  33057. static="true" final="false" visibility="public"
  33058. deprecated="not deprecated">
  33059. </method>
  33060. <method name="driver" return="int"
  33061. abstract="false" native="false" synchronized="false"
  33062. static="true" final="false" visibility="public"
  33063. deprecated="not deprecated">
  33064. <param name="args" type="java.lang.String[]"/>
  33065. </method>
  33066. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  33067. abstract="false" native="false" synchronized="false"
  33068. static="false" final="true" visibility="public"
  33069. deprecated="not deprecated">
  33070. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33071. </method>
  33072. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  33073. abstract="false" native="false" synchronized="false"
  33074. static="false" final="true" visibility="public"
  33075. deprecated="not deprecated">
  33076. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33077. </method>
  33078. <method name="Module" return="java.util.ArrayList"
  33079. abstract="false" native="false" synchronized="false"
  33080. static="false" final="true" visibility="public"
  33081. deprecated="not deprecated">
  33082. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33083. </method>
  33084. <method name="ModuleName" return="java.lang.String"
  33085. abstract="false" native="false" synchronized="false"
  33086. static="false" final="true" visibility="public"
  33087. deprecated="not deprecated">
  33088. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33089. </method>
  33090. <method name="RecordList" return="java.util.ArrayList"
  33091. abstract="false" native="false" synchronized="false"
  33092. static="false" final="true" visibility="public"
  33093. deprecated="not deprecated">
  33094. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33095. </method>
  33096. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  33097. abstract="false" native="false" synchronized="false"
  33098. static="false" final="true" visibility="public"
  33099. deprecated="not deprecated">
  33100. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33101. </method>
  33102. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  33103. abstract="false" native="false" synchronized="false"
  33104. static="false" final="true" visibility="public"
  33105. deprecated="not deprecated">
  33106. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33107. </method>
  33108. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  33109. abstract="false" native="false" synchronized="false"
  33110. static="false" final="true" visibility="public"
  33111. deprecated="not deprecated">
  33112. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33113. </method>
  33114. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  33115. abstract="false" native="false" synchronized="false"
  33116. static="false" final="true" visibility="public"
  33117. deprecated="not deprecated">
  33118. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33119. </method>
  33120. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  33121. abstract="false" native="false" synchronized="false"
  33122. static="false" final="true" visibility="public"
  33123. deprecated="not deprecated">
  33124. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33125. </method>
  33126. <method name="ReInit"
  33127. abstract="false" native="false" synchronized="false"
  33128. static="false" final="false" visibility="public"
  33129. deprecated="not deprecated">
  33130. <param name="stream" type="java.io.InputStream"/>
  33131. </method>
  33132. <method name="ReInit"
  33133. abstract="false" native="false" synchronized="false"
  33134. static="false" final="false" visibility="public"
  33135. deprecated="not deprecated">
  33136. <param name="stream" type="java.io.InputStream"/>
  33137. <param name="encoding" type="java.lang.String"/>
  33138. </method>
  33139. <method name="ReInit"
  33140. abstract="false" native="false" synchronized="false"
  33141. static="false" final="false" visibility="public"
  33142. deprecated="not deprecated">
  33143. <param name="stream" type="java.io.Reader"/>
  33144. </method>
  33145. <method name="ReInit"
  33146. abstract="false" native="false" synchronized="false"
  33147. static="false" final="false" visibility="public"
  33148. deprecated="not deprecated">
  33149. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  33150. </method>
  33151. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33152. abstract="false" native="false" synchronized="false"
  33153. static="false" final="true" visibility="public"
  33154. deprecated="not deprecated">
  33155. </method>
  33156. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33157. abstract="false" native="false" synchronized="false"
  33158. static="false" final="true" visibility="public"
  33159. deprecated="not deprecated">
  33160. <param name="index" type="int"/>
  33161. </method>
  33162. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  33163. abstract="false" native="false" synchronized="false"
  33164. static="false" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. </method>
  33167. <method name="enable_tracing"
  33168. abstract="false" native="false" synchronized="false"
  33169. static="false" final="true" visibility="public"
  33170. deprecated="not deprecated">
  33171. </method>
  33172. <method name="disable_tracing"
  33173. abstract="false" native="false" synchronized="false"
  33174. static="false" final="true" visibility="public"
  33175. deprecated="not deprecated">
  33176. </method>
  33177. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33178. transient="false" volatile="false"
  33179. static="false" final="false" visibility="public"
  33180. deprecated="not deprecated">
  33181. </field>
  33182. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  33183. transient="false" volatile="false"
  33184. static="false" final="false" visibility="public"
  33185. deprecated="not deprecated">
  33186. </field>
  33187. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  33188. transient="false" volatile="false"
  33189. static="false" final="false" visibility="public"
  33190. deprecated="not deprecated">
  33191. </field>
  33192. </class>
  33193. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  33194. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33195. <interface name="RccConstants" abstract="true"
  33196. static="false" final="false" visibility="public"
  33197. deprecated="not deprecated">
  33198. <field name="EOF" type="int"
  33199. transient="false" volatile="false"
  33200. static="true" final="true" visibility="public"
  33201. deprecated="not deprecated">
  33202. </field>
  33203. <field name="MODULE_TKN" type="int"
  33204. transient="false" volatile="false"
  33205. static="true" final="true" visibility="public"
  33206. deprecated="not deprecated">
  33207. </field>
  33208. <field name="RECORD_TKN" type="int"
  33209. transient="false" volatile="false"
  33210. static="true" final="true" visibility="public"
  33211. deprecated="not deprecated">
  33212. </field>
  33213. <field name="INCLUDE_TKN" type="int"
  33214. transient="false" volatile="false"
  33215. static="true" final="true" visibility="public"
  33216. deprecated="not deprecated">
  33217. </field>
  33218. <field name="BYTE_TKN" type="int"
  33219. transient="false" volatile="false"
  33220. static="true" final="true" visibility="public"
  33221. deprecated="not deprecated">
  33222. </field>
  33223. <field name="BOOLEAN_TKN" type="int"
  33224. transient="false" volatile="false"
  33225. static="true" final="true" visibility="public"
  33226. deprecated="not deprecated">
  33227. </field>
  33228. <field name="INT_TKN" type="int"
  33229. transient="false" volatile="false"
  33230. static="true" final="true" visibility="public"
  33231. deprecated="not deprecated">
  33232. </field>
  33233. <field name="LONG_TKN" type="int"
  33234. transient="false" volatile="false"
  33235. static="true" final="true" visibility="public"
  33236. deprecated="not deprecated">
  33237. </field>
  33238. <field name="FLOAT_TKN" type="int"
  33239. transient="false" volatile="false"
  33240. static="true" final="true" visibility="public"
  33241. deprecated="not deprecated">
  33242. </field>
  33243. <field name="DOUBLE_TKN" type="int"
  33244. transient="false" volatile="false"
  33245. static="true" final="true" visibility="public"
  33246. deprecated="not deprecated">
  33247. </field>
  33248. <field name="USTRING_TKN" type="int"
  33249. transient="false" volatile="false"
  33250. static="true" final="true" visibility="public"
  33251. deprecated="not deprecated">
  33252. </field>
  33253. <field name="BUFFER_TKN" type="int"
  33254. transient="false" volatile="false"
  33255. static="true" final="true" visibility="public"
  33256. deprecated="not deprecated">
  33257. </field>
  33258. <field name="VECTOR_TKN" type="int"
  33259. transient="false" volatile="false"
  33260. static="true" final="true" visibility="public"
  33261. deprecated="not deprecated">
  33262. </field>
  33263. <field name="MAP_TKN" type="int"
  33264. transient="false" volatile="false"
  33265. static="true" final="true" visibility="public"
  33266. deprecated="not deprecated">
  33267. </field>
  33268. <field name="LBRACE_TKN" type="int"
  33269. transient="false" volatile="false"
  33270. static="true" final="true" visibility="public"
  33271. deprecated="not deprecated">
  33272. </field>
  33273. <field name="RBRACE_TKN" type="int"
  33274. transient="false" volatile="false"
  33275. static="true" final="true" visibility="public"
  33276. deprecated="not deprecated">
  33277. </field>
  33278. <field name="LT_TKN" type="int"
  33279. transient="false" volatile="false"
  33280. static="true" final="true" visibility="public"
  33281. deprecated="not deprecated">
  33282. </field>
  33283. <field name="GT_TKN" type="int"
  33284. transient="false" volatile="false"
  33285. static="true" final="true" visibility="public"
  33286. deprecated="not deprecated">
  33287. </field>
  33288. <field name="SEMICOLON_TKN" type="int"
  33289. transient="false" volatile="false"
  33290. static="true" final="true" visibility="public"
  33291. deprecated="not deprecated">
  33292. </field>
  33293. <field name="COMMA_TKN" type="int"
  33294. transient="false" volatile="false"
  33295. static="true" final="true" visibility="public"
  33296. deprecated="not deprecated">
  33297. </field>
  33298. <field name="DOT_TKN" type="int"
  33299. transient="false" volatile="false"
  33300. static="true" final="true" visibility="public"
  33301. deprecated="not deprecated">
  33302. </field>
  33303. <field name="CSTRING_TKN" type="int"
  33304. transient="false" volatile="false"
  33305. static="true" final="true" visibility="public"
  33306. deprecated="not deprecated">
  33307. </field>
  33308. <field name="IDENT_TKN" type="int"
  33309. transient="false" volatile="false"
  33310. static="true" final="true" visibility="public"
  33311. deprecated="not deprecated">
  33312. </field>
  33313. <field name="DEFAULT" type="int"
  33314. transient="false" volatile="false"
  33315. static="true" final="true" visibility="public"
  33316. deprecated="not deprecated">
  33317. </field>
  33318. <field name="WithinOneLineComment" type="int"
  33319. transient="false" volatile="false"
  33320. static="true" final="true" visibility="public"
  33321. deprecated="not deprecated">
  33322. </field>
  33323. <field name="WithinMultiLineComment" type="int"
  33324. transient="false" volatile="false"
  33325. static="true" final="true" visibility="public"
  33326. deprecated="not deprecated">
  33327. </field>
  33328. <field name="tokenImage" type="java.lang.String[]"
  33329. transient="false" volatile="false"
  33330. static="true" final="true" visibility="public"
  33331. deprecated="not deprecated">
  33332. </field>
  33333. </interface>
  33334. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33335. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33336. <class name="RccTokenManager" extends="java.lang.Object"
  33337. abstract="false"
  33338. static="false" final="false" visibility="public"
  33339. deprecated="not deprecated">
  33340. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33341. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33342. static="false" final="false" visibility="public"
  33343. deprecated="not deprecated">
  33344. </constructor>
  33345. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  33346. static="false" final="false" visibility="public"
  33347. deprecated="not deprecated">
  33348. </constructor>
  33349. <method name="setDebugStream"
  33350. abstract="false" native="false" synchronized="false"
  33351. static="false" final="false" visibility="public"
  33352. deprecated="not deprecated">
  33353. <param name="ds" type="java.io.PrintStream"/>
  33354. </method>
  33355. <method name="ReInit"
  33356. abstract="false" native="false" synchronized="false"
  33357. static="false" final="false" visibility="public"
  33358. deprecated="not deprecated">
  33359. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33360. </method>
  33361. <method name="ReInit"
  33362. abstract="false" native="false" synchronized="false"
  33363. static="false" final="false" visibility="public"
  33364. deprecated="not deprecated">
  33365. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33366. <param name="lexState" type="int"/>
  33367. </method>
  33368. <method name="SwitchTo"
  33369. abstract="false" native="false" synchronized="false"
  33370. static="false" final="false" visibility="public"
  33371. deprecated="not deprecated">
  33372. <param name="lexState" type="int"/>
  33373. </method>
  33374. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33375. abstract="false" native="false" synchronized="false"
  33376. static="false" final="false" visibility="protected"
  33377. deprecated="not deprecated">
  33378. </method>
  33379. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33380. abstract="false" native="false" synchronized="false"
  33381. static="false" final="false" visibility="public"
  33382. deprecated="not deprecated">
  33383. </method>
  33384. <field name="debugStream" type="java.io.PrintStream"
  33385. transient="false" volatile="false"
  33386. static="false" final="false" visibility="public"
  33387. deprecated="not deprecated">
  33388. </field>
  33389. <field name="jjstrLiteralImages" type="java.lang.String[]"
  33390. transient="false" volatile="false"
  33391. static="true" final="true" visibility="public"
  33392. deprecated="not deprecated">
  33393. </field>
  33394. <field name="lexStateNames" type="java.lang.String[]"
  33395. transient="false" volatile="false"
  33396. static="true" final="true" visibility="public"
  33397. deprecated="not deprecated">
  33398. </field>
  33399. <field name="jjnewLexState" type="int[]"
  33400. transient="false" volatile="false"
  33401. static="true" final="true" visibility="public"
  33402. deprecated="not deprecated">
  33403. </field>
  33404. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33405. transient="false" volatile="false"
  33406. static="false" final="false" visibility="protected"
  33407. deprecated="not deprecated">
  33408. </field>
  33409. <field name="curChar" type="char"
  33410. transient="false" volatile="false"
  33411. static="false" final="false" visibility="protected"
  33412. deprecated="not deprecated">
  33413. </field>
  33414. </class>
  33415. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33416. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  33417. <class name="SimpleCharStream" extends="java.lang.Object"
  33418. abstract="false"
  33419. static="false" final="false" visibility="public"
  33420. deprecated="not deprecated">
  33421. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  33422. static="false" final="false" visibility="public"
  33423. deprecated="not deprecated">
  33424. </constructor>
  33425. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  33426. static="false" final="false" visibility="public"
  33427. deprecated="not deprecated">
  33428. </constructor>
  33429. <constructor name="SimpleCharStream" type="java.io.Reader"
  33430. static="false" final="false" visibility="public"
  33431. deprecated="not deprecated">
  33432. </constructor>
  33433. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  33434. static="false" final="false" visibility="public"
  33435. deprecated="not deprecated">
  33436. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33437. </constructor>
  33438. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  33439. static="false" final="false" visibility="public"
  33440. deprecated="not deprecated">
  33441. </constructor>
  33442. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  33443. static="false" final="false" visibility="public"
  33444. deprecated="not deprecated">
  33445. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33446. </constructor>
  33447. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  33448. static="false" final="false" visibility="public"
  33449. deprecated="not deprecated">
  33450. </constructor>
  33451. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  33452. static="false" final="false" visibility="public"
  33453. deprecated="not deprecated">
  33454. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33455. </constructor>
  33456. <constructor name="SimpleCharStream" type="java.io.InputStream"
  33457. static="false" final="false" visibility="public"
  33458. deprecated="not deprecated">
  33459. </constructor>
  33460. <method name="setTabSize"
  33461. abstract="false" native="false" synchronized="false"
  33462. static="false" final="false" visibility="protected"
  33463. deprecated="not deprecated">
  33464. <param name="i" type="int"/>
  33465. </method>
  33466. <method name="getTabSize" return="int"
  33467. abstract="false" native="false" synchronized="false"
  33468. static="false" final="false" visibility="protected"
  33469. deprecated="not deprecated">
  33470. <param name="i" type="int"/>
  33471. </method>
  33472. <method name="ExpandBuff"
  33473. abstract="false" native="false" synchronized="false"
  33474. static="false" final="false" visibility="protected"
  33475. deprecated="not deprecated">
  33476. <param name="wrapAround" type="boolean"/>
  33477. </method>
  33478. <method name="FillBuff"
  33479. abstract="false" native="false" synchronized="false"
  33480. static="false" final="false" visibility="protected"
  33481. deprecated="not deprecated">
  33482. <exception name="IOException" type="java.io.IOException"/>
  33483. </method>
  33484. <method name="BeginToken" return="char"
  33485. abstract="false" native="false" synchronized="false"
  33486. static="false" final="false" visibility="public"
  33487. deprecated="not deprecated">
  33488. <exception name="IOException" type="java.io.IOException"/>
  33489. </method>
  33490. <method name="UpdateLineColumn"
  33491. abstract="false" native="false" synchronized="false"
  33492. static="false" final="false" visibility="protected"
  33493. deprecated="not deprecated">
  33494. <param name="c" type="char"/>
  33495. </method>
  33496. <method name="readChar" return="char"
  33497. abstract="false" native="false" synchronized="false"
  33498. static="false" final="false" visibility="public"
  33499. deprecated="not deprecated">
  33500. <exception name="IOException" type="java.io.IOException"/>
  33501. </method>
  33502. <method name="getEndColumn" return="int"
  33503. abstract="false" native="false" synchronized="false"
  33504. static="false" final="false" visibility="public"
  33505. deprecated="not deprecated">
  33506. </method>
  33507. <method name="getEndLine" return="int"
  33508. abstract="false" native="false" synchronized="false"
  33509. static="false" final="false" visibility="public"
  33510. deprecated="not deprecated">
  33511. </method>
  33512. <method name="getBeginColumn" return="int"
  33513. abstract="false" native="false" synchronized="false"
  33514. static="false" final="false" visibility="public"
  33515. deprecated="not deprecated">
  33516. </method>
  33517. <method name="getBeginLine" return="int"
  33518. abstract="false" native="false" synchronized="false"
  33519. static="false" final="false" visibility="public"
  33520. deprecated="not deprecated">
  33521. </method>
  33522. <method name="backup"
  33523. abstract="false" native="false" synchronized="false"
  33524. static="false" final="false" visibility="public"
  33525. deprecated="not deprecated">
  33526. <param name="amount" type="int"/>
  33527. </method>
  33528. <method name="ReInit"
  33529. abstract="false" native="false" synchronized="false"
  33530. static="false" final="false" visibility="public"
  33531. deprecated="not deprecated">
  33532. <param name="dstream" type="java.io.Reader"/>
  33533. <param name="startline" type="int"/>
  33534. <param name="startcolumn" type="int"/>
  33535. <param name="buffersize" type="int"/>
  33536. </method>
  33537. <method name="ReInit"
  33538. abstract="false" native="false" synchronized="false"
  33539. static="false" final="false" visibility="public"
  33540. deprecated="not deprecated">
  33541. <param name="dstream" type="java.io.Reader"/>
  33542. <param name="startline" type="int"/>
  33543. <param name="startcolumn" type="int"/>
  33544. </method>
  33545. <method name="ReInit"
  33546. abstract="false" native="false" synchronized="false"
  33547. static="false" final="false" visibility="public"
  33548. deprecated="not deprecated">
  33549. <param name="dstream" type="java.io.Reader"/>
  33550. </method>
  33551. <method name="ReInit"
  33552. abstract="false" native="false" synchronized="false"
  33553. static="false" final="false" visibility="public"
  33554. deprecated="not deprecated">
  33555. <param name="dstream" type="java.io.InputStream"/>
  33556. <param name="encoding" type="java.lang.String"/>
  33557. <param name="startline" type="int"/>
  33558. <param name="startcolumn" type="int"/>
  33559. <param name="buffersize" type="int"/>
  33560. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33561. </method>
  33562. <method name="ReInit"
  33563. abstract="false" native="false" synchronized="false"
  33564. static="false" final="false" visibility="public"
  33565. deprecated="not deprecated">
  33566. <param name="dstream" type="java.io.InputStream"/>
  33567. <param name="startline" type="int"/>
  33568. <param name="startcolumn" type="int"/>
  33569. <param name="buffersize" type="int"/>
  33570. </method>
  33571. <method name="ReInit"
  33572. abstract="false" native="false" synchronized="false"
  33573. static="false" final="false" visibility="public"
  33574. deprecated="not deprecated">
  33575. <param name="dstream" type="java.io.InputStream"/>
  33576. <param name="encoding" type="java.lang.String"/>
  33577. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  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.InputStream"/>
  33584. </method>
  33585. <method name="ReInit"
  33586. abstract="false" native="false" synchronized="false"
  33587. static="false" final="false" visibility="public"
  33588. deprecated="not deprecated">
  33589. <param name="dstream" type="java.io.InputStream"/>
  33590. <param name="encoding" type="java.lang.String"/>
  33591. <param name="startline" type="int"/>
  33592. <param name="startcolumn" type="int"/>
  33593. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33594. </method>
  33595. <method name="ReInit"
  33596. abstract="false" native="false" synchronized="false"
  33597. static="false" final="false" visibility="public"
  33598. deprecated="not deprecated">
  33599. <param name="dstream" type="java.io.InputStream"/>
  33600. <param name="startline" type="int"/>
  33601. <param name="startcolumn" type="int"/>
  33602. </method>
  33603. <method name="GetImage" return="java.lang.String"
  33604. abstract="false" native="false" synchronized="false"
  33605. static="false" final="false" visibility="public"
  33606. deprecated="not deprecated">
  33607. </method>
  33608. <method name="GetSuffix" return="char[]"
  33609. abstract="false" native="false" synchronized="false"
  33610. static="false" final="false" visibility="public"
  33611. deprecated="not deprecated">
  33612. <param name="len" type="int"/>
  33613. </method>
  33614. <method name="Done"
  33615. abstract="false" native="false" synchronized="false"
  33616. static="false" final="false" visibility="public"
  33617. deprecated="not deprecated">
  33618. </method>
  33619. <method name="adjustBeginLineColumn"
  33620. abstract="false" native="false" synchronized="false"
  33621. static="false" final="false" visibility="public"
  33622. deprecated="not deprecated">
  33623. <param name="newLine" type="int"/>
  33624. <param name="newCol" type="int"/>
  33625. <doc>
  33626. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  33627. </doc>
  33628. </method>
  33629. <field name="staticFlag" type="boolean"
  33630. transient="false" volatile="false"
  33631. static="true" final="true" visibility="public"
  33632. deprecated="not deprecated">
  33633. </field>
  33634. <field name="bufpos" type="int"
  33635. transient="false" volatile="false"
  33636. static="false" final="false" visibility="public"
  33637. deprecated="not deprecated">
  33638. </field>
  33639. <field name="bufline" type="int[]"
  33640. transient="false" volatile="false"
  33641. static="false" final="false" visibility="protected"
  33642. deprecated="not deprecated">
  33643. </field>
  33644. <field name="bufcolumn" type="int[]"
  33645. transient="false" volatile="false"
  33646. static="false" final="false" visibility="protected"
  33647. deprecated="not deprecated">
  33648. </field>
  33649. <field name="column" type="int"
  33650. transient="false" volatile="false"
  33651. static="false" final="false" visibility="protected"
  33652. deprecated="not deprecated">
  33653. </field>
  33654. <field name="line" type="int"
  33655. transient="false" volatile="false"
  33656. static="false" final="false" visibility="protected"
  33657. deprecated="not deprecated">
  33658. </field>
  33659. <field name="prevCharIsCR" type="boolean"
  33660. transient="false" volatile="false"
  33661. static="false" final="false" visibility="protected"
  33662. deprecated="not deprecated">
  33663. </field>
  33664. <field name="prevCharIsLF" type="boolean"
  33665. transient="false" volatile="false"
  33666. static="false" final="false" visibility="protected"
  33667. deprecated="not deprecated">
  33668. </field>
  33669. <field name="inputStream" type="java.io.Reader"
  33670. transient="false" volatile="false"
  33671. static="false" final="false" visibility="protected"
  33672. deprecated="not deprecated">
  33673. </field>
  33674. <field name="buffer" type="char[]"
  33675. transient="false" volatile="false"
  33676. static="false" final="false" visibility="protected"
  33677. deprecated="not deprecated">
  33678. </field>
  33679. <field name="maxNextCharInd" type="int"
  33680. transient="false" volatile="false"
  33681. static="false" final="false" visibility="protected"
  33682. deprecated="not deprecated">
  33683. </field>
  33684. <field name="inBuf" type="int"
  33685. transient="false" volatile="false"
  33686. static="false" final="false" visibility="protected"
  33687. deprecated="not deprecated">
  33688. </field>
  33689. <field name="tabSize" type="int"
  33690. transient="false" volatile="false"
  33691. static="false" final="false" visibility="protected"
  33692. deprecated="not deprecated">
  33693. </field>
  33694. <doc>
  33695. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  33696. contain only ASCII characters (without unicode processing).]]>
  33697. </doc>
  33698. </class>
  33699. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  33700. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  33701. <class name="Token" extends="java.lang.Object"
  33702. abstract="false"
  33703. static="false" final="false" visibility="public"
  33704. deprecated="not deprecated">
  33705. <constructor name="Token"
  33706. static="false" final="false" visibility="public"
  33707. deprecated="not deprecated">
  33708. </constructor>
  33709. <method name="toString" return="java.lang.String"
  33710. abstract="false" native="false" synchronized="false"
  33711. static="false" final="false" visibility="public"
  33712. deprecated="not deprecated">
  33713. <doc>
  33714. <![CDATA[Returns the image.]]>
  33715. </doc>
  33716. </method>
  33717. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33718. abstract="false" native="false" synchronized="false"
  33719. static="true" final="true" visibility="public"
  33720. deprecated="not deprecated">
  33721. <param name="ofKind" type="int"/>
  33722. <doc>
  33723. <![CDATA[Returns a new Token object, by default. However, if you want, you
  33724. can create and return subclass objects based on the value of ofKind.
  33725. Simply add the cases to the switch for all those special cases.
  33726. For example, if you have a subclass of Token called IDToken that
  33727. you want to create if ofKind is ID, simlpy add something like :
  33728. case MyParserConstants.ID : return new IDToken();
  33729. to the following switch statement. Then you can cast matchedToken
  33730. variable to the appropriate type and use it in your lexical actions.]]>
  33731. </doc>
  33732. </method>
  33733. <field name="kind" type="int"
  33734. transient="false" volatile="false"
  33735. static="false" final="false" visibility="public"
  33736. deprecated="not deprecated">
  33737. <doc>
  33738. <![CDATA[An integer that describes the kind of this token. This numbering
  33739. system is determined by JavaCCParser, and a table of these numbers is
  33740. stored in the file ...Constants.java.]]>
  33741. </doc>
  33742. </field>
  33743. <field name="beginLine" type="int"
  33744. transient="false" volatile="false"
  33745. static="false" final="false" visibility="public"
  33746. deprecated="not deprecated">
  33747. <doc>
  33748. <![CDATA[beginLine and beginColumn describe the position of the first character
  33749. of this token; endLine and endColumn describe the position of the
  33750. last character of this token.]]>
  33751. </doc>
  33752. </field>
  33753. <field name="beginColumn" type="int"
  33754. transient="false" volatile="false"
  33755. static="false" final="false" visibility="public"
  33756. deprecated="not deprecated">
  33757. <doc>
  33758. <![CDATA[beginLine and beginColumn describe the position of the first character
  33759. of this token; endLine and endColumn describe the position of the
  33760. last character of this token.]]>
  33761. </doc>
  33762. </field>
  33763. <field name="endLine" type="int"
  33764. transient="false" volatile="false"
  33765. static="false" final="false" visibility="public"
  33766. deprecated="not deprecated">
  33767. <doc>
  33768. <![CDATA[beginLine and beginColumn describe the position of the first character
  33769. of this token; endLine and endColumn describe the position of the
  33770. last character of this token.]]>
  33771. </doc>
  33772. </field>
  33773. <field name="endColumn" type="int"
  33774. transient="false" volatile="false"
  33775. static="false" final="false" visibility="public"
  33776. deprecated="not deprecated">
  33777. <doc>
  33778. <![CDATA[beginLine and beginColumn describe the position of the first character
  33779. of this token; endLine and endColumn describe the position of the
  33780. last character of this token.]]>
  33781. </doc>
  33782. </field>
  33783. <field name="image" type="java.lang.String"
  33784. transient="false" volatile="false"
  33785. static="false" final="false" visibility="public"
  33786. deprecated="not deprecated">
  33787. <doc>
  33788. <![CDATA[The string image of the token.]]>
  33789. </doc>
  33790. </field>
  33791. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  33792. transient="false" volatile="false"
  33793. static="false" final="false" visibility="public"
  33794. deprecated="not deprecated">
  33795. <doc>
  33796. <![CDATA[A reference to the next regular (non-special) token from the input
  33797. stream. If this is the last token from the input stream, or if the
  33798. token manager has not read tokens beyond this one, this field is
  33799. set to null. This is true only if this token is also a regular
  33800. token. Otherwise, see below for a description of the contents of
  33801. this field.]]>
  33802. </doc>
  33803. </field>
  33804. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  33805. transient="false" volatile="false"
  33806. static="false" final="false" visibility="public"
  33807. deprecated="not deprecated">
  33808. <doc>
  33809. <![CDATA[This field is used to access special tokens that occur prior to this
  33810. token, but after the immediately preceding regular (non-special) token.
  33811. If there are no such special tokens, this field is set to null.
  33812. When there are more than one such special token, this field refers
  33813. to the last of these special tokens, which in turn refers to the next
  33814. previous special token through its specialToken field, and so on
  33815. until the first special token (whose specialToken field is null).
  33816. The next fields of special tokens refer to other special tokens that
  33817. immediately follow it (without an intervening regular token). If there
  33818. is no such token, this field is null.]]>
  33819. </doc>
  33820. </field>
  33821. <doc>
  33822. <![CDATA[Describes the input token stream.]]>
  33823. </doc>
  33824. </class>
  33825. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  33826. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  33827. <class name="TokenMgrError" extends="java.lang.Error"
  33828. abstract="false"
  33829. static="false" final="false" visibility="public"
  33830. deprecated="not deprecated">
  33831. <constructor name="TokenMgrError"
  33832. static="false" final="false" visibility="public"
  33833. deprecated="not deprecated">
  33834. </constructor>
  33835. <constructor name="TokenMgrError" type="java.lang.String, int"
  33836. static="false" final="false" visibility="public"
  33837. deprecated="not deprecated">
  33838. </constructor>
  33839. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  33840. static="false" final="false" visibility="public"
  33841. deprecated="not deprecated">
  33842. </constructor>
  33843. <method name="addEscapes" return="java.lang.String"
  33844. abstract="false" native="false" synchronized="false"
  33845. static="true" final="true" visibility="protected"
  33846. deprecated="not deprecated">
  33847. <param name="str" type="java.lang.String"/>
  33848. <doc>
  33849. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  33850. equivalents in the given string]]>
  33851. </doc>
  33852. </method>
  33853. <method name="LexicalError" return="java.lang.String"
  33854. abstract="false" native="false" synchronized="false"
  33855. static="true" final="false" visibility="protected"
  33856. deprecated="not deprecated">
  33857. <param name="EOFSeen" type="boolean"/>
  33858. <param name="lexState" type="int"/>
  33859. <param name="errorLine" type="int"/>
  33860. <param name="errorColumn" type="int"/>
  33861. <param name="errorAfter" type="java.lang.String"/>
  33862. <param name="curChar" type="char"/>
  33863. <doc>
  33864. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  33865. token manager to indicate a lexical error.
  33866. Parameters :
  33867. EOFSeen : indicates if EOF caused the lexicl error
  33868. curLexState : lexical state in which this error occured
  33869. errorLine : line number when the error occured
  33870. errorColumn : column number when the error occured
  33871. errorAfter : prefix that was seen before this error occured
  33872. curchar : the offending character
  33873. Note: You can customize the lexical error message by modifying this method.]]>
  33874. </doc>
  33875. </method>
  33876. <method name="getMessage" return="java.lang.String"
  33877. abstract="false" native="false" synchronized="false"
  33878. static="false" final="false" visibility="public"
  33879. deprecated="not deprecated">
  33880. <doc>
  33881. <![CDATA[You can also modify the body of this method to customize your error messages.
  33882. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  33883. of end-users concern, so you can return something like :
  33884. "Internal Error : Please file a bug report .... "
  33885. from this method for such cases in the release version of your parser.]]>
  33886. </doc>
  33887. </method>
  33888. </class>
  33889. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  33890. </package>
  33891. <package name="org.apache.hadoop.record.meta">
  33892. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33893. <class name="FieldTypeInfo" extends="java.lang.Object"
  33894. abstract="false"
  33895. static="false" final="false" visibility="public"
  33896. deprecated="not deprecated">
  33897. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33898. abstract="false" native="false" synchronized="false"
  33899. static="false" final="false" visibility="public"
  33900. deprecated="not deprecated">
  33901. <doc>
  33902. <![CDATA[get the field's TypeID object]]>
  33903. </doc>
  33904. </method>
  33905. <method name="getFieldID" return="java.lang.String"
  33906. abstract="false" native="false" synchronized="false"
  33907. static="false" final="false" visibility="public"
  33908. deprecated="not deprecated">
  33909. <doc>
  33910. <![CDATA[get the field's id (name)]]>
  33911. </doc>
  33912. </method>
  33913. <method name="equals" return="boolean"
  33914. abstract="false" native="false" synchronized="false"
  33915. static="false" final="false" visibility="public"
  33916. deprecated="not deprecated">
  33917. <param name="o" type="java.lang.Object"/>
  33918. <doc>
  33919. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  33920. </doc>
  33921. </method>
  33922. <method name="hashCode" return="int"
  33923. abstract="false" native="false" synchronized="false"
  33924. static="false" final="false" visibility="public"
  33925. deprecated="not deprecated">
  33926. <doc>
  33927. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33928. be used as a hashmap key]]>
  33929. </doc>
  33930. </method>
  33931. <method name="equals" return="boolean"
  33932. abstract="false" native="false" synchronized="false"
  33933. static="false" final="false" visibility="public"
  33934. deprecated="not deprecated">
  33935. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  33936. </method>
  33937. <doc>
  33938. <![CDATA[Represents a type information for a field, which is made up of its
  33939. ID (name) and its type (a TypeID object).]]>
  33940. </doc>
  33941. </class>
  33942. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33943. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  33944. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  33945. abstract="false"
  33946. static="false" final="false" visibility="public"
  33947. deprecated="not deprecated">
  33948. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  33949. static="false" final="false" visibility="public"
  33950. deprecated="not deprecated">
  33951. </constructor>
  33952. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33953. abstract="false" native="false" synchronized="false"
  33954. static="false" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. <doc>
  33957. <![CDATA[get the TypeID of the map's key element]]>
  33958. </doc>
  33959. </method>
  33960. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33961. abstract="false" native="false" synchronized="false"
  33962. static="false" final="false" visibility="public"
  33963. deprecated="not deprecated">
  33964. <doc>
  33965. <![CDATA[get the TypeID of the map's value element]]>
  33966. </doc>
  33967. </method>
  33968. <method name="equals" return="boolean"
  33969. abstract="false" native="false" synchronized="false"
  33970. static="false" final="false" visibility="public"
  33971. deprecated="not deprecated">
  33972. <param name="o" type="java.lang.Object"/>
  33973. <doc>
  33974. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  33975. same type]]>
  33976. </doc>
  33977. </method>
  33978. <method name="hashCode" return="int"
  33979. abstract="false" native="false" synchronized="false"
  33980. static="false" final="false" visibility="public"
  33981. deprecated="not deprecated">
  33982. <doc>
  33983. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33984. be used as a hashmap key]]>
  33985. </doc>
  33986. </method>
  33987. <doc>
  33988. <![CDATA[Represents typeID for a Map]]>
  33989. </doc>
  33990. </class>
  33991. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  33992. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  33993. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  33994. abstract="false"
  33995. static="false" final="false" visibility="public"
  33996. deprecated="not deprecated">
  33997. <constructor name="RecordTypeInfo"
  33998. static="false" final="false" visibility="public"
  33999. deprecated="not deprecated">
  34000. <doc>
  34001. <![CDATA[Create an empty RecordTypeInfo object.]]>
  34002. </doc>
  34003. </constructor>
  34004. <constructor name="RecordTypeInfo" type="java.lang.String"
  34005. static="false" final="false" visibility="public"
  34006. deprecated="not deprecated">
  34007. <doc>
  34008. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  34009. @param name Name of the record]]>
  34010. </doc>
  34011. </constructor>
  34012. <method name="getName" return="java.lang.String"
  34013. abstract="false" native="false" synchronized="false"
  34014. static="false" final="false" visibility="public"
  34015. deprecated="not deprecated">
  34016. <doc>
  34017. <![CDATA[return the name of the record]]>
  34018. </doc>
  34019. </method>
  34020. <method name="setName"
  34021. abstract="false" native="false" synchronized="false"
  34022. static="false" final="false" visibility="public"
  34023. deprecated="not deprecated">
  34024. <param name="name" type="java.lang.String"/>
  34025. <doc>
  34026. <![CDATA[set the name of the record]]>
  34027. </doc>
  34028. </method>
  34029. <method name="addField"
  34030. abstract="false" native="false" synchronized="false"
  34031. static="false" final="false" visibility="public"
  34032. deprecated="not deprecated">
  34033. <param name="fieldName" type="java.lang.String"/>
  34034. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  34035. <doc>
  34036. <![CDATA[Add a field.
  34037. @param fieldName Name of the field
  34038. @param tid Type ID of the field]]>
  34039. </doc>
  34040. </method>
  34041. <method name="getFieldTypeInfos" return="java.util.Collection"
  34042. abstract="false" native="false" synchronized="false"
  34043. static="false" final="false" visibility="public"
  34044. deprecated="not deprecated">
  34045. <doc>
  34046. <![CDATA[Return a collection of field type infos]]>
  34047. </doc>
  34048. </method>
  34049. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  34050. abstract="false" native="false" synchronized="false"
  34051. static="false" final="false" visibility="public"
  34052. deprecated="not deprecated">
  34053. <param name="name" type="java.lang.String"/>
  34054. <doc>
  34055. <![CDATA[Return the type info of a nested record. We only consider nesting
  34056. to one level.
  34057. @param name Name of the nested record]]>
  34058. </doc>
  34059. </method>
  34060. <method name="serialize"
  34061. abstract="false" native="false" synchronized="false"
  34062. static="false" final="false" visibility="public"
  34063. deprecated="not deprecated">
  34064. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  34065. <param name="tag" type="java.lang.String"/>
  34066. <exception name="IOException" type="java.io.IOException"/>
  34067. <doc>
  34068. <![CDATA[Serialize the type information for a record]]>
  34069. </doc>
  34070. </method>
  34071. <method name="deserialize"
  34072. abstract="false" native="false" synchronized="false"
  34073. static="false" final="false" visibility="public"
  34074. deprecated="not deprecated">
  34075. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34076. <param name="tag" type="java.lang.String"/>
  34077. <exception name="IOException" type="java.io.IOException"/>
  34078. <doc>
  34079. <![CDATA[Deserialize the type information for a record]]>
  34080. </doc>
  34081. </method>
  34082. <method name="compareTo" return="int"
  34083. abstract="false" native="false" synchronized="false"
  34084. static="false" final="false" visibility="public"
  34085. deprecated="not deprecated">
  34086. <param name="peer_" type="java.lang.Object"/>
  34087. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  34088. <doc>
  34089. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  34090. for anything besides de/serializing.
  34091. So we always throw an exception.
  34092. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  34093. </doc>
  34094. </method>
  34095. <doc>
  34096. <![CDATA[A record's Type Information object which can read/write itself.
  34097. Type information for a record comprises metadata about the record,
  34098. as well as a collection of type information for each field in the record.]]>
  34099. </doc>
  34100. </class>
  34101. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34102. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  34103. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34104. abstract="false"
  34105. static="false" final="false" visibility="public"
  34106. deprecated="not deprecated">
  34107. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  34108. static="false" final="false" visibility="public"
  34109. deprecated="not deprecated">
  34110. <doc>
  34111. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  34112. </doc>
  34113. </constructor>
  34114. <method name="getFieldTypeInfos" return="java.util.Collection"
  34115. abstract="false" native="false" synchronized="false"
  34116. static="false" final="false" visibility="public"
  34117. deprecated="not deprecated">
  34118. </method>
  34119. <doc>
  34120. <![CDATA[Represents typeID for a struct]]>
  34121. </doc>
  34122. </class>
  34123. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  34124. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  34125. <class name="TypeID" extends="java.lang.Object"
  34126. abstract="false"
  34127. static="false" final="false" visibility="public"
  34128. deprecated="not deprecated">
  34129. <method name="getTypeVal" return="byte"
  34130. abstract="false" native="false" synchronized="false"
  34131. static="false" final="false" visibility="public"
  34132. deprecated="not deprecated">
  34133. <doc>
  34134. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  34135. </doc>
  34136. </method>
  34137. <method name="equals" return="boolean"
  34138. abstract="false" native="false" synchronized="false"
  34139. static="false" final="false" visibility="public"
  34140. deprecated="not deprecated">
  34141. <param name="o" type="java.lang.Object"/>
  34142. <doc>
  34143. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  34144. </doc>
  34145. </method>
  34146. <method name="hashCode" return="int"
  34147. abstract="false" native="false" synchronized="false"
  34148. static="false" final="false" visibility="public"
  34149. deprecated="not deprecated">
  34150. <doc>
  34151. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34152. be used as a hashmap key]]>
  34153. </doc>
  34154. </method>
  34155. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34156. transient="false" volatile="false"
  34157. static="true" final="true" visibility="public"
  34158. deprecated="not deprecated">
  34159. <doc>
  34160. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  34161. </doc>
  34162. </field>
  34163. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34164. transient="false" volatile="false"
  34165. static="true" final="true" visibility="public"
  34166. deprecated="not deprecated">
  34167. </field>
  34168. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34169. transient="false" volatile="false"
  34170. static="true" final="true" visibility="public"
  34171. deprecated="not deprecated">
  34172. </field>
  34173. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34174. transient="false" volatile="false"
  34175. static="true" final="true" visibility="public"
  34176. deprecated="not deprecated">
  34177. </field>
  34178. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34179. transient="false" volatile="false"
  34180. static="true" final="true" visibility="public"
  34181. deprecated="not deprecated">
  34182. </field>
  34183. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34184. transient="false" volatile="false"
  34185. static="true" final="true" visibility="public"
  34186. deprecated="not deprecated">
  34187. </field>
  34188. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34189. transient="false" volatile="false"
  34190. static="true" final="true" visibility="public"
  34191. deprecated="not deprecated">
  34192. </field>
  34193. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34194. transient="false" volatile="false"
  34195. static="true" final="true" visibility="public"
  34196. deprecated="not deprecated">
  34197. </field>
  34198. <field name="typeVal" type="byte"
  34199. transient="false" volatile="false"
  34200. static="false" final="false" visibility="protected"
  34201. deprecated="not deprecated">
  34202. </field>
  34203. <doc>
  34204. <![CDATA[Represents typeID for basic types.]]>
  34205. </doc>
  34206. </class>
  34207. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  34208. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34209. <class name="TypeID.RIOType" extends="java.lang.Object"
  34210. abstract="false"
  34211. static="true" final="true" visibility="public"
  34212. deprecated="not deprecated">
  34213. <constructor name="TypeID.RIOType"
  34214. static="false" final="false" visibility="public"
  34215. deprecated="not deprecated">
  34216. </constructor>
  34217. <field name="BOOL" type="byte"
  34218. transient="false" volatile="false"
  34219. static="true" final="true" visibility="public"
  34220. deprecated="not deprecated">
  34221. </field>
  34222. <field name="BUFFER" type="byte"
  34223. transient="false" volatile="false"
  34224. static="true" final="true" visibility="public"
  34225. deprecated="not deprecated">
  34226. </field>
  34227. <field name="BYTE" type="byte"
  34228. transient="false" volatile="false"
  34229. static="true" final="true" visibility="public"
  34230. deprecated="not deprecated">
  34231. </field>
  34232. <field name="DOUBLE" type="byte"
  34233. transient="false" volatile="false"
  34234. static="true" final="true" visibility="public"
  34235. deprecated="not deprecated">
  34236. </field>
  34237. <field name="FLOAT" type="byte"
  34238. transient="false" volatile="false"
  34239. static="true" final="true" visibility="public"
  34240. deprecated="not deprecated">
  34241. </field>
  34242. <field name="INT" type="byte"
  34243. transient="false" volatile="false"
  34244. static="true" final="true" visibility="public"
  34245. deprecated="not deprecated">
  34246. </field>
  34247. <field name="LONG" type="byte"
  34248. transient="false" volatile="false"
  34249. static="true" final="true" visibility="public"
  34250. deprecated="not deprecated">
  34251. </field>
  34252. <field name="MAP" type="byte"
  34253. transient="false" volatile="false"
  34254. static="true" final="true" visibility="public"
  34255. deprecated="not deprecated">
  34256. </field>
  34257. <field name="STRING" type="byte"
  34258. transient="false" volatile="false"
  34259. static="true" final="true" visibility="public"
  34260. deprecated="not deprecated">
  34261. </field>
  34262. <field name="STRUCT" type="byte"
  34263. transient="false" volatile="false"
  34264. static="true" final="true" visibility="public"
  34265. deprecated="not deprecated">
  34266. </field>
  34267. <field name="VECTOR" type="byte"
  34268. transient="false" volatile="false"
  34269. static="true" final="true" visibility="public"
  34270. deprecated="not deprecated">
  34271. </field>
  34272. <doc>
  34273. <![CDATA[constants representing the IDL types we support]]>
  34274. </doc>
  34275. </class>
  34276. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34277. <!-- start class org.apache.hadoop.record.meta.Utils -->
  34278. <class name="Utils" extends="java.lang.Object"
  34279. abstract="false"
  34280. static="false" final="false" visibility="public"
  34281. deprecated="not deprecated">
  34282. <method name="skip"
  34283. abstract="false" native="false" synchronized="false"
  34284. static="true" final="false" visibility="public"
  34285. deprecated="not deprecated">
  34286. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34287. <param name="tag" type="java.lang.String"/>
  34288. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  34289. <exception name="IOException" type="java.io.IOException"/>
  34290. <doc>
  34291. <![CDATA[read/skip bytes from stream based on a type]]>
  34292. </doc>
  34293. </method>
  34294. <doc>
  34295. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  34296. </doc>
  34297. </class>
  34298. <!-- end class org.apache.hadoop.record.meta.Utils -->
  34299. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  34300. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34301. abstract="false"
  34302. static="false" final="false" visibility="public"
  34303. deprecated="not deprecated">
  34304. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34305. static="false" final="false" visibility="public"
  34306. deprecated="not deprecated">
  34307. </constructor>
  34308. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34309. abstract="false" native="false" synchronized="false"
  34310. static="false" final="false" visibility="public"
  34311. deprecated="not deprecated">
  34312. </method>
  34313. <method name="equals" return="boolean"
  34314. abstract="false" native="false" synchronized="false"
  34315. static="false" final="false" visibility="public"
  34316. deprecated="not deprecated">
  34317. <param name="o" type="java.lang.Object"/>
  34318. <doc>
  34319. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  34320. same type]]>
  34321. </doc>
  34322. </method>
  34323. <method name="hashCode" return="int"
  34324. abstract="false" native="false" synchronized="false"
  34325. static="false" final="false" visibility="public"
  34326. deprecated="not deprecated">
  34327. <doc>
  34328. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34329. be used as a hashmap key]]>
  34330. </doc>
  34331. </method>
  34332. <doc>
  34333. <![CDATA[Represents typeID for vector.]]>
  34334. </doc>
  34335. </class>
  34336. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  34337. </package>
  34338. <package name="org.apache.hadoop.security">
  34339. <!-- start class org.apache.hadoop.security.AccessControlException -->
  34340. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  34341. abstract="false"
  34342. static="false" final="false" visibility="public"
  34343. deprecated="not deprecated">
  34344. <constructor name="AccessControlException"
  34345. static="false" final="false" visibility="public"
  34346. deprecated="not deprecated">
  34347. <doc>
  34348. <![CDATA[Default constructor is needed for unwrapping from
  34349. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  34350. </doc>
  34351. </constructor>
  34352. <constructor name="AccessControlException" type="java.lang.String"
  34353. static="false" final="false" visibility="public"
  34354. deprecated="not deprecated">
  34355. <doc>
  34356. <![CDATA[Constructs an {@link AccessControlException}
  34357. with the specified detail message.
  34358. @param s the detail message.]]>
  34359. </doc>
  34360. </constructor>
  34361. <constructor name="AccessControlException" type="java.lang.Throwable"
  34362. static="false" final="false" visibility="public"
  34363. deprecated="not deprecated">
  34364. <doc>
  34365. <![CDATA[Constructs a new exception with the specified cause and a detail
  34366. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34367. typically contains the class and detail message of <tt>cause</tt>).
  34368. @param cause the cause (which is saved for later retrieval by the
  34369. {@link #getCause()} method). (A <tt>null</tt> value is
  34370. permitted, and indicates that the cause is nonexistent or
  34371. unknown.)]]>
  34372. </doc>
  34373. </constructor>
  34374. <doc>
  34375. <![CDATA[An exception class for access control related issues.]]>
  34376. </doc>
  34377. </class>
  34378. <!-- end class org.apache.hadoop.security.AccessControlException -->
  34379. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34380. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  34381. abstract="false"
  34382. static="false" final="false" visibility="public"
  34383. deprecated="not deprecated">
  34384. <constructor name="AuthenticationFilterInitializer"
  34385. static="false" final="false" visibility="public"
  34386. deprecated="not deprecated">
  34387. </constructor>
  34388. <method name="initFilter"
  34389. abstract="false" native="false" synchronized="false"
  34390. static="false" final="false" visibility="public"
  34391. deprecated="not deprecated">
  34392. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  34393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34394. <doc>
  34395. <![CDATA[Initializes Alfredo AuthenticationFilter.
  34396. <p/>
  34397. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  34398. configuration properties prefixed with "hadoop.http.authentication."
  34399. @param container The filter container
  34400. @param conf Configuration for run-time parameters]]>
  34401. </doc>
  34402. </method>
  34403. <doc>
  34404. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  34405. Kerberos HTTP SPENGO authentication.
  34406. <p/>
  34407. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  34408. authentication for Hadoop JobTracker, NameNode, DataNodes and
  34409. TaskTrackers.
  34410. <p/>
  34411. Refer to the <code>core-default.xml</code> file, after the comment
  34412. 'HTTP Authentication' for details on the configuration options.
  34413. All related configuration properties have 'hadoop.http.authentication.'
  34414. as prefix.]]>
  34415. </doc>
  34416. </class>
  34417. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34418. <!-- start class org.apache.hadoop.security.Credentials -->
  34419. <class name="Credentials" extends="java.lang.Object"
  34420. abstract="false"
  34421. static="false" final="false" visibility="public"
  34422. deprecated="not deprecated">
  34423. <implements name="org.apache.hadoop.io.Writable"/>
  34424. <constructor name="Credentials"
  34425. static="false" final="false" visibility="public"
  34426. deprecated="not deprecated">
  34427. </constructor>
  34428. <method name="getSecretKey" return="byte[]"
  34429. abstract="false" native="false" synchronized="false"
  34430. static="false" final="false" visibility="public"
  34431. deprecated="not deprecated">
  34432. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34433. <doc>
  34434. <![CDATA[Returns the key bytes for the alias
  34435. @param alias the alias for the key
  34436. @return key for this alias]]>
  34437. </doc>
  34438. </method>
  34439. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  34440. abstract="false" native="false" synchronized="false"
  34441. static="false" final="false" visibility="public"
  34442. deprecated="not deprecated">
  34443. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34444. <doc>
  34445. <![CDATA[Returns the Token object for the alias
  34446. @param alias the alias for the Token
  34447. @return token for this alias]]>
  34448. </doc>
  34449. </method>
  34450. <method name="addToken"
  34451. abstract="false" native="false" synchronized="false"
  34452. static="false" final="false" visibility="public"
  34453. deprecated="not deprecated">
  34454. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34455. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  34456. <doc>
  34457. <![CDATA[Add a token in the storage (in memory)
  34458. @param alias the alias for the key
  34459. @param t the token object]]>
  34460. </doc>
  34461. </method>
  34462. <method name="getAllTokens" return="java.util.Collection"
  34463. abstract="false" native="false" synchronized="false"
  34464. static="false" final="false" visibility="public"
  34465. deprecated="not deprecated">
  34466. <doc>
  34467. <![CDATA[Return all the tokens in the in-memory map]]>
  34468. </doc>
  34469. </method>
  34470. <method name="numberOfTokens" return="int"
  34471. abstract="false" native="false" synchronized="false"
  34472. static="false" final="false" visibility="public"
  34473. deprecated="not deprecated">
  34474. <doc>
  34475. <![CDATA[@return number of Tokens in the in-memory map]]>
  34476. </doc>
  34477. </method>
  34478. <method name="numberOfSecretKeys" return="int"
  34479. abstract="false" native="false" synchronized="false"
  34480. static="false" final="false" visibility="public"
  34481. deprecated="not deprecated">
  34482. <doc>
  34483. <![CDATA[@return number of keys in the in-memory map]]>
  34484. </doc>
  34485. </method>
  34486. <method name="addSecretKey"
  34487. abstract="false" native="false" synchronized="false"
  34488. static="false" final="false" visibility="public"
  34489. deprecated="not deprecated">
  34490. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34491. <param name="key" type="byte[]"/>
  34492. <doc>
  34493. <![CDATA[Set the key for an alias
  34494. @param alias the alias for the key
  34495. @param key the key bytes]]>
  34496. </doc>
  34497. </method>
  34498. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  34499. abstract="false" native="false" synchronized="false"
  34500. static="true" final="false" visibility="public"
  34501. deprecated="not deprecated">
  34502. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  34503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34504. <exception name="IOException" type="java.io.IOException"/>
  34505. <doc>
  34506. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  34507. therein in the passed UGI
  34508. @param filename
  34509. @param conf
  34510. @throws IOException]]>
  34511. </doc>
  34512. </method>
  34513. <method name="readTokenStorageStream"
  34514. abstract="false" native="false" synchronized="false"
  34515. static="false" final="false" visibility="public"
  34516. deprecated="not deprecated">
  34517. <param name="in" type="java.io.DataInputStream"/>
  34518. <exception name="IOException" type="java.io.IOException"/>
  34519. <doc>
  34520. <![CDATA[Convenience method for reading a token storage file directly from a
  34521. datainputstream]]>
  34522. </doc>
  34523. </method>
  34524. <method name="writeTokenStorageToStream"
  34525. abstract="false" native="false" synchronized="false"
  34526. static="false" final="false" visibility="public"
  34527. deprecated="not deprecated">
  34528. <param name="os" type="java.io.DataOutputStream"/>
  34529. <exception name="IOException" type="java.io.IOException"/>
  34530. </method>
  34531. <method name="writeTokenStorageFile"
  34532. abstract="false" native="false" synchronized="false"
  34533. static="false" final="false" visibility="public"
  34534. deprecated="not deprecated">
  34535. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  34536. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34537. <exception name="IOException" type="java.io.IOException"/>
  34538. </method>
  34539. <method name="write"
  34540. abstract="false" native="false" synchronized="false"
  34541. static="false" final="false" visibility="public"
  34542. deprecated="not deprecated">
  34543. <param name="out" type="java.io.DataOutput"/>
  34544. <exception name="IOException" type="java.io.IOException"/>
  34545. <doc>
  34546. <![CDATA[Stores all the keys to DataOutput
  34547. @param out
  34548. @throws IOException]]>
  34549. </doc>
  34550. </method>
  34551. <method name="readFields"
  34552. abstract="false" native="false" synchronized="false"
  34553. static="false" final="false" visibility="public"
  34554. deprecated="not deprecated">
  34555. <param name="in" type="java.io.DataInput"/>
  34556. <exception name="IOException" type="java.io.IOException"/>
  34557. <doc>
  34558. <![CDATA[Loads all the keys
  34559. @param in
  34560. @throws IOException]]>
  34561. </doc>
  34562. </method>
  34563. <method name="addAll"
  34564. abstract="false" native="false" synchronized="false"
  34565. static="false" final="false" visibility="public"
  34566. deprecated="not deprecated">
  34567. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  34568. <doc>
  34569. <![CDATA[Copy all of the credentials from one credential object into another.
  34570. @param other the credentials to copy]]>
  34571. </doc>
  34572. </method>
  34573. <doc>
  34574. <![CDATA[A class that provides the facilities of reading and writing
  34575. secret keys and Tokens.]]>
  34576. </doc>
  34577. </class>
  34578. <!-- end class org.apache.hadoop.security.Credentials -->
  34579. <!-- start class org.apache.hadoop.security.Groups -->
  34580. <class name="Groups" extends="java.lang.Object"
  34581. abstract="false"
  34582. static="false" final="false" visibility="public"
  34583. deprecated="not deprecated">
  34584. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  34585. static="false" final="false" visibility="public"
  34586. deprecated="not deprecated">
  34587. </constructor>
  34588. <method name="getGroups" return="java.util.List"
  34589. abstract="false" native="false" synchronized="false"
  34590. static="false" final="false" visibility="public"
  34591. deprecated="not deprecated">
  34592. <param name="user" type="java.lang.String"/>
  34593. <exception name="IOException" type="java.io.IOException"/>
  34594. <doc>
  34595. <![CDATA[Get the group memberships of a given user.
  34596. @param user User's name
  34597. @return the group memberships of the user
  34598. @throws IOException]]>
  34599. </doc>
  34600. </method>
  34601. <method name="refresh"
  34602. abstract="false" native="false" synchronized="false"
  34603. static="false" final="false" visibility="public"
  34604. deprecated="not deprecated">
  34605. <doc>
  34606. <![CDATA[Refresh all user-to-groups mappings.]]>
  34607. </doc>
  34608. </method>
  34609. <method name="cacheGroupsAdd"
  34610. abstract="false" native="false" synchronized="false"
  34611. static="false" final="false" visibility="public"
  34612. deprecated="not deprecated">
  34613. <param name="groups" type="java.util.List"/>
  34614. </method>
  34615. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  34616. abstract="false" native="false" synchronized="false"
  34617. static="true" final="false" visibility="public"
  34618. deprecated="not deprecated">
  34619. <doc>
  34620. <![CDATA[Get the groups being used to map user-to-groups.
  34621. @return the groups being used to map user-to-groups.]]>
  34622. </doc>
  34623. </method>
  34624. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  34625. abstract="false" native="false" synchronized="false"
  34626. static="true" final="false" visibility="public"
  34627. deprecated="not deprecated">
  34628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34629. </method>
  34630. <doc>
  34631. <![CDATA[A user-to-groups mapping service.
  34632. {@link Groups} allows for server to get the various group memberships
  34633. of a given user via the {@link #getGroups(String)} call, thus ensuring
  34634. a consistent user-to-groups mapping and protects against vagaries of
  34635. different mappings on servers and clients in a Hadoop cluster.]]>
  34636. </doc>
  34637. </class>
  34638. <!-- end class org.apache.hadoop.security.Groups -->
  34639. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  34640. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  34641. abstract="false"
  34642. static="false" final="false" visibility="public"
  34643. deprecated="not deprecated">
  34644. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  34645. <constructor name="JniBasedUnixGroupsMapping"
  34646. static="false" final="false" visibility="public"
  34647. deprecated="not deprecated">
  34648. </constructor>
  34649. <method name="getGroups" return="java.util.List"
  34650. abstract="false" native="false" synchronized="false"
  34651. static="false" final="false" visibility="public"
  34652. deprecated="not deprecated">
  34653. <param name="user" type="java.lang.String"/>
  34654. <exception name="IOException" type="java.io.IOException"/>
  34655. </method>
  34656. <method name="cacheGroupsRefresh"
  34657. abstract="false" native="false" synchronized="false"
  34658. static="false" final="false" visibility="public"
  34659. deprecated="not deprecated">
  34660. <exception name="IOException" type="java.io.IOException"/>
  34661. </method>
  34662. <method name="cacheGroupsAdd"
  34663. abstract="false" native="false" synchronized="false"
  34664. static="false" final="false" visibility="public"
  34665. deprecated="not deprecated">
  34666. <param name="groups" type="java.util.List"/>
  34667. <exception name="IOException" type="java.io.IOException"/>
  34668. </method>
  34669. <doc>
  34670. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  34671. that invokes libC calls to get the group
  34672. memberships of a given user.]]>
  34673. </doc>
  34674. </class>
  34675. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  34676. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  34677. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  34678. abstract="false"
  34679. static="false" final="false" visibility="public"
  34680. deprecated="not deprecated">
  34681. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  34682. static="false" final="false" visibility="public"
  34683. deprecated="not deprecated">
  34684. </constructor>
  34685. <method name="getGroups" return="java.util.List"
  34686. abstract="false" native="false" synchronized="false"
  34687. static="false" final="false" visibility="public"
  34688. deprecated="not deprecated">
  34689. <param name="user" type="java.lang.String"/>
  34690. <exception name="IOException" type="java.io.IOException"/>
  34691. <doc>
  34692. <![CDATA[Gets unix groups and netgroups for the user.
  34693. It gets all unix groups as returned by id -Gn but it
  34694. only returns netgroups that are used in ACLs (there is
  34695. no way to get all netgroups for a given user, see
  34696. documentation for getent netgroup)]]>
  34697. </doc>
  34698. </method>
  34699. <method name="cacheGroupsRefresh"
  34700. abstract="false" native="false" synchronized="false"
  34701. static="false" final="false" visibility="public"
  34702. deprecated="not deprecated">
  34703. <exception name="IOException" type="java.io.IOException"/>
  34704. </method>
  34705. <method name="cacheGroupsAdd"
  34706. abstract="false" native="false" synchronized="false"
  34707. static="false" final="false" visibility="public"
  34708. deprecated="not deprecated">
  34709. <param name="groups" type="java.util.List"/>
  34710. <exception name="IOException" type="java.io.IOException"/>
  34711. </method>
  34712. <method name="getUsersForNetgroup" return="java.util.List"
  34713. abstract="false" native="false" synchronized="true"
  34714. static="false" final="false" visibility="protected"
  34715. deprecated="not deprecated">
  34716. <param name="netgroup" type="java.lang.String"/>
  34717. <doc>
  34718. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  34719. are not reentrant we need to make this synchronized (see
  34720. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  34721. </doc>
  34722. </method>
  34723. <doc>
  34724. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  34725. that invokes libC calls to get the group
  34726. memberships of a given user.]]>
  34727. </doc>
  34728. </class>
  34729. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  34730. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  34731. <interface name="KerberosInfo" abstract="true"
  34732. static="false" final="false" visibility="public"
  34733. deprecated="not deprecated">
  34734. <implements name="java.lang.annotation.Annotation"/>
  34735. <method name="serverPrincipal" return="java.lang.String"
  34736. abstract="false" native="false" synchronized="false"
  34737. static="false" final="false" visibility="public"
  34738. deprecated="not deprecated">
  34739. <doc>
  34740. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  34741. </doc>
  34742. </method>
  34743. <method name="clientPrincipal" return="java.lang.String"
  34744. abstract="false" native="false" synchronized="false"
  34745. static="false" final="false" visibility="public"
  34746. deprecated="not deprecated">
  34747. </method>
  34748. <doc>
  34749. <![CDATA[Indicates Kerberos related information to be used]]>
  34750. </doc>
  34751. </interface>
  34752. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  34753. <!-- start class org.apache.hadoop.security.KerberosName -->
  34754. <class name="KerberosName" extends="java.lang.Object"
  34755. abstract="false"
  34756. static="false" final="false" visibility="public"
  34757. deprecated="not deprecated">
  34758. <constructor name="KerberosName" type="java.lang.String"
  34759. static="false" final="false" visibility="public"
  34760. deprecated="not deprecated">
  34761. <doc>
  34762. <![CDATA[Create a name from the full Kerberos principal name.
  34763. @param name]]>
  34764. </doc>
  34765. </constructor>
  34766. <method name="getDefaultRealm" return="java.lang.String"
  34767. abstract="false" native="false" synchronized="false"
  34768. static="false" final="false" visibility="public"
  34769. deprecated="not deprecated">
  34770. <doc>
  34771. <![CDATA[Get the configured default realm.
  34772. @return the default realm from the krb5.conf]]>
  34773. </doc>
  34774. </method>
  34775. <method name="toString" return="java.lang.String"
  34776. abstract="false" native="false" synchronized="false"
  34777. static="false" final="false" visibility="public"
  34778. deprecated="not deprecated">
  34779. <doc>
  34780. <![CDATA[Put the name back together from the parts.]]>
  34781. </doc>
  34782. </method>
  34783. <method name="getServiceName" return="java.lang.String"
  34784. abstract="false" native="false" synchronized="false"
  34785. static="false" final="false" visibility="public"
  34786. deprecated="not deprecated">
  34787. <doc>
  34788. <![CDATA[Get the first component of the name.
  34789. @return the first section of the Kerberos principal name]]>
  34790. </doc>
  34791. </method>
  34792. <method name="getHostName" return="java.lang.String"
  34793. abstract="false" native="false" synchronized="false"
  34794. static="false" final="false" visibility="public"
  34795. deprecated="not deprecated">
  34796. <doc>
  34797. <![CDATA[Get the second component of the name.
  34798. @return the second section of the Kerberos principal name, and may be null]]>
  34799. </doc>
  34800. </method>
  34801. <method name="getRealm" return="java.lang.String"
  34802. abstract="false" native="false" synchronized="false"
  34803. static="false" final="false" visibility="public"
  34804. deprecated="not deprecated">
  34805. <doc>
  34806. <![CDATA[Get the realm of the name.
  34807. @return the realm of the name, may be null]]>
  34808. </doc>
  34809. </method>
  34810. <method name="setConfiguration"
  34811. abstract="false" native="false" synchronized="false"
  34812. static="true" final="false" visibility="public"
  34813. deprecated="not deprecated">
  34814. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34815. <exception name="IOException" type="java.io.IOException"/>
  34816. <doc>
  34817. <![CDATA[Set the static configuration to get the rules.
  34818. @param conf the new configuration
  34819. @throws IOException]]>
  34820. </doc>
  34821. </method>
  34822. <method name="setRules"
  34823. abstract="false" native="false" synchronized="false"
  34824. static="true" final="false" visibility="public"
  34825. deprecated="not deprecated">
  34826. <param name="ruleString" type="java.lang.String"/>
  34827. <doc>
  34828. <![CDATA[Set the rules.
  34829. @param ruleString the rules string.]]>
  34830. </doc>
  34831. </method>
  34832. <method name="getShortName" return="java.lang.String"
  34833. abstract="false" native="false" synchronized="false"
  34834. static="false" final="false" visibility="public"
  34835. deprecated="not deprecated">
  34836. <exception name="IOException" type="java.io.IOException"/>
  34837. <doc>
  34838. <![CDATA[Get the translation of the principal name into an operating system
  34839. user name.
  34840. @return the short name
  34841. @throws IOException]]>
  34842. </doc>
  34843. </method>
  34844. <method name="printRules"
  34845. abstract="false" native="false" synchronized="false"
  34846. static="true" final="false" visibility="public"
  34847. deprecated="not deprecated">
  34848. <exception name="IOException" type="java.io.IOException"/>
  34849. </method>
  34850. <method name="main"
  34851. abstract="false" native="false" synchronized="false"
  34852. static="true" final="false" visibility="public"
  34853. deprecated="not deprecated">
  34854. <param name="args" type="java.lang.String[]"/>
  34855. <exception name="Exception" type="java.lang.Exception"/>
  34856. </method>
  34857. <doc>
  34858. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  34859. particular, it splits them apart and translates them down into local
  34860. operating system names.]]>
  34861. </doc>
  34862. </class>
  34863. <!-- end class org.apache.hadoop.security.KerberosName -->
  34864. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  34865. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  34866. abstract="false"
  34867. static="true" final="false" visibility="public"
  34868. deprecated="not deprecated">
  34869. </class>
  34870. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  34871. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  34872. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  34873. abstract="false"
  34874. static="true" final="false" visibility="public"
  34875. deprecated="not deprecated">
  34876. </class>
  34877. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  34878. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34879. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  34880. abstract="false"
  34881. static="false" final="false" visibility="public"
  34882. deprecated="not deprecated">
  34883. <constructor name="Krb5AndCertsSslSocketConnector"
  34884. static="false" final="false" visibility="public"
  34885. deprecated="not deprecated">
  34886. </constructor>
  34887. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34888. static="false" final="false" visibility="public"
  34889. deprecated="not deprecated">
  34890. </constructor>
  34891. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  34892. abstract="false" native="false" synchronized="false"
  34893. static="false" final="false" visibility="protected"
  34894. deprecated="not deprecated">
  34895. <exception name="Exception" type="java.lang.Exception"/>
  34896. </method>
  34897. <method name="newServerSocket" return="java.net.ServerSocket"
  34898. abstract="false" native="false" synchronized="false"
  34899. static="false" final="false" visibility="protected"
  34900. deprecated="not deprecated">
  34901. <param name="host" type="java.lang.String"/>
  34902. <param name="port" type="int"/>
  34903. <param name="backlog" type="int"/>
  34904. <exception name="IOException" type="java.io.IOException"/>
  34905. </method>
  34906. <method name="customize"
  34907. abstract="false" native="false" synchronized="false"
  34908. static="false" final="false" visibility="public"
  34909. deprecated="not deprecated">
  34910. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  34911. <param name="request" type="org.mortbay.jetty.Request"/>
  34912. <exception name="IOException" type="java.io.IOException"/>
  34913. </method>
  34914. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  34915. transient="false" volatile="false"
  34916. static="true" final="true" visibility="public"
  34917. deprecated="not deprecated">
  34918. </field>
  34919. <doc>
  34920. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  34921. Kerberos5ized SSL sockets. The only change in behavior from superclass
  34922. is that we no longer honor requests to turn off NeedAuthentication when
  34923. running with Kerberos support.]]>
  34924. </doc>
  34925. </class>
  34926. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34927. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34928. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  34929. abstract="false"
  34930. static="true" final="false" visibility="public"
  34931. deprecated="not deprecated">
  34932. <implements name="javax.servlet.Filter"/>
  34933. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  34934. static="false" final="false" visibility="public"
  34935. deprecated="not deprecated">
  34936. </constructor>
  34937. <method name="doFilter"
  34938. abstract="false" native="false" synchronized="false"
  34939. static="false" final="false" visibility="public"
  34940. deprecated="not deprecated">
  34941. <param name="req" type="javax.servlet.ServletRequest"/>
  34942. <param name="resp" type="javax.servlet.ServletResponse"/>
  34943. <param name="chain" type="javax.servlet.FilterChain"/>
  34944. <exception name="IOException" type="java.io.IOException"/>
  34945. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34946. </method>
  34947. <method name="init"
  34948. abstract="false" native="false" synchronized="false"
  34949. static="false" final="false" visibility="public"
  34950. deprecated="not deprecated">
  34951. <param name="arg0" type="javax.servlet.FilterConfig"/>
  34952. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34953. </method>
  34954. <method name="destroy"
  34955. abstract="false" native="false" synchronized="false"
  34956. static="false" final="false" visibility="public"
  34957. deprecated="not deprecated">
  34958. </method>
  34959. <doc>
  34960. <![CDATA[Filter that takes the Kerberos principal identified in the
  34961. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  34962. at runtime, setting the principal and short name.]]>
  34963. </doc>
  34964. </class>
  34965. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34966. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  34967. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  34968. abstract="false"
  34969. static="true" final="true" visibility="public"
  34970. deprecated="not deprecated">
  34971. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  34972. abstract="false" native="false" synchronized="false"
  34973. static="true" final="false" visibility="public"
  34974. deprecated="not deprecated">
  34975. </method>
  34976. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34977. abstract="false" native="false" synchronized="false"
  34978. static="true" final="false" visibility="public"
  34979. deprecated="not deprecated">
  34980. <param name="name" type="java.lang.String"/>
  34981. </method>
  34982. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34983. transient="false" volatile="false"
  34984. static="true" final="true" visibility="public"
  34985. deprecated="not deprecated">
  34986. </field>
  34987. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34988. transient="false" volatile="false"
  34989. static="true" final="true" visibility="public"
  34990. deprecated="not deprecated">
  34991. </field>
  34992. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34993. transient="false" volatile="false"
  34994. static="true" final="true" visibility="public"
  34995. deprecated="not deprecated">
  34996. </field>
  34997. </class>
  34998. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  34999. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  35000. <class name="NetgroupCache" extends="java.lang.Object"
  35001. abstract="false"
  35002. static="false" final="false" visibility="public"
  35003. deprecated="not deprecated">
  35004. <constructor name="NetgroupCache"
  35005. static="false" final="false" visibility="public"
  35006. deprecated="not deprecated">
  35007. </constructor>
  35008. <method name="getNetgroups"
  35009. abstract="false" native="false" synchronized="false"
  35010. static="false" final="false" visibility="public"
  35011. deprecated="not deprecated">
  35012. <param name="user" type="java.lang.String"/>
  35013. <param name="groups" type="java.util.List"/>
  35014. </method>
  35015. <method name="getNetgroupNames" return="java.util.List"
  35016. abstract="false" native="false" synchronized="false"
  35017. static="false" final="false" visibility="public"
  35018. deprecated="not deprecated">
  35019. </method>
  35020. <method name="isCached" return="boolean"
  35021. abstract="false" native="false" synchronized="false"
  35022. static="false" final="false" visibility="public"
  35023. deprecated="not deprecated">
  35024. <param name="group" type="java.lang.String"/>
  35025. </method>
  35026. <method name="clear"
  35027. abstract="false" native="false" synchronized="false"
  35028. static="false" final="false" visibility="public"
  35029. deprecated="not deprecated">
  35030. </method>
  35031. <method name="add"
  35032. abstract="false" native="false" synchronized="false"
  35033. static="false" final="false" visibility="public"
  35034. deprecated="not deprecated">
  35035. <param name="group" type="java.lang.String"/>
  35036. <param name="users" type="java.util.List"/>
  35037. </method>
  35038. <doc>
  35039. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  35040. to user-to-group map]]>
  35041. </doc>
  35042. </class>
  35043. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  35044. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35045. <interface name="RefreshUserMappingsProtocol" abstract="true"
  35046. static="false" final="false" visibility="public"
  35047. deprecated="not deprecated">
  35048. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  35049. <method name="refreshUserToGroupsMappings"
  35050. abstract="false" native="false" synchronized="false"
  35051. static="false" final="false" visibility="public"
  35052. deprecated="not deprecated">
  35053. <exception name="IOException" type="java.io.IOException"/>
  35054. <doc>
  35055. <![CDATA[Refresh user to group mappings.
  35056. @throws IOException]]>
  35057. </doc>
  35058. </method>
  35059. <method name="refreshSuperUserGroupsConfiguration"
  35060. abstract="false" native="false" synchronized="false"
  35061. static="false" final="false" visibility="public"
  35062. deprecated="not deprecated">
  35063. <exception name="IOException" type="java.io.IOException"/>
  35064. <doc>
  35065. <![CDATA[Refresh superuser proxy group list
  35066. @throws IOException]]>
  35067. </doc>
  35068. </method>
  35069. <field name="versionID" type="long"
  35070. transient="false" volatile="false"
  35071. static="true" final="true" visibility="public"
  35072. deprecated="not deprecated">
  35073. <doc>
  35074. <![CDATA[Version 1: Initial version.]]>
  35075. </doc>
  35076. </field>
  35077. <doc>
  35078. <![CDATA[Protocol use]]>
  35079. </doc>
  35080. </interface>
  35081. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35082. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  35083. <class name="SaslInputStream" extends="java.io.InputStream"
  35084. abstract="false"
  35085. static="false" final="false" visibility="public"
  35086. deprecated="not deprecated">
  35087. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  35088. static="false" final="false" visibility="public"
  35089. deprecated="not deprecated">
  35090. <doc>
  35091. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  35092. Note: if the specified InputStream or SaslServer is null, a
  35093. NullPointerException may be thrown later when they are used.
  35094. @param inStream
  35095. the InputStream to be processed
  35096. @param saslServer
  35097. an initialized SaslServer object]]>
  35098. </doc>
  35099. </constructor>
  35100. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  35101. static="false" final="false" visibility="public"
  35102. deprecated="not deprecated">
  35103. <doc>
  35104. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  35105. Note: if the specified InputStream or SaslClient is null, a
  35106. NullPointerException may be thrown later when they are used.
  35107. @param inStream
  35108. the InputStream to be processed
  35109. @param saslClient
  35110. an initialized SaslClient object]]>
  35111. </doc>
  35112. </constructor>
  35113. <method name="read" return="int"
  35114. abstract="false" native="false" synchronized="false"
  35115. static="false" final="false" visibility="public"
  35116. deprecated="not deprecated">
  35117. <exception name="IOException" type="java.io.IOException"/>
  35118. <doc>
  35119. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  35120. returned as an <code>int</code> in the range <code>0</code> to
  35121. <code>255</code>. If no byte is available because the end of the stream has
  35122. been reached, the value <code>-1</code> is returned. This method blocks
  35123. until input data is available, the end of the stream is detected, or an
  35124. exception is thrown.
  35125. <p>
  35126. @return the next byte of data, or <code>-1</code> if the end of the stream
  35127. is reached.
  35128. @exception IOException
  35129. if an I/O error occurs.]]>
  35130. </doc>
  35131. </method>
  35132. <method name="read" return="int"
  35133. abstract="false" native="false" synchronized="false"
  35134. static="false" final="false" visibility="public"
  35135. deprecated="not deprecated">
  35136. <param name="b" type="byte[]"/>
  35137. <exception name="IOException" type="java.io.IOException"/>
  35138. <doc>
  35139. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  35140. an array of bytes.
  35141. <p>
  35142. The <code>read</code> method of <code>InputStream</code> calls the
  35143. <code>read</code> method of three arguments with the arguments
  35144. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35145. @param b
  35146. the buffer into which the data is read.
  35147. @return the total number of bytes read into the buffer, or <code>-1</code>
  35148. is there is no more data because the end of the stream has been
  35149. reached.
  35150. @exception IOException
  35151. if an I/O error occurs.]]>
  35152. </doc>
  35153. </method>
  35154. <method name="read" return="int"
  35155. abstract="false" native="false" synchronized="false"
  35156. static="false" final="false" visibility="public"
  35157. deprecated="not deprecated">
  35158. <param name="b" type="byte[]"/>
  35159. <param name="off" type="int"/>
  35160. <param name="len" type="int"/>
  35161. <exception name="IOException" type="java.io.IOException"/>
  35162. <doc>
  35163. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  35164. array of bytes. This method blocks until some input is available. If the
  35165. first argument is <code>null,</code> up to <code>len</code> bytes are read
  35166. and discarded.
  35167. @param b
  35168. the buffer into which the data is read.
  35169. @param off
  35170. the start offset of the data.
  35171. @param len
  35172. the maximum number of bytes read.
  35173. @return the total number of bytes read into the buffer, or <code>-1</code>
  35174. if there is no more data because the end of the stream has been
  35175. reached.
  35176. @exception IOException
  35177. if an I/O error occurs.]]>
  35178. </doc>
  35179. </method>
  35180. <method name="skip" return="long"
  35181. abstract="false" native="false" synchronized="false"
  35182. static="false" final="false" visibility="public"
  35183. deprecated="not deprecated">
  35184. <param name="n" type="long"/>
  35185. <exception name="IOException" type="java.io.IOException"/>
  35186. <doc>
  35187. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  35188. this input stream without blocking.
  35189. <p>
  35190. Fewer bytes than requested might be skipped. The actual number of bytes
  35191. skipped is equal to <code>n</code> or the result of a call to
  35192. {@link #available() <code>available</code>}, whichever is smaller. If
  35193. <code>n</code> is less than zero, no bytes are skipped.
  35194. <p>
  35195. The actual number of bytes skipped is returned.
  35196. @param n
  35197. the number of bytes to be skipped.
  35198. @return the actual number of bytes skipped.
  35199. @exception IOException
  35200. if an I/O error occurs.]]>
  35201. </doc>
  35202. </method>
  35203. <method name="available" return="int"
  35204. abstract="false" native="false" synchronized="false"
  35205. static="false" final="false" visibility="public"
  35206. deprecated="not deprecated">
  35207. <exception name="IOException" type="java.io.IOException"/>
  35208. <doc>
  35209. <![CDATA[Returns the number of bytes that can be read from this input stream without
  35210. blocking. The <code>available</code> method of <code>InputStream</code>
  35211. returns <code>0</code>. This method <B>should</B> be overridden by
  35212. subclasses.
  35213. @return the number of bytes that can be read from this input stream without
  35214. blocking.
  35215. @exception IOException
  35216. if an I/O error occurs.]]>
  35217. </doc>
  35218. </method>
  35219. <method name="close"
  35220. abstract="false" native="false" synchronized="false"
  35221. static="false" final="false" visibility="public"
  35222. deprecated="not deprecated">
  35223. <exception name="IOException" type="java.io.IOException"/>
  35224. <doc>
  35225. <![CDATA[Closes this input stream and releases any system resources associated with
  35226. the stream.
  35227. <p>
  35228. The <code>close</code> method of <code>SASLInputStream</code> calls the
  35229. <code>close</code> method of its underlying input stream.
  35230. @exception IOException
  35231. if an I/O error occurs.]]>
  35232. </doc>
  35233. </method>
  35234. <method name="markSupported" return="boolean"
  35235. abstract="false" native="false" synchronized="false"
  35236. static="false" final="false" visibility="public"
  35237. deprecated="not deprecated">
  35238. <doc>
  35239. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  35240. <code>reset</code> methods, which it does not.
  35241. @return <code>false</code>, since this class does not support the
  35242. <code>mark</code> and <code>reset</code> methods.]]>
  35243. </doc>
  35244. </method>
  35245. <field name="LOG" type="org.apache.commons.logging.Log"
  35246. transient="false" volatile="false"
  35247. static="true" final="true" visibility="public"
  35248. deprecated="not deprecated">
  35249. </field>
  35250. <doc>
  35251. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  35252. SaslClient) so that read() methods return data that are read in from the
  35253. underlying InputStream but have been additionally processed by the SaslServer
  35254. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  35255. initialized before being used by a SaslInputStream.]]>
  35256. </doc>
  35257. </class>
  35258. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  35259. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  35260. <class name="SaslOutputStream" extends="java.io.OutputStream"
  35261. abstract="false"
  35262. static="false" final="false" visibility="public"
  35263. deprecated="not deprecated">
  35264. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  35265. static="false" final="false" visibility="public"
  35266. deprecated="not deprecated">
  35267. <doc>
  35268. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  35269. Note: if the specified OutputStream or SaslServer is null, a
  35270. NullPointerException may be thrown later when they are used.
  35271. @param outStream
  35272. the OutputStream to be processed
  35273. @param saslServer
  35274. an initialized SaslServer object]]>
  35275. </doc>
  35276. </constructor>
  35277. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  35278. static="false" final="false" visibility="public"
  35279. deprecated="not deprecated">
  35280. <doc>
  35281. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  35282. Note: if the specified OutputStream or SaslClient is null, a
  35283. NullPointerException may be thrown later when they are used.
  35284. @param outStream
  35285. the OutputStream to be processed
  35286. @param saslClient
  35287. an initialized SaslClient object]]>
  35288. </doc>
  35289. </constructor>
  35290. <method name="write"
  35291. abstract="false" native="false" synchronized="false"
  35292. static="false" final="false" visibility="public"
  35293. deprecated="not deprecated">
  35294. <param name="b" type="int"/>
  35295. <exception name="IOException" type="java.io.IOException"/>
  35296. <doc>
  35297. <![CDATA[Writes the specified byte to this output stream.
  35298. @param b
  35299. the <code>byte</code>.
  35300. @exception IOException
  35301. if an I/O error occurs.]]>
  35302. </doc>
  35303. </method>
  35304. <method name="write"
  35305. abstract="false" native="false" synchronized="false"
  35306. static="false" final="false" visibility="public"
  35307. deprecated="not deprecated">
  35308. <param name="b" type="byte[]"/>
  35309. <exception name="IOException" type="java.io.IOException"/>
  35310. <doc>
  35311. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  35312. output stream.
  35313. <p>
  35314. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  35315. <code>write</code> method of three arguments with the three arguments
  35316. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35317. @param b
  35318. the data.
  35319. @exception NullPointerException
  35320. if <code>b</code> is null.
  35321. @exception IOException
  35322. if an I/O error occurs.]]>
  35323. </doc>
  35324. </method>
  35325. <method name="write"
  35326. abstract="false" native="false" synchronized="false"
  35327. static="false" final="false" visibility="public"
  35328. deprecated="not deprecated">
  35329. <param name="inBuf" type="byte[]"/>
  35330. <param name="off" type="int"/>
  35331. <param name="len" type="int"/>
  35332. <exception name="IOException" type="java.io.IOException"/>
  35333. <doc>
  35334. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  35335. offset <code>off</code> to this output stream.
  35336. @param inBuf
  35337. the data.
  35338. @param off
  35339. the start offset in the data.
  35340. @param len
  35341. the number of bytes to write.
  35342. @exception IOException
  35343. if an I/O error occurs.]]>
  35344. </doc>
  35345. </method>
  35346. <method name="flush"
  35347. abstract="false" native="false" synchronized="false"
  35348. static="false" final="false" visibility="public"
  35349. deprecated="not deprecated">
  35350. <exception name="IOException" type="java.io.IOException"/>
  35351. <doc>
  35352. <![CDATA[Flushes this output stream
  35353. @exception IOException
  35354. if an I/O error occurs.]]>
  35355. </doc>
  35356. </method>
  35357. <method name="close"
  35358. abstract="false" native="false" synchronized="false"
  35359. static="false" final="false" visibility="public"
  35360. deprecated="not deprecated">
  35361. <exception name="IOException" type="java.io.IOException"/>
  35362. <doc>
  35363. <![CDATA[Closes this output stream and releases any system resources associated with
  35364. this stream.
  35365. @exception IOException
  35366. if an I/O error occurs.]]>
  35367. </doc>
  35368. </method>
  35369. <doc>
  35370. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  35371. SaslClient) so that write() methods first process the data before writing
  35372. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  35373. object must be fully initialized before being used by a SaslOutputStream.]]>
  35374. </doc>
  35375. </class>
  35376. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  35377. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  35378. <class name="SaslRpcClient" extends="java.lang.Object"
  35379. abstract="false"
  35380. static="false" final="false" visibility="public"
  35381. deprecated="not deprecated">
  35382. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  35383. static="false" final="false" visibility="public"
  35384. deprecated="not deprecated">
  35385. <exception name="IOException" type="java.io.IOException"/>
  35386. <doc>
  35387. <![CDATA[Create a SaslRpcClient for an authentication method
  35388. @param method
  35389. the requested authentication method
  35390. @param token
  35391. token to use if needed by the authentication method]]>
  35392. </doc>
  35393. </constructor>
  35394. <method name="saslConnect" return="boolean"
  35395. abstract="false" native="false" synchronized="false"
  35396. static="false" final="false" visibility="public"
  35397. deprecated="not deprecated">
  35398. <param name="inS" type="java.io.InputStream"/>
  35399. <param name="outS" type="java.io.OutputStream"/>
  35400. <exception name="IOException" type="java.io.IOException"/>
  35401. <doc>
  35402. <![CDATA[Do client side SASL authentication with server via the given InputStream
  35403. and OutputStream
  35404. @param inS
  35405. InputStream to use
  35406. @param outS
  35407. OutputStream to use
  35408. @return true if connection is set up, or false if needs to switch
  35409. to simple Auth.
  35410. @throws IOException]]>
  35411. </doc>
  35412. </method>
  35413. <method name="getInputStream" return="java.io.InputStream"
  35414. abstract="false" native="false" synchronized="false"
  35415. static="false" final="false" visibility="public"
  35416. deprecated="not deprecated">
  35417. <param name="in" type="java.io.InputStream"/>
  35418. <exception name="IOException" type="java.io.IOException"/>
  35419. <doc>
  35420. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  35421. been called.
  35422. @param in
  35423. the InputStream to wrap
  35424. @return a SASL wrapped InputStream
  35425. @throws IOException]]>
  35426. </doc>
  35427. </method>
  35428. <method name="getOutputStream" return="java.io.OutputStream"
  35429. abstract="false" native="false" synchronized="false"
  35430. static="false" final="false" visibility="public"
  35431. deprecated="not deprecated">
  35432. <param name="out" type="java.io.OutputStream"/>
  35433. <exception name="IOException" type="java.io.IOException"/>
  35434. <doc>
  35435. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  35436. been called.
  35437. @param out
  35438. the OutputStream to wrap
  35439. @return a SASL wrapped OutputStream
  35440. @throws IOException]]>
  35441. </doc>
  35442. </method>
  35443. <method name="dispose"
  35444. abstract="false" native="false" synchronized="false"
  35445. static="false" final="false" visibility="public"
  35446. deprecated="not deprecated">
  35447. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  35448. <doc>
  35449. <![CDATA[Release resources used by wrapped saslClient]]>
  35450. </doc>
  35451. </method>
  35452. <field name="LOG" type="org.apache.commons.logging.Log"
  35453. transient="false" volatile="false"
  35454. static="true" final="true" visibility="public"
  35455. deprecated="not deprecated">
  35456. </field>
  35457. <doc>
  35458. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  35459. </doc>
  35460. </class>
  35461. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  35462. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  35463. <class name="SaslRpcServer" extends="java.lang.Object"
  35464. abstract="false"
  35465. static="false" final="false" visibility="public"
  35466. deprecated="not deprecated">
  35467. <constructor name="SaslRpcServer"
  35468. static="false" final="false" visibility="public"
  35469. deprecated="not deprecated">
  35470. </constructor>
  35471. <method name="init"
  35472. abstract="false" native="false" synchronized="false"
  35473. static="true" final="false" visibility="public"
  35474. deprecated="not deprecated">
  35475. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35476. </method>
  35477. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  35478. abstract="false" native="false" synchronized="false"
  35479. static="true" final="false" visibility="public"
  35480. deprecated="not deprecated">
  35481. <param name="id" type="java.lang.String"/>
  35482. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  35483. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35484. </method>
  35485. <method name="splitKerberosName" return="java.lang.String[]"
  35486. abstract="false" native="false" synchronized="false"
  35487. static="true" final="false" visibility="public"
  35488. deprecated="not deprecated">
  35489. <param name="fullName" type="java.lang.String"/>
  35490. <doc>
  35491. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  35492. </doc>
  35493. </method>
  35494. <field name="LOG" type="org.apache.commons.logging.Log"
  35495. transient="false" volatile="false"
  35496. static="true" final="true" visibility="public"
  35497. deprecated="not deprecated">
  35498. </field>
  35499. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  35500. transient="false" volatile="false"
  35501. static="true" final="true" visibility="public"
  35502. deprecated="not deprecated">
  35503. </field>
  35504. <field name="SASL_PROPS" type="java.util.Map"
  35505. transient="false" volatile="false"
  35506. static="true" final="true" visibility="public"
  35507. deprecated="not deprecated">
  35508. </field>
  35509. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  35510. transient="false" volatile="false"
  35511. static="true" final="true" visibility="public"
  35512. deprecated="not deprecated">
  35513. </field>
  35514. <doc>
  35515. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  35516. </doc>
  35517. </class>
  35518. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  35519. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  35520. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  35521. abstract="false"
  35522. static="true" final="true" visibility="public"
  35523. deprecated="not deprecated">
  35524. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  35525. abstract="false" native="false" synchronized="false"
  35526. static="true" final="false" visibility="public"
  35527. deprecated="not deprecated">
  35528. </method>
  35529. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35530. abstract="false" native="false" synchronized="false"
  35531. static="true" final="false" visibility="public"
  35532. deprecated="not deprecated">
  35533. <param name="name" type="java.lang.String"/>
  35534. </method>
  35535. <method name="getMechanismName" return="java.lang.String"
  35536. abstract="false" native="false" synchronized="false"
  35537. static="false" final="false" visibility="public"
  35538. deprecated="not deprecated">
  35539. <doc>
  35540. <![CDATA[Return the SASL mechanism name]]>
  35541. </doc>
  35542. </method>
  35543. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35544. abstract="false" native="false" synchronized="false"
  35545. static="true" final="false" visibility="public"
  35546. deprecated="not deprecated">
  35547. <param name="in" type="java.io.DataInput"/>
  35548. <exception name="IOException" type="java.io.IOException"/>
  35549. <doc>
  35550. <![CDATA[Read from in]]>
  35551. </doc>
  35552. </method>
  35553. <method name="write"
  35554. abstract="false" native="false" synchronized="false"
  35555. static="false" final="false" visibility="public"
  35556. deprecated="not deprecated">
  35557. <param name="out" type="java.io.DataOutput"/>
  35558. <exception name="IOException" type="java.io.IOException"/>
  35559. <doc>
  35560. <![CDATA[Write to out]]>
  35561. </doc>
  35562. </method>
  35563. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35564. transient="false" volatile="false"
  35565. static="true" final="true" visibility="public"
  35566. deprecated="not deprecated">
  35567. </field>
  35568. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35569. transient="false" volatile="false"
  35570. static="true" final="true" visibility="public"
  35571. deprecated="not deprecated">
  35572. </field>
  35573. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35574. transient="false" volatile="false"
  35575. static="true" final="true" visibility="public"
  35576. deprecated="not deprecated">
  35577. </field>
  35578. <field name="code" type="byte"
  35579. transient="false" volatile="false"
  35580. static="false" final="true" visibility="public"
  35581. deprecated="not deprecated">
  35582. <doc>
  35583. <![CDATA[The code for this method.]]>
  35584. </doc>
  35585. </field>
  35586. <field name="mechanismName" type="java.lang.String"
  35587. transient="false" volatile="false"
  35588. static="false" final="true" visibility="public"
  35589. deprecated="not deprecated">
  35590. </field>
  35591. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35592. transient="false" volatile="false"
  35593. static="false" final="true" visibility="public"
  35594. deprecated="not deprecated">
  35595. </field>
  35596. <doc>
  35597. <![CDATA[Authentication method]]>
  35598. </doc>
  35599. </class>
  35600. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  35601. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  35602. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  35603. abstract="false"
  35604. static="true" final="true" visibility="public"
  35605. deprecated="not deprecated">
  35606. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  35607. abstract="false" native="false" synchronized="false"
  35608. static="true" final="false" visibility="public"
  35609. deprecated="not deprecated">
  35610. </method>
  35611. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35612. abstract="false" native="false" synchronized="false"
  35613. static="true" final="false" visibility="public"
  35614. deprecated="not deprecated">
  35615. <param name="name" type="java.lang.String"/>
  35616. </method>
  35617. <method name="getSaslQop" return="java.lang.String"
  35618. abstract="false" native="false" synchronized="false"
  35619. static="false" final="false" visibility="public"
  35620. deprecated="not deprecated">
  35621. </method>
  35622. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35623. transient="false" volatile="false"
  35624. static="true" final="true" visibility="public"
  35625. deprecated="not deprecated">
  35626. </field>
  35627. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35628. transient="false" volatile="false"
  35629. static="true" final="true" visibility="public"
  35630. deprecated="not deprecated">
  35631. </field>
  35632. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35633. transient="false" volatile="false"
  35634. static="true" final="true" visibility="public"
  35635. deprecated="not deprecated">
  35636. </field>
  35637. <field name="saslQop" type="java.lang.String"
  35638. transient="false" volatile="false"
  35639. static="false" final="true" visibility="public"
  35640. deprecated="not deprecated">
  35641. </field>
  35642. </class>
  35643. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  35644. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  35645. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  35646. abstract="false"
  35647. static="true" final="false" visibility="public"
  35648. deprecated="not deprecated">
  35649. <implements name="javax.security.auth.callback.CallbackHandler"/>
  35650. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  35651. static="false" final="false" visibility="public"
  35652. deprecated="not deprecated">
  35653. </constructor>
  35654. <method name="handle"
  35655. abstract="false" native="false" synchronized="false"
  35656. static="false" final="false" visibility="public"
  35657. deprecated="not deprecated">
  35658. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  35659. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35660. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  35661. <doc>
  35662. <![CDATA[{@inheritDoc}]]>
  35663. </doc>
  35664. </method>
  35665. <doc>
  35666. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  35667. </doc>
  35668. </class>
  35669. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  35670. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  35671. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  35672. abstract="false"
  35673. static="true" final="false" visibility="public"
  35674. deprecated="not deprecated">
  35675. <implements name="javax.security.auth.callback.CallbackHandler"/>
  35676. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  35677. static="false" final="false" visibility="public"
  35678. deprecated="not deprecated">
  35679. </constructor>
  35680. <method name="handle"
  35681. abstract="false" native="false" synchronized="false"
  35682. static="false" final="false" visibility="public"
  35683. deprecated="not deprecated">
  35684. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  35685. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  35686. <doc>
  35687. <![CDATA[{@inheritDoc}]]>
  35688. </doc>
  35689. </method>
  35690. <doc>
  35691. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  35692. </doc>
  35693. </class>
  35694. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  35695. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  35696. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  35697. abstract="false"
  35698. static="true" final="true" visibility="public"
  35699. deprecated="not deprecated">
  35700. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  35701. abstract="false" native="false" synchronized="false"
  35702. static="true" final="false" visibility="public"
  35703. deprecated="not deprecated">
  35704. </method>
  35705. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35706. abstract="false" native="false" synchronized="false"
  35707. static="true" final="false" visibility="public"
  35708. deprecated="not deprecated">
  35709. <param name="name" type="java.lang.String"/>
  35710. </method>
  35711. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35712. transient="false" volatile="false"
  35713. static="true" final="true" visibility="public"
  35714. deprecated="not deprecated">
  35715. </field>
  35716. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35717. transient="false" volatile="false"
  35718. static="true" final="true" visibility="public"
  35719. deprecated="not deprecated">
  35720. </field>
  35721. <field name="state" type="int"
  35722. transient="false" volatile="false"
  35723. static="false" final="true" visibility="public"
  35724. deprecated="not deprecated">
  35725. </field>
  35726. </class>
  35727. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  35728. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  35729. <class name="SecurityUtil" extends="java.lang.Object"
  35730. abstract="false"
  35731. static="false" final="false" visibility="public"
  35732. deprecated="not deprecated">
  35733. <constructor name="SecurityUtil"
  35734. static="false" final="false" visibility="public"
  35735. deprecated="not deprecated">
  35736. </constructor>
  35737. <method name="isOriginalTGT" return="boolean"
  35738. abstract="false" native="false" synchronized="false"
  35739. static="true" final="false" visibility="protected"
  35740. deprecated="not deprecated">
  35741. <param name="name" type="java.lang.String"/>
  35742. </method>
  35743. <method name="fetchServiceTicket"
  35744. abstract="false" native="false" synchronized="false"
  35745. static="true" final="false" visibility="public"
  35746. deprecated="not deprecated">
  35747. <param name="remoteHost" type="java.net.URL"/>
  35748. <exception name="IOException" type="java.io.IOException"/>
  35749. <doc>
  35750. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  35751. problem with Java's Kerberos SSL problem where the client cannot
  35752. authenticate against a cross-realm service. It is necessary for clients
  35753. making kerberized https requests to call this method on the target URL
  35754. to ensure that in a cross-realm environment the remote host will be
  35755. successfully authenticated.
  35756. This method is internal to Hadoop and should not be used by other
  35757. applications. This method should not be considered stable or open:
  35758. it will be removed when the Java behavior is changed.
  35759. @param remoteHost Target URL the krb-https client will access
  35760. @throws IOException if a service ticket is not available]]>
  35761. </doc>
  35762. </method>
  35763. <method name="getServerPrincipal" return="java.lang.String"
  35764. abstract="false" native="false" synchronized="false"
  35765. static="true" final="false" visibility="public"
  35766. deprecated="not deprecated">
  35767. <param name="principalConfig" type="java.lang.String"/>
  35768. <param name="hostname" type="java.lang.String"/>
  35769. <exception name="IOException" type="java.io.IOException"/>
  35770. <doc>
  35771. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  35772. names. It replaces hostname pattern with hostname, which should be
  35773. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  35774. dynamically looked-up fqdn of the current host instead.
  35775. @param principalConfig
  35776. the Kerberos principal name conf value to convert
  35777. @param hostname
  35778. the fully-qualified domain name used for substitution
  35779. @return converted Kerberos principal name
  35780. @throws IOException if the service ticket cannot be retrieved]]>
  35781. </doc>
  35782. </method>
  35783. <method name="getServerPrincipal" return="java.lang.String"
  35784. abstract="false" native="false" synchronized="false"
  35785. static="true" final="false" visibility="public"
  35786. deprecated="not deprecated">
  35787. <param name="principalConfig" type="java.lang.String"/>
  35788. <param name="addr" type="java.net.InetAddress"/>
  35789. <exception name="IOException" type="java.io.IOException"/>
  35790. <doc>
  35791. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  35792. This method is similar to {@link #getServerPrincipal(String, String)},
  35793. except 1) the reverse DNS lookup from addr to hostname is done only when
  35794. necessary, 2) param addr can't be null (no default behavior of using local
  35795. hostname when addr is null).
  35796. @param principalConfig
  35797. Kerberos principal name pattern to convert
  35798. @param addr
  35799. InetAddress of the host used for substitution
  35800. @return converted Kerberos principal name
  35801. @throws IOException if the client address cannot be determined]]>
  35802. </doc>
  35803. </method>
  35804. <method name="getLocalHostName" return="java.lang.String"
  35805. abstract="false" native="false" synchronized="false"
  35806. static="true" final="false" visibility="public"
  35807. deprecated="not deprecated">
  35808. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35809. <doc>
  35810. <![CDATA[Get the fqdn for the current host.
  35811. @return fqdn of the current host.
  35812. @throws UnknownHostException
  35813. if no IP address for the local host could be found.]]>
  35814. </doc>
  35815. </method>
  35816. <method name="login"
  35817. abstract="false" native="false" synchronized="false"
  35818. static="true" final="false" visibility="public"
  35819. deprecated="not deprecated">
  35820. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35821. <param name="keytabFileKey" type="java.lang.String"/>
  35822. <param name="userNameKey" type="java.lang.String"/>
  35823. <exception name="IOException" type="java.io.IOException"/>
  35824. <doc>
  35825. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  35826. user's Kerberos principal name with a dynamically looked-up fully-qualified
  35827. domain name of the current host.
  35828. @param conf
  35829. conf to use
  35830. @param keytabFileKey
  35831. the key to look for keytab file in conf
  35832. @param userNameKey
  35833. the key to look for user's Kerberos principal name in conf
  35834. @throws IOException if the client address cannot be determined]]>
  35835. </doc>
  35836. </method>
  35837. <method name="login"
  35838. abstract="false" native="false" synchronized="false"
  35839. static="true" final="false" visibility="public"
  35840. deprecated="not deprecated">
  35841. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35842. <param name="keytabFileKey" type="java.lang.String"/>
  35843. <param name="userNameKey" type="java.lang.String"/>
  35844. <param name="hostname" type="java.lang.String"/>
  35845. <exception name="IOException" type="java.io.IOException"/>
  35846. <doc>
  35847. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  35848. user's Kerberos principal name with hostname.
  35849. @param conf
  35850. conf to use
  35851. @param keytabFileKey
  35852. the key to look for keytab file in conf
  35853. @param userNameKey
  35854. the key to look for user's Kerberos principal name in conf
  35855. @param hostname
  35856. hostname to use for substitution
  35857. @throws IOException if login fails]]>
  35858. </doc>
  35859. </method>
  35860. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  35861. abstract="false" native="false" synchronized="false"
  35862. static="true" final="false" visibility="public"
  35863. deprecated="not deprecated">
  35864. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35865. <doc>
  35866. <![CDATA[Decode the given token's service field into an InetAddress
  35867. @param token from which to obtain the service
  35868. @return InetAddress for the service]]>
  35869. </doc>
  35870. </method>
  35871. <method name="setTokenService"
  35872. abstract="false" native="false" synchronized="false"
  35873. static="true" final="false" visibility="public"
  35874. deprecated="not deprecated">
  35875. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35876. <param name="addr" type="java.net.InetSocketAddress"/>
  35877. <doc>
  35878. <![CDATA[Set the given token's service to the format expected by the RPC client
  35879. @param token a delegation token
  35880. @param addr the socket for the rpc connection]]>
  35881. </doc>
  35882. </method>
  35883. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  35884. abstract="false" native="false" synchronized="false"
  35885. static="true" final="false" visibility="public"
  35886. deprecated="not deprecated">
  35887. <param name="addr" type="java.net.InetSocketAddress"/>
  35888. <doc>
  35889. <![CDATA[Construct the service key for a token
  35890. @param addr InetSocketAddress of remote connection with a token
  35891. @return "ip:port" or "host:port" depending on the value of
  35892. hadoop.security.token.service.use_ip]]>
  35893. </doc>
  35894. </method>
  35895. <method name="buildDTServiceName" return="java.lang.String"
  35896. abstract="false" native="false" synchronized="false"
  35897. static="true" final="false" visibility="public"
  35898. deprecated="not deprecated">
  35899. <param name="uri" type="java.net.URI"/>
  35900. <param name="defPort" type="int"/>
  35901. <doc>
  35902. <![CDATA[create the service name for a Delegation token
  35903. @param uri of the service
  35904. @param defPort is used if the uri lacks a port
  35905. @return the token service, or null if no authority
  35906. @see #buildTokenService(InetSocketAddress)]]>
  35907. </doc>
  35908. </method>
  35909. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  35910. abstract="false" native="false" synchronized="false"
  35911. static="true" final="false" visibility="public"
  35912. deprecated="not deprecated">
  35913. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35914. <param name="configKey" type="java.lang.String"/>
  35915. <doc>
  35916. <![CDATA[Get the ACL object representing the cluster administrators
  35917. The user who starts the daemon is automatically added as an admin
  35918. @param conf
  35919. @param configKey the key that holds the ACL string in its value
  35920. @return AccessControlList instance]]>
  35921. </doc>
  35922. </method>
  35923. <method name="getHostFromPrincipal" return="java.lang.String"
  35924. abstract="false" native="false" synchronized="false"
  35925. static="true" final="false" visibility="public"
  35926. deprecated="not deprecated">
  35927. <param name="principalName" type="java.lang.String"/>
  35928. <doc>
  35929. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  35930. @param principalName principal name of format as described above
  35931. @return host name if the the string conforms to the above format, else null]]>
  35932. </doc>
  35933. </method>
  35934. <method name="useKsslAuth" return="boolean"
  35935. abstract="false" native="false" synchronized="false"
  35936. static="true" final="false" visibility="public"
  35937. deprecated="not deprecated">
  35938. <doc>
  35939. <![CDATA[@return true if we should use KSSL to authenticate NN HTTP endpoints,
  35940. false to use SPNEGO or if security is disabled.]]>
  35941. </doc>
  35942. </method>
  35943. <method name="openSecureHttpConnection" return="java.net.URLConnection"
  35944. abstract="false" native="false" synchronized="false"
  35945. static="true" final="false" visibility="public"
  35946. deprecated="not deprecated">
  35947. <param name="url" type="java.net.URL"/>
  35948. <exception name="IOException" type="java.io.IOException"/>
  35949. <doc>
  35950. <![CDATA[Open a (if need be) secure connection to a URL in a secure environment
  35951. that is using SPNEGO or KSSL to authenticate its URLs. All Namenode and
  35952. Secondary Namenode URLs that are protected via SPNEGO or KSSL should be
  35953. accessed via this method.
  35954. @param url to authenticate via SPNEGO.
  35955. @return A connection that has been authenticated via SPNEGO
  35956. @throws IOException If unable to authenticate via SPNEGO]]>
  35957. </doc>
  35958. </method>
  35959. <method name="getByName" return="java.net.InetAddress"
  35960. abstract="false" native="false" synchronized="false"
  35961. static="true" final="false" visibility="public"
  35962. deprecated="not deprecated">
  35963. <param name="hostname" type="java.lang.String"/>
  35964. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35965. <doc>
  35966. <![CDATA[Resolves a host subject to the security requirements determined by
  35967. hadoop.security.token.service.use_ip.
  35968. @param hostname host or ip to resolve
  35969. @return a resolved host
  35970. @throws UnknownHostException if the host doesn't exist]]>
  35971. </doc>
  35972. </method>
  35973. <field name="LOG" type="org.apache.commons.logging.Log"
  35974. transient="false" volatile="false"
  35975. static="true" final="true" visibility="public"
  35976. deprecated="not deprecated">
  35977. </field>
  35978. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  35979. transient="false" volatile="false"
  35980. static="true" final="true" visibility="public"
  35981. deprecated="not deprecated">
  35982. </field>
  35983. </class>
  35984. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  35985. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  35986. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  35987. abstract="false"
  35988. static="true" final="false" visibility="protected"
  35989. deprecated="not deprecated">
  35990. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  35991. <constructor name="SecurityUtil.QualifiedHostResolver"
  35992. static="false" final="false" visibility="protected"
  35993. deprecated="not deprecated">
  35994. </constructor>
  35995. <method name="getByName" return="java.net.InetAddress"
  35996. abstract="false" native="false" synchronized="false"
  35997. static="false" final="false" visibility="public"
  35998. deprecated="not deprecated">
  35999. <param name="host" type="java.lang.String"/>
  36000. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36001. <doc>
  36002. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  36003. hostname. InetAddress does not qualify an incomplete hostname that
  36004. is resolved via the domain search list.
  36005. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  36006. hostname, but it always return the A record whereas the given hostname
  36007. may be a CNAME.
  36008. @param host a hostname or ip address
  36009. @return InetAddress with the fully qualified hostname or ip
  36010. @throws UnknownHostException if host does not exist]]>
  36011. </doc>
  36012. </method>
  36013. <doc>
  36014. <![CDATA[This an alternate resolver with important properties that the standard
  36015. java resolver lacks:
  36016. 1) The hostname is fully qualified. This avoids security issues if not
  36017. all hosts in the cluster do not share the same search domains. It
  36018. also prevents other hosts from performing unnecessary dns searches.
  36019. In contrast, InetAddress simply returns the host as given.
  36020. 2) The InetAddress is instantiated with an exact host and IP to prevent
  36021. further unnecessary lookups. InetAddress may perform an unnecessary
  36022. reverse lookup for an IP.
  36023. 3) A call to getHostName() will always return the qualified hostname, or
  36024. more importantly, the IP if instantiated with an IP. This avoids
  36025. unnecessary dns timeouts if the host is not resolvable.
  36026. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  36027. connection re-attempt, that a reverse lookup to host and forward
  36028. lookup to IP is not performed since the reverse/forward mappings may
  36029. not always return the same IP. If the client initiated a connection
  36030. with an IP, then that IP is all that should ever be contacted.
  36031. NOTE: this resolver is only used if:
  36032. hadoop.security.token.service.use_ip=false]]>
  36033. </doc>
  36034. </class>
  36035. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36036. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36037. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  36038. abstract="false"
  36039. static="false" final="false" visibility="public"
  36040. deprecated="not deprecated">
  36041. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  36042. <constructor name="ShellBasedUnixGroupsMapping"
  36043. static="false" final="false" visibility="public"
  36044. deprecated="not deprecated">
  36045. </constructor>
  36046. <method name="getGroups" return="java.util.List"
  36047. abstract="false" native="false" synchronized="false"
  36048. static="false" final="false" visibility="public"
  36049. deprecated="not deprecated">
  36050. <param name="user" type="java.lang.String"/>
  36051. <exception name="IOException" type="java.io.IOException"/>
  36052. </method>
  36053. <method name="cacheGroupsRefresh"
  36054. abstract="false" native="false" synchronized="false"
  36055. static="false" final="false" visibility="public"
  36056. deprecated="not deprecated">
  36057. <exception name="IOException" type="java.io.IOException"/>
  36058. </method>
  36059. <method name="cacheGroupsAdd"
  36060. abstract="false" native="false" synchronized="false"
  36061. static="false" final="false" visibility="public"
  36062. deprecated="not deprecated">
  36063. <param name="groups" type="java.util.List"/>
  36064. <exception name="IOException" type="java.io.IOException"/>
  36065. </method>
  36066. <doc>
  36067. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36068. that exec's the <code>groups</code> shell command to fetch the group
  36069. memberships of a given user.]]>
  36070. </doc>
  36071. </class>
  36072. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36073. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36074. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  36075. abstract="false"
  36076. static="false" final="false" visibility="public"
  36077. deprecated="not deprecated">
  36078. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  36079. static="false" final="false" visibility="public"
  36080. deprecated="not deprecated">
  36081. </constructor>
  36082. <method name="getGroups" return="java.util.List"
  36083. abstract="false" native="false" synchronized="false"
  36084. static="false" final="false" visibility="public"
  36085. deprecated="not deprecated">
  36086. <param name="user" type="java.lang.String"/>
  36087. <exception name="IOException" type="java.io.IOException"/>
  36088. </method>
  36089. <method name="cacheGroupsRefresh"
  36090. abstract="false" native="false" synchronized="false"
  36091. static="false" final="false" visibility="public"
  36092. deprecated="not deprecated">
  36093. <exception name="IOException" type="java.io.IOException"/>
  36094. </method>
  36095. <method name="cacheGroupsAdd"
  36096. abstract="false" native="false" synchronized="false"
  36097. static="false" final="false" visibility="public"
  36098. deprecated="not deprecated">
  36099. <param name="groups" type="java.util.List"/>
  36100. <exception name="IOException" type="java.io.IOException"/>
  36101. </method>
  36102. <method name="cacheNetgroup"
  36103. abstract="false" native="false" synchronized="false"
  36104. static="false" final="false" visibility="protected"
  36105. deprecated="not deprecated">
  36106. <param name="group" type="java.lang.String"/>
  36107. <exception name="IOException" type="java.io.IOException"/>
  36108. </method>
  36109. <method name="getNetgroups"
  36110. abstract="false" native="false" synchronized="false"
  36111. static="false" final="false" visibility="protected"
  36112. deprecated="not deprecated">
  36113. <param name="user" type="java.lang.String"/>
  36114. <param name="groups" type="java.util.List"/>
  36115. <exception name="IOException" type="java.io.IOException"/>
  36116. </method>
  36117. <method name="execShellGetUnixGroups" return="java.lang.String"
  36118. abstract="false" native="false" synchronized="false"
  36119. static="false" final="false" visibility="protected"
  36120. deprecated="not deprecated">
  36121. <param name="user" type="java.lang.String"/>
  36122. <exception name="IOException" type="java.io.IOException"/>
  36123. </method>
  36124. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  36125. abstract="false" native="false" synchronized="false"
  36126. static="false" final="false" visibility="protected"
  36127. deprecated="not deprecated">
  36128. <param name="netgroup" type="java.lang.String"/>
  36129. <exception name="IOException" type="java.io.IOException"/>
  36130. </method>
  36131. <field name="netgroupToUsersMapUpdated" type="boolean"
  36132. transient="false" volatile="false"
  36133. static="true" final="false" visibility="protected"
  36134. deprecated="not deprecated">
  36135. </field>
  36136. <field name="netgroupToUsersMap" type="java.util.Map"
  36137. transient="false" volatile="false"
  36138. static="true" final="false" visibility="protected"
  36139. deprecated="not deprecated">
  36140. </field>
  36141. <field name="userToNetgroupsMap" type="java.util.Map"
  36142. transient="false" volatile="false"
  36143. static="true" final="false" visibility="protected"
  36144. deprecated="not deprecated">
  36145. </field>
  36146. <doc>
  36147. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36148. that exec's the <code>groups</code> shell command to fetch the group
  36149. memberships of a given user.]]>
  36150. </doc>
  36151. </class>
  36152. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36153. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  36154. <class name="UserGroupInformation" extends="java.lang.Object"
  36155. abstract="false"
  36156. static="false" final="false" visibility="public"
  36157. deprecated="not deprecated">
  36158. <method name="setConfiguration"
  36159. abstract="false" native="false" synchronized="false"
  36160. static="true" final="false" visibility="public"
  36161. deprecated="not deprecated">
  36162. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36163. <doc>
  36164. <![CDATA[Set the static configuration for UGI.
  36165. In particular, set the security authentication mechanism and the
  36166. group look up service.
  36167. @param conf the configuration to use]]>
  36168. </doc>
  36169. </method>
  36170. <method name="isSecurityEnabled" return="boolean"
  36171. abstract="false" native="false" synchronized="false"
  36172. static="true" final="false" visibility="public"
  36173. deprecated="not deprecated">
  36174. <doc>
  36175. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  36176. user identities or is relying on simple authentication
  36177. @return true if UGI is working in a secure environment]]>
  36178. </doc>
  36179. </method>
  36180. <method name="hasKerberosCredentials" return="boolean"
  36181. abstract="false" native="false" synchronized="false"
  36182. static="false" final="false" visibility="public"
  36183. deprecated="not deprecated">
  36184. <doc>
  36185. <![CDATA[checks if logged in using kerberos
  36186. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  36187. </doc>
  36188. </method>
  36189. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  36190. abstract="false" native="false" synchronized="true"
  36191. static="true" final="false" visibility="public"
  36192. deprecated="not deprecated">
  36193. <exception name="IOException" type="java.io.IOException"/>
  36194. <doc>
  36195. <![CDATA[Return the current user, including any doAs in the current stack.
  36196. @return the current user
  36197. @throws IOException if login fails]]>
  36198. </doc>
  36199. </method>
  36200. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  36201. abstract="false" native="false" synchronized="true"
  36202. static="true" final="false" visibility="public"
  36203. deprecated="not deprecated">
  36204. <exception name="IOException" type="java.io.IOException"/>
  36205. <doc>
  36206. <![CDATA[Get the currently logged in user.
  36207. @return the logged in user
  36208. @throws IOException if login fails]]>
  36209. </doc>
  36210. </method>
  36211. <method name="isFromKeytab" return="boolean"
  36212. abstract="false" native="false" synchronized="false"
  36213. static="false" final="false" visibility="public"
  36214. deprecated="not deprecated">
  36215. <doc>
  36216. <![CDATA[Is this user logged in from a keytab file?
  36217. @return true if the credentials are from a keytab file.]]>
  36218. </doc>
  36219. </method>
  36220. <method name="loginUserFromKeytab"
  36221. abstract="false" native="false" synchronized="true"
  36222. static="true" final="false" visibility="public"
  36223. deprecated="not deprecated">
  36224. <param name="user" type="java.lang.String"/>
  36225. <param name="path" type="java.lang.String"/>
  36226. <exception name="IOException" type="java.io.IOException"/>
  36227. <doc>
  36228. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36229. file and logs them in. They become the currently logged-in user.
  36230. @param user the principal name to load from the keytab
  36231. @param path the path to the keytab file
  36232. @throws IOException if the keytab file can't be read]]>
  36233. </doc>
  36234. </method>
  36235. <method name="reloginFromTicketCache"
  36236. abstract="false" native="false" synchronized="true"
  36237. static="false" final="false" visibility="public"
  36238. deprecated="not deprecated">
  36239. <exception name="IOException" type="java.io.IOException"/>
  36240. <doc>
  36241. <![CDATA[Re-Login a user in from the ticket cache. This
  36242. method assumes that login had happened already.
  36243. The Subject field of this UserGroupInformation object is updated to have
  36244. the new credentials.
  36245. @throws IOException on a failure]]>
  36246. </doc>
  36247. </method>
  36248. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  36249. abstract="false" native="false" synchronized="true"
  36250. static="true" final="false" visibility="public"
  36251. deprecated="not deprecated">
  36252. <param name="user" type="java.lang.String"/>
  36253. <param name="path" type="java.lang.String"/>
  36254. <exception name="IOException" type="java.io.IOException"/>
  36255. <doc>
  36256. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36257. file and login them in. This new user does not affect the currently
  36258. logged-in user.
  36259. @param user the principal name to load from the keytab
  36260. @param path the path to the keytab file
  36261. @throws IOException if the keytab file can't be read]]>
  36262. </doc>
  36263. </method>
  36264. <method name="checkTGTAndReloginFromKeytab"
  36265. abstract="false" native="false" synchronized="true"
  36266. static="false" final="false" visibility="public"
  36267. deprecated="not deprecated">
  36268. <exception name="IOException" type="java.io.IOException"/>
  36269. <doc>
  36270. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  36271. @throws IOException]]>
  36272. </doc>
  36273. </method>
  36274. <method name="reloginFromKeytab"
  36275. abstract="false" native="false" synchronized="true"
  36276. static="false" final="false" visibility="public"
  36277. deprecated="not deprecated">
  36278. <exception name="IOException" type="java.io.IOException"/>
  36279. <doc>
  36280. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  36281. file and logs them in. They become the currently logged-in user. This
  36282. method assumes that {@link #loginUserFromKeytab(String, String)} had
  36283. happened already.
  36284. The Subject field of this UserGroupInformation object is updated to have
  36285. the new credentials.
  36286. @throws IOException on a failure]]>
  36287. </doc>
  36288. </method>
  36289. <method name="isLoginKeytabBased" return="boolean"
  36290. abstract="false" native="false" synchronized="true"
  36291. static="true" final="false" visibility="public"
  36292. deprecated="not deprecated">
  36293. <exception name="IOException" type="java.io.IOException"/>
  36294. <doc>
  36295. <![CDATA[Did the login happen via keytab
  36296. @return true or false]]>
  36297. </doc>
  36298. </method>
  36299. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  36300. abstract="false" native="false" synchronized="false"
  36301. static="true" final="false" visibility="public"
  36302. deprecated="not deprecated">
  36303. <param name="user" type="java.lang.String"/>
  36304. <doc>
  36305. <![CDATA[Create a user from a login name. It is intended to be used for remote
  36306. users in RPC, since it won't have any credentials.
  36307. @param user the full user principal name, must not be empty or null
  36308. @return the UserGroupInformation for the remote user.]]>
  36309. </doc>
  36310. </method>
  36311. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  36312. abstract="false" native="false" synchronized="false"
  36313. static="true" final="false" visibility="public"
  36314. deprecated="not deprecated">
  36315. <param name="user" type="java.lang.String"/>
  36316. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36317. <doc>
  36318. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  36319. real user.
  36320. @param user
  36321. @param realUser
  36322. @return proxyUser ugi]]>
  36323. </doc>
  36324. </method>
  36325. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  36326. abstract="false" native="false" synchronized="false"
  36327. static="false" final="false" visibility="public"
  36328. deprecated="not deprecated">
  36329. <doc>
  36330. <![CDATA[get RealUser (vs. EffectiveUser)
  36331. @return realUser running over proxy user]]>
  36332. </doc>
  36333. </method>
  36334. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36335. abstract="false" native="false" synchronized="false"
  36336. static="true" final="false" visibility="public"
  36337. deprecated="not deprecated">
  36338. <param name="user" type="java.lang.String"/>
  36339. <param name="userGroups" type="java.lang.String[]"/>
  36340. <doc>
  36341. <![CDATA[Create a UGI for testing HDFS and MapReduce
  36342. @param user the full user principal name
  36343. @param userGroups the names of the groups that the user belongs to
  36344. @return a fake user for running unit tests]]>
  36345. </doc>
  36346. </method>
  36347. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36348. abstract="false" native="false" synchronized="false"
  36349. static="true" final="false" visibility="public"
  36350. deprecated="not deprecated">
  36351. <param name="user" type="java.lang.String"/>
  36352. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36353. <param name="userGroups" type="java.lang.String[]"/>
  36354. <doc>
  36355. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  36356. @param user
  36357. the full user principal name for effective user
  36358. @param realUser
  36359. UGI of the real user
  36360. @param userGroups
  36361. the names of the groups that the user belongs to
  36362. @return a fake user for running unit tests]]>
  36363. </doc>
  36364. </method>
  36365. <method name="getShortUserName" return="java.lang.String"
  36366. abstract="false" native="false" synchronized="false"
  36367. static="false" final="false" visibility="public"
  36368. deprecated="not deprecated">
  36369. <doc>
  36370. <![CDATA[Get the user's login name.
  36371. @return the user's name up to the first '/' or '@'.]]>
  36372. </doc>
  36373. </method>
  36374. <method name="getUserName" return="java.lang.String"
  36375. abstract="false" native="false" synchronized="false"
  36376. static="false" final="false" visibility="public"
  36377. deprecated="not deprecated">
  36378. <doc>
  36379. <![CDATA[Get the user's full principal name.
  36380. @return the user's full principal name.]]>
  36381. </doc>
  36382. </method>
  36383. <method name="addTokenIdentifier" return="boolean"
  36384. abstract="false" native="false" synchronized="true"
  36385. static="false" final="false" visibility="public"
  36386. deprecated="not deprecated">
  36387. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36388. <doc>
  36389. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  36390. authenticated by the RPC layer as belonging to the user represented by this
  36391. UGI.
  36392. @param tokenId
  36393. tokenIdentifier to be added
  36394. @return true on successful add of new tokenIdentifier]]>
  36395. </doc>
  36396. </method>
  36397. <method name="getTokenIdentifiers" return="java.util.Set"
  36398. abstract="false" native="false" synchronized="true"
  36399. static="false" final="false" visibility="public"
  36400. deprecated="not deprecated">
  36401. <doc>
  36402. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  36403. @return the set of TokenIdentifiers belonging to this UGI]]>
  36404. </doc>
  36405. </method>
  36406. <method name="addToken" return="boolean"
  36407. abstract="false" native="false" synchronized="true"
  36408. static="false" final="false" visibility="public"
  36409. deprecated="not deprecated">
  36410. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36411. <doc>
  36412. <![CDATA[Add a token to this UGI
  36413. @param token Token to be added
  36414. @return true on successful add of new token]]>
  36415. </doc>
  36416. </method>
  36417. <method name="getTokens" return="java.util.Collection"
  36418. abstract="false" native="false" synchronized="true"
  36419. static="false" final="false" visibility="public"
  36420. deprecated="not deprecated">
  36421. <doc>
  36422. <![CDATA[Obtain the collection of tokens associated with this user.
  36423. @return an unmodifiable collection of tokens associated with user]]>
  36424. </doc>
  36425. </method>
  36426. <method name="getGroupNames" return="java.lang.String[]"
  36427. abstract="false" native="false" synchronized="true"
  36428. static="false" final="false" visibility="public"
  36429. deprecated="not deprecated">
  36430. <doc>
  36431. <![CDATA[Get the group names for this user.
  36432. @return the list of users with the primary group first. If the command
  36433. fails, it returns an empty list.]]>
  36434. </doc>
  36435. </method>
  36436. <method name="toString" return="java.lang.String"
  36437. abstract="false" native="false" synchronized="false"
  36438. static="false" final="false" visibility="public"
  36439. deprecated="not deprecated">
  36440. <doc>
  36441. <![CDATA[Return the username.]]>
  36442. </doc>
  36443. </method>
  36444. <method name="setAuthenticationMethod"
  36445. abstract="false" native="false" synchronized="true"
  36446. static="false" final="false" visibility="public"
  36447. deprecated="not deprecated">
  36448. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  36449. <doc>
  36450. <![CDATA[Sets the authentication method in the subject
  36451. @param authMethod]]>
  36452. </doc>
  36453. </method>
  36454. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36455. abstract="false" native="false" synchronized="true"
  36456. static="false" final="false" visibility="public"
  36457. deprecated="not deprecated">
  36458. <doc>
  36459. <![CDATA[Get the authentication method from the subject
  36460. @return AuthenticationMethod in the subject, null if not present.]]>
  36461. </doc>
  36462. </method>
  36463. <method name="equals" return="boolean"
  36464. abstract="false" native="false" synchronized="false"
  36465. static="false" final="false" visibility="public"
  36466. deprecated="not deprecated">
  36467. <param name="o" type="java.lang.Object"/>
  36468. <doc>
  36469. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  36470. </doc>
  36471. </method>
  36472. <method name="hashCode" return="int"
  36473. abstract="false" native="false" synchronized="false"
  36474. static="false" final="false" visibility="public"
  36475. deprecated="not deprecated">
  36476. <doc>
  36477. <![CDATA[Return the hash of the subject.]]>
  36478. </doc>
  36479. </method>
  36480. <method name="getSubject" return="javax.security.auth.Subject"
  36481. abstract="false" native="false" synchronized="false"
  36482. static="false" final="false" visibility="protected"
  36483. deprecated="not deprecated">
  36484. <doc>
  36485. <![CDATA[Get the underlying subject from this ugi.
  36486. @return the subject that represents this user.]]>
  36487. </doc>
  36488. </method>
  36489. <method name="doAs" return="java.lang.Object"
  36490. abstract="false" native="false" synchronized="false"
  36491. static="false" final="false" visibility="public"
  36492. deprecated="not deprecated">
  36493. <param name="action" type="java.security.PrivilegedAction"/>
  36494. <doc>
  36495. <![CDATA[Run the given action as the user.
  36496. @param <T> the return type of the run method
  36497. @param action the method to execute
  36498. @return the value from the run method]]>
  36499. </doc>
  36500. </method>
  36501. <method name="doAs" return="java.lang.Object"
  36502. abstract="false" native="false" synchronized="false"
  36503. static="false" final="false" visibility="public"
  36504. deprecated="not deprecated">
  36505. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  36506. <exception name="IOException" type="java.io.IOException"/>
  36507. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36508. <doc>
  36509. <![CDATA[Run the given action as the user, potentially throwing an exception.
  36510. @param <T> the return type of the run method
  36511. @param action the method to execute
  36512. @return the value from the run method
  36513. @throws IOException if the action throws an IOException
  36514. @throws Error if the action throws an Error
  36515. @throws RuntimeException if the action throws a RuntimeException
  36516. @throws InterruptedException if the action throws an InterruptedException
  36517. @throws UndeclaredThrowableException if the action throws something else]]>
  36518. </doc>
  36519. </method>
  36520. <method name="main"
  36521. abstract="false" native="false" synchronized="false"
  36522. static="true" final="false" visibility="public"
  36523. deprecated="not deprecated">
  36524. <param name="args" type="java.lang.String[]"/>
  36525. <exception name="Exception" type="java.lang.Exception"/>
  36526. <doc>
  36527. <![CDATA[A test method to print out the current user's UGI.
  36528. @param args if there are two arguments, read the user from the keytab
  36529. and print it out.
  36530. @throws Exception]]>
  36531. </doc>
  36532. </method>
  36533. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  36534. transient="false" volatile="false"
  36535. static="true" final="true" visibility="public"
  36536. deprecated="not deprecated">
  36537. <doc>
  36538. <![CDATA[Environment variable pointing to the token cache file]]>
  36539. </doc>
  36540. </field>
  36541. <doc>
  36542. <![CDATA[User and group information for Hadoop.
  36543. This class wraps around a JAAS Subject and provides methods to determine the
  36544. user's username and groups. It supports both the Windows, Unix and Kerberos
  36545. login modules.]]>
  36546. </doc>
  36547. </class>
  36548. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  36549. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  36550. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  36551. abstract="false"
  36552. static="true" final="true" visibility="public"
  36553. deprecated="not deprecated">
  36554. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  36555. abstract="false" native="false" synchronized="false"
  36556. static="true" final="false" visibility="public"
  36557. deprecated="not deprecated">
  36558. </method>
  36559. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36560. abstract="false" native="false" synchronized="false"
  36561. static="true" final="false" visibility="public"
  36562. deprecated="not deprecated">
  36563. <param name="name" type="java.lang.String"/>
  36564. </method>
  36565. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36566. transient="false" volatile="false"
  36567. static="true" final="true" visibility="public"
  36568. deprecated="not deprecated">
  36569. </field>
  36570. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36571. transient="false" volatile="false"
  36572. static="true" final="true" visibility="public"
  36573. deprecated="not deprecated">
  36574. </field>
  36575. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36576. transient="false" volatile="false"
  36577. static="true" final="true" visibility="public"
  36578. deprecated="not deprecated">
  36579. </field>
  36580. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36581. transient="false" volatile="false"
  36582. static="true" final="true" visibility="public"
  36583. deprecated="not deprecated">
  36584. </field>
  36585. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36586. transient="false" volatile="false"
  36587. static="true" final="true" visibility="public"
  36588. deprecated="not deprecated">
  36589. </field>
  36590. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36591. transient="false" volatile="false"
  36592. static="true" final="true" visibility="public"
  36593. deprecated="not deprecated">
  36594. </field>
  36595. <doc>
  36596. <![CDATA[existing types of authentications' methods]]>
  36597. </doc>
  36598. </class>
  36599. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  36600. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  36601. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  36602. abstract="false"
  36603. static="true" final="false" visibility="public"
  36604. deprecated="not deprecated">
  36605. <implements name="javax.security.auth.spi.LoginModule"/>
  36606. <constructor name="UserGroupInformation.HadoopLoginModule"
  36607. static="false" final="false" visibility="public"
  36608. deprecated="not deprecated">
  36609. </constructor>
  36610. <method name="abort" return="boolean"
  36611. abstract="false" native="false" synchronized="false"
  36612. static="false" final="false" visibility="public"
  36613. deprecated="not deprecated">
  36614. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36615. </method>
  36616. <method name="commit" return="boolean"
  36617. abstract="false" native="false" synchronized="false"
  36618. static="false" final="false" visibility="public"
  36619. deprecated="not deprecated">
  36620. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36621. </method>
  36622. <method name="initialize"
  36623. abstract="false" native="false" synchronized="false"
  36624. static="false" final="false" visibility="public"
  36625. deprecated="not deprecated">
  36626. <param name="subject" type="javax.security.auth.Subject"/>
  36627. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  36628. <param name="sharedState" type="java.util.Map"/>
  36629. <param name="options" type="java.util.Map"/>
  36630. </method>
  36631. <method name="login" return="boolean"
  36632. abstract="false" native="false" synchronized="false"
  36633. static="false" final="false" visibility="public"
  36634. deprecated="not deprecated">
  36635. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36636. </method>
  36637. <method name="logout" return="boolean"
  36638. abstract="false" native="false" synchronized="false"
  36639. static="false" final="false" visibility="public"
  36640. deprecated="not deprecated">
  36641. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36642. </method>
  36643. <doc>
  36644. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  36645. adds the corresponding UserName.]]>
  36646. </doc>
  36647. </class>
  36648. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  36649. </package>
  36650. <package name="org.apache.hadoop.security.authentication.client">
  36651. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  36652. <class name="AuthenticatedURL" extends="java.lang.Object"
  36653. abstract="false"
  36654. static="false" final="false" visibility="public"
  36655. deprecated="not deprecated">
  36656. <constructor name="AuthenticatedURL"
  36657. static="false" final="false" visibility="public"
  36658. deprecated="not deprecated">
  36659. <doc>
  36660. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  36661. </doc>
  36662. </constructor>
  36663. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  36664. static="false" final="false" visibility="public"
  36665. deprecated="not deprecated">
  36666. <doc>
  36667. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  36668. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  36669. KerberosAuthenticator} is used.]]>
  36670. </doc>
  36671. </constructor>
  36672. <method name="setDefaultAuthenticator"
  36673. abstract="false" native="false" synchronized="false"
  36674. static="true" final="false" visibility="public"
  36675. deprecated="not deprecated">
  36676. <param name="authenticator" type="java.lang.Class"/>
  36677. <doc>
  36678. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  36679. is created without specifying an authenticator.
  36680. @param authenticator the authenticator class to use as default.]]>
  36681. </doc>
  36682. </method>
  36683. <method name="getDefaultAuthenticator" return="java.lang.Class"
  36684. abstract="false" native="false" synchronized="false"
  36685. static="true" final="false" visibility="public"
  36686. deprecated="not deprecated">
  36687. <doc>
  36688. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  36689. is created without specifying an authenticator.
  36690. @return the authenticator class to use as default.]]>
  36691. </doc>
  36692. </method>
  36693. <method name="openConnection" return="java.net.HttpURLConnection"
  36694. abstract="false" native="false" synchronized="false"
  36695. static="false" final="false" visibility="public"
  36696. deprecated="not deprecated">
  36697. <param name="url" type="java.net.URL"/>
  36698. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36699. <exception name="IOException" type="java.io.IOException"/>
  36700. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36701. <doc>
  36702. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  36703. @param url the URL to connect to. Only HTTP/S URLs are supported.
  36704. @param token the authentication token being used for the user.
  36705. @return an authenticated {@link HttpURLConnection}.
  36706. @throws IOException if an IO error occurred.
  36707. @throws AuthenticationException if an authentication exception occurred.]]>
  36708. </doc>
  36709. </method>
  36710. <method name="injectToken"
  36711. abstract="false" native="false" synchronized="false"
  36712. static="true" final="false" visibility="public"
  36713. deprecated="not deprecated">
  36714. <param name="conn" type="java.net.HttpURLConnection"/>
  36715. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36716. <doc>
  36717. <![CDATA[Helper method that injects an authentication token to send with a connection.
  36718. @param conn connection to inject the authentication token into.
  36719. @param token authentication token to inject.]]>
  36720. </doc>
  36721. </method>
  36722. <method name="extractToken"
  36723. abstract="false" native="false" synchronized="false"
  36724. static="true" final="false" visibility="public"
  36725. deprecated="not deprecated">
  36726. <param name="conn" type="java.net.HttpURLConnection"/>
  36727. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36728. <exception name="IOException" type="java.io.IOException"/>
  36729. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36730. <doc>
  36731. <![CDATA[Helper method that extracts an authentication token received from a connection.
  36732. <p/>
  36733. This method is used by {@link Authenticator} implementations.
  36734. @param conn connection to extract the authentication token from.
  36735. @param token the authentication token.
  36736. @throws IOException if an IO error occurred.
  36737. @throws AuthenticationException if an authentication exception occurred.]]>
  36738. </doc>
  36739. </method>
  36740. <field name="AUTH_COOKIE" type="java.lang.String"
  36741. transient="false" volatile="false"
  36742. static="true" final="true" visibility="public"
  36743. deprecated="not deprecated">
  36744. <doc>
  36745. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  36746. </doc>
  36747. </field>
  36748. <doc>
  36749. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  36750. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  36751. <p/>
  36752. The authentication mechanisms supported by default are Hadoop Simple authentication
  36753. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  36754. <p/>
  36755. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  36756. <p/>
  36757. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  36758. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  36759. <p/>
  36760. <code>AuthenticatedURL</code> instances are not thread-safe.
  36761. <p/>
  36762. The usage pattern of the {@link AuthenticatedURL} is:
  36763. <p/>
  36764. <pre>
  36765. // establishing an initial connection
  36766. URL url = new URL("http://foo:8080/bar");
  36767. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  36768. AuthenticatedURL aUrl = new AuthenticatedURL();
  36769. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  36770. ....
  36771. // use the 'conn' instance
  36772. ....
  36773. // establishing a follow up connection using a token from the previous connection
  36774. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  36775. ....
  36776. // use the 'conn' instance
  36777. ....
  36778. </pre>]]>
  36779. </doc>
  36780. </class>
  36781. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  36782. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  36783. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  36784. abstract="false"
  36785. static="true" final="false" visibility="public"
  36786. deprecated="not deprecated">
  36787. <constructor name="AuthenticatedURL.Token"
  36788. static="false" final="false" visibility="public"
  36789. deprecated="not deprecated">
  36790. <doc>
  36791. <![CDATA[Creates a token.]]>
  36792. </doc>
  36793. </constructor>
  36794. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  36795. static="false" final="false" visibility="public"
  36796. deprecated="not deprecated">
  36797. <doc>
  36798. <![CDATA[Creates a token using an existing string representation of the token.
  36799. @param tokenStr string representation of the tokenStr.]]>
  36800. </doc>
  36801. </constructor>
  36802. <method name="isSet" return="boolean"
  36803. abstract="false" native="false" synchronized="false"
  36804. static="false" final="false" visibility="public"
  36805. deprecated="not deprecated">
  36806. <doc>
  36807. <![CDATA[Returns if a token from the server has been set.
  36808. @return if a token from the server has been set.]]>
  36809. </doc>
  36810. </method>
  36811. <method name="toString" return="java.lang.String"
  36812. abstract="false" native="false" synchronized="false"
  36813. static="false" final="false" visibility="public"
  36814. deprecated="not deprecated">
  36815. <doc>
  36816. <![CDATA[Returns the string representation of the token.
  36817. @return the string representation of the token.]]>
  36818. </doc>
  36819. </method>
  36820. <method name="hashCode" return="int"
  36821. abstract="false" native="false" synchronized="false"
  36822. static="false" final="false" visibility="public"
  36823. deprecated="not deprecated">
  36824. <doc>
  36825. <![CDATA[Return the hashcode for the token.
  36826. @return the hashcode for the token.]]>
  36827. </doc>
  36828. </method>
  36829. <method name="equals" return="boolean"
  36830. abstract="false" native="false" synchronized="false"
  36831. static="false" final="false" visibility="public"
  36832. deprecated="not deprecated">
  36833. <param name="o" type="java.lang.Object"/>
  36834. <doc>
  36835. <![CDATA[Return if two token instances are equal.
  36836. @param o the other token instance.
  36837. @return if this instance and the other instance are equal.]]>
  36838. </doc>
  36839. </method>
  36840. <doc>
  36841. <![CDATA[Client side authentication token.]]>
  36842. </doc>
  36843. </class>
  36844. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  36845. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  36846. <class name="AuthenticationException" extends="java.lang.Exception"
  36847. abstract="false"
  36848. static="false" final="false" visibility="public"
  36849. deprecated="not deprecated">
  36850. <constructor name="AuthenticationException" type="java.lang.Throwable"
  36851. static="false" final="false" visibility="public"
  36852. deprecated="not deprecated">
  36853. <doc>
  36854. <![CDATA[Creates an {@link AuthenticationException}.
  36855. @param cause original exception.]]>
  36856. </doc>
  36857. </constructor>
  36858. <constructor name="AuthenticationException" type="java.lang.String"
  36859. static="false" final="false" visibility="public"
  36860. deprecated="not deprecated">
  36861. <doc>
  36862. <![CDATA[Creates an {@link AuthenticationException}.
  36863. @param msg exception message.]]>
  36864. </doc>
  36865. </constructor>
  36866. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  36867. static="false" final="false" visibility="public"
  36868. deprecated="not deprecated">
  36869. <doc>
  36870. <![CDATA[Creates an {@link AuthenticationException}.
  36871. @param msg exception message.
  36872. @param cause original exception.]]>
  36873. </doc>
  36874. </constructor>
  36875. <doc>
  36876. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  36877. </doc>
  36878. </class>
  36879. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  36880. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  36881. <interface name="Authenticator" abstract="true"
  36882. static="false" final="false" visibility="public"
  36883. deprecated="not deprecated">
  36884. <method name="authenticate"
  36885. abstract="false" native="false" synchronized="false"
  36886. static="false" final="false" visibility="public"
  36887. deprecated="not deprecated">
  36888. <param name="url" type="java.net.URL"/>
  36889. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36890. <exception name="IOException" type="java.io.IOException"/>
  36891. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36892. <doc>
  36893. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  36894. used by subsequent requests.
  36895. @param url the URl to authenticate against.
  36896. @param token the authentication token being used for the user.
  36897. @throws IOException if an IO error occurred.
  36898. @throws AuthenticationException if an authentication error occurred.]]>
  36899. </doc>
  36900. </method>
  36901. <doc>
  36902. <![CDATA[Interface for client authentication mechanisms.
  36903. <p/>
  36904. Implementations are use-once instances, they don't need to be thread safe.]]>
  36905. </doc>
  36906. </interface>
  36907. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  36908. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  36909. <class name="KerberosAuthenticator" extends="java.lang.Object"
  36910. abstract="false"
  36911. static="false" final="false" visibility="public"
  36912. deprecated="not deprecated">
  36913. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  36914. <constructor name="KerberosAuthenticator"
  36915. static="false" final="false" visibility="public"
  36916. deprecated="not deprecated">
  36917. </constructor>
  36918. <method name="authenticate"
  36919. abstract="false" native="false" synchronized="false"
  36920. static="false" final="false" visibility="public"
  36921. deprecated="not deprecated">
  36922. <param name="url" type="java.net.URL"/>
  36923. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36924. <exception name="IOException" type="java.io.IOException"/>
  36925. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36926. <doc>
  36927. <![CDATA[Performs SPNEGO authentication against the specified URL.
  36928. <p/>
  36929. If a token is given it does a NOP and returns the given token.
  36930. <p/>
  36931. If no token is given, it will perform the SPNEGO authentication sequence using an
  36932. HTTP <code>OPTIONS</code> request.
  36933. @param url the URl to authenticate against.
  36934. @param token the authentication token being used for the user.
  36935. @throws IOException if an IO error occurred.
  36936. @throws AuthenticationException if an authentication error occurred.]]>
  36937. </doc>
  36938. </method>
  36939. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  36940. abstract="false" native="false" synchronized="false"
  36941. static="false" final="false" visibility="protected"
  36942. deprecated="not deprecated">
  36943. <doc>
  36944. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  36945. <p/>
  36946. This implementation returns a {@link PseudoAuthenticator}.
  36947. @return the fallback {@link Authenticator}.]]>
  36948. </doc>
  36949. </method>
  36950. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  36951. transient="false" volatile="false"
  36952. static="true" final="true" visibility="public"
  36953. deprecated="not deprecated">
  36954. <doc>
  36955. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  36956. </doc>
  36957. </field>
  36958. <field name="AUTHORIZATION" type="java.lang.String"
  36959. transient="false" volatile="false"
  36960. static="true" final="true" visibility="public"
  36961. deprecated="not deprecated">
  36962. <doc>
  36963. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  36964. </doc>
  36965. </field>
  36966. <field name="NEGOTIATE" type="java.lang.String"
  36967. transient="false" volatile="false"
  36968. static="true" final="true" visibility="public"
  36969. deprecated="not deprecated">
  36970. <doc>
  36971. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  36972. </doc>
  36973. </field>
  36974. <doc>
  36975. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  36976. <p/>
  36977. It uses the default principal for the Kerberos cache (normally set via kinit).
  36978. <p/>
  36979. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  36980. sequence.]]>
  36981. </doc>
  36982. </class>
  36983. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  36984. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  36985. <class name="PseudoAuthenticator" extends="java.lang.Object"
  36986. abstract="false"
  36987. static="false" final="false" visibility="public"
  36988. deprecated="not deprecated">
  36989. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  36990. <constructor name="PseudoAuthenticator"
  36991. static="false" final="false" visibility="public"
  36992. deprecated="not deprecated">
  36993. </constructor>
  36994. <method name="authenticate"
  36995. abstract="false" native="false" synchronized="false"
  36996. static="false" final="false" visibility="public"
  36997. deprecated="not deprecated">
  36998. <param name="url" type="java.net.URL"/>
  36999. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37000. <exception name="IOException" type="java.io.IOException"/>
  37001. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37002. <doc>
  37003. <![CDATA[Performs simple authentication against the specified URL.
  37004. <p/>
  37005. If a token is given it does a NOP and returns the given token.
  37006. <p/>
  37007. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  37008. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  37009. method.
  37010. <p/>
  37011. If the response is successful it will update the authentication token.
  37012. @param url the URl to authenticate against.
  37013. @param token the authencation token being used for the user.
  37014. @throws IOException if an IO error occurred.
  37015. @throws AuthenticationException if an authentication error occurred.]]>
  37016. </doc>
  37017. </method>
  37018. <method name="getUserName" return="java.lang.String"
  37019. abstract="false" native="false" synchronized="false"
  37020. static="false" final="false" visibility="protected"
  37021. deprecated="not deprecated">
  37022. <doc>
  37023. <![CDATA[Returns the current user name.
  37024. <p/>
  37025. This implementation returns the value of the Java system property 'user.name'
  37026. @return the current user name.]]>
  37027. </doc>
  37028. </method>
  37029. <field name="USER_NAME" type="java.lang.String"
  37030. transient="false" volatile="false"
  37031. static="true" final="true" visibility="public"
  37032. deprecated="not deprecated">
  37033. <doc>
  37034. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  37035. </doc>
  37036. </field>
  37037. <doc>
  37038. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  37039. Simple authentication, it trusts the value of the 'user.name' Java System property.
  37040. <p/>
  37041. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  37042. </doc>
  37043. </class>
  37044. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37045. </package>
  37046. <package name="org.apache.hadoop.security.authentication.server">
  37047. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37048. <class name="AuthenticationFilter" extends="java.lang.Object"
  37049. abstract="false"
  37050. static="false" final="false" visibility="public"
  37051. deprecated="not deprecated">
  37052. <implements name="javax.servlet.Filter"/>
  37053. <constructor name="AuthenticationFilter"
  37054. static="false" final="false" visibility="public"
  37055. deprecated="not deprecated">
  37056. </constructor>
  37057. <method name="init"
  37058. abstract="false" native="false" synchronized="false"
  37059. static="false" final="false" visibility="public"
  37060. deprecated="not deprecated">
  37061. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37062. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37063. <doc>
  37064. <![CDATA[Initializes the authentication filter.
  37065. <p/>
  37066. It instantiates and initializes the specified {@link AuthenticationHandler}.
  37067. <p/>
  37068. @param filterConfig filter configuration.
  37069. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  37070. </doc>
  37071. </method>
  37072. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  37073. abstract="false" native="false" synchronized="false"
  37074. static="false" final="false" visibility="protected"
  37075. deprecated="not deprecated">
  37076. <doc>
  37077. <![CDATA[Returns the authentication handler being used.
  37078. @return the authentication handler being used.]]>
  37079. </doc>
  37080. </method>
  37081. <method name="isRandomSecret" return="boolean"
  37082. abstract="false" native="false" synchronized="false"
  37083. static="false" final="false" visibility="protected"
  37084. deprecated="not deprecated">
  37085. <doc>
  37086. <![CDATA[Returns if a random secret is being used.
  37087. @return if a random secret is being used.]]>
  37088. </doc>
  37089. </method>
  37090. <method name="getValidity" return="long"
  37091. abstract="false" native="false" synchronized="false"
  37092. static="false" final="false" visibility="protected"
  37093. deprecated="not deprecated">
  37094. <doc>
  37095. <![CDATA[Returns the validity time of the generated tokens.
  37096. @return the validity time of the generated tokens, in seconds.]]>
  37097. </doc>
  37098. </method>
  37099. <method name="getCookieDomain" return="java.lang.String"
  37100. abstract="false" native="false" synchronized="false"
  37101. static="false" final="false" visibility="protected"
  37102. deprecated="not deprecated">
  37103. <doc>
  37104. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  37105. @return the cookie domain to use for the HTTP cookie.]]>
  37106. </doc>
  37107. </method>
  37108. <method name="getCookiePath" return="java.lang.String"
  37109. abstract="false" native="false" synchronized="false"
  37110. static="false" final="false" visibility="protected"
  37111. deprecated="not deprecated">
  37112. <doc>
  37113. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  37114. @return the cookie path to use for the HTTP cookie.]]>
  37115. </doc>
  37116. </method>
  37117. <method name="destroy"
  37118. abstract="false" native="false" synchronized="false"
  37119. static="false" final="false" visibility="public"
  37120. deprecated="not deprecated">
  37121. <doc>
  37122. <![CDATA[Destroys the filter.
  37123. <p/>
  37124. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  37125. </doc>
  37126. </method>
  37127. <method name="getConfiguration" return="java.util.Properties"
  37128. abstract="false" native="false" synchronized="false"
  37129. static="false" final="false" visibility="protected"
  37130. deprecated="not deprecated">
  37131. <param name="configPrefix" type="java.lang.String"/>
  37132. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37133. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37134. <doc>
  37135. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  37136. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  37137. {@link AuthenticationHandler}.
  37138. <p/>
  37139. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  37140. the web.xml file.
  37141. @param configPrefix configuration prefix to use for extracting configuration properties.
  37142. @param filterConfig filter configuration object
  37143. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  37144. @throws ServletException thrown if the configuration could not be created.]]>
  37145. </doc>
  37146. </method>
  37147. <method name="getRequestURL" return="java.lang.String"
  37148. abstract="false" native="false" synchronized="false"
  37149. static="false" final="false" visibility="protected"
  37150. deprecated="not deprecated">
  37151. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37152. <doc>
  37153. <![CDATA[Returns the full URL of the request including the query string.
  37154. <p/>
  37155. Used as a convenience method for logging purposes.
  37156. @param request the request object.
  37157. @return the full URL of the request including the query string.]]>
  37158. </doc>
  37159. </method>
  37160. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37161. abstract="false" native="false" synchronized="false"
  37162. static="false" final="false" visibility="protected"
  37163. deprecated="not deprecated">
  37164. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37165. <exception name="IOException" type="java.io.IOException"/>
  37166. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37167. <doc>
  37168. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  37169. <p/>
  37170. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  37171. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  37172. it.
  37173. <p/>
  37174. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  37175. to perform user authentication.
  37176. @param request request object.
  37177. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  37178. @throws IOException thrown if an IO error occurred.
  37179. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  37180. </doc>
  37181. </method>
  37182. <method name="doFilter"
  37183. abstract="false" native="false" synchronized="false"
  37184. static="false" final="false" visibility="public"
  37185. deprecated="not deprecated">
  37186. <param name="request" type="javax.servlet.ServletRequest"/>
  37187. <param name="response" type="javax.servlet.ServletResponse"/>
  37188. <param name="filterChain" type="javax.servlet.FilterChain"/>
  37189. <exception name="IOException" type="java.io.IOException"/>
  37190. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37191. <doc>
  37192. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  37193. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  37194. @param request the request object.
  37195. @param response the response object.
  37196. @param filterChain the filter chain object.
  37197. @throws IOException thrown if an IO error occurred.
  37198. @throws ServletException thrown if a processing error occurred.]]>
  37199. </doc>
  37200. </method>
  37201. <method name="createCookie" return="javax.servlet.http.Cookie"
  37202. abstract="false" native="false" synchronized="false"
  37203. static="false" final="false" visibility="protected"
  37204. deprecated="not deprecated">
  37205. <param name="token" type="java.lang.String"/>
  37206. <doc>
  37207. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  37208. <p/>
  37209. It sets the domain and path specified in the configuration.
  37210. @param token authentication token for the cookie.
  37211. @return the HTTP cookie.]]>
  37212. </doc>
  37213. </method>
  37214. <field name="CONFIG_PREFIX" type="java.lang.String"
  37215. transient="false" volatile="false"
  37216. static="true" final="true" visibility="public"
  37217. deprecated="not deprecated">
  37218. <doc>
  37219. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  37220. </doc>
  37221. </field>
  37222. <field name="AUTH_TYPE" type="java.lang.String"
  37223. transient="false" volatile="false"
  37224. static="true" final="true" visibility="public"
  37225. deprecated="not deprecated">
  37226. <doc>
  37227. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  37228. </doc>
  37229. </field>
  37230. <field name="SIGNATURE_SECRET" type="java.lang.String"
  37231. transient="false" volatile="false"
  37232. static="true" final="true" visibility="public"
  37233. deprecated="not deprecated">
  37234. <doc>
  37235. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  37236. </doc>
  37237. </field>
  37238. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  37239. transient="false" volatile="false"
  37240. static="true" final="true" visibility="public"
  37241. deprecated="not deprecated">
  37242. <doc>
  37243. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  37244. </doc>
  37245. </field>
  37246. <field name="COOKIE_DOMAIN" type="java.lang.String"
  37247. transient="false" volatile="false"
  37248. static="true" final="true" visibility="public"
  37249. deprecated="not deprecated">
  37250. <doc>
  37251. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  37252. </doc>
  37253. </field>
  37254. <field name="COOKIE_PATH" type="java.lang.String"
  37255. transient="false" volatile="false"
  37256. static="true" final="true" visibility="public"
  37257. deprecated="not deprecated">
  37258. <doc>
  37259. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  37260. </doc>
  37261. </field>
  37262. <doc>
  37263. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  37264. authentication mechanisms.
  37265. <p/>
  37266. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  37267. <p/>
  37268. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  37269. <p/>
  37270. This filter delegates to the configured authentication handler for authentication and once it obtains an
  37271. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  37272. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  37273. and lets the request proceed to the target resource.
  37274. <p/>
  37275. The supported configuration properties are:
  37276. <ul>
  37277. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  37278. is no prefix. See below for details on how/why this prefix is used.</li>
  37279. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  37280. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  37281. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  37282. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  37283. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  37284. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  37285. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  37286. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  37287. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  37288. </ul>
  37289. <p/>
  37290. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  37291. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  37292. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  37293. not start with the prefix will not be passed to the authentication handler initialization.]]>
  37294. </doc>
  37295. </class>
  37296. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37297. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37298. <interface name="AuthenticationHandler" abstract="true"
  37299. static="false" final="false" visibility="public"
  37300. deprecated="not deprecated">
  37301. <method name="getType" return="java.lang.String"
  37302. abstract="false" native="false" synchronized="false"
  37303. static="false" final="false" visibility="public"
  37304. deprecated="not deprecated">
  37305. <doc>
  37306. <![CDATA[Returns the authentication type of the authentication handler.
  37307. <p/>
  37308. This should be a name that uniquely identifies the authentication type.
  37309. For example 'simple' or 'kerberos'.
  37310. @return the authentication type of the authentication handler.]]>
  37311. </doc>
  37312. </method>
  37313. <method name="init"
  37314. abstract="false" native="false" synchronized="false"
  37315. static="false" final="false" visibility="public"
  37316. deprecated="not deprecated">
  37317. <param name="config" type="java.util.Properties"/>
  37318. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37319. <doc>
  37320. <![CDATA[Initializes the authentication handler instance.
  37321. <p/>
  37322. This method is invoked by the {@link AuthenticationFilter#init} method.
  37323. @param config configuration properties to initialize the handler.
  37324. @throws ServletException thrown if the handler could not be initialized.]]>
  37325. </doc>
  37326. </method>
  37327. <method name="destroy"
  37328. abstract="false" native="false" synchronized="false"
  37329. static="false" final="false" visibility="public"
  37330. deprecated="not deprecated">
  37331. <doc>
  37332. <![CDATA[Destroys the authentication handler instance.
  37333. <p/>
  37334. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  37335. </doc>
  37336. </method>
  37337. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37338. abstract="false" native="false" synchronized="false"
  37339. static="false" final="false" visibility="public"
  37340. deprecated="not deprecated">
  37341. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37342. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37343. <exception name="IOException" type="java.io.IOException"/>
  37344. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37345. <doc>
  37346. <![CDATA[Performs an authentication step for the given HTTP client request.
  37347. <p/>
  37348. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  37349. not yet authenticated.
  37350. <p/>
  37351. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  37352. end up making a sequence of invocations before authentication is successfully established (this is
  37353. the case of Kerberos SPNEGO).
  37354. <p/>
  37355. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  37356. been successfully and fully authenticated.
  37357. <p/>
  37358. If the HTTP client request has not been completely authenticated, this method must take over
  37359. the corresponding HTTP response and it must return <code>null</code>.
  37360. @param request the HTTP client request.
  37361. @param response the HTTP client response.
  37362. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  37363. <code>null</code> otherwise (in this case it must take care of the response).
  37364. @throws IOException thrown if an IO error occurred.
  37365. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  37366. </doc>
  37367. </method>
  37368. <doc>
  37369. <![CDATA[Interface for server authentication mechanisms.
  37370. <p/>
  37371. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  37372. <p/>
  37373. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  37374. </doc>
  37375. </interface>
  37376. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37377. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  37378. <class name="AuthenticationToken" extends="java.lang.Object"
  37379. abstract="false"
  37380. static="false" final="false" visibility="public"
  37381. deprecated="not deprecated">
  37382. <implements name="java.security.Principal"/>
  37383. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  37384. static="false" final="false" visibility="public"
  37385. deprecated="not deprecated">
  37386. <doc>
  37387. <![CDATA[Creates an authentication token.
  37388. @param userName user name.
  37389. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  37390. name while the userName is the short name).
  37391. @param type the authentication mechanism name.
  37392. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  37393. </doc>
  37394. </constructor>
  37395. <method name="setExpires"
  37396. abstract="false" native="false" synchronized="false"
  37397. static="false" final="false" visibility="public"
  37398. deprecated="not deprecated">
  37399. <param name="expires" type="long"/>
  37400. <doc>
  37401. <![CDATA[Sets the expiration of the token.
  37402. @param expires expiration time of the token in milliseconds since the epoch.]]>
  37403. </doc>
  37404. </method>
  37405. <method name="getUserName" return="java.lang.String"
  37406. abstract="false" native="false" synchronized="false"
  37407. static="false" final="false" visibility="public"
  37408. deprecated="not deprecated">
  37409. <doc>
  37410. <![CDATA[Returns the user name.
  37411. @return the user name.]]>
  37412. </doc>
  37413. </method>
  37414. <method name="getName" return="java.lang.String"
  37415. abstract="false" native="false" synchronized="false"
  37416. static="false" final="false" visibility="public"
  37417. deprecated="not deprecated">
  37418. <doc>
  37419. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  37420. @return the principal name.]]>
  37421. </doc>
  37422. </method>
  37423. <method name="getType" return="java.lang.String"
  37424. abstract="false" native="false" synchronized="false"
  37425. static="false" final="false" visibility="public"
  37426. deprecated="not deprecated">
  37427. <doc>
  37428. <![CDATA[Returns the authentication mechanism of the token.
  37429. @return the authentication mechanism of the token.]]>
  37430. </doc>
  37431. </method>
  37432. <method name="getExpires" return="long"
  37433. abstract="false" native="false" synchronized="false"
  37434. static="false" final="false" visibility="public"
  37435. deprecated="not deprecated">
  37436. <doc>
  37437. <![CDATA[Returns the expiration time of the token.
  37438. @return the expiration time of the token, in milliseconds since Epoc.]]>
  37439. </doc>
  37440. </method>
  37441. <method name="isExpired" return="boolean"
  37442. abstract="false" native="false" synchronized="false"
  37443. static="false" final="false" visibility="public"
  37444. deprecated="not deprecated">
  37445. <doc>
  37446. <![CDATA[Returns if the token has expired.
  37447. @return if the token has expired.]]>
  37448. </doc>
  37449. </method>
  37450. <method name="toString" return="java.lang.String"
  37451. abstract="false" native="false" synchronized="false"
  37452. static="false" final="false" visibility="public"
  37453. deprecated="not deprecated">
  37454. <doc>
  37455. <![CDATA[Returns the string representation of the token.
  37456. <p/>
  37457. This string representation is parseable by the {@link #parse} method.
  37458. @return the string representation of the token.]]>
  37459. </doc>
  37460. </method>
  37461. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37462. abstract="false" native="false" synchronized="false"
  37463. static="true" final="false" visibility="public"
  37464. deprecated="not deprecated">
  37465. <param name="tokenStr" type="java.lang.String"/>
  37466. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37467. <doc>
  37468. <![CDATA[Parses a string into an authentication token.
  37469. @param tokenStr string representation of a token.
  37470. @return the parsed authentication token.
  37471. @throws AuthenticationException thrown if the string representation could not be parsed into
  37472. an authentication token.]]>
  37473. </doc>
  37474. </method>
  37475. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37476. transient="false" volatile="false"
  37477. static="true" final="true" visibility="public"
  37478. deprecated="not deprecated">
  37479. <doc>
  37480. <![CDATA[Constant that identifies an anonymous request.]]>
  37481. </doc>
  37482. </field>
  37483. <doc>
  37484. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated
  37485. HTTP client and doubles as the {@link Principal} to be returned by
  37486. authenticated {@link HttpServletRequest}s
  37487. <p/>
  37488. The token can be serialized/deserialized to and from a string as it is sent
  37489. and received in HTTP client responses and requests as a HTTP cookie (this is
  37490. done by the {@link AuthenticationFilter}).]]>
  37491. </doc>
  37492. </class>
  37493. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  37494. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  37495. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  37496. abstract="false"
  37497. static="false" final="false" visibility="public"
  37498. deprecated="not deprecated">
  37499. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  37500. <constructor name="KerberosAuthenticationHandler"
  37501. static="false" final="false" visibility="public"
  37502. deprecated="not deprecated">
  37503. </constructor>
  37504. <method name="init"
  37505. abstract="false" native="false" synchronized="false"
  37506. static="false" final="false" visibility="public"
  37507. deprecated="not deprecated">
  37508. <param name="config" type="java.util.Properties"/>
  37509. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37510. <doc>
  37511. <![CDATA[Initializes the authentication handler instance.
  37512. <p/>
  37513. It creates a Kerberos context using the principal and keytab specified in the configuration.
  37514. <p/>
  37515. This method is invoked by the {@link AuthenticationFilter#init} method.
  37516. @param config configuration properties to initialize the handler.
  37517. @throws ServletException thrown if the handler could not be initialized.]]>
  37518. </doc>
  37519. </method>
  37520. <method name="destroy"
  37521. abstract="false" native="false" synchronized="false"
  37522. static="false" final="false" visibility="public"
  37523. deprecated="not deprecated">
  37524. <doc>
  37525. <![CDATA[Releases any resources initialized by the authentication handler.
  37526. <p/>
  37527. It destroys the Kerberos context.]]>
  37528. </doc>
  37529. </method>
  37530. <method name="getType" return="java.lang.String"
  37531. abstract="false" native="false" synchronized="false"
  37532. static="false" final="false" visibility="public"
  37533. deprecated="not deprecated">
  37534. <doc>
  37535. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  37536. <p/>
  37537. @return the authentication type of the authentication handler, 'kerberos'.]]>
  37538. </doc>
  37539. </method>
  37540. <method name="getPrincipal" return="java.lang.String"
  37541. abstract="false" native="false" synchronized="false"
  37542. static="false" final="false" visibility="protected"
  37543. deprecated="not deprecated">
  37544. <doc>
  37545. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  37546. @return the Kerberos principal used by the authentication handler.]]>
  37547. </doc>
  37548. </method>
  37549. <method name="getKeytab" return="java.lang.String"
  37550. abstract="false" native="false" synchronized="false"
  37551. static="false" final="false" visibility="protected"
  37552. deprecated="not deprecated">
  37553. <doc>
  37554. <![CDATA[Returns the keytab used by the authentication handler.
  37555. @return the keytab used by the authentication handler.]]>
  37556. </doc>
  37557. </method>
  37558. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37559. abstract="false" native="false" synchronized="false"
  37560. static="false" final="false" visibility="public"
  37561. deprecated="not deprecated">
  37562. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37563. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37564. <exception name="IOException" type="java.io.IOException"/>
  37565. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37566. <doc>
  37567. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  37568. after the Kerberos SPNEGO sequence has completed successfully.
  37569. <p/>
  37570. @param request the HTTP client request.
  37571. @param response the HTTP client response.
  37572. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  37573. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  37574. @throws IOException thrown if an IO error occurred.
  37575. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  37576. </doc>
  37577. </method>
  37578. <field name="TYPE" type="java.lang.String"
  37579. transient="false" volatile="false"
  37580. static="true" final="true" visibility="public"
  37581. deprecated="not deprecated">
  37582. <doc>
  37583. <![CDATA[Constant that identifies the authentication mechanism.]]>
  37584. </doc>
  37585. </field>
  37586. <field name="PRINCIPAL" type="java.lang.String"
  37587. transient="false" volatile="false"
  37588. static="true" final="true" visibility="public"
  37589. deprecated="not deprecated">
  37590. <doc>
  37591. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  37592. </doc>
  37593. </field>
  37594. <field name="KEYTAB" type="java.lang.String"
  37595. transient="false" volatile="false"
  37596. static="true" final="true" visibility="public"
  37597. deprecated="not deprecated">
  37598. <doc>
  37599. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  37600. </doc>
  37601. </field>
  37602. <field name="NAME_RULES" type="java.lang.String"
  37603. transient="false" volatile="false"
  37604. static="true" final="true" visibility="public"
  37605. deprecated="not deprecated">
  37606. <doc>
  37607. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  37608. rules for the Kerberos principals.]]>
  37609. </doc>
  37610. </field>
  37611. <doc>
  37612. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  37613. <p/>
  37614. The supported configuration properties are:
  37615. <ul>
  37616. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  37617. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  37618. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  37619. It does not have a default value.</li>
  37620. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  37621. It does not have a default value.</li>
  37622. </ul>]]>
  37623. </doc>
  37624. </class>
  37625. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  37626. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  37627. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  37628. abstract="false"
  37629. static="false" final="false" visibility="public"
  37630. deprecated="not deprecated">
  37631. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  37632. <constructor name="PseudoAuthenticationHandler"
  37633. static="false" final="false" visibility="public"
  37634. deprecated="not deprecated">
  37635. </constructor>
  37636. <method name="init"
  37637. abstract="false" native="false" synchronized="false"
  37638. static="false" final="false" visibility="public"
  37639. deprecated="not deprecated">
  37640. <param name="config" type="java.util.Properties"/>
  37641. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37642. <doc>
  37643. <![CDATA[Initializes the authentication handler instance.
  37644. <p/>
  37645. This method is invoked by the {@link AuthenticationFilter#init} method.
  37646. @param config configuration properties to initialize the handler.
  37647. @throws ServletException thrown if the handler could not be initialized.]]>
  37648. </doc>
  37649. </method>
  37650. <method name="getAcceptAnonymous" return="boolean"
  37651. abstract="false" native="false" synchronized="false"
  37652. static="false" final="false" visibility="protected"
  37653. deprecated="not deprecated">
  37654. <doc>
  37655. <![CDATA[Returns if the handler is configured to support anonymous users.
  37656. @return if the handler is configured to support anonymous users.]]>
  37657. </doc>
  37658. </method>
  37659. <method name="destroy"
  37660. abstract="false" native="false" synchronized="false"
  37661. static="false" final="false" visibility="public"
  37662. deprecated="not deprecated">
  37663. <doc>
  37664. <![CDATA[Releases any resources initialized by the authentication handler.
  37665. <p/>
  37666. This implementation does a NOP.]]>
  37667. </doc>
  37668. </method>
  37669. <method name="getType" return="java.lang.String"
  37670. abstract="false" native="false" synchronized="false"
  37671. static="false" final="false" visibility="public"
  37672. deprecated="not deprecated">
  37673. <doc>
  37674. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  37675. <p/>
  37676. @return the authentication type of the authentication handler, 'simple'.]]>
  37677. </doc>
  37678. </method>
  37679. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37680. abstract="false" native="false" synchronized="false"
  37681. static="false" final="false" visibility="public"
  37682. deprecated="not deprecated">
  37683. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37684. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37685. <exception name="IOException" type="java.io.IOException"/>
  37686. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37687. <doc>
  37688. <![CDATA[Authenticates an HTTP client request.
  37689. <p/>
  37690. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  37691. an {@link AuthenticationToken} with it.
  37692. <p/>
  37693. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  37694. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  37695. token.
  37696. <p/>
  37697. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  37698. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  37699. @param request the HTTP client request.
  37700. @param response the HTTP client response.
  37701. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  37702. @throws IOException thrown if an IO error occurred.
  37703. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  37704. </doc>
  37705. </method>
  37706. <field name="TYPE" type="java.lang.String"
  37707. transient="false" volatile="false"
  37708. static="true" final="true" visibility="public"
  37709. deprecated="not deprecated">
  37710. <doc>
  37711. <![CDATA[Constant that identifies the authentication mechanism.]]>
  37712. </doc>
  37713. </field>
  37714. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  37715. transient="false" volatile="false"
  37716. static="true" final="true" visibility="public"
  37717. deprecated="not deprecated">
  37718. <doc>
  37719. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  37720. </doc>
  37721. </field>
  37722. <doc>
  37723. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  37724. the user name specified as a query string parameter.
  37725. <p/>
  37726. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  37727. the configuration object.
  37728. <p/>
  37729. This handler can be configured to support anonymous users.
  37730. <p/>
  37731. The only supported configuration property is:
  37732. <ul>
  37733. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  37734. </ul>]]>
  37735. </doc>
  37736. </class>
  37737. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  37738. </package>
  37739. <package name="org.apache.hadoop.security.authentication.util">
  37740. <!-- start class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  37741. <class name="KerberosUtil" extends="java.lang.Object"
  37742. abstract="false"
  37743. static="false" final="false" visibility="public"
  37744. deprecated="not deprecated">
  37745. <constructor name="KerberosUtil"
  37746. static="false" final="false" visibility="public"
  37747. deprecated="not deprecated">
  37748. </constructor>
  37749. <method name="getKrb5LoginModuleName" return="java.lang.String"
  37750. abstract="false" native="false" synchronized="false"
  37751. static="true" final="false" visibility="public"
  37752. deprecated="not deprecated">
  37753. </method>
  37754. <method name="getOidInstance" return="org.ietf.jgss.Oid"
  37755. abstract="false" native="false" synchronized="false"
  37756. static="true" final="false" visibility="public"
  37757. deprecated="not deprecated">
  37758. <param name="oidName" type="java.lang.String"/>
  37759. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37760. <exception name="GSSException" type="org.ietf.jgss.GSSException"/>
  37761. <exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException"/>
  37762. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  37763. </method>
  37764. <method name="getDefaultRealm" return="java.lang.String"
  37765. abstract="false" native="false" synchronized="false"
  37766. static="true" final="false" visibility="public"
  37767. deprecated="not deprecated">
  37768. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37769. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  37770. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  37771. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  37772. <exception name="InvocationTargetException" type="java.lang.reflect.InvocationTargetException"/>
  37773. </method>
  37774. <method name="getServicePrincipal" return="java.lang.String"
  37775. abstract="false" native="false" synchronized="false"
  37776. static="true" final="true" visibility="public"
  37777. deprecated="not deprecated">
  37778. <param name="service" type="java.lang.String"/>
  37779. <param name="hostname" type="java.lang.String"/>
  37780. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  37781. <doc>
  37782. <![CDATA[Create Kerberos principal for a given service and hostname. It converts
  37783. hostname to lower case. If hostname is null or "0.0.0.0", it uses
  37784. dynamically looked-up fqdn of the current host instead.
  37785. @param service
  37786. Service for which you want to generate the principal.
  37787. @param hostname
  37788. Fully-qualified domain name.
  37789. @return Converted Kerberos principal name.
  37790. @throws UnknownHostException
  37791. If no IP address for the local host could be found.]]>
  37792. </doc>
  37793. </method>
  37794. </class>
  37795. <!-- end class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  37796. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  37797. <class name="Signer" extends="java.lang.Object"
  37798. abstract="false"
  37799. static="false" final="false" visibility="public"
  37800. deprecated="not deprecated">
  37801. <constructor name="Signer" type="byte[]"
  37802. static="false" final="false" visibility="public"
  37803. deprecated="not deprecated">
  37804. <doc>
  37805. <![CDATA[Creates a Signer instance using the specified secret.
  37806. @param secret secret to use for creating the digest.]]>
  37807. </doc>
  37808. </constructor>
  37809. <method name="sign" return="java.lang.String"
  37810. abstract="false" native="false" synchronized="false"
  37811. static="false" final="false" visibility="public"
  37812. deprecated="not deprecated">
  37813. <param name="str" type="java.lang.String"/>
  37814. <doc>
  37815. <![CDATA[Returns a signed string.
  37816. <p/>
  37817. The signature '&s=SIGNATURE' is appended at the end of the string.
  37818. @param str string to sign.
  37819. @return the signed string.]]>
  37820. </doc>
  37821. </method>
  37822. <method name="verifyAndExtract" return="java.lang.String"
  37823. abstract="false" native="false" synchronized="false"
  37824. static="false" final="false" visibility="public"
  37825. deprecated="not deprecated">
  37826. <param name="signedStr" type="java.lang.String"/>
  37827. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  37828. <doc>
  37829. <![CDATA[Verifies a signed string and extracts the original string.
  37830. @param signedStr the signed string to verify and extract.
  37831. @return the extracted original string.
  37832. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  37833. </doc>
  37834. </method>
  37835. <method name="computeSignature" return="java.lang.String"
  37836. abstract="false" native="false" synchronized="false"
  37837. static="false" final="false" visibility="protected"
  37838. deprecated="not deprecated">
  37839. <param name="str" type="java.lang.String"/>
  37840. <doc>
  37841. <![CDATA[Returns then signature of a string.
  37842. @param str string to sign.
  37843. @return the signature for the string.]]>
  37844. </doc>
  37845. </method>
  37846. <doc>
  37847. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  37848. </doc>
  37849. </class>
  37850. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  37851. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  37852. <class name="SignerException" extends="java.lang.Exception"
  37853. abstract="false"
  37854. static="false" final="false" visibility="public"
  37855. deprecated="not deprecated">
  37856. <constructor name="SignerException" type="java.lang.String"
  37857. static="false" final="false" visibility="public"
  37858. deprecated="not deprecated">
  37859. <doc>
  37860. <![CDATA[Creates an exception instance.
  37861. @param msg message for the exception.]]>
  37862. </doc>
  37863. </constructor>
  37864. <doc>
  37865. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  37866. </doc>
  37867. </class>
  37868. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  37869. </package>
  37870. <package name="org.apache.hadoop.security.authorize">
  37871. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  37872. <class name="AccessControlList" extends="java.lang.Object"
  37873. abstract="false"
  37874. static="false" final="false" visibility="public"
  37875. deprecated="not deprecated">
  37876. <implements name="org.apache.hadoop.io.Writable"/>
  37877. <constructor name="AccessControlList"
  37878. static="false" final="false" visibility="public"
  37879. deprecated="not deprecated">
  37880. <doc>
  37881. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  37882. </doc>
  37883. </constructor>
  37884. <constructor name="AccessControlList" type="java.lang.String"
  37885. static="false" final="false" visibility="public"
  37886. deprecated="not deprecated">
  37887. <doc>
  37888. <![CDATA[Construct a new ACL from a String representation of the same.
  37889. The String is a a comma separated list of users and groups.
  37890. The user list comes first and is separated by a space followed
  37891. by the group list. For e.g. "user1,user2 group1,group2"
  37892. @param aclString String representation of the ACL]]>
  37893. </doc>
  37894. </constructor>
  37895. <method name="isAllAllowed" return="boolean"
  37896. abstract="false" native="false" synchronized="false"
  37897. static="false" final="false" visibility="public"
  37898. deprecated="not deprecated">
  37899. </method>
  37900. <method name="addUser"
  37901. abstract="false" native="false" synchronized="false"
  37902. static="false" final="false" visibility="public"
  37903. deprecated="not deprecated">
  37904. <param name="user" type="java.lang.String"/>
  37905. </method>
  37906. <method name="isUserAllowed" return="boolean"
  37907. abstract="false" native="false" synchronized="false"
  37908. static="false" final="false" visibility="public"
  37909. deprecated="not deprecated">
  37910. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  37911. </method>
  37912. <method name="toString" return="java.lang.String"
  37913. abstract="false" native="false" synchronized="false"
  37914. static="false" final="false" visibility="public"
  37915. deprecated="not deprecated">
  37916. </method>
  37917. <method name="write"
  37918. abstract="false" native="false" synchronized="false"
  37919. static="false" final="false" visibility="public"
  37920. deprecated="not deprecated">
  37921. <param name="out" type="java.io.DataOutput"/>
  37922. <exception name="IOException" type="java.io.IOException"/>
  37923. </method>
  37924. <method name="readFields"
  37925. abstract="false" native="false" synchronized="false"
  37926. static="false" final="false" visibility="public"
  37927. deprecated="not deprecated">
  37928. <param name="in" type="java.io.DataInput"/>
  37929. <exception name="IOException" type="java.io.IOException"/>
  37930. </method>
  37931. <method name="getACLString" return="java.lang.String"
  37932. abstract="false" native="false" synchronized="false"
  37933. static="false" final="false" visibility="public"
  37934. deprecated="not deprecated">
  37935. <doc>
  37936. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  37937. return value, this String can be directly given to the constructor of
  37938. AccessControlList to build AccessControlList object.
  37939. This is the method used by the serialization method write().]]>
  37940. </doc>
  37941. </method>
  37942. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  37943. transient="false" volatile="false"
  37944. static="true" final="true" visibility="public"
  37945. deprecated="not deprecated">
  37946. </field>
  37947. <doc>
  37948. <![CDATA[Class representing a configured access control list.]]>
  37949. </doc>
  37950. </class>
  37951. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  37952. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  37953. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  37954. abstract="false"
  37955. static="false" final="false" visibility="public"
  37956. deprecated="not deprecated">
  37957. <constructor name="AuthorizationException"
  37958. static="false" final="false" visibility="public"
  37959. deprecated="not deprecated">
  37960. </constructor>
  37961. <constructor name="AuthorizationException" type="java.lang.String"
  37962. static="false" final="false" visibility="public"
  37963. deprecated="not deprecated">
  37964. </constructor>
  37965. <constructor name="AuthorizationException" type="java.lang.Throwable"
  37966. static="false" final="false" visibility="public"
  37967. deprecated="not deprecated">
  37968. <doc>
  37969. <![CDATA[Constructs a new exception with the specified cause and a detail
  37970. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  37971. typically contains the class and detail message of <tt>cause</tt>).
  37972. @param cause the cause (which is saved for later retrieval by the
  37973. {@link #getCause()} method). (A <tt>null</tt> value is
  37974. permitted, and indicates that the cause is nonexistent or
  37975. unknown.)]]>
  37976. </doc>
  37977. </constructor>
  37978. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  37979. abstract="false" native="false" synchronized="false"
  37980. static="false" final="false" visibility="public"
  37981. deprecated="not deprecated">
  37982. </method>
  37983. <method name="printStackTrace"
  37984. abstract="false" native="false" synchronized="false"
  37985. static="false" final="false" visibility="public"
  37986. deprecated="not deprecated">
  37987. </method>
  37988. <method name="printStackTrace"
  37989. abstract="false" native="false" synchronized="false"
  37990. static="false" final="false" visibility="public"
  37991. deprecated="not deprecated">
  37992. <param name="s" type="java.io.PrintStream"/>
  37993. </method>
  37994. <method name="printStackTrace"
  37995. abstract="false" native="false" synchronized="false"
  37996. static="false" final="false" visibility="public"
  37997. deprecated="not deprecated">
  37998. <param name="s" type="java.io.PrintWriter"/>
  37999. </method>
  38000. <doc>
  38001. <![CDATA[An exception class for authorization-related issues.
  38002. This class <em>does not</em> provide the stack trace for security purposes.]]>
  38003. </doc>
  38004. </class>
  38005. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  38006. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  38007. <class name="PolicyProvider" extends="java.lang.Object"
  38008. abstract="true"
  38009. static="false" final="false" visibility="public"
  38010. deprecated="not deprecated">
  38011. <constructor name="PolicyProvider"
  38012. static="false" final="false" visibility="public"
  38013. deprecated="not deprecated">
  38014. </constructor>
  38015. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  38016. abstract="true" native="false" synchronized="false"
  38017. static="false" final="false" visibility="public"
  38018. deprecated="not deprecated">
  38019. <doc>
  38020. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  38021. @return the {@link Service} definitions]]>
  38022. </doc>
  38023. </method>
  38024. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  38025. transient="false" volatile="false"
  38026. static="true" final="true" visibility="public"
  38027. deprecated="not deprecated">
  38028. <doc>
  38029. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  38030. </doc>
  38031. </field>
  38032. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  38033. transient="false" volatile="false"
  38034. static="true" final="true" visibility="public"
  38035. deprecated="not deprecated">
  38036. <doc>
  38037. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  38038. </doc>
  38039. </field>
  38040. <doc>
  38041. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  38042. security {@link Policy} in effect for Hadoop.]]>
  38043. </doc>
  38044. </class>
  38045. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  38046. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  38047. <class name="ProxyUsers" extends="java.lang.Object"
  38048. abstract="false"
  38049. static="false" final="false" visibility="public"
  38050. deprecated="not deprecated">
  38051. <constructor name="ProxyUsers"
  38052. static="false" final="false" visibility="public"
  38053. deprecated="not deprecated">
  38054. </constructor>
  38055. <method name="refreshSuperUserGroupsConfiguration"
  38056. abstract="false" native="false" synchronized="false"
  38057. static="true" final="false" visibility="public"
  38058. deprecated="not deprecated">
  38059. <doc>
  38060. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  38061. </doc>
  38062. </method>
  38063. <method name="refreshSuperUserGroupsConfiguration"
  38064. abstract="false" native="false" synchronized="true"
  38065. static="true" final="false" visibility="public"
  38066. deprecated="not deprecated">
  38067. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38068. <doc>
  38069. <![CDATA[refresh configuration
  38070. @param conf]]>
  38071. </doc>
  38072. </method>
  38073. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  38074. abstract="false" native="false" synchronized="false"
  38075. static="true" final="false" visibility="public"
  38076. deprecated="not deprecated">
  38077. <param name="userName" type="java.lang.String"/>
  38078. <doc>
  38079. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  38080. @param userName name of the superuser
  38081. @return configuration key for superuser groups]]>
  38082. </doc>
  38083. </method>
  38084. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  38085. abstract="false" native="false" synchronized="false"
  38086. static="true" final="false" visibility="public"
  38087. deprecated="not deprecated">
  38088. <param name="userName" type="java.lang.String"/>
  38089. <doc>
  38090. <![CDATA[Return configuration key for superuser ip addresses
  38091. @param userName name of the superuser
  38092. @return configuration key for superuser ip-addresses]]>
  38093. </doc>
  38094. </method>
  38095. <method name="authorize"
  38096. abstract="false" native="false" synchronized="true"
  38097. static="true" final="false" visibility="public"
  38098. deprecated="not deprecated">
  38099. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38100. <param name="remoteAddress" type="java.lang.String"/>
  38101. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  38102. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38103. <doc>
  38104. <![CDATA[Authorize the superuser which is doing doAs
  38105. @param user ugi of the effective or proxy user which contains a real user
  38106. @param remoteAddress the ip address of client
  38107. @param newConf configuration
  38108. @throws AuthorizationException]]>
  38109. </doc>
  38110. </method>
  38111. <field name="CONF_GROUPS" type="java.lang.String"
  38112. transient="false" volatile="false"
  38113. static="true" final="true" visibility="public"
  38114. deprecated="not deprecated">
  38115. </field>
  38116. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  38117. transient="false" volatile="false"
  38118. static="true" final="true" visibility="public"
  38119. deprecated="not deprecated">
  38120. </field>
  38121. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  38122. transient="false" volatile="false"
  38123. static="true" final="true" visibility="public"
  38124. deprecated="not deprecated">
  38125. </field>
  38126. </class>
  38127. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  38128. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38129. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  38130. static="false" final="false" visibility="public"
  38131. deprecated="not deprecated">
  38132. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  38133. <method name="refreshServiceAcl"
  38134. abstract="false" native="false" synchronized="false"
  38135. static="false" final="false" visibility="public"
  38136. deprecated="not deprecated">
  38137. <exception name="IOException" type="java.io.IOException"/>
  38138. <doc>
  38139. <![CDATA[Refresh the service-level authorization policy in-effect.
  38140. @throws IOException]]>
  38141. </doc>
  38142. </method>
  38143. <field name="versionID" type="long"
  38144. transient="false" volatile="false"
  38145. static="true" final="true" visibility="public"
  38146. deprecated="not deprecated">
  38147. <doc>
  38148. <![CDATA[Version 1: Initial version]]>
  38149. </doc>
  38150. </field>
  38151. <doc>
  38152. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  38153. </doc>
  38154. </interface>
  38155. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38156. <!-- start class org.apache.hadoop.security.authorize.Service -->
  38157. <class name="Service" extends="java.lang.Object"
  38158. abstract="false"
  38159. static="false" final="false" visibility="public"
  38160. deprecated="not deprecated">
  38161. <constructor name="Service" type="java.lang.String, java.lang.Class"
  38162. static="false" final="false" visibility="public"
  38163. deprecated="not deprecated">
  38164. </constructor>
  38165. <method name="getServiceKey" return="java.lang.String"
  38166. abstract="false" native="false" synchronized="false"
  38167. static="false" final="false" visibility="public"
  38168. deprecated="not deprecated">
  38169. <doc>
  38170. <![CDATA[Get the configuration key for the service.
  38171. @return the configuration key for the service]]>
  38172. </doc>
  38173. </method>
  38174. <method name="getProtocol" return="java.lang.Class"
  38175. abstract="false" native="false" synchronized="false"
  38176. static="false" final="false" visibility="public"
  38177. deprecated="not deprecated">
  38178. <doc>
  38179. <![CDATA[Get the protocol for the service
  38180. @return the {@link Class} for the protocol]]>
  38181. </doc>
  38182. </method>
  38183. <doc>
  38184. <![CDATA[An abstract definition of <em>service</em> as related to
  38185. Service Level Authorization for Hadoop.
  38186. Each service defines it's configuration key and also the necessary
  38187. {@link Permission} required to access the service.]]>
  38188. </doc>
  38189. </class>
  38190. <!-- end class org.apache.hadoop.security.authorize.Service -->
  38191. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38192. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  38193. abstract="false"
  38194. static="false" final="false" visibility="public"
  38195. deprecated="not deprecated">
  38196. <constructor name="ServiceAuthorizationManager"
  38197. static="false" final="false" visibility="public"
  38198. deprecated="not deprecated">
  38199. </constructor>
  38200. <method name="authorize"
  38201. abstract="false" native="false" synchronized="false"
  38202. static="true" final="false" visibility="public"
  38203. deprecated="not deprecated">
  38204. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38205. <param name="protocol" type="java.lang.Class"/>
  38206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38207. <param name="addr" type="java.net.InetAddress"/>
  38208. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38209. <doc>
  38210. <![CDATA[Authorize the user to access the protocol being used.
  38211. @param user user accessing the service
  38212. @param protocol service being accessed
  38213. @param conf configuration to use
  38214. @param addr InetAddress of the client
  38215. @throws AuthorizationException on authorization failure]]>
  38216. </doc>
  38217. </method>
  38218. <method name="refresh"
  38219. abstract="false" native="false" synchronized="true"
  38220. static="true" final="false" visibility="public"
  38221. deprecated="not deprecated">
  38222. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38223. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  38224. </method>
  38225. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  38226. transient="false" volatile="false"
  38227. static="true" final="true" visibility="public"
  38228. deprecated="Use
  38229. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38230. instead.">
  38231. <doc>
  38232. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  38233. @deprecated Use
  38234. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38235. instead.]]>
  38236. </doc>
  38237. </field>
  38238. <doc>
  38239. <![CDATA[An authorization manager which handles service-level authorization
  38240. for incoming service requests.]]>
  38241. </doc>
  38242. </class>
  38243. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38244. </package>
  38245. <package name="org.apache.hadoop.security.token">
  38246. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  38247. <class name="SecretManager" extends="java.lang.Object"
  38248. abstract="true"
  38249. static="false" final="false" visibility="public"
  38250. deprecated="not deprecated">
  38251. <constructor name="SecretManager"
  38252. static="false" final="false" visibility="public"
  38253. deprecated="not deprecated">
  38254. </constructor>
  38255. <method name="createPassword" return="byte[]"
  38256. abstract="true" native="false" synchronized="false"
  38257. static="false" final="false" visibility="protected"
  38258. deprecated="not deprecated">
  38259. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38260. <doc>
  38261. <![CDATA[Create the password for the given identifier.
  38262. identifier may be modified inside this method.
  38263. @param identifier the identifier to use
  38264. @return the new password]]>
  38265. </doc>
  38266. </method>
  38267. <method name="retrievePassword" return="byte[]"
  38268. abstract="true" native="false" synchronized="false"
  38269. static="false" final="false" visibility="public"
  38270. deprecated="not deprecated">
  38271. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38272. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38273. <doc>
  38274. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  38275. or registry to make sure the token hasn't expired or been revoked. Returns
  38276. the relevant password.
  38277. @param identifier the identifier to validate
  38278. @return the password to use
  38279. @throws InvalidToken the token was invalid]]>
  38280. </doc>
  38281. </method>
  38282. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  38283. abstract="true" native="false" synchronized="false"
  38284. static="false" final="false" visibility="public"
  38285. deprecated="not deprecated">
  38286. <doc>
  38287. <![CDATA[Create an empty token identifier.
  38288. @return the newly created empty token identifier]]>
  38289. </doc>
  38290. </method>
  38291. <method name="generateSecret" return="javax.crypto.SecretKey"
  38292. abstract="false" native="false" synchronized="false"
  38293. static="false" final="false" visibility="protected"
  38294. deprecated="not deprecated">
  38295. <doc>
  38296. <![CDATA[Generate a new random secret key.
  38297. @return the new key]]>
  38298. </doc>
  38299. </method>
  38300. <method name="createPassword" return="byte[]"
  38301. abstract="false" native="false" synchronized="false"
  38302. static="true" final="false" visibility="protected"
  38303. deprecated="not deprecated">
  38304. <param name="identifier" type="byte[]"/>
  38305. <param name="key" type="javax.crypto.SecretKey"/>
  38306. <doc>
  38307. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  38308. output as password
  38309. @param identifier the bytes of the identifier
  38310. @param key the secret key
  38311. @return the bytes of the generated password]]>
  38312. </doc>
  38313. </method>
  38314. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38315. abstract="false" native="false" synchronized="false"
  38316. static="true" final="false" visibility="protected"
  38317. deprecated="not deprecated">
  38318. <param name="key" type="byte[]"/>
  38319. <doc>
  38320. <![CDATA[Convert the byte[] to a secret key
  38321. @param key the byte[] to create a secret key from
  38322. @return the secret key]]>
  38323. </doc>
  38324. </method>
  38325. <doc>
  38326. <![CDATA[The server-side secret manager for each token type.
  38327. @param <T> The type of the token identifier]]>
  38328. </doc>
  38329. </class>
  38330. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  38331. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38332. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  38333. abstract="false"
  38334. static="true" final="false" visibility="public"
  38335. deprecated="not deprecated">
  38336. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  38337. static="false" final="false" visibility="public"
  38338. deprecated="not deprecated">
  38339. </constructor>
  38340. <doc>
  38341. <![CDATA[The token was invalid and the message explains why.]]>
  38342. </doc>
  38343. </class>
  38344. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38345. <!-- start class org.apache.hadoop.security.token.Token -->
  38346. <class name="Token" extends="java.lang.Object"
  38347. abstract="false"
  38348. static="false" final="false" visibility="public"
  38349. deprecated="not deprecated">
  38350. <implements name="org.apache.hadoop.io.Writable"/>
  38351. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  38352. static="false" final="false" visibility="public"
  38353. deprecated="not deprecated">
  38354. <doc>
  38355. <![CDATA[Construct a token given a token identifier and a secret manager for the
  38356. type of the token identifier.
  38357. @param id the token identifier
  38358. @param mgr the secret manager]]>
  38359. </doc>
  38360. </constructor>
  38361. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <doc>
  38365. <![CDATA[Construct a token from the components.
  38366. @param identifier the token identifier
  38367. @param password the token's password
  38368. @param kind the kind of token
  38369. @param service the service for this token]]>
  38370. </doc>
  38371. </constructor>
  38372. <constructor name="Token"
  38373. static="false" final="false" visibility="public"
  38374. deprecated="not deprecated">
  38375. <doc>
  38376. <![CDATA[Default constructor]]>
  38377. </doc>
  38378. </constructor>
  38379. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  38380. static="false" final="false" visibility="public"
  38381. deprecated="not deprecated">
  38382. <doc>
  38383. <![CDATA[Clone a token.
  38384. @param other the token to clone]]>
  38385. </doc>
  38386. </constructor>
  38387. <method name="getIdentifier" return="byte[]"
  38388. abstract="false" native="false" synchronized="false"
  38389. static="false" final="false" visibility="public"
  38390. deprecated="not deprecated">
  38391. <doc>
  38392. <![CDATA[Get the token identifier
  38393. @return the token identifier]]>
  38394. </doc>
  38395. </method>
  38396. <method name="getPassword" return="byte[]"
  38397. abstract="false" native="false" synchronized="false"
  38398. static="false" final="false" visibility="public"
  38399. deprecated="not deprecated">
  38400. <doc>
  38401. <![CDATA[Get the token password/secret
  38402. @return the token password/secret]]>
  38403. </doc>
  38404. </method>
  38405. <method name="getKind" return="org.apache.hadoop.io.Text"
  38406. abstract="false" native="false" synchronized="false"
  38407. static="false" final="false" visibility="public"
  38408. deprecated="not deprecated">
  38409. <doc>
  38410. <![CDATA[Get the token kind
  38411. @return the kind of the token]]>
  38412. </doc>
  38413. </method>
  38414. <method name="setKind"
  38415. abstract="false" native="false" synchronized="true"
  38416. static="false" final="false" visibility="public"
  38417. deprecated="not deprecated">
  38418. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  38419. <doc>
  38420. <![CDATA[Set the token kind. This is only intended to be used by services that
  38421. wrap another service's token, such as HFTP wrapping HDFS.
  38422. @param newKind]]>
  38423. </doc>
  38424. </method>
  38425. <method name="getService" return="org.apache.hadoop.io.Text"
  38426. abstract="false" native="false" synchronized="false"
  38427. static="false" final="false" visibility="public"
  38428. deprecated="not deprecated">
  38429. <doc>
  38430. <![CDATA[Get the service on which the token is supposed to be used
  38431. @return the service name]]>
  38432. </doc>
  38433. </method>
  38434. <method name="setService"
  38435. abstract="false" native="false" synchronized="false"
  38436. static="false" final="false" visibility="public"
  38437. deprecated="not deprecated">
  38438. <param name="newService" type="org.apache.hadoop.io.Text"/>
  38439. <doc>
  38440. <![CDATA[Set the service on which the token is supposed to be used
  38441. @param newService the service name]]>
  38442. </doc>
  38443. </method>
  38444. <method name="readFields"
  38445. abstract="false" native="false" synchronized="false"
  38446. static="false" final="false" visibility="public"
  38447. deprecated="not deprecated">
  38448. <param name="in" type="java.io.DataInput"/>
  38449. <exception name="IOException" type="java.io.IOException"/>
  38450. <doc>
  38451. <![CDATA[{@inheritDoc}]]>
  38452. </doc>
  38453. </method>
  38454. <method name="write"
  38455. abstract="false" native="false" synchronized="false"
  38456. static="false" final="false" visibility="public"
  38457. deprecated="not deprecated">
  38458. <param name="out" type="java.io.DataOutput"/>
  38459. <exception name="IOException" type="java.io.IOException"/>
  38460. <doc>
  38461. <![CDATA[{@inheritDoc}]]>
  38462. </doc>
  38463. </method>
  38464. <method name="encodeToUrlString" return="java.lang.String"
  38465. abstract="false" native="false" synchronized="false"
  38466. static="false" final="false" visibility="public"
  38467. deprecated="not deprecated">
  38468. <exception name="IOException" type="java.io.IOException"/>
  38469. <doc>
  38470. <![CDATA[Encode this token as a url safe string
  38471. @return the encoded string
  38472. @throws IOException]]>
  38473. </doc>
  38474. </method>
  38475. <method name="decodeFromUrlString"
  38476. abstract="false" native="false" synchronized="false"
  38477. static="false" final="false" visibility="public"
  38478. deprecated="not deprecated">
  38479. <param name="newValue" type="java.lang.String"/>
  38480. <exception name="IOException" type="java.io.IOException"/>
  38481. <doc>
  38482. <![CDATA[Decode the given url safe string into this token.
  38483. @param newValue the encoded string
  38484. @throws IOException]]>
  38485. </doc>
  38486. </method>
  38487. <method name="equals" return="boolean"
  38488. abstract="false" native="false" synchronized="false"
  38489. static="false" final="false" visibility="public"
  38490. deprecated="not deprecated">
  38491. <param name="right" type="java.lang.Object"/>
  38492. </method>
  38493. <method name="hashCode" return="int"
  38494. abstract="false" native="false" synchronized="false"
  38495. static="false" final="false" visibility="public"
  38496. deprecated="not deprecated">
  38497. </method>
  38498. <method name="toString" return="java.lang.String"
  38499. abstract="false" native="false" synchronized="false"
  38500. static="false" final="false" visibility="public"
  38501. deprecated="not deprecated">
  38502. </method>
  38503. <method name="isManaged" return="boolean"
  38504. abstract="false" native="false" synchronized="false"
  38505. static="false" final="false" visibility="public"
  38506. deprecated="not deprecated">
  38507. <exception name="IOException" type="java.io.IOException"/>
  38508. <doc>
  38509. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  38510. @return true, if it can be renewed and cancelled.]]>
  38511. </doc>
  38512. </method>
  38513. <method name="renew" return="long"
  38514. abstract="false" native="false" synchronized="false"
  38515. static="false" final="false" visibility="public"
  38516. deprecated="not deprecated">
  38517. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38518. <exception name="IOException" type="java.io.IOException"/>
  38519. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38520. <doc>
  38521. <![CDATA[Renew this delegation token
  38522. @return the new expiration time
  38523. @throws IOException
  38524. @throws InterruptedException]]>
  38525. </doc>
  38526. </method>
  38527. <method name="cancel"
  38528. abstract="false" native="false" synchronized="false"
  38529. static="false" final="false" visibility="public"
  38530. deprecated="not deprecated">
  38531. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38532. <exception name="IOException" type="java.io.IOException"/>
  38533. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38534. <doc>
  38535. <![CDATA[Cancel this delegation token
  38536. @throws IOException
  38537. @throws InterruptedException]]>
  38538. </doc>
  38539. </method>
  38540. <field name="LOG" type="org.apache.commons.logging.Log"
  38541. transient="false" volatile="false"
  38542. static="true" final="true" visibility="public"
  38543. deprecated="not deprecated">
  38544. </field>
  38545. <doc>
  38546. <![CDATA[The client-side form of the token.]]>
  38547. </doc>
  38548. </class>
  38549. <!-- end class org.apache.hadoop.security.token.Token -->
  38550. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  38551. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  38552. abstract="false"
  38553. static="true" final="false" visibility="public"
  38554. deprecated="not deprecated">
  38555. <constructor name="Token.TrivialRenewer"
  38556. static="false" final="false" visibility="public"
  38557. deprecated="not deprecated">
  38558. </constructor>
  38559. <method name="getKind" return="org.apache.hadoop.io.Text"
  38560. abstract="false" native="false" synchronized="false"
  38561. static="false" final="false" visibility="protected"
  38562. deprecated="not deprecated">
  38563. </method>
  38564. <method name="handleKind" return="boolean"
  38565. abstract="false" native="false" synchronized="false"
  38566. static="false" final="false" visibility="public"
  38567. deprecated="not deprecated">
  38568. <param name="kind" type="org.apache.hadoop.io.Text"/>
  38569. </method>
  38570. <method name="isManaged" return="boolean"
  38571. abstract="false" native="false" synchronized="false"
  38572. static="false" final="false" visibility="public"
  38573. deprecated="not deprecated">
  38574. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38575. </method>
  38576. <method name="renew" return="long"
  38577. abstract="false" native="false" synchronized="false"
  38578. static="false" final="false" visibility="public"
  38579. deprecated="not deprecated">
  38580. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38581. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38582. </method>
  38583. <method name="cancel"
  38584. abstract="false" native="false" synchronized="false"
  38585. static="false" final="false" visibility="public"
  38586. deprecated="not deprecated">
  38587. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38589. <exception name="IOException" type="java.io.IOException"/>
  38590. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38591. </method>
  38592. <doc>
  38593. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  38594. to implement getKind for their token kind.]]>
  38595. </doc>
  38596. </class>
  38597. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  38598. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  38599. <class name="TokenIdentifier" extends="java.lang.Object"
  38600. abstract="true"
  38601. static="false" final="false" visibility="public"
  38602. deprecated="not deprecated">
  38603. <implements name="org.apache.hadoop.io.Writable"/>
  38604. <constructor name="TokenIdentifier"
  38605. static="false" final="false" visibility="public"
  38606. deprecated="not deprecated">
  38607. </constructor>
  38608. <method name="getKind" return="org.apache.hadoop.io.Text"
  38609. abstract="true" native="false" synchronized="false"
  38610. static="false" final="false" visibility="public"
  38611. deprecated="not deprecated">
  38612. <doc>
  38613. <![CDATA[Get the token kind
  38614. @return the kind of the token]]>
  38615. </doc>
  38616. </method>
  38617. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  38618. abstract="true" native="false" synchronized="false"
  38619. static="false" final="false" visibility="public"
  38620. deprecated="not deprecated">
  38621. <doc>
  38622. <![CDATA[Get the Ugi with the username encoded in the token identifier
  38623. @return the username. null is returned if username in the identifier is
  38624. empty or null.]]>
  38625. </doc>
  38626. </method>
  38627. <method name="getBytes" return="byte[]"
  38628. abstract="false" native="false" synchronized="false"
  38629. static="false" final="false" visibility="public"
  38630. deprecated="not deprecated">
  38631. <doc>
  38632. <![CDATA[Get the bytes for the token identifier
  38633. @return the bytes of the identifier]]>
  38634. </doc>
  38635. </method>
  38636. <doc>
  38637. <![CDATA[An identifier that identifies a token, may contain public information
  38638. about a token, including its kind (or type).]]>
  38639. </doc>
  38640. </class>
  38641. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  38642. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  38643. <interface name="TokenInfo" abstract="true"
  38644. static="false" final="false" visibility="public"
  38645. deprecated="not deprecated">
  38646. <implements name="java.lang.annotation.Annotation"/>
  38647. <method name="value" return="java.lang.Class"
  38648. abstract="false" native="false" synchronized="false"
  38649. static="false" final="false" visibility="public"
  38650. deprecated="not deprecated">
  38651. <doc>
  38652. <![CDATA[The type of TokenSelector to be used]]>
  38653. </doc>
  38654. </method>
  38655. <doc>
  38656. <![CDATA[Indicates Token related information to be used]]>
  38657. </doc>
  38658. </interface>
  38659. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  38660. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  38661. <class name="TokenRenewer" extends="java.lang.Object"
  38662. abstract="true"
  38663. static="false" final="false" visibility="public"
  38664. deprecated="not deprecated">
  38665. <constructor name="TokenRenewer"
  38666. static="false" final="false" visibility="public"
  38667. deprecated="not deprecated">
  38668. </constructor>
  38669. <method name="handleKind" return="boolean"
  38670. abstract="true" native="false" synchronized="false"
  38671. static="false" final="false" visibility="public"
  38672. deprecated="not deprecated">
  38673. <param name="kind" type="org.apache.hadoop.io.Text"/>
  38674. <doc>
  38675. <![CDATA[Does this renewer handle this kind of token?
  38676. @param kind the kind of the token
  38677. @return true if this renewer can renew it]]>
  38678. </doc>
  38679. </method>
  38680. <method name="isManaged" return="boolean"
  38681. abstract="true" native="false" synchronized="false"
  38682. static="false" final="false" visibility="public"
  38683. deprecated="not deprecated">
  38684. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38685. <exception name="IOException" type="java.io.IOException"/>
  38686. <doc>
  38687. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  38688. cancelled.
  38689. @param token the token being checked
  38690. @return true if the token may be renewed or cancelled
  38691. @throws IOException]]>
  38692. </doc>
  38693. </method>
  38694. <method name="renew" return="long"
  38695. abstract="true" native="false" synchronized="false"
  38696. static="false" final="false" visibility="public"
  38697. deprecated="not deprecated">
  38698. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38700. <exception name="IOException" type="java.io.IOException"/>
  38701. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38702. <doc>
  38703. <![CDATA[Renew the given token.
  38704. @return the new expiration time
  38705. @throws IOException
  38706. @throws InterruptedException]]>
  38707. </doc>
  38708. </method>
  38709. <method name="cancel"
  38710. abstract="true" native="false" synchronized="false"
  38711. static="false" final="false" visibility="public"
  38712. deprecated="not deprecated">
  38713. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38714. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38715. <exception name="IOException" type="java.io.IOException"/>
  38716. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38717. <doc>
  38718. <![CDATA[Cancel the given token
  38719. @throws IOException
  38720. @throws InterruptedException]]>
  38721. </doc>
  38722. </method>
  38723. <doc>
  38724. <![CDATA[This is the interface for plugins that handle tokens.]]>
  38725. </doc>
  38726. </class>
  38727. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  38728. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  38729. <interface name="TokenSelector" abstract="true"
  38730. static="false" final="false" visibility="public"
  38731. deprecated="not deprecated">
  38732. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  38733. abstract="false" native="false" synchronized="false"
  38734. static="false" final="false" visibility="public"
  38735. deprecated="not deprecated">
  38736. <param name="service" type="org.apache.hadoop.io.Text"/>
  38737. <param name="tokens" type="java.util.Collection"/>
  38738. </method>
  38739. <doc>
  38740. <![CDATA[Select token of type T from tokens for use with named service
  38741. @param <T>
  38742. T extends TokenIdentifier]]>
  38743. </doc>
  38744. </interface>
  38745. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  38746. </package>
  38747. <package name="org.apache.hadoop.security.token.delegation">
  38748. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  38749. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  38750. abstract="true"
  38751. static="false" final="false" visibility="public"
  38752. deprecated="not deprecated">
  38753. <constructor name="AbstractDelegationTokenIdentifier"
  38754. static="false" final="false" visibility="public"
  38755. deprecated="not deprecated">
  38756. </constructor>
  38757. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  38758. static="false" final="false" visibility="public"
  38759. deprecated="not deprecated">
  38760. </constructor>
  38761. <method name="getKind" return="org.apache.hadoop.io.Text"
  38762. abstract="true" native="false" synchronized="false"
  38763. static="false" final="false" visibility="public"
  38764. deprecated="not deprecated">
  38765. </method>
  38766. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  38767. abstract="false" native="false" synchronized="false"
  38768. static="false" final="false" visibility="public"
  38769. deprecated="not deprecated">
  38770. <doc>
  38771. <![CDATA[Get the username encoded in the token identifier
  38772. @return the username or owner]]>
  38773. </doc>
  38774. </method>
  38775. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  38776. abstract="false" native="false" synchronized="false"
  38777. static="false" final="false" visibility="public"
  38778. deprecated="not deprecated">
  38779. </method>
  38780. <method name="setIssueDate"
  38781. abstract="false" native="false" synchronized="false"
  38782. static="false" final="false" visibility="public"
  38783. deprecated="not deprecated">
  38784. <param name="issueDate" type="long"/>
  38785. </method>
  38786. <method name="getIssueDate" return="long"
  38787. abstract="false" native="false" synchronized="false"
  38788. static="false" final="false" visibility="public"
  38789. deprecated="not deprecated">
  38790. </method>
  38791. <method name="setMaxDate"
  38792. abstract="false" native="false" synchronized="false"
  38793. static="false" final="false" visibility="public"
  38794. deprecated="not deprecated">
  38795. <param name="maxDate" type="long"/>
  38796. </method>
  38797. <method name="getMaxDate" return="long"
  38798. abstract="false" native="false" synchronized="false"
  38799. static="false" final="false" visibility="public"
  38800. deprecated="not deprecated">
  38801. </method>
  38802. <method name="setSequenceNumber"
  38803. abstract="false" native="false" synchronized="false"
  38804. static="false" final="false" visibility="public"
  38805. deprecated="not deprecated">
  38806. <param name="seqNum" type="int"/>
  38807. </method>
  38808. <method name="getSequenceNumber" return="int"
  38809. abstract="false" native="false" synchronized="false"
  38810. static="false" final="false" visibility="public"
  38811. deprecated="not deprecated">
  38812. </method>
  38813. <method name="setMasterKeyId"
  38814. abstract="false" native="false" synchronized="false"
  38815. static="false" final="false" visibility="public"
  38816. deprecated="not deprecated">
  38817. <param name="newId" type="int"/>
  38818. </method>
  38819. <method name="getMasterKeyId" return="int"
  38820. abstract="false" native="false" synchronized="false"
  38821. static="false" final="false" visibility="public"
  38822. deprecated="not deprecated">
  38823. </method>
  38824. <method name="equals" return="boolean"
  38825. abstract="false" native="false" synchronized="false"
  38826. static="false" final="false" visibility="public"
  38827. deprecated="not deprecated">
  38828. <param name="obj" type="java.lang.Object"/>
  38829. <doc>
  38830. <![CDATA[{@inheritDoc}]]>
  38831. </doc>
  38832. </method>
  38833. <method name="hashCode" return="int"
  38834. abstract="false" native="false" synchronized="false"
  38835. static="false" final="false" visibility="public"
  38836. deprecated="not deprecated">
  38837. <doc>
  38838. <![CDATA[{@inheritDoc}]]>
  38839. </doc>
  38840. </method>
  38841. <method name="readFields"
  38842. abstract="false" native="false" synchronized="false"
  38843. static="false" final="false" visibility="public"
  38844. deprecated="not deprecated">
  38845. <param name="in" type="java.io.DataInput"/>
  38846. <exception name="IOException" type="java.io.IOException"/>
  38847. </method>
  38848. <method name="write"
  38849. abstract="false" native="false" synchronized="false"
  38850. static="false" final="false" visibility="public"
  38851. deprecated="not deprecated">
  38852. <param name="out" type="java.io.DataOutput"/>
  38853. <exception name="IOException" type="java.io.IOException"/>
  38854. </method>
  38855. <method name="toString" return="java.lang.String"
  38856. abstract="false" native="false" synchronized="false"
  38857. static="false" final="false" visibility="public"
  38858. deprecated="not deprecated">
  38859. </method>
  38860. </class>
  38861. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  38862. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  38863. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  38864. abstract="true"
  38865. static="false" final="false" visibility="public"
  38866. deprecated="not deprecated">
  38867. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  38868. static="false" final="false" visibility="public"
  38869. deprecated="not deprecated">
  38870. </constructor>
  38871. <method name="startThreads"
  38872. abstract="false" native="false" synchronized="true"
  38873. static="false" final="false" visibility="public"
  38874. deprecated="not deprecated">
  38875. <exception name="IOException" type="java.io.IOException"/>
  38876. <doc>
  38877. <![CDATA[should be called before this object is used]]>
  38878. </doc>
  38879. </method>
  38880. <method name="isRunning" return="boolean"
  38881. abstract="false" native="false" synchronized="true"
  38882. static="false" final="false" visibility="public"
  38883. deprecated="not deprecated">
  38884. <doc>
  38885. <![CDATA[is secretMgr running
  38886. @return true if secret mgr is running]]>
  38887. </doc>
  38888. </method>
  38889. <method name="addKey"
  38890. abstract="false" native="false" synchronized="true"
  38891. static="false" final="false" visibility="public"
  38892. deprecated="not deprecated">
  38893. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  38894. <exception name="IOException" type="java.io.IOException"/>
  38895. <doc>
  38896. <![CDATA[Add a previously used master key to cache (when NN restarts),
  38897. should be called before activate().]]>
  38898. </doc>
  38899. </method>
  38900. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  38901. abstract="false" native="false" synchronized="true"
  38902. static="false" final="false" visibility="public"
  38903. deprecated="not deprecated">
  38904. </method>
  38905. <method name="logUpdateMasterKey"
  38906. abstract="false" native="false" synchronized="false"
  38907. static="false" final="false" visibility="protected"
  38908. deprecated="not deprecated">
  38909. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  38910. <exception name="IOException" type="java.io.IOException"/>
  38911. </method>
  38912. <method name="createPassword" return="byte[]"
  38913. abstract="false" native="false" synchronized="true"
  38914. static="false" final="false" visibility="protected"
  38915. deprecated="not deprecated">
  38916. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38917. </method>
  38918. <method name="retrievePassword" return="byte[]"
  38919. abstract="false" native="false" synchronized="true"
  38920. static="false" final="false" visibility="public"
  38921. deprecated="not deprecated">
  38922. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38923. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38924. </method>
  38925. <method name="verifyToken"
  38926. abstract="false" native="false" synchronized="true"
  38927. static="false" final="false" visibility="public"
  38928. deprecated="not deprecated">
  38929. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38930. <param name="password" type="byte[]"/>
  38931. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38932. <doc>
  38933. <![CDATA[Verifies that the given identifier and password are valid and match.
  38934. @param identifier Token identifier.
  38935. @param password Password in the token.
  38936. @throws InvalidToken]]>
  38937. </doc>
  38938. </method>
  38939. <method name="renewToken" return="long"
  38940. abstract="false" native="false" synchronized="true"
  38941. static="false" final="false" visibility="public"
  38942. deprecated="not deprecated">
  38943. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38944. <param name="renewer" type="java.lang.String"/>
  38945. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38946. <exception name="IOException" type="java.io.IOException"/>
  38947. <doc>
  38948. <![CDATA[Renew a delegation token.
  38949. @param token the token to renew
  38950. @param renewer the full principal name of the user doing the renewal
  38951. @return the new expiration time
  38952. @throws InvalidToken if the token is invalid
  38953. @throws AccessControlException if the user can't renew token]]>
  38954. </doc>
  38955. </method>
  38956. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  38957. abstract="false" native="false" synchronized="true"
  38958. static="false" final="false" visibility="public"
  38959. deprecated="not deprecated">
  38960. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38961. <param name="canceller" type="java.lang.String"/>
  38962. <exception name="IOException" type="java.io.IOException"/>
  38963. <doc>
  38964. <![CDATA[Cancel a token by removing it from cache.
  38965. @return Identifier of the canceled token
  38966. @throws InvalidToken for invalid token
  38967. @throws AccessControlException if the user isn't allowed to cancel]]>
  38968. </doc>
  38969. </method>
  38970. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38971. abstract="false" native="false" synchronized="false"
  38972. static="true" final="false" visibility="public"
  38973. deprecated="not deprecated">
  38974. <param name="key" type="byte[]"/>
  38975. <doc>
  38976. <![CDATA[Convert the byte[] to a secret key
  38977. @param key the byte[] to create the secret key from
  38978. @return the secret key]]>
  38979. </doc>
  38980. </method>
  38981. <method name="stopThreads"
  38982. abstract="false" native="false" synchronized="true"
  38983. static="false" final="false" visibility="public"
  38984. deprecated="not deprecated">
  38985. </method>
  38986. <field name="currentTokens" type="java.util.Map"
  38987. transient="false" volatile="false"
  38988. static="false" final="true" visibility="protected"
  38989. deprecated="not deprecated">
  38990. <doc>
  38991. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  38992. to DelegationTokenInformation. Protected by this object lock.]]>
  38993. </doc>
  38994. </field>
  38995. <field name="delegationTokenSequenceNumber" type="int"
  38996. transient="false" volatile="false"
  38997. static="false" final="false" visibility="protected"
  38998. deprecated="not deprecated">
  38999. <doc>
  39000. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  39001. Protected by this object lock.]]>
  39002. </doc>
  39003. </field>
  39004. <field name="allKeys" type="java.util.Map"
  39005. transient="false" volatile="false"
  39006. static="false" final="true" visibility="protected"
  39007. deprecated="not deprecated">
  39008. <doc>
  39009. <![CDATA[Access to allKeys is protected by this object lock]]>
  39010. </doc>
  39011. </field>
  39012. <field name="currentId" type="int"
  39013. transient="false" volatile="false"
  39014. static="false" final="false" visibility="protected"
  39015. deprecated="not deprecated">
  39016. <doc>
  39017. <![CDATA[Access to currentId is protected by this object lock.]]>
  39018. </doc>
  39019. </field>
  39020. <field name="running" type="boolean"
  39021. transient="false" volatile="true"
  39022. static="false" final="false" visibility="protected"
  39023. deprecated="not deprecated">
  39024. </field>
  39025. </class>
  39026. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  39027. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39028. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  39029. abstract="false"
  39030. static="true" final="false" visibility="public"
  39031. deprecated="not deprecated">
  39032. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  39033. static="false" final="false" visibility="public"
  39034. deprecated="not deprecated">
  39035. </constructor>
  39036. <method name="getRenewDate" return="long"
  39037. abstract="false" native="false" synchronized="false"
  39038. static="false" final="false" visibility="public"
  39039. deprecated="not deprecated">
  39040. <doc>
  39041. <![CDATA[returns renew date]]>
  39042. </doc>
  39043. </method>
  39044. <doc>
  39045. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  39046. </doc>
  39047. </class>
  39048. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39049. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39050. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  39051. abstract="false"
  39052. static="false" final="false" visibility="public"
  39053. deprecated="not deprecated">
  39054. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  39055. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  39056. static="false" final="false" visibility="protected"
  39057. deprecated="not deprecated">
  39058. </constructor>
  39059. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39060. abstract="false" native="false" synchronized="false"
  39061. static="false" final="false" visibility="public"
  39062. deprecated="not deprecated">
  39063. <param name="service" type="org.apache.hadoop.io.Text"/>
  39064. <param name="tokens" type="java.util.Collection"/>
  39065. </method>
  39066. <doc>
  39067. <![CDATA[Look through tokens to find the first delegation token that matches the
  39068. service and return it.]]>
  39069. </doc>
  39070. </class>
  39071. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39072. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39073. <class name="DelegationKey" extends="java.lang.Object"
  39074. abstract="false"
  39075. static="false" final="false" visibility="public"
  39076. deprecated="not deprecated">
  39077. <implements name="org.apache.hadoop.io.Writable"/>
  39078. <constructor name="DelegationKey"
  39079. static="false" final="false" visibility="public"
  39080. deprecated="not deprecated">
  39081. </constructor>
  39082. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  39083. static="false" final="false" visibility="public"
  39084. deprecated="not deprecated">
  39085. </constructor>
  39086. <method name="getKeyId" return="int"
  39087. abstract="false" native="false" synchronized="false"
  39088. static="false" final="false" visibility="public"
  39089. deprecated="not deprecated">
  39090. </method>
  39091. <method name="getExpiryDate" return="long"
  39092. abstract="false" native="false" synchronized="false"
  39093. static="false" final="false" visibility="public"
  39094. deprecated="not deprecated">
  39095. </method>
  39096. <method name="getKey" return="javax.crypto.SecretKey"
  39097. abstract="false" native="false" synchronized="false"
  39098. static="false" final="false" visibility="public"
  39099. deprecated="not deprecated">
  39100. </method>
  39101. <method name="setExpiryDate"
  39102. abstract="false" native="false" synchronized="false"
  39103. static="false" final="false" visibility="public"
  39104. deprecated="not deprecated">
  39105. <param name="expiryDate" type="long"/>
  39106. </method>
  39107. <method name="write"
  39108. abstract="false" native="false" synchronized="false"
  39109. static="false" final="false" visibility="public"
  39110. deprecated="not deprecated">
  39111. <param name="out" type="java.io.DataOutput"/>
  39112. <exception name="IOException" type="java.io.IOException"/>
  39113. </method>
  39114. <method name="readFields"
  39115. abstract="false" native="false" synchronized="false"
  39116. static="false" final="false" visibility="public"
  39117. deprecated="not deprecated">
  39118. <param name="in" type="java.io.DataInput"/>
  39119. <exception name="IOException" type="java.io.IOException"/>
  39120. </method>
  39121. <doc>
  39122. <![CDATA[Key used for generating and verifying delegation tokens]]>
  39123. </doc>
  39124. </class>
  39125. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39126. </package>
  39127. <package name="org.apache.hadoop.util">
  39128. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  39129. <class name="ChecksumUtil" extends="java.lang.Object"
  39130. abstract="false"
  39131. static="false" final="false" visibility="public"
  39132. deprecated="not deprecated">
  39133. <constructor name="ChecksumUtil"
  39134. static="false" final="false" visibility="public"
  39135. deprecated="not deprecated">
  39136. </constructor>
  39137. <method name="updateChunkChecksum"
  39138. abstract="false" native="false" synchronized="false"
  39139. static="true" final="false" visibility="public"
  39140. deprecated="not deprecated">
  39141. <param name="buf" type="byte[]"/>
  39142. <param name="checksumOff" type="int"/>
  39143. <param name="dataOff" type="int"/>
  39144. <param name="dataLen" type="int"/>
  39145. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  39146. <exception name="IOException" type="java.io.IOException"/>
  39147. <doc>
  39148. <![CDATA[updates the checksum for a buffer
  39149. @param buf - buffer to update the checksum in
  39150. @param checksumOff - offset in the buffer where the checksum is to update
  39151. @param dataOff - offset in the buffer of the data
  39152. @param dataLen - length of data to compute checksum on]]>
  39153. </doc>
  39154. </method>
  39155. </class>
  39156. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  39157. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  39158. <class name="CyclicIteration" extends="java.lang.Object"
  39159. abstract="false"
  39160. static="false" final="false" visibility="public"
  39161. deprecated="not deprecated">
  39162. <implements name="java.lang.Iterable"/>
  39163. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  39164. static="false" final="false" visibility="public"
  39165. deprecated="not deprecated">
  39166. <doc>
  39167. <![CDATA[Construct an {@link Iterable} object,
  39168. so that an {@link Iterator} can be created
  39169. for iterating the given {@link NavigableMap}.
  39170. The iteration begins from the starting key exclusively.]]>
  39171. </doc>
  39172. </constructor>
  39173. <method name="iterator" return="java.util.Iterator"
  39174. abstract="false" native="false" synchronized="false"
  39175. static="false" final="false" visibility="public"
  39176. deprecated="not deprecated">
  39177. <doc>
  39178. <![CDATA[{@inheritDoc}]]>
  39179. </doc>
  39180. </method>
  39181. <doc>
  39182. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  39183. The {@link Iterator} navigates the entries of the map
  39184. according to the map's ordering.
  39185. If the {@link Iterator} hits the last entry of the map,
  39186. it will then continue from the first entry.]]>
  39187. </doc>
  39188. </class>
  39189. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  39190. <!-- start class org.apache.hadoop.util.Daemon -->
  39191. <class name="Daemon" extends="java.lang.Thread"
  39192. abstract="false"
  39193. static="false" final="false" visibility="public"
  39194. deprecated="not deprecated">
  39195. <constructor name="Daemon"
  39196. static="false" final="false" visibility="public"
  39197. deprecated="not deprecated">
  39198. <doc>
  39199. <![CDATA[Construct a daemon thread.]]>
  39200. </doc>
  39201. </constructor>
  39202. <constructor name="Daemon" type="java.lang.Runnable"
  39203. static="false" final="false" visibility="public"
  39204. deprecated="not deprecated">
  39205. <doc>
  39206. <![CDATA[Construct a daemon thread.]]>
  39207. </doc>
  39208. </constructor>
  39209. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  39210. static="false" final="false" visibility="public"
  39211. deprecated="not deprecated">
  39212. <doc>
  39213. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  39214. </doc>
  39215. </constructor>
  39216. <method name="getRunnable" return="java.lang.Runnable"
  39217. abstract="false" native="false" synchronized="false"
  39218. static="false" final="false" visibility="public"
  39219. deprecated="not deprecated">
  39220. </method>
  39221. <doc>
  39222. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  39223. </doc>
  39224. </class>
  39225. <!-- end class org.apache.hadoop.util.Daemon -->
  39226. <!-- start class org.apache.hadoop.util.DataChecksum -->
  39227. <class name="DataChecksum" extends="java.lang.Object"
  39228. abstract="false"
  39229. static="false" final="false" visibility="public"
  39230. deprecated="not deprecated">
  39231. <implements name="java.util.zip.Checksum"/>
  39232. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39233. abstract="false" native="false" synchronized="false"
  39234. static="true" final="false" visibility="public"
  39235. deprecated="not deprecated">
  39236. <param name="type" type="int"/>
  39237. <param name="bytesPerChecksum" type="int"/>
  39238. </method>
  39239. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39240. abstract="false" native="false" synchronized="false"
  39241. static="true" final="false" visibility="public"
  39242. deprecated="not deprecated">
  39243. <param name="bytes" type="byte[]"/>
  39244. <param name="offset" type="int"/>
  39245. <doc>
  39246. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  39247. @return DataChecksum of the type in the array or null in case of an error.]]>
  39248. </doc>
  39249. </method>
  39250. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39251. abstract="false" native="false" synchronized="false"
  39252. static="true" final="false" visibility="public"
  39253. deprecated="not deprecated">
  39254. <param name="in" type="java.io.DataInputStream"/>
  39255. <exception name="IOException" type="java.io.IOException"/>
  39256. <doc>
  39257. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  39258. input stream <i>in</i>]]>
  39259. </doc>
  39260. </method>
  39261. <method name="writeHeader"
  39262. abstract="false" native="false" synchronized="false"
  39263. static="false" final="false" visibility="public"
  39264. deprecated="not deprecated">
  39265. <param name="out" type="java.io.DataOutputStream"/>
  39266. <exception name="IOException" type="java.io.IOException"/>
  39267. <doc>
  39268. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  39269. </doc>
  39270. </method>
  39271. <method name="getHeader" return="byte[]"
  39272. abstract="false" native="false" synchronized="false"
  39273. static="false" final="false" visibility="public"
  39274. deprecated="not deprecated">
  39275. </method>
  39276. <method name="writeValue" return="int"
  39277. abstract="false" native="false" synchronized="false"
  39278. static="false" final="false" visibility="public"
  39279. deprecated="not deprecated">
  39280. <param name="out" type="java.io.DataOutputStream"/>
  39281. <param name="reset" type="boolean"/>
  39282. <exception name="IOException" type="java.io.IOException"/>
  39283. <doc>
  39284. <![CDATA[Writes the current checksum to the stream.
  39285. If <i>reset</i> is true, then resets the checksum.
  39286. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39287. </doc>
  39288. </method>
  39289. <method name="writeValue" return="int"
  39290. abstract="false" native="false" synchronized="false"
  39291. static="false" final="false" visibility="public"
  39292. deprecated="not deprecated">
  39293. <param name="buf" type="byte[]"/>
  39294. <param name="offset" type="int"/>
  39295. <param name="reset" type="boolean"/>
  39296. <exception name="IOException" type="java.io.IOException"/>
  39297. <doc>
  39298. <![CDATA[Writes the current checksum to a buffer.
  39299. If <i>reset</i> is true, then resets the checksum.
  39300. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39301. </doc>
  39302. </method>
  39303. <method name="compare" return="boolean"
  39304. abstract="false" native="false" synchronized="false"
  39305. static="false" final="false" visibility="public"
  39306. deprecated="not deprecated">
  39307. <param name="buf" type="byte[]"/>
  39308. <param name="offset" type="int"/>
  39309. <doc>
  39310. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  39311. @return true if the checksum matches and false otherwise.]]>
  39312. </doc>
  39313. </method>
  39314. <method name="getChecksumType" return="int"
  39315. abstract="false" native="false" synchronized="false"
  39316. static="false" final="false" visibility="public"
  39317. deprecated="not deprecated">
  39318. </method>
  39319. <method name="getChecksumSize" return="int"
  39320. abstract="false" native="false" synchronized="false"
  39321. static="false" final="false" visibility="public"
  39322. deprecated="not deprecated">
  39323. </method>
  39324. <method name="getBytesPerChecksum" return="int"
  39325. abstract="false" native="false" synchronized="false"
  39326. static="false" final="false" visibility="public"
  39327. deprecated="not deprecated">
  39328. </method>
  39329. <method name="getNumBytesInSum" return="int"
  39330. abstract="false" native="false" synchronized="false"
  39331. static="false" final="false" visibility="public"
  39332. deprecated="not deprecated">
  39333. </method>
  39334. <method name="getChecksumHeaderSize" return="int"
  39335. abstract="false" native="false" synchronized="false"
  39336. static="true" final="false" visibility="public"
  39337. deprecated="not deprecated">
  39338. </method>
  39339. <method name="getValue" return="long"
  39340. abstract="false" native="false" synchronized="false"
  39341. static="false" final="false" visibility="public"
  39342. deprecated="not deprecated">
  39343. </method>
  39344. <method name="reset"
  39345. abstract="false" native="false" synchronized="false"
  39346. static="false" final="false" visibility="public"
  39347. deprecated="not deprecated">
  39348. </method>
  39349. <method name="update"
  39350. abstract="false" native="false" synchronized="false"
  39351. static="false" final="false" visibility="public"
  39352. deprecated="not deprecated">
  39353. <param name="b" type="byte[]"/>
  39354. <param name="off" type="int"/>
  39355. <param name="len" type="int"/>
  39356. </method>
  39357. <method name="update"
  39358. abstract="false" native="false" synchronized="false"
  39359. static="false" final="false" visibility="public"
  39360. deprecated="not deprecated">
  39361. <param name="b" type="int"/>
  39362. </method>
  39363. <field name="HEADER_LEN" type="int"
  39364. transient="false" volatile="false"
  39365. static="true" final="true" visibility="public"
  39366. deprecated="not deprecated">
  39367. </field>
  39368. <field name="CHECKSUM_NULL" type="int"
  39369. transient="false" volatile="false"
  39370. static="true" final="true" visibility="public"
  39371. deprecated="not deprecated">
  39372. </field>
  39373. <field name="CHECKSUM_CRC32" type="int"
  39374. transient="false" volatile="false"
  39375. static="true" final="true" visibility="public"
  39376. deprecated="not deprecated">
  39377. </field>
  39378. <field name="SIZE_OF_INTEGER" type="int"
  39379. transient="false" volatile="false"
  39380. static="true" final="true" visibility="public"
  39381. deprecated="not deprecated">
  39382. </field>
  39383. <doc>
  39384. <![CDATA[This class provides inteface and utilities for processing checksums for
  39385. DFS data transfers.]]>
  39386. </doc>
  39387. </class>
  39388. <!-- end class org.apache.hadoop.util.DataChecksum -->
  39389. <!-- start class org.apache.hadoop.util.DiskChecker -->
  39390. <class name="DiskChecker" extends="java.lang.Object"
  39391. abstract="false"
  39392. static="false" final="false" visibility="public"
  39393. deprecated="not deprecated">
  39394. <constructor name="DiskChecker"
  39395. static="false" final="false" visibility="public"
  39396. deprecated="not deprecated">
  39397. </constructor>
  39398. <method name="mkdirsWithExistsCheck" return="boolean"
  39399. abstract="false" native="false" synchronized="false"
  39400. static="true" final="false" visibility="public"
  39401. deprecated="not deprecated">
  39402. <param name="dir" type="java.io.File"/>
  39403. <doc>
  39404. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  39405. method provided in the Sun's java.io.File class in the following way:
  39406. While creating the non-existent parent directories, this method checks for
  39407. the existence of those directories if the mkdir fails at any point (since
  39408. that directory might have just been created by some other process).
  39409. If both mkdir() and the exists() check fails for any seemingly
  39410. non-existent directory, then we signal an error; Sun's mkdir would signal
  39411. an error (return false) if a directory it is attempting to create already
  39412. exists or the mkdir fails.
  39413. @param dir
  39414. @return true on success, false on failure]]>
  39415. </doc>
  39416. </method>
  39417. <method name="checkDir"
  39418. abstract="false" native="false" synchronized="false"
  39419. static="true" final="false" visibility="public"
  39420. deprecated="not deprecated">
  39421. <param name="dir" type="java.io.File"/>
  39422. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  39423. <doc>
  39424. <![CDATA[Create the directory if it doesn't exist and
  39425. @param dir
  39426. @throws DiskErrorException]]>
  39427. </doc>
  39428. </method>
  39429. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  39430. abstract="false" native="false" synchronized="false"
  39431. static="true" final="false" visibility="public"
  39432. deprecated="not deprecated">
  39433. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  39434. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  39435. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  39436. <exception name="IOException" type="java.io.IOException"/>
  39437. <doc>
  39438. <![CDATA[Create the directory or check permissions if it already exists.
  39439. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  39440. from the mkdirs method provided in the Sun's java.io.File class in the
  39441. following way:
  39442. While creating the non-existent parent directories, this method checks for
  39443. the existence of those directories if the mkdir fails at any point (since
  39444. that directory might have just been created by some other process).
  39445. If both mkdir() and the exists() check fails for any seemingly
  39446. non-existent directory, then we signal an error; Sun's mkdir would signal
  39447. an error (return false) if a directory it is attempting to create already
  39448. exists or the mkdir fails.
  39449. @param localFS local filesystem
  39450. @param dir directory to be created or checked
  39451. @param expected expected permission
  39452. @return true on success, false on failure]]>
  39453. </doc>
  39454. </method>
  39455. <method name="checkDir"
  39456. abstract="false" native="false" synchronized="false"
  39457. static="true" final="false" visibility="public"
  39458. deprecated="not deprecated">
  39459. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  39460. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  39461. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  39462. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  39463. <exception name="IOException" type="java.io.IOException"/>
  39464. <doc>
  39465. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  39466. it can be read from and written into.
  39467. @param localFS local filesystem
  39468. @param dir directory
  39469. @param expected permission
  39470. @throws DiskErrorException
  39471. @throws IOException]]>
  39472. </doc>
  39473. </method>
  39474. <doc>
  39475. <![CDATA[Class that provides utility functions for checking disk problem]]>
  39476. </doc>
  39477. </class>
  39478. <!-- end class org.apache.hadoop.util.DiskChecker -->
  39479. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  39480. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  39481. abstract="false"
  39482. static="true" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  39485. static="false" final="false" visibility="public"
  39486. deprecated="not deprecated">
  39487. </constructor>
  39488. </class>
  39489. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  39490. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  39491. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  39492. abstract="false"
  39493. static="true" final="false" visibility="public"
  39494. deprecated="not deprecated">
  39495. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  39496. static="false" final="false" visibility="public"
  39497. deprecated="not deprecated">
  39498. </constructor>
  39499. </class>
  39500. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  39501. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  39502. <class name="GenericOptionsParser" extends="java.lang.Object"
  39503. abstract="false"
  39504. static="false" final="false" visibility="public"
  39505. deprecated="not deprecated">
  39506. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  39507. static="false" final="false" visibility="public"
  39508. deprecated="not deprecated">
  39509. <exception name="IOException" type="java.io.IOException"/>
  39510. <doc>
  39511. <![CDATA[Create an options parser with the given options to parse the args.
  39512. @param opts the options
  39513. @param args the command line arguments
  39514. @throws IOException]]>
  39515. </doc>
  39516. </constructor>
  39517. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  39518. static="false" final="false" visibility="public"
  39519. deprecated="not deprecated">
  39520. <exception name="IOException" type="java.io.IOException"/>
  39521. <doc>
  39522. <![CDATA[Create an options parser to parse the args.
  39523. @param args the command line arguments
  39524. @throws IOException]]>
  39525. </doc>
  39526. </constructor>
  39527. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  39528. static="false" final="false" visibility="public"
  39529. deprecated="not deprecated">
  39530. <exception name="IOException" type="java.io.IOException"/>
  39531. <doc>
  39532. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  39533. arguments.
  39534. The array of string arguments other than the generic arguments can be
  39535. obtained by {@link #getRemainingArgs()}.
  39536. @param conf the <code>Configuration</code> to modify.
  39537. @param args command-line arguments.
  39538. @throws IOException]]>
  39539. </doc>
  39540. </constructor>
  39541. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  39542. static="false" final="false" visibility="public"
  39543. deprecated="not deprecated">
  39544. <exception name="IOException" type="java.io.IOException"/>
  39545. <doc>
  39546. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  39547. as generic Hadoop options.
  39548. The resulting <code>CommandLine</code> object can be obtained by
  39549. {@link #getCommandLine()}.
  39550. @param conf the configuration to modify
  39551. @param options options built by the caller
  39552. @param args User-specified arguments
  39553. @throws IOException]]>
  39554. </doc>
  39555. </constructor>
  39556. <method name="getRemainingArgs" return="java.lang.String[]"
  39557. abstract="false" native="false" synchronized="false"
  39558. static="false" final="false" visibility="public"
  39559. deprecated="not deprecated">
  39560. <doc>
  39561. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  39562. @return array of <code>String</code>s containing the un-parsed arguments
  39563. or <strong>empty array</strong> if commandLine was not defined.]]>
  39564. </doc>
  39565. </method>
  39566. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  39567. abstract="false" native="false" synchronized="false"
  39568. static="false" final="false" visibility="public"
  39569. deprecated="not deprecated">
  39570. <doc>
  39571. <![CDATA[Get the modified configuration
  39572. @return the configuration that has the modified parameters.]]>
  39573. </doc>
  39574. </method>
  39575. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  39576. abstract="false" native="false" synchronized="false"
  39577. static="false" final="false" visibility="public"
  39578. deprecated="not deprecated">
  39579. <doc>
  39580. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  39581. to process the parsed arguments.
  39582. Note: If the object is created with
  39583. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  39584. object will only contain parsed generic options.
  39585. @return <code>CommandLine</code> representing list of arguments
  39586. parsed against Options descriptor.]]>
  39587. </doc>
  39588. </method>
  39589. <method name="getLibJars" return="java.net.URL[]"
  39590. abstract="false" native="false" synchronized="false"
  39591. static="true" final="false" visibility="public"
  39592. deprecated="not deprecated">
  39593. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39594. <exception name="IOException" type="java.io.IOException"/>
  39595. <doc>
  39596. <![CDATA[If libjars are set in the conf, parse the libjars.
  39597. @param conf
  39598. @return libjar urls
  39599. @throws IOException]]>
  39600. </doc>
  39601. </method>
  39602. <method name="printGenericCommandUsage"
  39603. abstract="false" native="false" synchronized="false"
  39604. static="true" final="false" visibility="public"
  39605. deprecated="not deprecated">
  39606. <param name="out" type="java.io.PrintStream"/>
  39607. <doc>
  39608. <![CDATA[Print the usage message for generic command-line options supported.
  39609. @param out stream to print the usage message to.]]>
  39610. </doc>
  39611. </method>
  39612. <doc>
  39613. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  39614. arguments generic to the Hadoop framework.
  39615. <code>GenericOptionsParser</code> recognizes several standarad command
  39616. line arguments, enabling applications to easily specify a namenode, a
  39617. jobtracker, additional configuration resources etc.
  39618. <h4 id="GenericOptions">Generic Options</h4>
  39619. <p>The supported generic options are:</p>
  39620. <p><blockquote><pre>
  39621. -conf &lt;configuration file&gt; specify a configuration file
  39622. -D &lt;property=value&gt; use value for given property
  39623. -fs &lt;local|namenode:port&gt; specify a namenode
  39624. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  39625. -files &lt;comma separated list of files&gt; specify comma separated
  39626. files to be copied to the map reduce cluster
  39627. -libjars &lt;comma separated list of jars&gt; specify comma separated
  39628. jar files to include in the classpath.
  39629. -archives &lt;comma separated list of archives&gt; specify comma
  39630. separated archives to be unarchived on the compute machines.
  39631. </pre></blockquote></p>
  39632. <p>The general command line syntax is:</p>
  39633. <p><tt><pre>
  39634. bin/hadoop command [genericOptions] [commandOptions]
  39635. </pre></tt></p>
  39636. <p>Generic command line arguments <strong>might</strong> modify
  39637. <code>Configuration </code> objects, given to constructors.</p>
  39638. <p>The functionality is implemented using Commons CLI.</p>
  39639. <p>Examples:</p>
  39640. <p><blockquote><pre>
  39641. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  39642. list /data directory in dfs with namenode darwin:8020
  39643. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  39644. list /data directory in dfs with namenode darwin:8020
  39645. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  39646. list /data directory in dfs with conf specified in hadoop-site.xml
  39647. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  39648. submit a job to job tracker darwin:50020
  39649. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  39650. submit a job to job tracker darwin:50020
  39651. $ bin/hadoop job -jt local -submit job.xml
  39652. submit a job to local runner
  39653. $ bin/hadoop jar -libjars testlib.jar
  39654. -archives test.tgz -files file.txt inputjar args
  39655. job submission with libjars, files and archives
  39656. </pre></blockquote></p>
  39657. @see Tool
  39658. @see ToolRunner]]>
  39659. </doc>
  39660. </class>
  39661. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  39662. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  39663. <class name="GenericsUtil" extends="java.lang.Object"
  39664. abstract="false"
  39665. static="false" final="false" visibility="public"
  39666. deprecated="not deprecated">
  39667. <constructor name="GenericsUtil"
  39668. static="false" final="false" visibility="public"
  39669. deprecated="not deprecated">
  39670. </constructor>
  39671. <method name="getClass" return="java.lang.Class"
  39672. abstract="false" native="false" synchronized="false"
  39673. static="true" final="false" visibility="public"
  39674. deprecated="not deprecated">
  39675. <param name="t" type="java.lang.Object"/>
  39676. <doc>
  39677. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  39678. argument of type <code>T</code>.
  39679. @param <T> The type of the argument
  39680. @param t the object to get it class
  39681. @return <code>Class&lt;T&gt;</code>]]>
  39682. </doc>
  39683. </method>
  39684. <method name="toArray" return="java.lang.Object[]"
  39685. abstract="false" native="false" synchronized="false"
  39686. static="true" final="false" visibility="public"
  39687. deprecated="not deprecated">
  39688. <param name="c" type="java.lang.Class"/>
  39689. <param name="list" type="java.util.List"/>
  39690. <doc>
  39691. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  39692. <code>T[]</code>.
  39693. @param c the Class object of the items in the list
  39694. @param list the list to convert]]>
  39695. </doc>
  39696. </method>
  39697. <method name="toArray" return="java.lang.Object[]"
  39698. abstract="false" native="false" synchronized="false"
  39699. static="true" final="false" visibility="public"
  39700. deprecated="not deprecated">
  39701. <param name="list" type="java.util.List"/>
  39702. <doc>
  39703. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  39704. <code>T[]</code>.
  39705. @param list the list to convert
  39706. @throws ArrayIndexOutOfBoundsException if the list is empty.
  39707. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  39708. </doc>
  39709. </method>
  39710. <doc>
  39711. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  39712. </doc>
  39713. </class>
  39714. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  39715. <!-- start class org.apache.hadoop.util.HeapSort -->
  39716. <class name="HeapSort" extends="java.lang.Object"
  39717. abstract="false"
  39718. static="false" final="true" visibility="public"
  39719. deprecated="not deprecated">
  39720. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39721. <constructor name="HeapSort"
  39722. static="false" final="false" visibility="public"
  39723. deprecated="not deprecated">
  39724. </constructor>
  39725. <method name="sort"
  39726. abstract="false" native="false" synchronized="false"
  39727. static="false" final="false" visibility="public"
  39728. deprecated="not deprecated">
  39729. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39730. <param name="p" type="int"/>
  39731. <param name="r" type="int"/>
  39732. <doc>
  39733. <![CDATA[Sort the given range of items using heap sort.
  39734. {@inheritDoc}]]>
  39735. </doc>
  39736. </method>
  39737. <method name="sort"
  39738. abstract="false" native="false" synchronized="false"
  39739. static="false" final="false" visibility="public"
  39740. deprecated="not deprecated">
  39741. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39742. <param name="p" type="int"/>
  39743. <param name="r" type="int"/>
  39744. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39745. <doc>
  39746. <![CDATA[{@inheritDoc}]]>
  39747. </doc>
  39748. </method>
  39749. <doc>
  39750. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  39751. </doc>
  39752. </class>
  39753. <!-- end class org.apache.hadoop.util.HeapSort -->
  39754. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  39755. <class name="HostsFileReader" extends="java.lang.Object"
  39756. abstract="false"
  39757. static="false" final="false" visibility="public"
  39758. deprecated="not deprecated">
  39759. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  39760. static="false" final="false" visibility="public"
  39761. deprecated="not deprecated">
  39762. <exception name="IOException" type="java.io.IOException"/>
  39763. </constructor>
  39764. <method name="refresh"
  39765. abstract="false" native="false" synchronized="true"
  39766. static="false" final="false" visibility="public"
  39767. deprecated="not deprecated">
  39768. <exception name="IOException" type="java.io.IOException"/>
  39769. </method>
  39770. <method name="getHosts" return="java.util.Set"
  39771. abstract="false" native="false" synchronized="true"
  39772. static="false" final="false" visibility="public"
  39773. deprecated="not deprecated">
  39774. </method>
  39775. <method name="getExcludedHosts" return="java.util.Set"
  39776. abstract="false" native="false" synchronized="true"
  39777. static="false" final="false" visibility="public"
  39778. deprecated="not deprecated">
  39779. </method>
  39780. <method name="setIncludesFile"
  39781. abstract="false" native="false" synchronized="true"
  39782. static="false" final="false" visibility="public"
  39783. deprecated="not deprecated">
  39784. <param name="includesFile" type="java.lang.String"/>
  39785. </method>
  39786. <method name="setExcludesFile"
  39787. abstract="false" native="false" synchronized="true"
  39788. static="false" final="false" visibility="public"
  39789. deprecated="not deprecated">
  39790. <param name="excludesFile" type="java.lang.String"/>
  39791. </method>
  39792. <method name="updateFileNames"
  39793. abstract="false" native="false" synchronized="true"
  39794. static="false" final="false" visibility="public"
  39795. deprecated="not deprecated">
  39796. <param name="includesFile" type="java.lang.String"/>
  39797. <param name="excludesFile" type="java.lang.String"/>
  39798. <exception name="IOException" type="java.io.IOException"/>
  39799. </method>
  39800. </class>
  39801. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  39802. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  39803. <interface name="IndexedSortable" abstract="true"
  39804. static="false" final="false" visibility="public"
  39805. deprecated="not deprecated">
  39806. <method name="compare" return="int"
  39807. abstract="false" native="false" synchronized="false"
  39808. static="false" final="false" visibility="public"
  39809. deprecated="not deprecated">
  39810. <param name="i" type="int"/>
  39811. <param name="j" type="int"/>
  39812. <doc>
  39813. <![CDATA[Compare items at the given addresses consistent with the semantics of
  39814. {@link java.util.Comparator#compare(Object, Object)}.]]>
  39815. </doc>
  39816. </method>
  39817. <method name="swap"
  39818. abstract="false" native="false" synchronized="false"
  39819. static="false" final="false" visibility="public"
  39820. deprecated="not deprecated">
  39821. <param name="i" type="int"/>
  39822. <param name="j" type="int"/>
  39823. <doc>
  39824. <![CDATA[Swap items at the given addresses.]]>
  39825. </doc>
  39826. </method>
  39827. <doc>
  39828. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  39829. algorithms.]]>
  39830. </doc>
  39831. </interface>
  39832. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  39833. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  39834. <interface name="IndexedSorter" abstract="true"
  39835. static="false" final="false" visibility="public"
  39836. deprecated="not deprecated">
  39837. <method name="sort"
  39838. abstract="false" native="false" synchronized="false"
  39839. static="false" final="false" visibility="public"
  39840. deprecated="not deprecated">
  39841. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39842. <param name="l" type="int"/>
  39843. <param name="r" type="int"/>
  39844. <doc>
  39845. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  39846. range of logical indices. From the perspective of the sort algorithm,
  39847. each index between l (inclusive) and r (exclusive) is an addressable
  39848. entry.
  39849. @see IndexedSortable#compare
  39850. @see IndexedSortable#swap]]>
  39851. </doc>
  39852. </method>
  39853. <method name="sort"
  39854. abstract="false" native="false" synchronized="false"
  39855. static="false" final="false" visibility="public"
  39856. deprecated="not deprecated">
  39857. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39858. <param name="l" type="int"/>
  39859. <param name="r" type="int"/>
  39860. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39861. <doc>
  39862. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  39863. periodically.
  39864. @see #sort(IndexedSortable,int,int)]]>
  39865. </doc>
  39866. </method>
  39867. <doc>
  39868. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  39869. A sort algorithm implementing this interface may only
  39870. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  39871. for a range of indices to effect a sort across that range.]]>
  39872. </doc>
  39873. </interface>
  39874. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  39875. <!-- start class org.apache.hadoop.util.LineReader -->
  39876. <class name="LineReader" extends="java.lang.Object"
  39877. abstract="false"
  39878. static="false" final="false" visibility="public"
  39879. deprecated="not deprecated">
  39880. <constructor name="LineReader" type="java.io.InputStream"
  39881. static="false" final="false" visibility="public"
  39882. deprecated="not deprecated">
  39883. <doc>
  39884. <![CDATA[Create a line reader that reads from the given stream using the
  39885. default buffer-size (64k).
  39886. @param in The input stream
  39887. @throws IOException]]>
  39888. </doc>
  39889. </constructor>
  39890. <constructor name="LineReader" type="java.io.InputStream, int"
  39891. static="false" final="false" visibility="public"
  39892. deprecated="not deprecated">
  39893. <doc>
  39894. <![CDATA[Create a line reader that reads from the given stream using the
  39895. given buffer-size.
  39896. @param in The input stream
  39897. @param bufferSize Size of the read buffer
  39898. @throws IOException]]>
  39899. </doc>
  39900. </constructor>
  39901. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  39902. static="false" final="false" visibility="public"
  39903. deprecated="not deprecated">
  39904. <exception name="IOException" type="java.io.IOException"/>
  39905. <doc>
  39906. <![CDATA[Create a line reader that reads from the given stream using the
  39907. <code>io.file.buffer.size</code> specified in the given
  39908. <code>Configuration</code>.
  39909. @param in input stream
  39910. @param conf configuration
  39911. @throws IOException]]>
  39912. </doc>
  39913. </constructor>
  39914. <method name="close"
  39915. abstract="false" native="false" synchronized="false"
  39916. static="false" final="false" visibility="public"
  39917. deprecated="not deprecated">
  39918. <exception name="IOException" type="java.io.IOException"/>
  39919. <doc>
  39920. <![CDATA[Close the underlying stream.
  39921. @throws IOException]]>
  39922. </doc>
  39923. </method>
  39924. <method name="readLine" return="int"
  39925. abstract="false" native="false" synchronized="false"
  39926. static="false" final="false" visibility="public"
  39927. deprecated="not deprecated">
  39928. <param name="str" type="org.apache.hadoop.io.Text"/>
  39929. <param name="maxLineLength" type="int"/>
  39930. <param name="maxBytesToConsume" type="int"/>
  39931. <exception name="IOException" type="java.io.IOException"/>
  39932. <doc>
  39933. <![CDATA[Read one line from the InputStream into the given Text. A line
  39934. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  39935. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  39936. line.
  39937. @param str the object to store the given line (without newline)
  39938. @param maxLineLength the maximum number of bytes to store into str;
  39939. the rest of the line is silently discarded.
  39940. @param maxBytesToConsume the maximum number of bytes to consume
  39941. in this call. This is only a hint, because if the line cross
  39942. this threshold, we allow it to happen. It can overshoot
  39943. potentially by as much as one buffer length.
  39944. @return the number of bytes read including the (longest) newline
  39945. found.
  39946. @throws IOException if the underlying stream throws]]>
  39947. </doc>
  39948. </method>
  39949. <method name="readLine" return="int"
  39950. abstract="false" native="false" synchronized="false"
  39951. static="false" final="false" visibility="public"
  39952. deprecated="not deprecated">
  39953. <param name="str" type="org.apache.hadoop.io.Text"/>
  39954. <param name="maxLineLength" type="int"/>
  39955. <exception name="IOException" type="java.io.IOException"/>
  39956. <doc>
  39957. <![CDATA[Read from the InputStream into the given Text.
  39958. @param str the object to store the given line
  39959. @param maxLineLength the maximum number of bytes to store into str.
  39960. @return the number of bytes read including the newline
  39961. @throws IOException if the underlying stream throws]]>
  39962. </doc>
  39963. </method>
  39964. <method name="readLine" return="int"
  39965. abstract="false" native="false" synchronized="false"
  39966. static="false" final="false" visibility="public"
  39967. deprecated="not deprecated">
  39968. <param name="str" type="org.apache.hadoop.io.Text"/>
  39969. <exception name="IOException" type="java.io.IOException"/>
  39970. <doc>
  39971. <![CDATA[Read from the InputStream into the given Text.
  39972. @param str the object to store the given line
  39973. @return the number of bytes read including the newline
  39974. @throws IOException if the underlying stream throws]]>
  39975. </doc>
  39976. </method>
  39977. <doc>
  39978. <![CDATA[A class that provides a line reader from an input stream.]]>
  39979. </doc>
  39980. </class>
  39981. <!-- end class org.apache.hadoop.util.LineReader -->
  39982. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  39983. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  39984. abstract="false"
  39985. static="false" final="false" visibility="public"
  39986. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  39987. instead">
  39988. <constructor name="LinuxMemoryCalculatorPlugin"
  39989. static="false" final="false" visibility="public"
  39990. deprecated="not deprecated">
  39991. </constructor>
  39992. <method name="getPhysicalMemorySize" return="long"
  39993. abstract="false" native="false" synchronized="false"
  39994. static="false" final="false" visibility="public"
  39995. deprecated="not deprecated">
  39996. <doc>
  39997. <![CDATA[{@inheritDoc}]]>
  39998. </doc>
  39999. </method>
  40000. <method name="getVirtualMemorySize" return="long"
  40001. abstract="false" native="false" synchronized="false"
  40002. static="false" final="false" visibility="public"
  40003. deprecated="not deprecated">
  40004. <doc>
  40005. <![CDATA[{@inheritDoc}]]>
  40006. </doc>
  40007. </method>
  40008. <doc>
  40009. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  40010. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40011. instead]]>
  40012. </doc>
  40013. </class>
  40014. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40015. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40016. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  40017. abstract="false"
  40018. static="false" final="false" visibility="public"
  40019. deprecated="not deprecated">
  40020. <constructor name="LinuxResourceCalculatorPlugin"
  40021. static="false" final="false" visibility="public"
  40022. deprecated="not deprecated">
  40023. </constructor>
  40024. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  40025. static="false" final="false" visibility="public"
  40026. deprecated="not deprecated">
  40027. <doc>
  40028. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  40029. used only in unit tests
  40030. @param procfsMemFile fake file for /proc/meminfo
  40031. @param procfsCpuFile fake file for /proc/cpuinfo
  40032. @param procfsStatFile fake file for /proc/stat
  40033. @param jiffyLengthInMillis fake jiffy length value]]>
  40034. </doc>
  40035. </constructor>
  40036. <method name="getPhysicalMemorySize" return="long"
  40037. abstract="false" native="false" synchronized="false"
  40038. static="false" final="false" visibility="public"
  40039. deprecated="not deprecated">
  40040. <doc>
  40041. <![CDATA[{@inheritDoc}]]>
  40042. </doc>
  40043. </method>
  40044. <method name="getVirtualMemorySize" return="long"
  40045. abstract="false" native="false" synchronized="false"
  40046. static="false" final="false" visibility="public"
  40047. deprecated="not deprecated">
  40048. <doc>
  40049. <![CDATA[{@inheritDoc}]]>
  40050. </doc>
  40051. </method>
  40052. <method name="getAvailablePhysicalMemorySize" return="long"
  40053. abstract="false" native="false" synchronized="false"
  40054. static="false" final="false" visibility="public"
  40055. deprecated="not deprecated">
  40056. <doc>
  40057. <![CDATA[{@inheritDoc}]]>
  40058. </doc>
  40059. </method>
  40060. <method name="getAvailableVirtualMemorySize" return="long"
  40061. abstract="false" native="false" synchronized="false"
  40062. static="false" final="false" visibility="public"
  40063. deprecated="not deprecated">
  40064. <doc>
  40065. <![CDATA[{@inheritDoc}]]>
  40066. </doc>
  40067. </method>
  40068. <method name="getNumProcessors" return="int"
  40069. abstract="false" native="false" synchronized="false"
  40070. static="false" final="false" visibility="public"
  40071. deprecated="not deprecated">
  40072. <doc>
  40073. <![CDATA[{@inheritDoc}]]>
  40074. </doc>
  40075. </method>
  40076. <method name="getCpuFrequency" return="long"
  40077. abstract="false" native="false" synchronized="false"
  40078. static="false" final="false" visibility="public"
  40079. deprecated="not deprecated">
  40080. <doc>
  40081. <![CDATA[{@inheritDoc}]]>
  40082. </doc>
  40083. </method>
  40084. <method name="getCumulativeCpuTime" return="long"
  40085. abstract="false" native="false" synchronized="false"
  40086. static="false" final="false" visibility="public"
  40087. deprecated="not deprecated">
  40088. <doc>
  40089. <![CDATA[{@inheritDoc}]]>
  40090. </doc>
  40091. </method>
  40092. <method name="getCpuUsage" return="float"
  40093. abstract="false" native="false" synchronized="false"
  40094. static="false" final="false" visibility="public"
  40095. deprecated="not deprecated">
  40096. <doc>
  40097. <![CDATA[{@inheritDoc}]]>
  40098. </doc>
  40099. </method>
  40100. <method name="main"
  40101. abstract="false" native="false" synchronized="false"
  40102. static="true" final="false" visibility="public"
  40103. deprecated="not deprecated">
  40104. <param name="args" type="java.lang.String[]"/>
  40105. <doc>
  40106. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  40107. @param args]]>
  40108. </doc>
  40109. </method>
  40110. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  40111. abstract="false" native="false" synchronized="false"
  40112. static="false" final="false" visibility="public"
  40113. deprecated="not deprecated">
  40114. </method>
  40115. <doc>
  40116. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  40117. </doc>
  40118. </class>
  40119. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40120. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40121. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  40122. abstract="true"
  40123. static="false" final="false" visibility="public"
  40124. deprecated="Use
  40125. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40126. instead">
  40127. <constructor name="MemoryCalculatorPlugin"
  40128. static="false" final="false" visibility="public"
  40129. deprecated="not deprecated">
  40130. </constructor>
  40131. <method name="getVirtualMemorySize" return="long"
  40132. abstract="true" native="false" synchronized="false"
  40133. static="false" final="false" visibility="public"
  40134. deprecated="not deprecated">
  40135. <doc>
  40136. <![CDATA[Obtain the total size of the virtual memory present in the system.
  40137. @return virtual memory size in bytes.]]>
  40138. </doc>
  40139. </method>
  40140. <method name="getPhysicalMemorySize" return="long"
  40141. abstract="true" native="false" synchronized="false"
  40142. static="false" final="false" visibility="public"
  40143. deprecated="not deprecated">
  40144. <doc>
  40145. <![CDATA[Obtain the total size of the physical memory present in the system.
  40146. @return physical memory size bytes.]]>
  40147. </doc>
  40148. </method>
  40149. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40150. abstract="false" native="false" synchronized="false"
  40151. static="true" final="false" visibility="public"
  40152. deprecated="not deprecated">
  40153. <param name="clazz" type="java.lang.Class"/>
  40154. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40155. <doc>
  40156. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  40157. class name is null, this method will try and return a memory calculator
  40158. plugin available for this system.
  40159. @param clazz class-name
  40160. @param conf configure the plugin with this.
  40161. @return MemoryCalculatorPlugin]]>
  40162. </doc>
  40163. </method>
  40164. <doc>
  40165. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  40166. @deprecated Use
  40167. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40168. instead]]>
  40169. </doc>
  40170. </class>
  40171. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40172. <!-- start class org.apache.hadoop.util.MergeSort -->
  40173. <class name="MergeSort" extends="java.lang.Object"
  40174. abstract="false"
  40175. static="false" final="false" visibility="public"
  40176. deprecated="not deprecated">
  40177. <constructor name="MergeSort" type="java.util.Comparator"
  40178. static="false" final="false" visibility="public"
  40179. deprecated="not deprecated">
  40180. </constructor>
  40181. <method name="mergeSort"
  40182. abstract="false" native="false" synchronized="false"
  40183. static="false" final="false" visibility="public"
  40184. deprecated="not deprecated">
  40185. <param name="src" type="int[]"/>
  40186. <param name="dest" type="int[]"/>
  40187. <param name="low" type="int"/>
  40188. <param name="high" type="int"/>
  40189. </method>
  40190. <doc>
  40191. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  40192. </doc>
  40193. </class>
  40194. <!-- end class org.apache.hadoop.util.MergeSort -->
  40195. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  40196. <class name="NativeCodeLoader" extends="java.lang.Object"
  40197. abstract="false"
  40198. static="false" final="false" visibility="public"
  40199. deprecated="not deprecated">
  40200. <constructor name="NativeCodeLoader"
  40201. static="false" final="false" visibility="public"
  40202. deprecated="not deprecated">
  40203. </constructor>
  40204. <method name="isNativeCodeLoaded" return="boolean"
  40205. abstract="false" native="false" synchronized="false"
  40206. static="true" final="false" visibility="public"
  40207. deprecated="not deprecated">
  40208. <doc>
  40209. <![CDATA[Check if native-hadoop code is loaded for this platform.
  40210. @return <code>true</code> if native-hadoop is loaded,
  40211. else <code>false</code>]]>
  40212. </doc>
  40213. </method>
  40214. <method name="getLoadNativeLibraries" return="boolean"
  40215. abstract="false" native="false" synchronized="false"
  40216. static="false" final="false" visibility="public"
  40217. deprecated="not deprecated">
  40218. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40219. <doc>
  40220. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  40221. @param conf configuration
  40222. @return <code>true</code> if native hadoop libraries, if present, can be
  40223. used for this job; <code>false</code> otherwise.]]>
  40224. </doc>
  40225. </method>
  40226. <method name="setLoadNativeLibraries"
  40227. abstract="false" native="false" synchronized="false"
  40228. static="false" final="false" visibility="public"
  40229. deprecated="not deprecated">
  40230. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40231. <param name="loadNativeLibraries" type="boolean"/>
  40232. <doc>
  40233. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  40234. @param conf configuration
  40235. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  40236. </doc>
  40237. </method>
  40238. <doc>
  40239. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  40240. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  40241. or the default java implementations where appropriate.]]>
  40242. </doc>
  40243. </class>
  40244. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  40245. <!-- start class org.apache.hadoop.util.PlatformName -->
  40246. <class name="PlatformName" extends="java.lang.Object"
  40247. abstract="false"
  40248. static="false" final="false" visibility="public"
  40249. deprecated="not deprecated">
  40250. <constructor name="PlatformName"
  40251. static="false" final="false" visibility="public"
  40252. deprecated="not deprecated">
  40253. </constructor>
  40254. <method name="getPlatformName" return="java.lang.String"
  40255. abstract="false" native="false" synchronized="false"
  40256. static="true" final="false" visibility="public"
  40257. deprecated="not deprecated">
  40258. <doc>
  40259. <![CDATA[Get the complete platform as per the java-vm.
  40260. @return returns the complete platform as per the java-vm.]]>
  40261. </doc>
  40262. </method>
  40263. <method name="main"
  40264. abstract="false" native="false" synchronized="false"
  40265. static="true" final="false" visibility="public"
  40266. deprecated="not deprecated">
  40267. <param name="args" type="java.lang.String[]"/>
  40268. </method>
  40269. <doc>
  40270. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  40271. </doc>
  40272. </class>
  40273. <!-- end class org.apache.hadoop.util.PlatformName -->
  40274. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  40275. <class name="PrintJarMainClass" extends="java.lang.Object"
  40276. abstract="false"
  40277. static="false" final="false" visibility="public"
  40278. deprecated="not deprecated">
  40279. <constructor name="PrintJarMainClass"
  40280. static="false" final="false" visibility="public"
  40281. deprecated="not deprecated">
  40282. </constructor>
  40283. <method name="main"
  40284. abstract="false" native="false" synchronized="false"
  40285. static="true" final="false" visibility="public"
  40286. deprecated="not deprecated">
  40287. <param name="args" type="java.lang.String[]"/>
  40288. <doc>
  40289. <![CDATA[@param args]]>
  40290. </doc>
  40291. </method>
  40292. <doc>
  40293. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  40294. </doc>
  40295. </class>
  40296. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  40297. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  40298. <class name="PriorityQueue" extends="java.lang.Object"
  40299. abstract="true"
  40300. static="false" final="false" visibility="public"
  40301. deprecated="not deprecated">
  40302. <constructor name="PriorityQueue"
  40303. static="false" final="false" visibility="public"
  40304. deprecated="not deprecated">
  40305. </constructor>
  40306. <method name="lessThan" return="boolean"
  40307. abstract="true" native="false" synchronized="false"
  40308. static="false" final="false" visibility="protected"
  40309. deprecated="not deprecated">
  40310. <param name="a" type="java.lang.Object"/>
  40311. <param name="b" type="java.lang.Object"/>
  40312. <doc>
  40313. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  40314. must define this one method.]]>
  40315. </doc>
  40316. </method>
  40317. <method name="initialize"
  40318. abstract="false" native="false" synchronized="false"
  40319. static="false" final="true" visibility="protected"
  40320. deprecated="not deprecated">
  40321. <param name="maxSize" type="int"/>
  40322. <doc>
  40323. <![CDATA[Subclass constructors must call this.]]>
  40324. </doc>
  40325. </method>
  40326. <method name="put"
  40327. abstract="false" native="false" synchronized="false"
  40328. static="false" final="true" visibility="public"
  40329. deprecated="not deprecated">
  40330. <param name="element" type="java.lang.Object"/>
  40331. <doc>
  40332. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  40333. If one tries to add more objects than maxSize from initialize
  40334. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  40335. </doc>
  40336. </method>
  40337. <method name="insert" return="boolean"
  40338. abstract="false" native="false" synchronized="false"
  40339. static="false" final="false" visibility="public"
  40340. deprecated="not deprecated">
  40341. <param name="element" type="java.lang.Object"/>
  40342. <doc>
  40343. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  40344. the PriorityQueue is not full, or not lessThan(element, top()).
  40345. @param element
  40346. @return true if element is added, false otherwise.]]>
  40347. </doc>
  40348. </method>
  40349. <method name="top" return="java.lang.Object"
  40350. abstract="false" native="false" synchronized="false"
  40351. static="false" final="true" visibility="public"
  40352. deprecated="not deprecated">
  40353. <doc>
  40354. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  40355. </doc>
  40356. </method>
  40357. <method name="pop" return="java.lang.Object"
  40358. abstract="false" native="false" synchronized="false"
  40359. static="false" final="true" visibility="public"
  40360. deprecated="not deprecated">
  40361. <doc>
  40362. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  40363. time.]]>
  40364. </doc>
  40365. </method>
  40366. <method name="adjustTop"
  40367. abstract="false" native="false" synchronized="false"
  40368. static="false" final="true" visibility="public"
  40369. deprecated="not deprecated">
  40370. <doc>
  40371. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  40372. worst case, but it's at least twice as fast to <pre>
  40373. { pq.top().change(); pq.adjustTop(); }
  40374. </pre> instead of <pre>
  40375. { o = pq.pop(); o.change(); pq.push(o); }
  40376. </pre>]]>
  40377. </doc>
  40378. </method>
  40379. <method name="size" return="int"
  40380. abstract="false" native="false" synchronized="false"
  40381. static="false" final="true" visibility="public"
  40382. deprecated="not deprecated">
  40383. <doc>
  40384. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  40385. </doc>
  40386. </method>
  40387. <method name="clear"
  40388. abstract="false" native="false" synchronized="false"
  40389. static="false" final="true" visibility="public"
  40390. deprecated="not deprecated">
  40391. <doc>
  40392. <![CDATA[Removes all entries from the PriorityQueue.]]>
  40393. </doc>
  40394. </method>
  40395. <doc>
  40396. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  40397. least element can always be found in constant time. Put()'s and pop()'s
  40398. require log(size) time.]]>
  40399. </doc>
  40400. </class>
  40401. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  40402. <!-- start class org.apache.hadoop.util.ProcessTree -->
  40403. <class name="ProcessTree" extends="java.lang.Object"
  40404. abstract="false"
  40405. static="false" final="false" visibility="public"
  40406. deprecated="not deprecated">
  40407. <constructor name="ProcessTree"
  40408. static="false" final="false" visibility="public"
  40409. deprecated="not deprecated">
  40410. </constructor>
  40411. <method name="killProcess"
  40412. abstract="false" native="false" synchronized="false"
  40413. static="true" final="false" visibility="public"
  40414. deprecated="not deprecated">
  40415. <param name="pid" type="java.lang.String"/>
  40416. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  40417. <doc>
  40418. <![CDATA[Sends signal to process, forcefully terminating the process.
  40419. @param pid process id
  40420. @param signal the signal number to send]]>
  40421. </doc>
  40422. </method>
  40423. <method name="killProcessGroup"
  40424. abstract="false" native="false" synchronized="false"
  40425. static="true" final="false" visibility="public"
  40426. deprecated="not deprecated">
  40427. <param name="pgrpId" type="java.lang.String"/>
  40428. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  40429. <doc>
  40430. <![CDATA[Sends signal to all process belonging to same process group,
  40431. forcefully terminating the process group.
  40432. @param pgrpId process group id
  40433. @param signal the signal number to send]]>
  40434. </doc>
  40435. </method>
  40436. <method name="isAlive" return="boolean"
  40437. abstract="false" native="false" synchronized="false"
  40438. static="true" final="false" visibility="public"
  40439. deprecated="not deprecated">
  40440. <param name="pid" type="java.lang.String"/>
  40441. <doc>
  40442. <![CDATA[Is the process with PID pid still alive?
  40443. This method assumes that isAlive is called on a pid that was alive not
  40444. too long ago, and hence assumes no chance of pid-wrapping-around.
  40445. @param pid pid of the process to check.
  40446. @return true if process is alive.]]>
  40447. </doc>
  40448. </method>
  40449. <method name="isProcessGroupAlive" return="boolean"
  40450. abstract="false" native="false" synchronized="false"
  40451. static="true" final="false" visibility="public"
  40452. deprecated="not deprecated">
  40453. <param name="pgrpId" type="java.lang.String"/>
  40454. <doc>
  40455. <![CDATA[Is the process group with still alive?
  40456. This method assumes that isAlive is called on a pid that was alive not
  40457. too long ago, and hence assumes no chance of pid-wrapping-around.
  40458. @param pgrpId process group id
  40459. @return true if any of process in group is alive.]]>
  40460. </doc>
  40461. </method>
  40462. <field name="isSetsidAvailable" type="boolean"
  40463. transient="false" volatile="false"
  40464. static="true" final="true" visibility="public"
  40465. deprecated="not deprecated">
  40466. </field>
  40467. <doc>
  40468. <![CDATA[Process tree related operations]]>
  40469. </doc>
  40470. </class>
  40471. <!-- end class org.apache.hadoop.util.ProcessTree -->
  40472. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  40473. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  40474. abstract="false"
  40475. static="true" final="true" visibility="public"
  40476. deprecated="not deprecated">
  40477. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  40478. abstract="false" native="false" synchronized="false"
  40479. static="true" final="false" visibility="public"
  40480. deprecated="not deprecated">
  40481. </method>
  40482. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  40483. abstract="false" native="false" synchronized="false"
  40484. static="true" final="false" visibility="public"
  40485. deprecated="not deprecated">
  40486. <param name="name" type="java.lang.String"/>
  40487. </method>
  40488. <method name="getValue" return="int"
  40489. abstract="false" native="false" synchronized="false"
  40490. static="false" final="false" visibility="public"
  40491. deprecated="not deprecated">
  40492. </method>
  40493. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  40494. transient="false" volatile="false"
  40495. static="true" final="true" visibility="public"
  40496. deprecated="not deprecated">
  40497. </field>
  40498. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  40499. transient="false" volatile="false"
  40500. static="true" final="true" visibility="public"
  40501. deprecated="not deprecated">
  40502. </field>
  40503. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  40504. transient="false" volatile="false"
  40505. static="true" final="true" visibility="public"
  40506. deprecated="not deprecated">
  40507. </field>
  40508. <doc>
  40509. <![CDATA[The constants for the signals.]]>
  40510. </doc>
  40511. </class>
  40512. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  40513. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  40514. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  40515. abstract="false"
  40516. static="false" final="false" visibility="public"
  40517. deprecated="not deprecated">
  40518. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  40519. static="false" final="false" visibility="public"
  40520. deprecated="not deprecated">
  40521. </constructor>
  40522. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  40523. static="false" final="false" visibility="public"
  40524. deprecated="not deprecated">
  40525. </constructor>
  40526. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  40527. static="false" final="false" visibility="public"
  40528. deprecated="not deprecated">
  40529. </constructor>
  40530. <method name="isAvailable" return="boolean"
  40531. abstract="false" native="false" synchronized="false"
  40532. static="true" final="false" visibility="public"
  40533. deprecated="not deprecated">
  40534. <doc>
  40535. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  40536. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  40537. </doc>
  40538. </method>
  40539. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  40540. abstract="false" native="false" synchronized="false"
  40541. static="false" final="false" visibility="public"
  40542. deprecated="not deprecated">
  40543. <doc>
  40544. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  40545. an empty tree will be returned.
  40546. @return the process-tree with latest state.]]>
  40547. </doc>
  40548. </method>
  40549. <method name="isAlive" return="boolean"
  40550. abstract="false" native="false" synchronized="false"
  40551. static="false" final="false" visibility="public"
  40552. deprecated="not deprecated">
  40553. <doc>
  40554. <![CDATA[Is the root-process alive?
  40555. @return true if the root-process is alive, false otherwise.]]>
  40556. </doc>
  40557. </method>
  40558. <method name="isAnyProcessInTreeAlive" return="boolean"
  40559. abstract="false" native="false" synchronized="false"
  40560. static="false" final="false" visibility="public"
  40561. deprecated="not deprecated">
  40562. <doc>
  40563. <![CDATA[Is any of the subprocesses in the process-tree alive?
  40564. @return true if any of the processes in the process-tree is
  40565. alive, false otherwise.]]>
  40566. </doc>
  40567. </method>
  40568. <method name="getProcessTreeDump" return="java.lang.String"
  40569. abstract="false" native="false" synchronized="false"
  40570. static="false" final="false" visibility="public"
  40571. deprecated="not deprecated">
  40572. <doc>
  40573. <![CDATA[Get a dump of the process-tree.
  40574. @return a string concatenating the dump of information of all the processes
  40575. in the process-tree]]>
  40576. </doc>
  40577. </method>
  40578. <method name="getCumulativeVmem" return="long"
  40579. abstract="false" native="false" synchronized="false"
  40580. static="false" final="false" visibility="public"
  40581. deprecated="not deprecated">
  40582. <doc>
  40583. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  40584. process-tree.
  40585. @return cumulative virtual memory used by the process-tree in bytes.]]>
  40586. </doc>
  40587. </method>
  40588. <method name="getCumulativeRssmem" return="long"
  40589. abstract="false" native="false" synchronized="false"
  40590. static="false" final="false" visibility="public"
  40591. deprecated="not deprecated">
  40592. <doc>
  40593. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  40594. in the process-tree.
  40595. @return cumulative rss memory used by the process-tree in bytes. return 0
  40596. if it cannot be calculated]]>
  40597. </doc>
  40598. </method>
  40599. <method name="getCumulativeVmem" return="long"
  40600. abstract="false" native="false" synchronized="false"
  40601. static="false" final="false" visibility="public"
  40602. deprecated="not deprecated">
  40603. <param name="olderThanAge" type="int"/>
  40604. <doc>
  40605. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  40606. process-tree that are older than the passed in age.
  40607. @param olderThanAge processes above this age are included in the
  40608. memory addition
  40609. @return cumulative virtual memory used by the process-tree in bytes,
  40610. for processes older than this age.]]>
  40611. </doc>
  40612. </method>
  40613. <method name="getCumulativeRssmem" return="long"
  40614. abstract="false" native="false" synchronized="false"
  40615. static="false" final="false" visibility="public"
  40616. deprecated="not deprecated">
  40617. <param name="olderThanAge" type="int"/>
  40618. <doc>
  40619. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  40620. in the process-tree that are older than the passed in age.
  40621. @param olderThanAge processes above this age are included in the
  40622. memory addition
  40623. @return cumulative rss memory used by the process-tree in bytes,
  40624. for processes older than this age. return 0 if it cannot be
  40625. calculated]]>
  40626. </doc>
  40627. </method>
  40628. <method name="getCumulativeCpuTime" return="long"
  40629. abstract="false" native="false" synchronized="false"
  40630. static="false" final="false" visibility="public"
  40631. deprecated="not deprecated">
  40632. <doc>
  40633. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  40634. process-tree since the process-tree created
  40635. @return cumulative CPU time in millisecond since the process-tree created
  40636. return 0 if it cannot be calculated]]>
  40637. </doc>
  40638. </method>
  40639. <method name="toString" return="java.lang.String"
  40640. abstract="false" native="false" synchronized="false"
  40641. static="false" final="false" visibility="public"
  40642. deprecated="not deprecated">
  40643. <doc>
  40644. <![CDATA[Returns a string printing PIDs of process present in the
  40645. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  40646. </doc>
  40647. </method>
  40648. <field name="PAGE_SIZE" type="long"
  40649. transient="false" volatile="false"
  40650. static="true" final="true" visibility="public"
  40651. deprecated="not deprecated">
  40652. </field>
  40653. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  40654. transient="false" volatile="false"
  40655. static="true" final="true" visibility="public"
  40656. deprecated="not deprecated">
  40657. </field>
  40658. <doc>
  40659. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  40660. </doc>
  40661. </class>
  40662. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  40663. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  40664. <class name="ProgramDriver" extends="java.lang.Object"
  40665. abstract="false"
  40666. static="false" final="false" visibility="public"
  40667. deprecated="not deprecated">
  40668. <constructor name="ProgramDriver"
  40669. static="false" final="false" visibility="public"
  40670. deprecated="not deprecated">
  40671. </constructor>
  40672. <method name="addClass"
  40673. abstract="false" native="false" synchronized="false"
  40674. static="false" final="false" visibility="public"
  40675. deprecated="not deprecated">
  40676. <param name="name" type="java.lang.String"/>
  40677. <param name="mainClass" type="java.lang.Class"/>
  40678. <param name="description" type="java.lang.String"/>
  40679. <exception name="Throwable" type="java.lang.Throwable"/>
  40680. <doc>
  40681. <![CDATA[This is the method that adds the classed to the repository
  40682. @param name The name of the string you want the class instance to be called with
  40683. @param mainClass The class that you want to add to the repository
  40684. @param description The description of the class
  40685. @throws NoSuchMethodException
  40686. @throws SecurityException]]>
  40687. </doc>
  40688. </method>
  40689. <method name="driver"
  40690. abstract="false" native="false" synchronized="false"
  40691. static="false" final="false" visibility="public"
  40692. deprecated="not deprecated">
  40693. <param name="args" type="java.lang.String[]"/>
  40694. <exception name="Throwable" type="java.lang.Throwable"/>
  40695. <doc>
  40696. <![CDATA[This is a driver for the example programs.
  40697. It looks at the first command line argument and tries to find an
  40698. example program with that name.
  40699. If it is found, it calls the main method in that class with the rest
  40700. of the command line arguments.
  40701. @param args The argument from the user. args[0] is the command to run.
  40702. @throws NoSuchMethodException
  40703. @throws SecurityException
  40704. @throws IllegalAccessException
  40705. @throws IllegalArgumentException
  40706. @throws Throwable Anything thrown by the example program's main]]>
  40707. </doc>
  40708. </method>
  40709. <doc>
  40710. <![CDATA[A driver that is used to run programs added to it]]>
  40711. </doc>
  40712. </class>
  40713. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  40714. <!-- start class org.apache.hadoop.util.Progress -->
  40715. <class name="Progress" extends="java.lang.Object"
  40716. abstract="false"
  40717. static="false" final="false" visibility="public"
  40718. deprecated="not deprecated">
  40719. <constructor name="Progress"
  40720. static="false" final="false" visibility="public"
  40721. deprecated="not deprecated">
  40722. <doc>
  40723. <![CDATA[Creates a new root node.]]>
  40724. </doc>
  40725. </constructor>
  40726. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40727. abstract="false" native="false" synchronized="false"
  40728. static="false" final="false" visibility="public"
  40729. deprecated="not deprecated">
  40730. <param name="status" type="java.lang.String"/>
  40731. <doc>
  40732. <![CDATA[Adds a named node to the tree.]]>
  40733. </doc>
  40734. </method>
  40735. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40736. abstract="false" native="false" synchronized="true"
  40737. static="false" final="false" visibility="public"
  40738. deprecated="not deprecated">
  40739. <doc>
  40740. <![CDATA[Adds a node to the tree.]]>
  40741. </doc>
  40742. </method>
  40743. <method name="startNextPhase"
  40744. abstract="false" native="false" synchronized="true"
  40745. static="false" final="false" visibility="public"
  40746. deprecated="not deprecated">
  40747. <doc>
  40748. <![CDATA[Called during execution to move to the next phase at this level in the
  40749. tree.]]>
  40750. </doc>
  40751. </method>
  40752. <method name="phase" return="org.apache.hadoop.util.Progress"
  40753. abstract="false" native="false" synchronized="true"
  40754. static="false" final="false" visibility="public"
  40755. deprecated="not deprecated">
  40756. <doc>
  40757. <![CDATA[Returns the current sub-node executing.]]>
  40758. </doc>
  40759. </method>
  40760. <method name="complete"
  40761. abstract="false" native="false" synchronized="false"
  40762. static="false" final="false" visibility="public"
  40763. deprecated="not deprecated">
  40764. <doc>
  40765. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  40766. </doc>
  40767. </method>
  40768. <method name="set"
  40769. abstract="false" native="false" synchronized="true"
  40770. static="false" final="false" visibility="public"
  40771. deprecated="not deprecated">
  40772. <param name="progress" type="float"/>
  40773. <doc>
  40774. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  40775. </doc>
  40776. </method>
  40777. <method name="get" return="float"
  40778. abstract="false" native="false" synchronized="true"
  40779. static="false" final="false" visibility="public"
  40780. deprecated="not deprecated">
  40781. <doc>
  40782. <![CDATA[Returns the overall progress of the root.]]>
  40783. </doc>
  40784. </method>
  40785. <method name="getProgress" return="float"
  40786. abstract="false" native="false" synchronized="true"
  40787. static="false" final="false" visibility="public"
  40788. deprecated="not deprecated">
  40789. <doc>
  40790. <![CDATA[Returns progress in this node. get() would give overall progress of the
  40791. root node(not just given current node).]]>
  40792. </doc>
  40793. </method>
  40794. <method name="setStatus"
  40795. abstract="false" native="false" synchronized="true"
  40796. static="false" final="false" visibility="public"
  40797. deprecated="not deprecated">
  40798. <param name="status" type="java.lang.String"/>
  40799. </method>
  40800. <method name="toString" return="java.lang.String"
  40801. abstract="false" native="false" synchronized="false"
  40802. static="false" final="false" visibility="public"
  40803. deprecated="not deprecated">
  40804. </method>
  40805. <doc>
  40806. <![CDATA[Utility to assist with generation of progress reports. Applications build
  40807. a hierarchy of {@link Progress} instances, each modelling a phase of
  40808. execution. The root is constructed with {@link #Progress()}. Nodes for
  40809. sub-phases are created by calling {@link #addPhase()}.]]>
  40810. </doc>
  40811. </class>
  40812. <!-- end class org.apache.hadoop.util.Progress -->
  40813. <!-- start interface org.apache.hadoop.util.Progressable -->
  40814. <interface name="Progressable" abstract="true"
  40815. static="false" final="false" visibility="public"
  40816. deprecated="not deprecated">
  40817. <method name="progress"
  40818. abstract="false" native="false" synchronized="false"
  40819. static="false" final="false" visibility="public"
  40820. deprecated="not deprecated">
  40821. <doc>
  40822. <![CDATA[Report progress to the Hadoop framework.]]>
  40823. </doc>
  40824. </method>
  40825. <doc>
  40826. <![CDATA[A facility for reporting progress.
  40827. <p>Clients and/or applications can use the provided <code>Progressable</code>
  40828. to explicitly report progress to the Hadoop framework. This is especially
  40829. important for operations which take an insignificant amount of time since,
  40830. in-lieu of the reported progress, the framework has to assume that an error
  40831. has occured and time-out the operation.</p>]]>
  40832. </doc>
  40833. </interface>
  40834. <!-- end interface org.apache.hadoop.util.Progressable -->
  40835. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  40836. <class name="PureJavaCrc32" extends="java.lang.Object"
  40837. abstract="false"
  40838. static="false" final="false" visibility="public"
  40839. deprecated="not deprecated">
  40840. <implements name="java.util.zip.Checksum"/>
  40841. <constructor name="PureJavaCrc32"
  40842. static="false" final="false" visibility="public"
  40843. deprecated="not deprecated">
  40844. </constructor>
  40845. <method name="getValue" return="long"
  40846. abstract="false" native="false" synchronized="false"
  40847. static="false" final="false" visibility="public"
  40848. deprecated="not deprecated">
  40849. <doc>
  40850. <![CDATA[{@inheritDoc}]]>
  40851. </doc>
  40852. </method>
  40853. <method name="reset"
  40854. abstract="false" native="false" synchronized="false"
  40855. static="false" final="false" visibility="public"
  40856. deprecated="not deprecated">
  40857. <doc>
  40858. <![CDATA[{@inheritDoc}]]>
  40859. </doc>
  40860. </method>
  40861. <method name="update"
  40862. abstract="false" native="false" synchronized="false"
  40863. static="false" final="false" visibility="public"
  40864. deprecated="not deprecated">
  40865. <param name="b" type="byte[]"/>
  40866. <param name="off" type="int"/>
  40867. <param name="len" type="int"/>
  40868. <doc>
  40869. <![CDATA[{@inheritDoc}]]>
  40870. </doc>
  40871. </method>
  40872. <method name="update"
  40873. abstract="false" native="false" synchronized="false"
  40874. static="false" final="true" visibility="public"
  40875. deprecated="not deprecated">
  40876. <param name="b" type="int"/>
  40877. <doc>
  40878. <![CDATA[{@inheritDoc}]]>
  40879. </doc>
  40880. </method>
  40881. <doc>
  40882. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  40883. the same polynomial as the built-in native CRC32.
  40884. This is to avoid the JNI overhead for certain uses of Checksumming
  40885. where many small pieces of data are checksummed in succession.
  40886. The current version is ~10x to 1.8x as fast as Sun's native
  40887. java.util.zip.CRC32 in Java 1.6
  40888. @see java.util.zip.CRC32]]>
  40889. </doc>
  40890. </class>
  40891. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  40892. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  40893. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  40894. abstract="true"
  40895. static="false" final="false" visibility="public"
  40896. deprecated="not deprecated">
  40897. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  40898. static="false" final="false" visibility="public"
  40899. deprecated="not deprecated">
  40900. <doc>
  40901. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  40902. used as first word in the log messages.
  40903. @param workItemsName - what kind of work items are being managed
  40904. on the queue? A plural word is best here, for logging.
  40905. @param logObject - What log do you want the log messages to be sent to?]]>
  40906. </doc>
  40907. </constructor>
  40908. <method name="startCycle"
  40909. abstract="false" native="false" synchronized="false"
  40910. static="false" final="false" visibility="public"
  40911. deprecated="not deprecated">
  40912. <param name="maxWorkToProcess" type="int"/>
  40913. </method>
  40914. <method name="endCycle"
  40915. abstract="false" native="false" synchronized="false"
  40916. static="false" final="false" visibility="public"
  40917. deprecated="not deprecated">
  40918. <param name="workFound" type="int"/>
  40919. </method>
  40920. <method name="checkRestart"
  40921. abstract="false" native="false" synchronized="false"
  40922. static="false" final="false" visibility="public"
  40923. deprecated="not deprecated">
  40924. </method>
  40925. <method name="preCheckIsLastCycle" return="boolean"
  40926. abstract="true" native="false" synchronized="false"
  40927. static="false" final="false" visibility="public"
  40928. deprecated="not deprecated">
  40929. <param name="maxWorkToProcess" type="int"/>
  40930. <doc>
  40931. <![CDATA[The termination condition is to identify the last cycle that will
  40932. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  40933. is called at the beginning of each cycle, and
  40934. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  40935. At least one of them must correctly provide the termination
  40936. condition. The other may always return 'false'. If either of them
  40937. returns 'true' in a given cycle, then at the end of that cycle the
  40938. stats will be output to log, and stats collection will end.
  40939. @param maxWorkToProcess - if this number is greater than the amount
  40940. of work remaining at the start of a cycle, then it will
  40941. be the last cycle.
  40942. @return - true if last cycle detected, else false]]>
  40943. </doc>
  40944. </method>
  40945. <method name="postCheckIsLastCycle" return="boolean"
  40946. abstract="true" native="false" synchronized="false"
  40947. static="false" final="false" visibility="public"
  40948. deprecated="not deprecated">
  40949. <param name="workFound" type="int"/>
  40950. <doc>
  40951. <![CDATA[See {@link #preCheckIsLastCycle}.
  40952. @param workFound - may not be useful
  40953. @return - true if remaining work is zero at end of cycle,
  40954. else false]]>
  40955. </doc>
  40956. </method>
  40957. <doc>
  40958. <![CDATA[Hadoop has several work queues, such as
  40959. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  40960. With a properly throttled queue, a worker thread cycles repeatedly,
  40961. doing a chunk of work each cycle then resting a bit, until the queue is
  40962. empty. This class is intended to collect statistics about the behavior of
  40963. such queues and consumers. It reports the amount of work done and
  40964. how long it took, for the first cycle after collection starts, and for
  40965. the total number of cycles needed to flush the queue. We use a state
  40966. machine to detect when the queue has been flushed and then we log the
  40967. stats; see {@link State} for enumeration of the states and their meanings.]]>
  40968. </doc>
  40969. </class>
  40970. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  40971. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  40972. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  40973. abstract="false"
  40974. static="true" final="true" visibility="public"
  40975. deprecated="not deprecated">
  40976. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  40977. abstract="false" native="false" synchronized="false"
  40978. static="true" final="false" visibility="public"
  40979. deprecated="not deprecated">
  40980. </method>
  40981. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40982. abstract="false" native="false" synchronized="false"
  40983. static="true" final="false" visibility="public"
  40984. deprecated="not deprecated">
  40985. <param name="name" type="java.lang.String"/>
  40986. </method>
  40987. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40988. transient="false" volatile="false"
  40989. static="true" final="true" visibility="public"
  40990. deprecated="not deprecated">
  40991. </field>
  40992. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40993. transient="false" volatile="false"
  40994. static="true" final="true" visibility="public"
  40995. deprecated="not deprecated">
  40996. </field>
  40997. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40998. transient="false" volatile="false"
  40999. static="true" final="true" visibility="public"
  41000. deprecated="not deprecated">
  41001. </field>
  41002. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41003. transient="false" volatile="false"
  41004. static="true" final="true" visibility="public"
  41005. deprecated="not deprecated">
  41006. </field>
  41007. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41008. transient="false" volatile="false"
  41009. static="true" final="true" visibility="public"
  41010. deprecated="not deprecated">
  41011. </field>
  41012. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41013. transient="false" volatile="false"
  41014. static="true" final="true" visibility="public"
  41015. deprecated="not deprecated">
  41016. </field>
  41017. <doc>
  41018. <![CDATA[This enum provides the "states" of a state machine for
  41019. {@link QueueProcessingStatistics}.
  41020. The meanings of the states are: <ul>
  41021. <li> BEGIN_COLLECTING - Ready to begin.
  41022. <li> IN_FIRST_CYCLE - Started the first cycle.
  41023. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  41024. no further cycles because this one will complete all
  41025. needed work. When done, will go straight to
  41026. "DONE_COLLECTING".
  41027. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  41028. <li> IN_LAST_CYCLE - Started the last cycle.
  41029. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  41030. </ul>]]>
  41031. </doc>
  41032. </class>
  41033. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41034. <!-- start class org.apache.hadoop.util.QuickSort -->
  41035. <class name="QuickSort" extends="java.lang.Object"
  41036. abstract="false"
  41037. static="false" final="true" visibility="public"
  41038. deprecated="not deprecated">
  41039. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41040. <constructor name="QuickSort"
  41041. static="false" final="false" visibility="public"
  41042. deprecated="not deprecated">
  41043. </constructor>
  41044. <method name="getMaxDepth" return="int"
  41045. abstract="false" native="false" synchronized="false"
  41046. static="true" final="false" visibility="protected"
  41047. deprecated="not deprecated">
  41048. <param name="x" type="int"/>
  41049. <doc>
  41050. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  41051. Returns 2 * ceil(log(n)).]]>
  41052. </doc>
  41053. </method>
  41054. <method name="sort"
  41055. abstract="false" native="false" synchronized="false"
  41056. static="false" final="false" visibility="public"
  41057. deprecated="not deprecated">
  41058. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41059. <param name="p" type="int"/>
  41060. <param name="r" type="int"/>
  41061. <doc>
  41062. <![CDATA[Sort the given range of items using quick sort.
  41063. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  41064. then switch to {@link HeapSort}.]]>
  41065. </doc>
  41066. </method>
  41067. <method name="sort"
  41068. abstract="false" native="false" synchronized="false"
  41069. static="false" final="false" visibility="public"
  41070. deprecated="not deprecated">
  41071. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41072. <param name="p" type="int"/>
  41073. <param name="r" type="int"/>
  41074. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41075. <doc>
  41076. <![CDATA[{@inheritDoc}]]>
  41077. </doc>
  41078. </method>
  41079. <doc>
  41080. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  41081. </doc>
  41082. </class>
  41083. <!-- end class org.apache.hadoop.util.QuickSort -->
  41084. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41085. <class name="ReflectionUtils" extends="java.lang.Object"
  41086. abstract="false"
  41087. static="false" final="false" visibility="public"
  41088. deprecated="not deprecated">
  41089. <constructor name="ReflectionUtils"
  41090. static="false" final="false" visibility="public"
  41091. deprecated="not deprecated">
  41092. </constructor>
  41093. <method name="setConf"
  41094. abstract="false" native="false" synchronized="false"
  41095. static="true" final="false" visibility="public"
  41096. deprecated="not deprecated">
  41097. <param name="theObject" type="java.lang.Object"/>
  41098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41099. <doc>
  41100. <![CDATA[Check and set 'configuration' if necessary.
  41101. @param theObject object for which to set configuration
  41102. @param conf Configuration]]>
  41103. </doc>
  41104. </method>
  41105. <method name="newInstance" return="java.lang.Object"
  41106. abstract="false" native="false" synchronized="false"
  41107. static="true" final="false" visibility="public"
  41108. deprecated="not deprecated">
  41109. <param name="theClass" type="java.lang.Class"/>
  41110. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41111. <doc>
  41112. <![CDATA[Create an object for the given class and initialize it from conf
  41113. @param theClass class of which an object is created
  41114. @param conf Configuration
  41115. @return a new object]]>
  41116. </doc>
  41117. </method>
  41118. <method name="setContentionTracing"
  41119. abstract="false" native="false" synchronized="false"
  41120. static="true" final="false" visibility="public"
  41121. deprecated="not deprecated">
  41122. <param name="val" type="boolean"/>
  41123. </method>
  41124. <method name="printThreadInfo"
  41125. abstract="false" native="false" synchronized="false"
  41126. static="true" final="false" visibility="public"
  41127. deprecated="not deprecated">
  41128. <param name="stream" type="java.io.PrintWriter"/>
  41129. <param name="title" type="java.lang.String"/>
  41130. <doc>
  41131. <![CDATA[Print all of the thread's information and stack traces.
  41132. @param stream the stream to
  41133. @param title a string title for the stack trace]]>
  41134. </doc>
  41135. </method>
  41136. <method name="logThreadInfo"
  41137. abstract="false" native="false" synchronized="false"
  41138. static="true" final="false" visibility="public"
  41139. deprecated="not deprecated">
  41140. <param name="log" type="org.apache.commons.logging.Log"/>
  41141. <param name="title" type="java.lang.String"/>
  41142. <param name="minInterval" type="long"/>
  41143. <doc>
  41144. <![CDATA[Log the current thread stacks at INFO level.
  41145. @param log the logger that logs the stack trace
  41146. @param title a descriptive title for the call stacks
  41147. @param minInterval the minimum time from the last]]>
  41148. </doc>
  41149. </method>
  41150. <method name="getClass" return="java.lang.Class"
  41151. abstract="false" native="false" synchronized="false"
  41152. static="true" final="false" visibility="public"
  41153. deprecated="not deprecated">
  41154. <param name="o" type="java.lang.Object"/>
  41155. <doc>
  41156. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  41157. @param o object whose correctly-typed <code>Class</code> is to be obtained
  41158. @return the correctly typed <code>Class</code> of the given object.]]>
  41159. </doc>
  41160. </method>
  41161. <method name="copy" return="java.lang.Object"
  41162. abstract="false" native="false" synchronized="false"
  41163. static="true" final="false" visibility="public"
  41164. deprecated="not deprecated">
  41165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41166. <param name="src" type="java.lang.Object"/>
  41167. <param name="dst" type="java.lang.Object"/>
  41168. <exception name="IOException" type="java.io.IOException"/>
  41169. <doc>
  41170. <![CDATA[Make a copy of the writable object using serialization to a buffer
  41171. @param dst the object to copy from
  41172. @param src the object to copy into, which is destroyed
  41173. @throws IOException]]>
  41174. </doc>
  41175. </method>
  41176. <method name="cloneWritableInto"
  41177. abstract="false" native="false" synchronized="false"
  41178. static="true" final="false" visibility="public"
  41179. deprecated="not deprecated">
  41180. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  41181. <param name="src" type="org.apache.hadoop.io.Writable"/>
  41182. <exception name="IOException" type="java.io.IOException"/>
  41183. </method>
  41184. <doc>
  41185. <![CDATA[General reflection utils]]>
  41186. </doc>
  41187. </class>
  41188. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41189. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41190. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  41191. abstract="true"
  41192. static="false" final="false" visibility="public"
  41193. deprecated="not deprecated">
  41194. <constructor name="ResourceCalculatorPlugin"
  41195. static="false" final="false" visibility="public"
  41196. deprecated="not deprecated">
  41197. </constructor>
  41198. <method name="getVirtualMemorySize" return="long"
  41199. abstract="true" native="false" synchronized="false"
  41200. static="false" final="false" visibility="public"
  41201. deprecated="not deprecated">
  41202. <doc>
  41203. <![CDATA[Obtain the total size of the virtual memory present in the system.
  41204. @return virtual memory size in bytes.]]>
  41205. </doc>
  41206. </method>
  41207. <method name="getPhysicalMemorySize" return="long"
  41208. abstract="true" native="false" synchronized="false"
  41209. static="false" final="false" visibility="public"
  41210. deprecated="not deprecated">
  41211. <doc>
  41212. <![CDATA[Obtain the total size of the physical memory present in the system.
  41213. @return physical memory size bytes.]]>
  41214. </doc>
  41215. </method>
  41216. <method name="getAvailableVirtualMemorySize" return="long"
  41217. abstract="true" native="false" synchronized="false"
  41218. static="false" final="false" visibility="public"
  41219. deprecated="not deprecated">
  41220. <doc>
  41221. <![CDATA[Obtain the total size of the available virtual memory present
  41222. in the system.
  41223. @return available virtual memory size in bytes.]]>
  41224. </doc>
  41225. </method>
  41226. <method name="getAvailablePhysicalMemorySize" return="long"
  41227. abstract="true" native="false" synchronized="false"
  41228. static="false" final="false" visibility="public"
  41229. deprecated="not deprecated">
  41230. <doc>
  41231. <![CDATA[Obtain the total size of the available physical memory present
  41232. in the system.
  41233. @return available physical memory size bytes.]]>
  41234. </doc>
  41235. </method>
  41236. <method name="getNumProcessors" return="int"
  41237. abstract="true" native="false" synchronized="false"
  41238. static="false" final="false" visibility="public"
  41239. deprecated="not deprecated">
  41240. <doc>
  41241. <![CDATA[Obtain the total number of processors present on the system.
  41242. @return number of processors]]>
  41243. </doc>
  41244. </method>
  41245. <method name="getCpuFrequency" return="long"
  41246. abstract="true" native="false" synchronized="false"
  41247. static="false" final="false" visibility="public"
  41248. deprecated="not deprecated">
  41249. <doc>
  41250. <![CDATA[Obtain the CPU frequency of on the system.
  41251. @return CPU frequency in kHz]]>
  41252. </doc>
  41253. </method>
  41254. <method name="getCumulativeCpuTime" return="long"
  41255. abstract="true" native="false" synchronized="false"
  41256. static="false" final="false" visibility="public"
  41257. deprecated="not deprecated">
  41258. <doc>
  41259. <![CDATA[Obtain the cumulative CPU time since the system is on.
  41260. @return cumulative CPU time in milliseconds]]>
  41261. </doc>
  41262. </method>
  41263. <method name="getCpuUsage" return="float"
  41264. abstract="true" native="false" synchronized="false"
  41265. static="false" final="false" visibility="public"
  41266. deprecated="not deprecated">
  41267. <doc>
  41268. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  41269. @return CPU usage in %]]>
  41270. </doc>
  41271. </method>
  41272. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  41273. abstract="true" native="false" synchronized="false"
  41274. static="false" final="false" visibility="public"
  41275. deprecated="not deprecated">
  41276. <doc>
  41277. <![CDATA[Obtain resource status used by current process tree.]]>
  41278. </doc>
  41279. </method>
  41280. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  41281. abstract="false" native="false" synchronized="false"
  41282. static="true" final="false" visibility="public"
  41283. deprecated="not deprecated">
  41284. <param name="clazz" type="java.lang.Class"/>
  41285. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41286. <doc>
  41287. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  41288. class name is null, this method will try and return a memory calculator
  41289. plugin available for this system.
  41290. @param clazz class-name
  41291. @param conf configure the plugin with this.
  41292. @return ResourceCalculatorPlugin]]>
  41293. </doc>
  41294. </method>
  41295. <doc>
  41296. <![CDATA[Plugin to calculate resource information on the system.]]>
  41297. </doc>
  41298. </class>
  41299. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41300. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  41301. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  41302. abstract="false"
  41303. static="true" final="false" visibility="public"
  41304. deprecated="not deprecated">
  41305. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  41306. static="false" final="false" visibility="public"
  41307. deprecated="not deprecated">
  41308. </constructor>
  41309. <method name="getPhysicalMemorySize" return="long"
  41310. abstract="false" native="false" synchronized="false"
  41311. static="false" final="false" visibility="public"
  41312. deprecated="not deprecated">
  41313. <doc>
  41314. <![CDATA[Obtain the physical memory size used by current process tree.
  41315. @return physical memory size in bytes.]]>
  41316. </doc>
  41317. </method>
  41318. <method name="getVirtualMemorySize" return="long"
  41319. abstract="false" native="false" synchronized="false"
  41320. static="false" final="false" visibility="public"
  41321. deprecated="not deprecated">
  41322. <doc>
  41323. <![CDATA[Obtain the virtual memory size used by a current process tree.
  41324. @return virtual memory size in bytes.]]>
  41325. </doc>
  41326. </method>
  41327. <method name="getCumulativeCpuTime" return="long"
  41328. abstract="false" native="false" synchronized="false"
  41329. static="false" final="false" visibility="public"
  41330. deprecated="not deprecated">
  41331. <doc>
  41332. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  41333. @return cumulative CPU time in milliseconds]]>
  41334. </doc>
  41335. </method>
  41336. </class>
  41337. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  41338. <!-- start class org.apache.hadoop.util.RunJar -->
  41339. <class name="RunJar" extends="java.lang.Object"
  41340. abstract="false"
  41341. static="false" final="false" visibility="public"
  41342. deprecated="not deprecated">
  41343. <constructor name="RunJar"
  41344. static="false" final="false" visibility="public"
  41345. deprecated="not deprecated">
  41346. </constructor>
  41347. <method name="unJar"
  41348. abstract="false" native="false" synchronized="false"
  41349. static="true" final="false" visibility="public"
  41350. deprecated="not deprecated">
  41351. <param name="jarFile" type="java.io.File"/>
  41352. <param name="toDir" type="java.io.File"/>
  41353. <exception name="IOException" type="java.io.IOException"/>
  41354. <doc>
  41355. <![CDATA[Unpack a jar file into a directory.]]>
  41356. </doc>
  41357. </method>
  41358. <method name="main"
  41359. abstract="false" native="false" synchronized="false"
  41360. static="true" final="false" visibility="public"
  41361. deprecated="not deprecated">
  41362. <param name="args" type="java.lang.String[]"/>
  41363. <exception name="Throwable" type="java.lang.Throwable"/>
  41364. <doc>
  41365. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  41366. then it must be provided on the command line.]]>
  41367. </doc>
  41368. </method>
  41369. <doc>
  41370. <![CDATA[Run a Hadoop job jar.]]>
  41371. </doc>
  41372. </class>
  41373. <!-- end class org.apache.hadoop.util.RunJar -->
  41374. <!-- start class org.apache.hadoop.util.ServletUtil -->
  41375. <class name="ServletUtil" extends="java.lang.Object"
  41376. abstract="false"
  41377. static="false" final="false" visibility="public"
  41378. deprecated="not deprecated">
  41379. <constructor name="ServletUtil"
  41380. static="false" final="false" visibility="public"
  41381. deprecated="not deprecated">
  41382. </constructor>
  41383. <method name="initHTML" return="java.io.PrintWriter"
  41384. abstract="false" native="false" synchronized="false"
  41385. static="true" final="false" visibility="public"
  41386. deprecated="not deprecated">
  41387. <param name="response" type="javax.servlet.ServletResponse"/>
  41388. <param name="title" type="java.lang.String"/>
  41389. <exception name="IOException" type="java.io.IOException"/>
  41390. <doc>
  41391. <![CDATA[Initial HTML header]]>
  41392. </doc>
  41393. </method>
  41394. <method name="getParameter" return="java.lang.String"
  41395. abstract="false" native="false" synchronized="false"
  41396. static="true" final="false" visibility="public"
  41397. deprecated="not deprecated">
  41398. <param name="request" type="javax.servlet.ServletRequest"/>
  41399. <param name="name" type="java.lang.String"/>
  41400. <doc>
  41401. <![CDATA[Get a parameter from a ServletRequest.
  41402. Return null if the parameter contains only white spaces.]]>
  41403. </doc>
  41404. </method>
  41405. <method name="htmlFooter" return="java.lang.String"
  41406. abstract="false" native="false" synchronized="false"
  41407. static="true" final="false" visibility="public"
  41408. deprecated="not deprecated">
  41409. <doc>
  41410. <![CDATA[HTML footer to be added in the jsps.
  41411. @return the HTML footer.]]>
  41412. </doc>
  41413. </method>
  41414. <method name="percentageGraph" return="java.lang.String"
  41415. abstract="false" native="false" synchronized="false"
  41416. static="true" final="false" visibility="public"
  41417. deprecated="not deprecated">
  41418. <param name="perc" type="int"/>
  41419. <param name="width" type="int"/>
  41420. <exception name="IOException" type="java.io.IOException"/>
  41421. <doc>
  41422. <![CDATA[Generate the percentage graph and returns HTML representation string
  41423. of the same.
  41424. @param perc The percentage value for which graph is to be generated
  41425. @param width The width of the display table
  41426. @return HTML String representation of the percentage graph
  41427. @throws IOException]]>
  41428. </doc>
  41429. </method>
  41430. <method name="percentageGraph" return="java.lang.String"
  41431. abstract="false" native="false" synchronized="false"
  41432. static="true" final="false" visibility="public"
  41433. deprecated="not deprecated">
  41434. <param name="perc" type="float"/>
  41435. <param name="width" type="int"/>
  41436. <exception name="IOException" type="java.io.IOException"/>
  41437. <doc>
  41438. <![CDATA[Generate the percentage graph and returns HTML representation string
  41439. of the same.
  41440. @param perc The percentage value for which graph is to be generated
  41441. @param width The width of the display table
  41442. @return HTML String representation of the percentage graph
  41443. @throws IOException]]>
  41444. </doc>
  41445. </method>
  41446. <field name="HTML_TAIL" type="java.lang.String"
  41447. transient="false" volatile="false"
  41448. static="true" final="true" visibility="public"
  41449. deprecated="not deprecated">
  41450. </field>
  41451. </class>
  41452. <!-- end class org.apache.hadoop.util.ServletUtil -->
  41453. <!-- start class org.apache.hadoop.util.Shell -->
  41454. <class name="Shell" extends="java.lang.Object"
  41455. abstract="true"
  41456. static="false" final="false" visibility="public"
  41457. deprecated="not deprecated">
  41458. <constructor name="Shell"
  41459. static="false" final="false" visibility="public"
  41460. deprecated="not deprecated">
  41461. </constructor>
  41462. <constructor name="Shell" type="long"
  41463. static="false" final="false" visibility="public"
  41464. deprecated="not deprecated">
  41465. <doc>
  41466. <![CDATA[@param interval the minimum duration to wait before re-executing the
  41467. command.]]>
  41468. </doc>
  41469. </constructor>
  41470. <method name="getGroupsCommand" return="java.lang.String[]"
  41471. abstract="false" native="false" synchronized="false"
  41472. static="true" final="false" visibility="public"
  41473. deprecated="not deprecated">
  41474. <doc>
  41475. <![CDATA[a Unix command to get the current user's groups list]]>
  41476. </doc>
  41477. </method>
  41478. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  41479. abstract="false" native="false" synchronized="false"
  41480. static="true" final="false" visibility="public"
  41481. deprecated="not deprecated">
  41482. <param name="user" type="java.lang.String"/>
  41483. <doc>
  41484. <![CDATA[a Unix command to get a given user's groups list]]>
  41485. </doc>
  41486. </method>
  41487. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  41488. abstract="false" native="false" synchronized="false"
  41489. static="true" final="false" visibility="public"
  41490. deprecated="not deprecated">
  41491. <param name="netgroup" type="java.lang.String"/>
  41492. <doc>
  41493. <![CDATA[a Unix command to get a given netgroup's user list]]>
  41494. </doc>
  41495. </method>
  41496. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  41497. abstract="false" native="false" synchronized="false"
  41498. static="true" final="false" visibility="public"
  41499. deprecated="not deprecated">
  41500. <doc>
  41501. <![CDATA[Return a Unix command to get permission information.]]>
  41502. </doc>
  41503. </method>
  41504. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41505. abstract="false" native="false" synchronized="false"
  41506. static="true" final="false" visibility="public"
  41507. deprecated="not deprecated">
  41508. <param name="memoryLimit" type="int"/>
  41509. <doc>
  41510. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41511. to a given child process. This is only relevant when we are forking a
  41512. process from within the Mapper or the Reducer implementations.
  41513. Also see Hadoop Pipes and Hadoop Streaming.
  41514. It also checks to ensure that we are running on a *nix platform else
  41515. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41516. @param memoryLimit virtual memory limit
  41517. @return a <code>String[]</code> with the ulimit command arguments or
  41518. <code>null</code> if we are running on a non *nix platform or
  41519. if the limit is unspecified.]]>
  41520. </doc>
  41521. </method>
  41522. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41523. abstract="false" native="false" synchronized="false"
  41524. static="true" final="false" visibility="public"
  41525. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  41526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41527. <doc>
  41528. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41529. to a given child process. This is only relevant when we are forking a
  41530. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  41531. {@link org.apache.hadoop.mapred.Reducer} implementations
  41532. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  41533. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  41534. It also checks to ensure that we are running on a *nix platform else
  41535. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41536. @param conf configuration
  41537. @return a <code>String[]</code> with the ulimit command arguments or
  41538. <code>null</code> if we are running on a non *nix platform or
  41539. if the limit is unspecified.
  41540. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  41541. </doc>
  41542. </method>
  41543. <method name="setEnvironment"
  41544. abstract="false" native="false" synchronized="false"
  41545. static="false" final="false" visibility="protected"
  41546. deprecated="not deprecated">
  41547. <param name="env" type="java.util.Map"/>
  41548. <doc>
  41549. <![CDATA[set the environment for the command
  41550. @param env Mapping of environment variables]]>
  41551. </doc>
  41552. </method>
  41553. <method name="setWorkingDirectory"
  41554. abstract="false" native="false" synchronized="false"
  41555. static="false" final="false" visibility="protected"
  41556. deprecated="not deprecated">
  41557. <param name="dir" type="java.io.File"/>
  41558. <doc>
  41559. <![CDATA[set the working directory
  41560. @param dir The directory where the command would be executed]]>
  41561. </doc>
  41562. </method>
  41563. <method name="run"
  41564. abstract="false" native="false" synchronized="false"
  41565. static="false" final="false" visibility="protected"
  41566. deprecated="not deprecated">
  41567. <exception name="IOException" type="java.io.IOException"/>
  41568. <doc>
  41569. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  41570. </doc>
  41571. </method>
  41572. <method name="getExecString" return="java.lang.String[]"
  41573. abstract="true" native="false" synchronized="false"
  41574. static="false" final="false" visibility="protected"
  41575. deprecated="not deprecated">
  41576. <doc>
  41577. <![CDATA[return an array containing the command name & its parameters]]>
  41578. </doc>
  41579. </method>
  41580. <method name="parseExecResult"
  41581. abstract="true" native="false" synchronized="false"
  41582. static="false" final="false" visibility="protected"
  41583. deprecated="not deprecated">
  41584. <param name="lines" type="java.io.BufferedReader"/>
  41585. <exception name="IOException" type="java.io.IOException"/>
  41586. <doc>
  41587. <![CDATA[Parse the execution result]]>
  41588. </doc>
  41589. </method>
  41590. <method name="getProcess" return="java.lang.Process"
  41591. abstract="false" native="false" synchronized="false"
  41592. static="false" final="false" visibility="public"
  41593. deprecated="not deprecated">
  41594. <doc>
  41595. <![CDATA[get the current sub-process executing the given command
  41596. @return process executing the command]]>
  41597. </doc>
  41598. </method>
  41599. <method name="getExitCode" return="int"
  41600. abstract="false" native="false" synchronized="false"
  41601. static="false" final="false" visibility="public"
  41602. deprecated="not deprecated">
  41603. <doc>
  41604. <![CDATA[get the exit code
  41605. @return the exit code of the process]]>
  41606. </doc>
  41607. </method>
  41608. <method name="isTimedOut" return="boolean"
  41609. abstract="false" native="false" synchronized="false"
  41610. static="false" final="false" visibility="public"
  41611. deprecated="not deprecated">
  41612. <doc>
  41613. <![CDATA[To check if the passed script to shell command executor timed out or
  41614. not.
  41615. @return if the script timed out.]]>
  41616. </doc>
  41617. </method>
  41618. <method name="execCommand" return="java.lang.String"
  41619. abstract="false" native="false" synchronized="false"
  41620. static="true" final="false" visibility="public"
  41621. deprecated="not deprecated">
  41622. <param name="cmd" type="java.lang.String[]"/>
  41623. <exception name="IOException" type="java.io.IOException"/>
  41624. <doc>
  41625. <![CDATA[Static method to execute a shell command.
  41626. Covers most of the simple cases without requiring the user to implement
  41627. the <code>Shell</code> interface.
  41628. @param cmd shell command to execute.
  41629. @return the output of the executed command.]]>
  41630. </doc>
  41631. </method>
  41632. <method name="execCommand" return="java.lang.String"
  41633. abstract="false" native="false" synchronized="false"
  41634. static="true" final="false" visibility="public"
  41635. deprecated="not deprecated">
  41636. <param name="env" type="java.util.Map"/>
  41637. <param name="cmd" type="java.lang.String[]"/>
  41638. <param name="timeout" type="long"/>
  41639. <exception name="IOException" type="java.io.IOException"/>
  41640. <doc>
  41641. <![CDATA[Static method to execute a shell command.
  41642. Covers most of the simple cases without requiring the user to implement
  41643. the <code>Shell</code> interface.
  41644. @param env the map of environment key=value
  41645. @param cmd shell command to execute.
  41646. @param timeout time in milliseconds after which script should be marked timeout
  41647. @return the output of the executed command.o]]>
  41648. </doc>
  41649. </method>
  41650. <method name="execCommand" return="java.lang.String"
  41651. abstract="false" native="false" synchronized="false"
  41652. static="true" final="false" visibility="public"
  41653. deprecated="not deprecated">
  41654. <param name="env" type="java.util.Map"/>
  41655. <param name="cmd" type="java.lang.String[]"/>
  41656. <exception name="IOException" type="java.io.IOException"/>
  41657. <doc>
  41658. <![CDATA[Static method to execute a shell command.
  41659. Covers most of the simple cases without requiring the user to implement
  41660. the <code>Shell</code> interface.
  41661. @param env the map of environment key=value
  41662. @param cmd shell command to execute.
  41663. @return the output of the executed command.]]>
  41664. </doc>
  41665. </method>
  41666. <field name="LOG" type="org.apache.commons.logging.Log"
  41667. transient="false" volatile="false"
  41668. static="true" final="true" visibility="public"
  41669. deprecated="not deprecated">
  41670. </field>
  41671. <field name="USER_NAME_COMMAND" type="java.lang.String"
  41672. transient="false" volatile="false"
  41673. static="true" final="true" visibility="public"
  41674. deprecated="not deprecated">
  41675. <doc>
  41676. <![CDATA[a Unix command to get the current user's name]]>
  41677. </doc>
  41678. </field>
  41679. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  41680. transient="false" volatile="false"
  41681. static="true" final="true" visibility="public"
  41682. deprecated="not deprecated">
  41683. <doc>
  41684. <![CDATA[a Unix command to set permission]]>
  41685. </doc>
  41686. </field>
  41687. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  41688. transient="false" volatile="false"
  41689. static="true" final="true" visibility="public"
  41690. deprecated="not deprecated">
  41691. <doc>
  41692. <![CDATA[a Unix command to set owner]]>
  41693. </doc>
  41694. </field>
  41695. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  41696. transient="false" volatile="false"
  41697. static="true" final="true" visibility="public"
  41698. deprecated="not deprecated">
  41699. </field>
  41700. <field name="timeOutInterval" type="long"
  41701. transient="false" volatile="false"
  41702. static="false" final="false" visibility="protected"
  41703. deprecated="not deprecated">
  41704. <doc>
  41705. <![CDATA[Time after which the executing script would be timedout]]>
  41706. </doc>
  41707. </field>
  41708. <field name="ULIMIT_COMMAND" type="java.lang.String"
  41709. transient="false" volatile="false"
  41710. static="true" final="true" visibility="public"
  41711. deprecated="not deprecated">
  41712. <doc>
  41713. <![CDATA[a Unix command to get ulimit of a process.]]>
  41714. </doc>
  41715. </field>
  41716. <field name="WINDOWS" type="boolean"
  41717. transient="false" volatile="false"
  41718. static="true" final="true" visibility="public"
  41719. deprecated="not deprecated">
  41720. <doc>
  41721. <![CDATA[Set to true on Windows platforms]]>
  41722. </doc>
  41723. </field>
  41724. <doc>
  41725. <![CDATA[A base class for running a Unix command.
  41726. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  41727. <code>df</code>. It also offers facilities to gate commands by
  41728. time-intervals.]]>
  41729. </doc>
  41730. </class>
  41731. <!-- end class org.apache.hadoop.util.Shell -->
  41732. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  41733. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  41734. abstract="false"
  41735. static="true" final="false" visibility="public"
  41736. deprecated="not deprecated">
  41737. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  41738. static="false" final="false" visibility="public"
  41739. deprecated="not deprecated">
  41740. </constructor>
  41741. <method name="getExitCode" return="int"
  41742. abstract="false" native="false" synchronized="false"
  41743. static="false" final="false" visibility="public"
  41744. deprecated="not deprecated">
  41745. </method>
  41746. <doc>
  41747. <![CDATA[This is an IOException with exit code added.]]>
  41748. </doc>
  41749. </class>
  41750. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  41751. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41752. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  41753. abstract="false"
  41754. static="true" final="false" visibility="public"
  41755. deprecated="not deprecated">
  41756. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  41757. static="false" final="false" visibility="public"
  41758. deprecated="not deprecated">
  41759. </constructor>
  41760. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  41761. static="false" final="false" visibility="public"
  41762. deprecated="not deprecated">
  41763. </constructor>
  41764. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  41765. static="false" final="false" visibility="public"
  41766. deprecated="not deprecated">
  41767. </constructor>
  41768. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  41769. static="false" final="false" visibility="public"
  41770. deprecated="not deprecated">
  41771. <doc>
  41772. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  41773. @param execString The command to execute with arguments
  41774. @param dir If not-null, specifies the directory which should be set
  41775. as the current working directory for the command.
  41776. If null, the current working directory is not modified.
  41777. @param env If not-null, environment of the command will include the
  41778. key-value pairs specified in the map. If null, the current
  41779. environment is not modified.
  41780. @param timeout Specifies the time in milliseconds, after which the
  41781. command will be killed and the status marked as timedout.
  41782. If 0, the command will not be timed out.]]>
  41783. </doc>
  41784. </constructor>
  41785. <method name="execute"
  41786. abstract="false" native="false" synchronized="false"
  41787. static="false" final="false" visibility="public"
  41788. deprecated="not deprecated">
  41789. <exception name="IOException" type="java.io.IOException"/>
  41790. <doc>
  41791. <![CDATA[Execute the shell command.]]>
  41792. </doc>
  41793. </method>
  41794. <method name="getExecString" return="java.lang.String[]"
  41795. abstract="false" native="false" synchronized="false"
  41796. static="false" final="false" visibility="protected"
  41797. deprecated="not deprecated">
  41798. </method>
  41799. <method name="parseExecResult"
  41800. abstract="false" native="false" synchronized="false"
  41801. static="false" final="false" visibility="protected"
  41802. deprecated="not deprecated">
  41803. <param name="lines" type="java.io.BufferedReader"/>
  41804. <exception name="IOException" type="java.io.IOException"/>
  41805. </method>
  41806. <method name="getOutput" return="java.lang.String"
  41807. abstract="false" native="false" synchronized="false"
  41808. static="false" final="false" visibility="public"
  41809. deprecated="not deprecated">
  41810. <doc>
  41811. <![CDATA[Get the output of the shell command.]]>
  41812. </doc>
  41813. </method>
  41814. <method name="toString" return="java.lang.String"
  41815. abstract="false" native="false" synchronized="false"
  41816. static="false" final="false" visibility="public"
  41817. deprecated="not deprecated">
  41818. <doc>
  41819. <![CDATA[Returns the commands of this instance.
  41820. Arguments with spaces in are presented with quotes round; other
  41821. arguments are presented raw
  41822. @return a string representation of the object.]]>
  41823. </doc>
  41824. </method>
  41825. <doc>
  41826. <![CDATA[A simple shell command executor.
  41827. <code>ShellCommandExecutor</code>should be used in cases where the output
  41828. of the command needs no explicit parsing and where the command, working
  41829. directory and the environment remains unchanged. The output of the command
  41830. is stored as-is and is expected to be small.]]>
  41831. </doc>
  41832. </class>
  41833. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41834. <!-- start class org.apache.hadoop.util.StringUtils -->
  41835. <class name="StringUtils" extends="java.lang.Object"
  41836. abstract="false"
  41837. static="false" final="false" visibility="public"
  41838. deprecated="not deprecated">
  41839. <constructor name="StringUtils"
  41840. static="false" final="false" visibility="public"
  41841. deprecated="not deprecated">
  41842. </constructor>
  41843. <method name="stringifyException" return="java.lang.String"
  41844. abstract="false" native="false" synchronized="false"
  41845. static="true" final="false" visibility="public"
  41846. deprecated="not deprecated">
  41847. <param name="e" type="java.lang.Throwable"/>
  41848. <doc>
  41849. <![CDATA[Make a string representation of the exception.
  41850. @param e The exception to stringify
  41851. @return A string with exception name and call stack.]]>
  41852. </doc>
  41853. </method>
  41854. <method name="simpleHostname" return="java.lang.String"
  41855. abstract="false" native="false" synchronized="false"
  41856. static="true" final="false" visibility="public"
  41857. deprecated="not deprecated">
  41858. <param name="fullHostname" type="java.lang.String"/>
  41859. <doc>
  41860. <![CDATA[Given a full hostname, return the word upto the first dot.
  41861. @param fullHostname the full hostname
  41862. @return the hostname to the first dot]]>
  41863. </doc>
  41864. </method>
  41865. <method name="humanReadableInt" return="java.lang.String"
  41866. abstract="false" native="false" synchronized="false"
  41867. static="true" final="false" visibility="public"
  41868. deprecated="not deprecated">
  41869. <param name="number" type="long"/>
  41870. <doc>
  41871. <![CDATA[Given an integer, return a string that is in an approximate, but human
  41872. readable format.
  41873. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  41874. @param number the number to format
  41875. @return a human readable form of the integer]]>
  41876. </doc>
  41877. </method>
  41878. <method name="formatPercent" return="java.lang.String"
  41879. abstract="false" native="false" synchronized="false"
  41880. static="true" final="false" visibility="public"
  41881. deprecated="not deprecated">
  41882. <param name="done" type="double"/>
  41883. <param name="digits" type="int"/>
  41884. <doc>
  41885. <![CDATA[Format a percentage for presentation to the user.
  41886. @param done the percentage to format (0.0 to 1.0)
  41887. @param digits the number of digits past the decimal point
  41888. @return a string representation of the percentage]]>
  41889. </doc>
  41890. </method>
  41891. <method name="arrayToString" return="java.lang.String"
  41892. abstract="false" native="false" synchronized="false"
  41893. static="true" final="false" visibility="public"
  41894. deprecated="not deprecated">
  41895. <param name="strs" type="java.lang.String[]"/>
  41896. <doc>
  41897. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  41898. @param strs Array of strings
  41899. @return Empty string if strs.length is 0, comma separated list of strings
  41900. otherwise]]>
  41901. </doc>
  41902. </method>
  41903. <method name="byteToHexString" return="java.lang.String"
  41904. abstract="false" native="false" synchronized="false"
  41905. static="true" final="false" visibility="public"
  41906. deprecated="not deprecated">
  41907. <param name="bytes" type="byte[]"/>
  41908. <param name="start" type="int"/>
  41909. <param name="end" type="int"/>
  41910. <doc>
  41911. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  41912. representation of the bytes
  41913. @param bytes
  41914. @param start start index, inclusively
  41915. @param end end index, exclusively
  41916. @return hex string representation of the byte array]]>
  41917. </doc>
  41918. </method>
  41919. <method name="byteToHexString" return="java.lang.String"
  41920. abstract="false" native="false" synchronized="false"
  41921. static="true" final="false" visibility="public"
  41922. deprecated="not deprecated">
  41923. <param name="bytes" type="byte[]"/>
  41924. <doc>
  41925. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  41926. </doc>
  41927. </method>
  41928. <method name="hexStringToByte" return="byte[]"
  41929. abstract="false" native="false" synchronized="false"
  41930. static="true" final="false" visibility="public"
  41931. deprecated="not deprecated">
  41932. <param name="hex" type="java.lang.String"/>
  41933. <doc>
  41934. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  41935. string
  41936. @param hex the hex String array
  41937. @return a byte array that is a hex string representation of the given
  41938. string. The size of the byte array is therefore hex.length/2]]>
  41939. </doc>
  41940. </method>
  41941. <method name="uriToString" return="java.lang.String"
  41942. abstract="false" native="false" synchronized="false"
  41943. static="true" final="false" visibility="public"
  41944. deprecated="not deprecated">
  41945. <param name="uris" type="java.net.URI[]"/>
  41946. <doc>
  41947. <![CDATA[@param uris]]>
  41948. </doc>
  41949. </method>
  41950. <method name="stringToURI" return="java.net.URI[]"
  41951. abstract="false" native="false" synchronized="false"
  41952. static="true" final="false" visibility="public"
  41953. deprecated="not deprecated">
  41954. <param name="str" type="java.lang.String[]"/>
  41955. <doc>
  41956. <![CDATA[@param str]]>
  41957. </doc>
  41958. </method>
  41959. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  41960. abstract="false" native="false" synchronized="false"
  41961. static="true" final="false" visibility="public"
  41962. deprecated="not deprecated">
  41963. <param name="str" type="java.lang.String[]"/>
  41964. <doc>
  41965. <![CDATA[@param str]]>
  41966. </doc>
  41967. </method>
  41968. <method name="formatTimeDiff" return="java.lang.String"
  41969. abstract="false" native="false" synchronized="false"
  41970. static="true" final="false" visibility="public"
  41971. deprecated="not deprecated">
  41972. <param name="finishTime" type="long"/>
  41973. <param name="startTime" type="long"/>
  41974. <doc>
  41975. <![CDATA[Given a finish and start time in long milliseconds, returns a
  41976. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  41977. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  41978. @param finishTime finish time
  41979. @param startTime start time]]>
  41980. </doc>
  41981. </method>
  41982. <method name="formatTime" return="java.lang.String"
  41983. abstract="false" native="false" synchronized="false"
  41984. static="true" final="false" visibility="public"
  41985. deprecated="not deprecated">
  41986. <param name="timeDiff" type="long"/>
  41987. <doc>
  41988. <![CDATA[Given the time in long milliseconds, returns a
  41989. String in the format Xhrs, Ymins, Z sec.
  41990. @param timeDiff The time difference to format]]>
  41991. </doc>
  41992. </method>
  41993. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  41994. abstract="false" native="false" synchronized="false"
  41995. static="true" final="false" visibility="public"
  41996. deprecated="not deprecated">
  41997. <param name="dateFormat" type="java.text.DateFormat"/>
  41998. <param name="finishTime" type="long"/>
  41999. <param name="startTime" type="long"/>
  42000. <doc>
  42001. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  42002. as returned by formatTimeDiff().
  42003. If finish time is 0, empty string is returned, if start time is 0
  42004. then difference is not appended to return value.
  42005. @param dateFormat date format to use
  42006. @param finishTime fnish time
  42007. @param startTime start time
  42008. @return formatted value.]]>
  42009. </doc>
  42010. </method>
  42011. <method name="getStrings" return="java.lang.String[]"
  42012. abstract="false" native="false" synchronized="false"
  42013. static="true" final="false" visibility="public"
  42014. deprecated="not deprecated">
  42015. <param name="str" type="java.lang.String"/>
  42016. <doc>
  42017. <![CDATA[Returns an arraylist of strings.
  42018. @param str the comma seperated string values
  42019. @return the arraylist of the comma seperated string values]]>
  42020. </doc>
  42021. </method>
  42022. <method name="getStringCollection" return="java.util.Collection"
  42023. abstract="false" native="false" synchronized="false"
  42024. static="true" final="false" visibility="public"
  42025. deprecated="not deprecated">
  42026. <param name="str" type="java.lang.String"/>
  42027. <doc>
  42028. <![CDATA[Returns a collection of strings.
  42029. @param str comma seperated string values
  42030. @return an <code>ArrayList</code> of string values]]>
  42031. </doc>
  42032. </method>
  42033. <method name="split" 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="str" type="java.lang.String"/>
  42038. <doc>
  42039. <![CDATA[Split a string using the default separator
  42040. @param str a string that may have escaped separator
  42041. @return an array of strings]]>
  42042. </doc>
  42043. </method>
  42044. <method name="split" 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="str" type="java.lang.String"/>
  42049. <param name="escapeChar" type="char"/>
  42050. <param name="separator" type="char"/>
  42051. <doc>
  42052. <![CDATA[Split a string using the given separator
  42053. @param str a string that may have escaped separator
  42054. @param escapeChar a char that be used to escape the separator
  42055. @param separator a separator char
  42056. @return an array of strings]]>
  42057. </doc>
  42058. </method>
  42059. <method name="findNext" return="int"
  42060. abstract="false" native="false" synchronized="false"
  42061. static="true" final="false" visibility="public"
  42062. deprecated="not deprecated">
  42063. <param name="str" type="java.lang.String"/>
  42064. <param name="separator" type="char"/>
  42065. <param name="escapeChar" type="char"/>
  42066. <param name="start" type="int"/>
  42067. <param name="split" type="java.lang.StringBuilder"/>
  42068. <doc>
  42069. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  42070. separators starting from the index. Note the substring between the index
  42071. and the position of the separator is passed.
  42072. @param str the source string
  42073. @param separator the character to find
  42074. @param escapeChar character used to escape
  42075. @param start from where to search
  42076. @param split used to pass back the extracted string]]>
  42077. </doc>
  42078. </method>
  42079. <method name="escapeString" return="java.lang.String"
  42080. abstract="false" native="false" synchronized="false"
  42081. static="true" final="false" visibility="public"
  42082. deprecated="not deprecated">
  42083. <param name="str" type="java.lang.String"/>
  42084. <doc>
  42085. <![CDATA[Escape commas in the string using the default escape char
  42086. @param str a string
  42087. @return an escaped string]]>
  42088. </doc>
  42089. </method>
  42090. <method name="escapeString" return="java.lang.String"
  42091. abstract="false" native="false" synchronized="false"
  42092. static="true" final="false" visibility="public"
  42093. deprecated="not deprecated">
  42094. <param name="str" type="java.lang.String"/>
  42095. <param name="escapeChar" type="char"/>
  42096. <param name="charToEscape" type="char"/>
  42097. <doc>
  42098. <![CDATA[Escape <code>charToEscape</code> in the string
  42099. with the escape char <code>escapeChar</code>
  42100. @param str string
  42101. @param escapeChar escape char
  42102. @param charToEscape the char to be escaped
  42103. @return an escaped string]]>
  42104. </doc>
  42105. </method>
  42106. <method name="escapeString" return="java.lang.String"
  42107. abstract="false" native="false" synchronized="false"
  42108. static="true" final="false" visibility="public"
  42109. deprecated="not deprecated">
  42110. <param name="str" type="java.lang.String"/>
  42111. <param name="escapeChar" type="char"/>
  42112. <param name="charsToEscape" type="char[]"/>
  42113. <doc>
  42114. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  42115. </doc>
  42116. </method>
  42117. <method name="unEscapeString" return="java.lang.String"
  42118. abstract="false" native="false" synchronized="false"
  42119. static="true" final="false" visibility="public"
  42120. deprecated="not deprecated">
  42121. <param name="str" type="java.lang.String"/>
  42122. <doc>
  42123. <![CDATA[Unescape commas in the string using the default escape char
  42124. @param str a string
  42125. @return an unescaped string]]>
  42126. </doc>
  42127. </method>
  42128. <method name="unEscapeString" return="java.lang.String"
  42129. abstract="false" native="false" synchronized="false"
  42130. static="true" final="false" visibility="public"
  42131. deprecated="not deprecated">
  42132. <param name="str" type="java.lang.String"/>
  42133. <param name="escapeChar" type="char"/>
  42134. <param name="charToEscape" type="char"/>
  42135. <doc>
  42136. <![CDATA[Unescape <code>charToEscape</code> in the string
  42137. with the escape char <code>escapeChar</code>
  42138. @param str string
  42139. @param escapeChar escape char
  42140. @param charToEscape the escaped char
  42141. @return an unescaped string]]>
  42142. </doc>
  42143. </method>
  42144. <method name="unEscapeString" return="java.lang.String"
  42145. abstract="false" native="false" synchronized="false"
  42146. static="true" final="false" visibility="public"
  42147. deprecated="not deprecated">
  42148. <param name="str" type="java.lang.String"/>
  42149. <param name="escapeChar" type="char"/>
  42150. <param name="charsToEscape" type="char[]"/>
  42151. <doc>
  42152. <![CDATA[@param charsToEscape array of characters to unescape]]>
  42153. </doc>
  42154. </method>
  42155. <method name="getHostname" return="java.lang.String"
  42156. abstract="false" native="false" synchronized="false"
  42157. static="true" final="false" visibility="public"
  42158. deprecated="not deprecated">
  42159. <doc>
  42160. <![CDATA[Return hostname without throwing exception.
  42161. @return hostname]]>
  42162. </doc>
  42163. </method>
  42164. <method name="startupShutdownMessage"
  42165. abstract="false" native="false" synchronized="false"
  42166. static="true" final="false" visibility="public"
  42167. deprecated="not deprecated">
  42168. <param name="clazz" type="java.lang.Class"/>
  42169. <param name="args" type="java.lang.String[]"/>
  42170. <param name="LOG" type="org.apache.commons.logging.Log"/>
  42171. <doc>
  42172. <![CDATA[Print a log message for starting up and shutting down
  42173. @param clazz the class of the server
  42174. @param args arguments
  42175. @param LOG the target log object]]>
  42176. </doc>
  42177. </method>
  42178. <method name="escapeHTML" return="java.lang.String"
  42179. abstract="false" native="false" synchronized="false"
  42180. static="true" final="false" visibility="public"
  42181. deprecated="not deprecated">
  42182. <param name="string" type="java.lang.String"/>
  42183. <doc>
  42184. <![CDATA[Escapes HTML Special characters present in the string.
  42185. @param string
  42186. @return HTML Escaped String representation]]>
  42187. </doc>
  42188. </method>
  42189. <method name="byteDesc" return="java.lang.String"
  42190. abstract="false" native="false" synchronized="false"
  42191. static="true" final="false" visibility="public"
  42192. deprecated="not deprecated">
  42193. <param name="len" type="long"/>
  42194. <doc>
  42195. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  42196. </doc>
  42197. </method>
  42198. <method name="limitDecimalTo2" return="java.lang.String"
  42199. abstract="false" native="false" synchronized="true"
  42200. static="true" final="false" visibility="public"
  42201. deprecated="not deprecated">
  42202. <param name="d" type="double"/>
  42203. </method>
  42204. <method name="join" return="java.lang.String"
  42205. abstract="false" native="false" synchronized="false"
  42206. static="true" final="false" visibility="public"
  42207. deprecated="not deprecated">
  42208. <param name="separator" type="java.lang.CharSequence"/>
  42209. <param name="strings" type="java.lang.Iterable"/>
  42210. <doc>
  42211. <![CDATA[Concatenates strings, using a separator.
  42212. @param separator Separator to join with.
  42213. @param strings Strings to join.
  42214. @return the joined string]]>
  42215. </doc>
  42216. </method>
  42217. <method name="join" return="java.lang.String"
  42218. abstract="false" native="false" synchronized="false"
  42219. static="true" final="false" visibility="public"
  42220. deprecated="not deprecated">
  42221. <param name="separator" type="java.lang.CharSequence"/>
  42222. <param name="strings" type="java.lang.String[]"/>
  42223. <doc>
  42224. <![CDATA[Concatenates strings, using a separator.
  42225. @param separator to join with
  42226. @param strings to join
  42227. @return the joined string]]>
  42228. </doc>
  42229. </method>
  42230. <method name="join" return="java.lang.String"
  42231. abstract="false" native="false" synchronized="false"
  42232. static="true" final="false" visibility="public"
  42233. deprecated="not deprecated">
  42234. <param name="separator" type="java.lang.CharSequence"/>
  42235. <param name="objects" type="java.lang.Object[]"/>
  42236. <doc>
  42237. <![CDATA[Concatenates objects, using a separator.
  42238. @param separator to join with
  42239. @param objects to join
  42240. @return the joined string]]>
  42241. </doc>
  42242. </method>
  42243. <method name="capitalize" return="java.lang.String"
  42244. abstract="false" native="false" synchronized="false"
  42245. static="true" final="false" visibility="public"
  42246. deprecated="not deprecated">
  42247. <param name="s" type="java.lang.String"/>
  42248. <doc>
  42249. <![CDATA[Capitalize a word
  42250. @param s the input string
  42251. @return capitalized string]]>
  42252. </doc>
  42253. </method>
  42254. <method name="camelize" return="java.lang.String"
  42255. abstract="false" native="false" synchronized="false"
  42256. static="true" final="false" visibility="public"
  42257. deprecated="not deprecated">
  42258. <param name="s" type="java.lang.String"/>
  42259. <doc>
  42260. <![CDATA[Convert SOME_STUFF to SomeStuff
  42261. @param s input string
  42262. @return camelized string]]>
  42263. </doc>
  42264. </method>
  42265. <field name="COMMA" type="char"
  42266. transient="false" volatile="false"
  42267. static="true" final="true" visibility="public"
  42268. deprecated="not deprecated">
  42269. </field>
  42270. <field name="COMMA_STR" type="java.lang.String"
  42271. transient="false" volatile="false"
  42272. static="true" final="true" visibility="public"
  42273. deprecated="not deprecated">
  42274. </field>
  42275. <field name="ESCAPE_CHAR" type="char"
  42276. transient="false" volatile="false"
  42277. static="true" final="true" visibility="public"
  42278. deprecated="not deprecated">
  42279. </field>
  42280. <doc>
  42281. <![CDATA[General string utils]]>
  42282. </doc>
  42283. </class>
  42284. <!-- end class org.apache.hadoop.util.StringUtils -->
  42285. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42286. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  42287. abstract="false"
  42288. static="true" final="true" visibility="public"
  42289. deprecated="not deprecated">
  42290. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  42291. abstract="false" native="false" synchronized="false"
  42292. static="true" final="false" visibility="public"
  42293. deprecated="not deprecated">
  42294. </method>
  42295. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42296. abstract="false" native="false" synchronized="false"
  42297. static="true" final="false" visibility="public"
  42298. deprecated="not deprecated">
  42299. <param name="name" type="java.lang.String"/>
  42300. </method>
  42301. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42302. abstract="false" native="false" synchronized="false"
  42303. static="true" final="false" visibility="public"
  42304. deprecated="not deprecated">
  42305. <param name="symbol" type="char"/>
  42306. <doc>
  42307. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  42308. </doc>
  42309. </method>
  42310. <method name="string2long" return="long"
  42311. abstract="false" native="false" synchronized="false"
  42312. static="true" final="false" visibility="public"
  42313. deprecated="not deprecated">
  42314. <param name="s" type="java.lang.String"/>
  42315. <doc>
  42316. <![CDATA[Convert a string to long.
  42317. The input string is first be trimmed
  42318. and then it is parsed with traditional binary prefix.
  42319. For example,
  42320. "-1230k" will be converted to -1230 * 1024 = -1259520;
  42321. "891g" will be converted to 891 * 1024^3 = 956703965184;
  42322. @param s input string
  42323. @return a long value represented by the input string.]]>
  42324. </doc>
  42325. </method>
  42326. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42327. transient="false" volatile="false"
  42328. static="true" final="true" visibility="public"
  42329. deprecated="not deprecated">
  42330. </field>
  42331. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42332. transient="false" volatile="false"
  42333. static="true" final="true" visibility="public"
  42334. deprecated="not deprecated">
  42335. </field>
  42336. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42337. transient="false" volatile="false"
  42338. static="true" final="true" visibility="public"
  42339. deprecated="not deprecated">
  42340. </field>
  42341. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42342. transient="false" volatile="false"
  42343. static="true" final="true" visibility="public"
  42344. deprecated="not deprecated">
  42345. </field>
  42346. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42347. transient="false" volatile="false"
  42348. static="true" final="true" visibility="public"
  42349. deprecated="not deprecated">
  42350. </field>
  42351. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42352. transient="false" volatile="false"
  42353. static="true" final="true" visibility="public"
  42354. deprecated="not deprecated">
  42355. </field>
  42356. <field name="value" type="long"
  42357. transient="false" volatile="false"
  42358. static="false" final="true" visibility="public"
  42359. deprecated="not deprecated">
  42360. </field>
  42361. <field name="symbol" type="char"
  42362. transient="false" volatile="false"
  42363. static="false" final="true" visibility="public"
  42364. deprecated="not deprecated">
  42365. </field>
  42366. <doc>
  42367. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  42368. which can be represented by a 64-bit integer.
  42369. TraditionalBinaryPrefix symbol are case insensitive.]]>
  42370. </doc>
  42371. </class>
  42372. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42373. <!-- start interface org.apache.hadoop.util.Tool -->
  42374. <interface name="Tool" abstract="true"
  42375. static="false" final="false" visibility="public"
  42376. deprecated="not deprecated">
  42377. <implements name="org.apache.hadoop.conf.Configurable"/>
  42378. <method name="run" return="int"
  42379. abstract="false" native="false" synchronized="false"
  42380. static="false" final="false" visibility="public"
  42381. deprecated="not deprecated">
  42382. <param name="args" type="java.lang.String[]"/>
  42383. <exception name="Exception" type="java.lang.Exception"/>
  42384. <doc>
  42385. <![CDATA[Execute the command with the given arguments.
  42386. @param args command specific arguments.
  42387. @return exit code.
  42388. @throws Exception]]>
  42389. </doc>
  42390. </method>
  42391. <doc>
  42392. <![CDATA[A tool interface that supports handling of generic command-line options.
  42393. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  42394. The tool/application should delegate the handling of
  42395. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42396. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  42397. and only handle its custom arguments.</p>
  42398. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  42399. <p><blockquote><pre>
  42400. public class MyApp extends Configured implements Tool {
  42401. public int run(String[] args) throws Exception {
  42402. // <code>Configuration</code> processed by <code>ToolRunner</code>
  42403. Configuration conf = getConf();
  42404. // Create a JobConf using the processed <code>conf</code>
  42405. JobConf job = new JobConf(conf, MyApp.class);
  42406. // Process custom command-line options
  42407. Path in = new Path(args[1]);
  42408. Path out = new Path(args[2]);
  42409. // Specify various job-specific parameters
  42410. job.setJobName("my-app");
  42411. job.setInputPath(in);
  42412. job.setOutputPath(out);
  42413. job.setMapperClass(MyApp.MyMapper.class);
  42414. job.setReducerClass(MyApp.MyReducer.class);
  42415. // Submit the job, then poll for progress until the job is complete
  42416. JobClient.runJob(job);
  42417. }
  42418. public static void main(String[] args) throws Exception {
  42419. // Let <code>ToolRunner</code> handle generic command-line options
  42420. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  42421. System.exit(res);
  42422. }
  42423. }
  42424. </pre></blockquote></p>
  42425. @see GenericOptionsParser
  42426. @see ToolRunner]]>
  42427. </doc>
  42428. </interface>
  42429. <!-- end interface org.apache.hadoop.util.Tool -->
  42430. <!-- start class org.apache.hadoop.util.ToolRunner -->
  42431. <class name="ToolRunner" extends="java.lang.Object"
  42432. abstract="false"
  42433. static="false" final="false" visibility="public"
  42434. deprecated="not deprecated">
  42435. <constructor name="ToolRunner"
  42436. static="false" final="false" visibility="public"
  42437. deprecated="not deprecated">
  42438. </constructor>
  42439. <method name="run" return="int"
  42440. abstract="false" native="false" synchronized="false"
  42441. static="true" final="false" visibility="public"
  42442. deprecated="not deprecated">
  42443. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42444. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42445. <param name="args" type="java.lang.String[]"/>
  42446. <exception name="Exception" type="java.lang.Exception"/>
  42447. <doc>
  42448. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  42449. parsing with the given generic arguments. Uses the given
  42450. <code>Configuration</code>, or builds one if null.
  42451. Sets the <code>Tool</code>'s configuration with the possibly modified
  42452. version of the <code>conf</code>.
  42453. @param conf <code>Configuration</code> for the <code>Tool</code>.
  42454. @param tool <code>Tool</code> to run.
  42455. @param args command-line arguments to the tool.
  42456. @return exit code of the {@link Tool#run(String[])} method.]]>
  42457. </doc>
  42458. </method>
  42459. <method name="run" return="int"
  42460. abstract="false" native="false" synchronized="false"
  42461. static="true" final="false" visibility="public"
  42462. deprecated="not deprecated">
  42463. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42464. <param name="args" type="java.lang.String[]"/>
  42465. <exception name="Exception" type="java.lang.Exception"/>
  42466. <doc>
  42467. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  42468. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  42469. @param tool <code>Tool</code> to run.
  42470. @param args command-line arguments to the tool.
  42471. @return exit code of the {@link Tool#run(String[])} method.]]>
  42472. </doc>
  42473. </method>
  42474. <method name="printGenericCommandUsage"
  42475. abstract="false" native="false" synchronized="false"
  42476. static="true" final="false" visibility="public"
  42477. deprecated="not deprecated">
  42478. <param name="out" type="java.io.PrintStream"/>
  42479. <doc>
  42480. <![CDATA[Prints generic command-line argurments and usage information.
  42481. @param out stream to write usage information to.]]>
  42482. </doc>
  42483. </method>
  42484. <doc>
  42485. <![CDATA[A utility to help run {@link Tool}s.
  42486. <p><code>ToolRunner</code> can be used to run classes implementing
  42487. <code>Tool</code> interface. It works in conjunction with
  42488. {@link GenericOptionsParser} to parse the
  42489. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42490. generic hadoop command line arguments</a> and modifies the
  42491. <code>Configuration</code> of the <code>Tool</code>. The
  42492. application-specific options are passed along without being modified.
  42493. </p>
  42494. @see Tool
  42495. @see GenericOptionsParser]]>
  42496. </doc>
  42497. </class>
  42498. <!-- end class org.apache.hadoop.util.ToolRunner -->
  42499. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42500. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  42501. abstract="false"
  42502. static="false" final="false" visibility="public"
  42503. deprecated="not deprecated">
  42504. <constructor name="UTF8ByteArrayUtils"
  42505. static="false" final="false" visibility="public"
  42506. deprecated="not deprecated">
  42507. </constructor>
  42508. <method name="findByte" return="int"
  42509. abstract="false" native="false" synchronized="false"
  42510. static="true" final="false" visibility="public"
  42511. deprecated="not deprecated">
  42512. <param name="utf" type="byte[]"/>
  42513. <param name="start" type="int"/>
  42514. <param name="end" type="int"/>
  42515. <param name="b" type="byte"/>
  42516. <doc>
  42517. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  42518. @param utf a byte array containing a UTF-8 encoded string
  42519. @param start starting offset
  42520. @param end ending position
  42521. @param b the byte to find
  42522. @return position that first byte occures otherwise -1]]>
  42523. </doc>
  42524. </method>
  42525. <method name="findBytes" return="int"
  42526. abstract="false" native="false" synchronized="false"
  42527. static="true" final="false" visibility="public"
  42528. deprecated="not deprecated">
  42529. <param name="utf" type="byte[]"/>
  42530. <param name="start" type="int"/>
  42531. <param name="end" type="int"/>
  42532. <param name="b" type="byte[]"/>
  42533. <doc>
  42534. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  42535. @param utf a byte array containing a UTF-8 encoded string
  42536. @param start starting offset
  42537. @param end ending position
  42538. @param b the bytes to find
  42539. @return position that first byte occures otherwise -1]]>
  42540. </doc>
  42541. </method>
  42542. <method name="findNthByte" return="int"
  42543. abstract="false" native="false" synchronized="false"
  42544. static="true" final="false" visibility="public"
  42545. deprecated="not deprecated">
  42546. <param name="utf" type="byte[]"/>
  42547. <param name="start" type="int"/>
  42548. <param name="length" type="int"/>
  42549. <param name="b" type="byte"/>
  42550. <param name="n" type="int"/>
  42551. <doc>
  42552. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42553. @param utf a byte array containing a UTF-8 encoded string
  42554. @param start starting offset
  42555. @param length the length of byte array
  42556. @param b the byte to find
  42557. @param n the desired occurrence of the given byte
  42558. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42559. </doc>
  42560. </method>
  42561. <method name="findNthByte" return="int"
  42562. abstract="false" native="false" synchronized="false"
  42563. static="true" final="false" visibility="public"
  42564. deprecated="not deprecated">
  42565. <param name="utf" type="byte[]"/>
  42566. <param name="b" type="byte"/>
  42567. <param name="n" type="int"/>
  42568. <doc>
  42569. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42570. @param utf a byte array containing a UTF-8 encoded string
  42571. @param b the byte to find
  42572. @param n the desired occurrence of the given byte
  42573. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42574. </doc>
  42575. </method>
  42576. </class>
  42577. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42578. <!-- start class org.apache.hadoop.util.VersionInfo -->
  42579. <class name="VersionInfo" extends="java.lang.Object"
  42580. abstract="false"
  42581. static="false" final="false" visibility="public"
  42582. deprecated="not deprecated">
  42583. <constructor name="VersionInfo"
  42584. static="false" final="false" visibility="public"
  42585. deprecated="not deprecated">
  42586. </constructor>
  42587. <method name="getVersion" return="java.lang.String"
  42588. abstract="false" native="false" synchronized="false"
  42589. static="true" final="false" visibility="public"
  42590. deprecated="not deprecated">
  42591. <doc>
  42592. <![CDATA[Get the Hadoop version.
  42593. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  42594. </doc>
  42595. </method>
  42596. <method name="getRevision" return="java.lang.String"
  42597. abstract="false" native="false" synchronized="false"
  42598. static="true" final="false" visibility="public"
  42599. deprecated="not deprecated">
  42600. <doc>
  42601. <![CDATA[Get the subversion revision number for the root directory
  42602. @return the revision number, eg. "451451"]]>
  42603. </doc>
  42604. </method>
  42605. <method name="getDate" return="java.lang.String"
  42606. abstract="false" native="false" synchronized="false"
  42607. static="true" final="false" visibility="public"
  42608. deprecated="not deprecated">
  42609. <doc>
  42610. <![CDATA[The date that Hadoop was compiled.
  42611. @return the compilation date in unix date format]]>
  42612. </doc>
  42613. </method>
  42614. <method name="getUser" return="java.lang.String"
  42615. abstract="false" native="false" synchronized="false"
  42616. static="true" final="false" visibility="public"
  42617. deprecated="not deprecated">
  42618. <doc>
  42619. <![CDATA[The user that compiled Hadoop.
  42620. @return the username of the user]]>
  42621. </doc>
  42622. </method>
  42623. <method name="getUrl" return="java.lang.String"
  42624. abstract="false" native="false" synchronized="false"
  42625. static="true" final="false" visibility="public"
  42626. deprecated="not deprecated">
  42627. <doc>
  42628. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  42629. </doc>
  42630. </method>
  42631. <method name="getSrcChecksum" return="java.lang.String"
  42632. abstract="false" native="false" synchronized="false"
  42633. static="true" final="false" visibility="public"
  42634. deprecated="not deprecated">
  42635. <doc>
  42636. <![CDATA[Get the checksum of the source files from which Hadoop was
  42637. built.]]>
  42638. </doc>
  42639. </method>
  42640. <method name="getBuildVersion" return="java.lang.String"
  42641. abstract="false" native="false" synchronized="false"
  42642. static="true" final="false" visibility="public"
  42643. deprecated="not deprecated">
  42644. <doc>
  42645. <![CDATA[Returns the full version string containing version,
  42646. revision, user and source checksum.]]>
  42647. </doc>
  42648. </method>
  42649. <method name="main"
  42650. abstract="false" native="false" synchronized="false"
  42651. static="true" final="false" visibility="public"
  42652. deprecated="not deprecated">
  42653. <param name="args" type="java.lang.String[]"/>
  42654. </method>
  42655. <doc>
  42656. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  42657. information.]]>
  42658. </doc>
  42659. </class>
  42660. <!-- end class org.apache.hadoop.util.VersionInfo -->
  42661. <!-- start class org.apache.hadoop.util.XMLUtils -->
  42662. <class name="XMLUtils" extends="java.lang.Object"
  42663. abstract="false"
  42664. static="false" final="false" visibility="public"
  42665. deprecated="not deprecated">
  42666. <constructor name="XMLUtils"
  42667. static="false" final="false" visibility="public"
  42668. deprecated="not deprecated">
  42669. </constructor>
  42670. <method name="transform"
  42671. abstract="false" native="false" synchronized="false"
  42672. static="true" final="false" visibility="public"
  42673. deprecated="not deprecated">
  42674. <param name="styleSheet" type="java.io.InputStream"/>
  42675. <param name="xml" type="java.io.InputStream"/>
  42676. <param name="out" type="java.io.Writer"/>
  42677. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  42678. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  42679. <doc>
  42680. <![CDATA[Transform input xml given a stylesheet.
  42681. @param styleSheet the style-sheet
  42682. @param xml input xml data
  42683. @param out output
  42684. @throws TransformerConfigurationException
  42685. @throws TransformerException]]>
  42686. </doc>
  42687. </method>
  42688. <doc>
  42689. <![CDATA[General xml utilities.]]>
  42690. </doc>
  42691. </class>
  42692. <!-- end class org.apache.hadoop.util.XMLUtils -->
  42693. </package>
  42694. <package name="org.apache.hadoop.util.bloom">
  42695. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  42696. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42697. abstract="false"
  42698. static="false" final="false" visibility="public"
  42699. deprecated="not deprecated">
  42700. <constructor name="BloomFilter"
  42701. static="false" final="false" visibility="public"
  42702. deprecated="not deprecated">
  42703. <doc>
  42704. <![CDATA[Default constructor - use with readFields]]>
  42705. </doc>
  42706. </constructor>
  42707. <constructor name="BloomFilter" type="int, int, int"
  42708. static="false" final="false" visibility="public"
  42709. deprecated="not deprecated">
  42710. <doc>
  42711. <![CDATA[Constructor
  42712. @param vectorSize The vector size of <i>this</i> filter.
  42713. @param nbHash The number of hash function to consider.
  42714. @param hashType type of the hashing function (see
  42715. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42716. </doc>
  42717. </constructor>
  42718. <method name="add"
  42719. abstract="false" native="false" synchronized="false"
  42720. static="false" final="false" visibility="public"
  42721. deprecated="not deprecated">
  42722. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42723. </method>
  42724. <method name="and"
  42725. abstract="false" native="false" synchronized="false"
  42726. static="false" final="false" visibility="public"
  42727. deprecated="not deprecated">
  42728. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42729. </method>
  42730. <method name="membershipTest" return="boolean"
  42731. abstract="false" native="false" synchronized="false"
  42732. static="false" final="false" visibility="public"
  42733. deprecated="not deprecated">
  42734. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42735. </method>
  42736. <method name="not"
  42737. abstract="false" native="false" synchronized="false"
  42738. static="false" final="false" visibility="public"
  42739. deprecated="not deprecated">
  42740. </method>
  42741. <method name="or"
  42742. abstract="false" native="false" synchronized="false"
  42743. static="false" final="false" visibility="public"
  42744. deprecated="not deprecated">
  42745. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42746. </method>
  42747. <method name="xor"
  42748. abstract="false" native="false" synchronized="false"
  42749. static="false" final="false" visibility="public"
  42750. deprecated="not deprecated">
  42751. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42752. </method>
  42753. <method name="toString" return="java.lang.String"
  42754. abstract="false" native="false" synchronized="false"
  42755. static="false" final="false" visibility="public"
  42756. deprecated="not deprecated">
  42757. </method>
  42758. <method name="getVectorSize" return="int"
  42759. abstract="false" native="false" synchronized="false"
  42760. static="false" final="false" visibility="public"
  42761. deprecated="not deprecated">
  42762. <doc>
  42763. <![CDATA[@return size of the the bloomfilter]]>
  42764. </doc>
  42765. </method>
  42766. <method name="write"
  42767. abstract="false" native="false" synchronized="false"
  42768. static="false" final="false" visibility="public"
  42769. deprecated="not deprecated">
  42770. <param name="out" type="java.io.DataOutput"/>
  42771. <exception name="IOException" type="java.io.IOException"/>
  42772. </method>
  42773. <method name="readFields"
  42774. abstract="false" native="false" synchronized="false"
  42775. static="false" final="false" visibility="public"
  42776. deprecated="not deprecated">
  42777. <param name="in" type="java.io.DataInput"/>
  42778. <exception name="IOException" type="java.io.IOException"/>
  42779. </method>
  42780. <doc>
  42781. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  42782. <p>
  42783. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  42784. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  42785. offers for the transmission of set membership information between networked hosts. A sender encodes
  42786. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  42787. representation. Computation and space costs for construction are linear in the number of elements.
  42788. The receiver uses the filter to test whether various elements are members of the set. Though the
  42789. filter will occasionally return a false positive, it will never return a false negative. When creating
  42790. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  42791. <p>
  42792. Originally created by
  42793. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42794. @see Filter The general behavior of a filter
  42795. @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>]]>
  42796. </doc>
  42797. </class>
  42798. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  42799. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  42800. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42801. abstract="false"
  42802. static="false" final="true" visibility="public"
  42803. deprecated="not deprecated">
  42804. <constructor name="CountingBloomFilter"
  42805. static="false" final="false" visibility="public"
  42806. deprecated="not deprecated">
  42807. <doc>
  42808. <![CDATA[Default constructor - use with readFields]]>
  42809. </doc>
  42810. </constructor>
  42811. <constructor name="CountingBloomFilter" type="int, int, int"
  42812. static="false" final="false" visibility="public"
  42813. deprecated="not deprecated">
  42814. <doc>
  42815. <![CDATA[Constructor
  42816. @param vectorSize The vector size of <i>this</i> filter.
  42817. @param nbHash The number of hash function to consider.
  42818. @param hashType type of the hashing function (see
  42819. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42820. </doc>
  42821. </constructor>
  42822. <method name="add"
  42823. abstract="false" native="false" synchronized="false"
  42824. static="false" final="false" visibility="public"
  42825. deprecated="not deprecated">
  42826. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42827. </method>
  42828. <method name="delete"
  42829. abstract="false" native="false" synchronized="false"
  42830. static="false" final="false" visibility="public"
  42831. deprecated="not deprecated">
  42832. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42833. <doc>
  42834. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  42835. <p>
  42836. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  42837. @param key The key to remove.]]>
  42838. </doc>
  42839. </method>
  42840. <method name="and"
  42841. abstract="false" native="false" synchronized="false"
  42842. static="false" final="false" visibility="public"
  42843. deprecated="not deprecated">
  42844. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42845. </method>
  42846. <method name="membershipTest" return="boolean"
  42847. abstract="false" native="false" synchronized="false"
  42848. static="false" final="false" visibility="public"
  42849. deprecated="not deprecated">
  42850. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42851. </method>
  42852. <method name="approximateCount" return="int"
  42853. abstract="false" native="false" synchronized="false"
  42854. static="false" final="false" visibility="public"
  42855. deprecated="not deprecated">
  42856. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42857. <doc>
  42858. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  42859. times the key was added to the filter. This allows the filter to be
  42860. used as an approximate <code>key -&gt; count</code> map.
  42861. <p>NOTE: due to the bucket size of this filter, inserting the same
  42862. key more than 15 times will cause an overflow at all filter positions
  42863. associated with this key, and it will significantly increase the error
  42864. rate for this and other keys. For this reason the filter can only be
  42865. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  42866. @param key key to be tested
  42867. @return 0 if the key is not present. Otherwise, a positive value v will
  42868. be returned such that <code>v == count</code> with probability equal to the
  42869. error rate of this filter, and <code>v &gt; count</code> otherwise.
  42870. Additionally, if the filter experienced an underflow as a result of
  42871. {@link #delete(Key)} operation, the return value may be lower than the
  42872. <code>count</code> with the probability of the false negative rate of such
  42873. filter.]]>
  42874. </doc>
  42875. </method>
  42876. <method name="not"
  42877. abstract="false" native="false" synchronized="false"
  42878. static="false" final="false" visibility="public"
  42879. deprecated="not deprecated">
  42880. </method>
  42881. <method name="or"
  42882. abstract="false" native="false" synchronized="false"
  42883. static="false" final="false" visibility="public"
  42884. deprecated="not deprecated">
  42885. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42886. </method>
  42887. <method name="xor"
  42888. abstract="false" native="false" synchronized="false"
  42889. static="false" final="false" visibility="public"
  42890. deprecated="not deprecated">
  42891. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42892. </method>
  42893. <method name="toString" return="java.lang.String"
  42894. abstract="false" native="false" synchronized="false"
  42895. static="false" final="false" visibility="public"
  42896. deprecated="not deprecated">
  42897. </method>
  42898. <method name="write"
  42899. abstract="false" native="false" synchronized="false"
  42900. static="false" final="false" visibility="public"
  42901. deprecated="not deprecated">
  42902. <param name="out" type="java.io.DataOutput"/>
  42903. <exception name="IOException" type="java.io.IOException"/>
  42904. </method>
  42905. <method name="readFields"
  42906. abstract="false" native="false" synchronized="false"
  42907. static="false" final="false" visibility="public"
  42908. deprecated="not deprecated">
  42909. <param name="in" type="java.io.DataInput"/>
  42910. <exception name="IOException" type="java.io.IOException"/>
  42911. </method>
  42912. <doc>
  42913. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  42914. 2000 paper.
  42915. <p>
  42916. A counting Bloom filter is an improvement to standard a Bloom filter as it
  42917. allows dynamic additions and deletions of set membership information. This
  42918. is achieved through the use of a counting vector instead of a bit vector.
  42919. <p>
  42920. Originally created by
  42921. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42922. @see Filter The general behavior of a filter
  42923. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  42924. </doc>
  42925. </class>
  42926. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  42927. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  42928. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42929. abstract="false"
  42930. static="false" final="false" visibility="public"
  42931. deprecated="not deprecated">
  42932. <constructor name="DynamicBloomFilter"
  42933. static="false" final="false" visibility="public"
  42934. deprecated="not deprecated">
  42935. <doc>
  42936. <![CDATA[Zero-args constructor for the serialization.]]>
  42937. </doc>
  42938. </constructor>
  42939. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  42940. static="false" final="false" visibility="public"
  42941. deprecated="not deprecated">
  42942. <doc>
  42943. <![CDATA[Constructor.
  42944. <p>
  42945. Builds an empty Dynamic Bloom filter.
  42946. @param vectorSize The number of bits in the vector.
  42947. @param nbHash The number of hash function to consider.
  42948. @param hashType type of the hashing function (see
  42949. {@link org.apache.hadoop.util.hash.Hash}).
  42950. @param nr The threshold for the maximum number of keys to record in a
  42951. dynamic Bloom filter row.]]>
  42952. </doc>
  42953. </constructor>
  42954. <method name="add"
  42955. abstract="false" native="false" synchronized="false"
  42956. static="false" final="false" visibility="public"
  42957. deprecated="not deprecated">
  42958. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42959. </method>
  42960. <method name="and"
  42961. abstract="false" native="false" synchronized="false"
  42962. static="false" final="false" visibility="public"
  42963. deprecated="not deprecated">
  42964. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42965. </method>
  42966. <method name="membershipTest" return="boolean"
  42967. abstract="false" native="false" synchronized="false"
  42968. static="false" final="false" visibility="public"
  42969. deprecated="not deprecated">
  42970. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42971. </method>
  42972. <method name="not"
  42973. abstract="false" native="false" synchronized="false"
  42974. static="false" final="false" visibility="public"
  42975. deprecated="not deprecated">
  42976. </method>
  42977. <method name="or"
  42978. abstract="false" native="false" synchronized="false"
  42979. static="false" final="false" visibility="public"
  42980. deprecated="not deprecated">
  42981. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42982. </method>
  42983. <method name="xor"
  42984. abstract="false" native="false" synchronized="false"
  42985. static="false" final="false" visibility="public"
  42986. deprecated="not deprecated">
  42987. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42988. </method>
  42989. <method name="toString" return="java.lang.String"
  42990. abstract="false" native="false" synchronized="false"
  42991. static="false" final="false" visibility="public"
  42992. deprecated="not deprecated">
  42993. </method>
  42994. <method name="write"
  42995. abstract="false" native="false" synchronized="false"
  42996. static="false" final="false" visibility="public"
  42997. deprecated="not deprecated">
  42998. <param name="out" type="java.io.DataOutput"/>
  42999. <exception name="IOException" type="java.io.IOException"/>
  43000. </method>
  43001. <method name="readFields"
  43002. abstract="false" native="false" synchronized="false"
  43003. static="false" final="false" visibility="public"
  43004. deprecated="not deprecated">
  43005. <param name="in" type="java.io.DataInput"/>
  43006. <exception name="IOException" type="java.io.IOException"/>
  43007. </method>
  43008. <doc>
  43009. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  43010. <p>
  43011. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  43012. each of the <code>s</code> rows is a standard Bloom filter. The creation
  43013. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  43014. bit matrix, i.e., it is composed of a single standard Bloom filter.
  43015. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  43016. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  43017. the cardinality of the set <code>A</code> to record in the filter).
  43018. <p>
  43019. As the size of <code>A</code> grows during the execution of the application,
  43020. several keys must be inserted in the DBF. When inserting a key into the DBF,
  43021. one must first get an active Bloom filter in the matrix. A Bloom filter is
  43022. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  43023. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  43024. If an active Bloom filter is found, the key is inserted and
  43025. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  43026. is no active Bloom filter, a new one is created (i.e., a new row is added to
  43027. the matrix) according to the current size of <code>A</code> and the element
  43028. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  43029. this new Bloom filter is set to one. A given key is said to belong to the
  43030. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  43031. <p>
  43032. Originally created by
  43033. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43034. @see Filter The general behavior of a filter
  43035. @see BloomFilter A Bloom filter
  43036. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  43037. </doc>
  43038. </class>
  43039. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  43040. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  43041. <class name="Filter" extends="java.lang.Object"
  43042. abstract="true"
  43043. static="false" final="false" visibility="public"
  43044. deprecated="not deprecated">
  43045. <implements name="org.apache.hadoop.io.Writable"/>
  43046. <constructor name="Filter"
  43047. static="false" final="false" visibility="protected"
  43048. deprecated="not deprecated">
  43049. </constructor>
  43050. <constructor name="Filter" type="int, int, int"
  43051. static="false" final="false" visibility="protected"
  43052. deprecated="not deprecated">
  43053. <doc>
  43054. <![CDATA[Constructor.
  43055. @param vectorSize The vector size of <i>this</i> filter.
  43056. @param nbHash The number of hash functions to consider.
  43057. @param hashType type of the hashing function (see {@link Hash}).]]>
  43058. </doc>
  43059. </constructor>
  43060. <method name="add"
  43061. abstract="true" native="false" synchronized="false"
  43062. static="false" final="false" visibility="public"
  43063. deprecated="not deprecated">
  43064. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43065. <doc>
  43066. <![CDATA[Adds a key to <i>this</i> filter.
  43067. @param key The key to add.]]>
  43068. </doc>
  43069. </method>
  43070. <method name="membershipTest" return="boolean"
  43071. abstract="true" native="false" synchronized="false"
  43072. static="false" final="false" visibility="public"
  43073. deprecated="not deprecated">
  43074. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43075. <doc>
  43076. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  43077. @param key The key to test.
  43078. @return boolean True if the specified key belongs to <i>this</i> filter.
  43079. False otherwise.]]>
  43080. </doc>
  43081. </method>
  43082. <method name="and"
  43083. abstract="true" native="false" synchronized="false"
  43084. static="false" final="false" visibility="public"
  43085. deprecated="not deprecated">
  43086. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43087. <doc>
  43088. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  43089. <p>
  43090. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43091. @param filter The filter to AND with.]]>
  43092. </doc>
  43093. </method>
  43094. <method name="or"
  43095. abstract="true" native="false" synchronized="false"
  43096. static="false" final="false" visibility="public"
  43097. deprecated="not deprecated">
  43098. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43099. <doc>
  43100. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  43101. <p>
  43102. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43103. @param filter The filter to OR with.]]>
  43104. </doc>
  43105. </method>
  43106. <method name="xor"
  43107. abstract="true" native="false" synchronized="false"
  43108. static="false" final="false" visibility="public"
  43109. deprecated="not deprecated">
  43110. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43111. <doc>
  43112. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  43113. <p>
  43114. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43115. @param filter The filter to XOR with.]]>
  43116. </doc>
  43117. </method>
  43118. <method name="not"
  43119. abstract="true" native="false" synchronized="false"
  43120. static="false" final="false" visibility="public"
  43121. deprecated="not deprecated">
  43122. <doc>
  43123. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  43124. <p>
  43125. The result is assigned to <i>this</i> filter.]]>
  43126. </doc>
  43127. </method>
  43128. <method name="add"
  43129. abstract="false" native="false" synchronized="false"
  43130. static="false" final="false" visibility="public"
  43131. deprecated="not deprecated">
  43132. <param name="keys" type="java.util.List"/>
  43133. <doc>
  43134. <![CDATA[Adds a list of keys to <i>this</i> filter.
  43135. @param keys The list of keys.]]>
  43136. </doc>
  43137. </method>
  43138. <method name="add"
  43139. abstract="false" native="false" synchronized="false"
  43140. static="false" final="false" visibility="public"
  43141. deprecated="not deprecated">
  43142. <param name="keys" type="java.util.Collection"/>
  43143. <doc>
  43144. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  43145. @param keys The collection of keys.]]>
  43146. </doc>
  43147. </method>
  43148. <method name="add"
  43149. abstract="false" native="false" synchronized="false"
  43150. static="false" final="false" visibility="public"
  43151. deprecated="not deprecated">
  43152. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43153. <doc>
  43154. <![CDATA[Adds an array of keys to <i>this</i> filter.
  43155. @param keys The array of keys.]]>
  43156. </doc>
  43157. </method>
  43158. <method name="write"
  43159. abstract="false" native="false" synchronized="false"
  43160. static="false" final="false" visibility="public"
  43161. deprecated="not deprecated">
  43162. <param name="out" type="java.io.DataOutput"/>
  43163. <exception name="IOException" type="java.io.IOException"/>
  43164. </method>
  43165. <method name="readFields"
  43166. abstract="false" native="false" synchronized="false"
  43167. static="false" final="false" visibility="public"
  43168. deprecated="not deprecated">
  43169. <param name="in" type="java.io.DataInput"/>
  43170. <exception name="IOException" type="java.io.IOException"/>
  43171. </method>
  43172. <field name="vectorSize" type="int"
  43173. transient="false" volatile="false"
  43174. static="false" final="false" visibility="protected"
  43175. deprecated="not deprecated">
  43176. <doc>
  43177. <![CDATA[The vector size of <i>this</i> filter.]]>
  43178. </doc>
  43179. </field>
  43180. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  43181. transient="false" volatile="false"
  43182. static="false" final="false" visibility="protected"
  43183. deprecated="not deprecated">
  43184. <doc>
  43185. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  43186. </doc>
  43187. </field>
  43188. <field name="nbHash" type="int"
  43189. transient="false" volatile="false"
  43190. static="false" final="false" visibility="protected"
  43191. deprecated="not deprecated">
  43192. <doc>
  43193. <![CDATA[The number of hash function to consider.]]>
  43194. </doc>
  43195. </field>
  43196. <field name="hashType" type="int"
  43197. transient="false" volatile="false"
  43198. static="false" final="false" visibility="protected"
  43199. deprecated="not deprecated">
  43200. <doc>
  43201. <![CDATA[Type of hashing function to use.]]>
  43202. </doc>
  43203. </field>
  43204. <doc>
  43205. <![CDATA[Defines the general behavior of a filter.
  43206. <p>
  43207. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  43208. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  43209. in a vector through the use of several hash functions.
  43210. <p>
  43211. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  43212. <p>
  43213. It must be extended in order to define the real behavior.
  43214. @see Key The general behavior of a key
  43215. @see HashFunction A hash function]]>
  43216. </doc>
  43217. </class>
  43218. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  43219. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  43220. <class name="HashFunction" extends="java.lang.Object"
  43221. abstract="false"
  43222. static="false" final="true" visibility="public"
  43223. deprecated="not deprecated">
  43224. <constructor name="HashFunction" type="int, int, int"
  43225. static="false" final="false" visibility="public"
  43226. deprecated="not deprecated">
  43227. <doc>
  43228. <![CDATA[Constructor.
  43229. <p>
  43230. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  43231. @param maxValue The maximum highest returned value.
  43232. @param nbHash The number of resulting hashed values.
  43233. @param hashType type of the hashing function (see {@link Hash}).]]>
  43234. </doc>
  43235. </constructor>
  43236. <method name="clear"
  43237. abstract="false" native="false" synchronized="false"
  43238. static="false" final="false" visibility="public"
  43239. deprecated="not deprecated">
  43240. <doc>
  43241. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  43242. </doc>
  43243. </method>
  43244. <method name="hash" return="int[]"
  43245. abstract="false" native="false" synchronized="false"
  43246. static="false" final="false" visibility="public"
  43247. deprecated="not deprecated">
  43248. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  43249. <doc>
  43250. <![CDATA[Hashes a specified key into several integers.
  43251. @param k The specified key.
  43252. @return The array of hashed values.]]>
  43253. </doc>
  43254. </method>
  43255. <doc>
  43256. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  43257. @see Key The general behavior of a key being stored in a filter
  43258. @see Filter The general behavior of a filter]]>
  43259. </doc>
  43260. </class>
  43261. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  43262. <!-- start class org.apache.hadoop.util.bloom.Key -->
  43263. <class name="Key" extends="java.lang.Object"
  43264. abstract="false"
  43265. static="false" final="false" visibility="public"
  43266. deprecated="not deprecated">
  43267. <implements name="org.apache.hadoop.io.WritableComparable"/>
  43268. <constructor name="Key"
  43269. static="false" final="false" visibility="public"
  43270. deprecated="not deprecated">
  43271. <doc>
  43272. <![CDATA[default constructor - use with readFields]]>
  43273. </doc>
  43274. </constructor>
  43275. <constructor name="Key" type="byte[]"
  43276. static="false" final="false" visibility="public"
  43277. deprecated="not deprecated">
  43278. <doc>
  43279. <![CDATA[Constructor.
  43280. <p>
  43281. Builds a key with a default weight.
  43282. @param value The byte value of <i>this</i> key.]]>
  43283. </doc>
  43284. </constructor>
  43285. <constructor name="Key" type="byte[], double"
  43286. static="false" final="false" visibility="public"
  43287. deprecated="not deprecated">
  43288. <doc>
  43289. <![CDATA[Constructor.
  43290. <p>
  43291. Builds a key with a specified weight.
  43292. @param value The value of <i>this</i> key.
  43293. @param weight The weight associated to <i>this</i> key.]]>
  43294. </doc>
  43295. </constructor>
  43296. <method name="set"
  43297. abstract="false" native="false" synchronized="false"
  43298. static="false" final="false" visibility="public"
  43299. deprecated="not deprecated">
  43300. <param name="value" type="byte[]"/>
  43301. <param name="weight" type="double"/>
  43302. <doc>
  43303. <![CDATA[@param value
  43304. @param weight]]>
  43305. </doc>
  43306. </method>
  43307. <method name="getBytes" return="byte[]"
  43308. abstract="false" native="false" synchronized="false"
  43309. static="false" final="false" visibility="public"
  43310. deprecated="not deprecated">
  43311. <doc>
  43312. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  43313. </doc>
  43314. </method>
  43315. <method name="getWeight" return="double"
  43316. abstract="false" native="false" synchronized="false"
  43317. static="false" final="false" visibility="public"
  43318. deprecated="not deprecated">
  43319. <doc>
  43320. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  43321. </doc>
  43322. </method>
  43323. <method name="incrementWeight"
  43324. abstract="false" native="false" synchronized="false"
  43325. static="false" final="false" visibility="public"
  43326. deprecated="not deprecated">
  43327. <param name="weight" type="double"/>
  43328. <doc>
  43329. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  43330. @param weight The increment.]]>
  43331. </doc>
  43332. </method>
  43333. <method name="incrementWeight"
  43334. abstract="false" native="false" synchronized="false"
  43335. static="false" final="false" visibility="public"
  43336. deprecated="not deprecated">
  43337. <doc>
  43338. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  43339. </doc>
  43340. </method>
  43341. <method name="equals" return="boolean"
  43342. abstract="false" native="false" synchronized="false"
  43343. static="false" final="false" visibility="public"
  43344. deprecated="not deprecated">
  43345. <param name="o" type="java.lang.Object"/>
  43346. </method>
  43347. <method name="hashCode" return="int"
  43348. abstract="false" native="false" synchronized="false"
  43349. static="false" final="false" visibility="public"
  43350. deprecated="not deprecated">
  43351. </method>
  43352. <method name="write"
  43353. abstract="false" native="false" synchronized="false"
  43354. static="false" final="false" visibility="public"
  43355. deprecated="not deprecated">
  43356. <param name="out" type="java.io.DataOutput"/>
  43357. <exception name="IOException" type="java.io.IOException"/>
  43358. </method>
  43359. <method name="readFields"
  43360. abstract="false" native="false" synchronized="false"
  43361. static="false" final="false" visibility="public"
  43362. deprecated="not deprecated">
  43363. <param name="in" type="java.io.DataInput"/>
  43364. <exception name="IOException" type="java.io.IOException"/>
  43365. </method>
  43366. <method name="compareTo" return="int"
  43367. abstract="false" native="false" synchronized="false"
  43368. static="false" final="false" visibility="public"
  43369. deprecated="not deprecated">
  43370. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  43371. </method>
  43372. <doc>
  43373. <![CDATA[The general behavior of a key that must be stored in a filter.
  43374. @see Filter The general behavior of a filter]]>
  43375. </doc>
  43376. </class>
  43377. <!-- end class org.apache.hadoop.util.bloom.Key -->
  43378. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  43379. <interface name="RemoveScheme" abstract="true"
  43380. static="false" final="false" visibility="public"
  43381. deprecated="not deprecated">
  43382. <field name="RANDOM" type="short"
  43383. transient="false" volatile="false"
  43384. static="true" final="true" visibility="public"
  43385. deprecated="not deprecated">
  43386. <doc>
  43387. <![CDATA[Random selection.
  43388. <p>
  43389. The idea is to randomly select a bit to reset.]]>
  43390. </doc>
  43391. </field>
  43392. <field name="MINIMUM_FN" type="short"
  43393. transient="false" volatile="false"
  43394. static="true" final="true" visibility="public"
  43395. deprecated="not deprecated">
  43396. <doc>
  43397. <![CDATA[MinimumFN Selection.
  43398. <p>
  43399. The idea is to select the bit to reset that will generate the minimum
  43400. number of false negative.]]>
  43401. </doc>
  43402. </field>
  43403. <field name="MAXIMUM_FP" type="short"
  43404. transient="false" volatile="false"
  43405. static="true" final="true" visibility="public"
  43406. deprecated="not deprecated">
  43407. <doc>
  43408. <![CDATA[MaximumFP Selection.
  43409. <p>
  43410. The idea is to select the bit to reset that will remove the maximum number
  43411. of false positive.]]>
  43412. </doc>
  43413. </field>
  43414. <field name="RATIO" type="short"
  43415. transient="false" volatile="false"
  43416. static="true" final="true" visibility="public"
  43417. deprecated="not deprecated">
  43418. <doc>
  43419. <![CDATA[Ratio Selection.
  43420. <p>
  43421. The idea is to select the bit to reset that will, at the same time, remove
  43422. the maximum number of false positve while minimizing the amount of false
  43423. negative generated.]]>
  43424. </doc>
  43425. </field>
  43426. <doc>
  43427. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  43428. <p>
  43429. Originally created by
  43430. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  43431. </doc>
  43432. </interface>
  43433. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  43434. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  43435. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  43436. abstract="false"
  43437. static="false" final="true" visibility="public"
  43438. deprecated="not deprecated">
  43439. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  43440. <constructor name="RetouchedBloomFilter"
  43441. static="false" final="false" visibility="public"
  43442. deprecated="not deprecated">
  43443. <doc>
  43444. <![CDATA[Default constructor - use with readFields]]>
  43445. </doc>
  43446. </constructor>
  43447. <constructor name="RetouchedBloomFilter" type="int, int, int"
  43448. static="false" final="false" visibility="public"
  43449. deprecated="not deprecated">
  43450. <doc>
  43451. <![CDATA[Constructor
  43452. @param vectorSize The vector size of <i>this</i> filter.
  43453. @param nbHash The number of hash function to consider.
  43454. @param hashType type of the hashing function (see
  43455. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43456. </doc>
  43457. </constructor>
  43458. <method name="add"
  43459. abstract="false" native="false" synchronized="false"
  43460. static="false" final="false" visibility="public"
  43461. deprecated="not deprecated">
  43462. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43463. </method>
  43464. <method name="addFalsePositive"
  43465. abstract="false" native="false" synchronized="false"
  43466. static="false" final="false" visibility="public"
  43467. deprecated="not deprecated">
  43468. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43469. <doc>
  43470. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  43471. <p>
  43472. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  43473. @param key The false positive key to add.]]>
  43474. </doc>
  43475. </method>
  43476. <method name="addFalsePositive"
  43477. abstract="false" native="false" synchronized="false"
  43478. static="false" final="false" visibility="public"
  43479. deprecated="not deprecated">
  43480. <param name="coll" type="java.util.Collection"/>
  43481. <doc>
  43482. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  43483. @param coll The collection of false positive.]]>
  43484. </doc>
  43485. </method>
  43486. <method name="addFalsePositive"
  43487. abstract="false" native="false" synchronized="false"
  43488. static="false" final="false" visibility="public"
  43489. deprecated="not deprecated">
  43490. <param name="keys" type="java.util.List"/>
  43491. <doc>
  43492. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  43493. @param keys The list of false positive.]]>
  43494. </doc>
  43495. </method>
  43496. <method name="addFalsePositive"
  43497. abstract="false" native="false" synchronized="false"
  43498. static="false" final="false" visibility="public"
  43499. deprecated="not deprecated">
  43500. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43501. <doc>
  43502. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  43503. @param keys The array of false positive.]]>
  43504. </doc>
  43505. </method>
  43506. <method name="selectiveClearing"
  43507. abstract="false" native="false" synchronized="false"
  43508. static="false" final="false" visibility="public"
  43509. deprecated="not deprecated">
  43510. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  43511. <param name="scheme" type="short"/>
  43512. <doc>
  43513. <![CDATA[Performs the selective clearing for a given key.
  43514. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  43515. @param scheme The selective clearing scheme to apply.]]>
  43516. </doc>
  43517. </method>
  43518. <method name="write"
  43519. abstract="false" native="false" synchronized="false"
  43520. static="false" final="false" visibility="public"
  43521. deprecated="not deprecated">
  43522. <param name="out" type="java.io.DataOutput"/>
  43523. <exception name="IOException" type="java.io.IOException"/>
  43524. </method>
  43525. <method name="readFields"
  43526. abstract="false" native="false" synchronized="false"
  43527. static="false" final="false" visibility="public"
  43528. deprecated="not deprecated">
  43529. <param name="in" type="java.io.DataInput"/>
  43530. <exception name="IOException" type="java.io.IOException"/>
  43531. </method>
  43532. <doc>
  43533. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  43534. <p>
  43535. It allows the removal of selected false positives at the cost of introducing
  43536. random false negatives, and with the benefit of eliminating some random false
  43537. positives at the same time.
  43538. <p>
  43539. Originally created by
  43540. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43541. @see Filter The general behavior of a filter
  43542. @see BloomFilter A Bloom filter
  43543. @see RemoveScheme The different selective clearing algorithms
  43544. @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>]]>
  43545. </doc>
  43546. </class>
  43547. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  43548. </package>
  43549. <package name="org.apache.hadoop.util.hash">
  43550. <!-- start class org.apache.hadoop.util.hash.Hash -->
  43551. <class name="Hash" extends="java.lang.Object"
  43552. abstract="true"
  43553. static="false" final="false" visibility="public"
  43554. deprecated="not deprecated">
  43555. <constructor name="Hash"
  43556. static="false" final="false" visibility="public"
  43557. deprecated="not deprecated">
  43558. </constructor>
  43559. <method name="parseHashType" return="int"
  43560. abstract="false" native="false" synchronized="false"
  43561. static="true" final="false" visibility="public"
  43562. deprecated="not deprecated">
  43563. <param name="name" type="java.lang.String"/>
  43564. <doc>
  43565. <![CDATA[This utility method converts String representation of hash function name
  43566. to a symbolic constant. Currently two function types are supported,
  43567. "jenkins" and "murmur".
  43568. @param name hash function name
  43569. @return one of the predefined constants]]>
  43570. </doc>
  43571. </method>
  43572. <method name="getHashType" return="int"
  43573. abstract="false" native="false" synchronized="false"
  43574. static="true" final="false" visibility="public"
  43575. deprecated="not deprecated">
  43576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43577. <doc>
  43578. <![CDATA[This utility method converts the name of the configured
  43579. hash type to a symbolic constant.
  43580. @param conf configuration
  43581. @return one of the predefined constants]]>
  43582. </doc>
  43583. </method>
  43584. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43585. abstract="false" native="false" synchronized="false"
  43586. static="true" final="false" visibility="public"
  43587. deprecated="not deprecated">
  43588. <param name="type" type="int"/>
  43589. <doc>
  43590. <![CDATA[Get a singleton instance of hash function of a given type.
  43591. @param type predefined hash type
  43592. @return hash function instance, or null if type is invalid]]>
  43593. </doc>
  43594. </method>
  43595. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43596. abstract="false" native="false" synchronized="false"
  43597. static="true" final="false" visibility="public"
  43598. deprecated="not deprecated">
  43599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43600. <doc>
  43601. <![CDATA[Get a singleton instance of hash function of a type
  43602. defined in the configuration.
  43603. @param conf current configuration
  43604. @return defined hash type, or null if type is invalid]]>
  43605. </doc>
  43606. </method>
  43607. <method name="hash" return="int"
  43608. abstract="false" native="false" synchronized="false"
  43609. static="false" final="false" visibility="public"
  43610. deprecated="not deprecated">
  43611. <param name="bytes" type="byte[]"/>
  43612. <doc>
  43613. <![CDATA[Calculate a hash using all bytes from the input argument, and
  43614. a seed of -1.
  43615. @param bytes input bytes
  43616. @return hash value]]>
  43617. </doc>
  43618. </method>
  43619. <method name="hash" return="int"
  43620. abstract="false" native="false" synchronized="false"
  43621. static="false" final="false" visibility="public"
  43622. deprecated="not deprecated">
  43623. <param name="bytes" type="byte[]"/>
  43624. <param name="initval" type="int"/>
  43625. <doc>
  43626. <![CDATA[Calculate a hash using all bytes from the input argument,
  43627. and a provided seed value.
  43628. @param bytes input bytes
  43629. @param initval seed value
  43630. @return hash value]]>
  43631. </doc>
  43632. </method>
  43633. <method name="hash" return="int"
  43634. abstract="true" native="false" synchronized="false"
  43635. static="false" final="false" visibility="public"
  43636. deprecated="not deprecated">
  43637. <param name="bytes" type="byte[]"/>
  43638. <param name="length" type="int"/>
  43639. <param name="initval" type="int"/>
  43640. <doc>
  43641. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  43642. the provided seed value
  43643. @param bytes input bytes
  43644. @param length length of the valid bytes to consider
  43645. @param initval seed value
  43646. @return hash value]]>
  43647. </doc>
  43648. </method>
  43649. <field name="INVALID_HASH" type="int"
  43650. transient="false" volatile="false"
  43651. static="true" final="true" visibility="public"
  43652. deprecated="not deprecated">
  43653. <doc>
  43654. <![CDATA[Constant to denote invalid hash type.]]>
  43655. </doc>
  43656. </field>
  43657. <field name="JENKINS_HASH" type="int"
  43658. transient="false" volatile="false"
  43659. static="true" final="true" visibility="public"
  43660. deprecated="not deprecated">
  43661. <doc>
  43662. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  43663. </doc>
  43664. </field>
  43665. <field name="MURMUR_HASH" type="int"
  43666. transient="false" volatile="false"
  43667. static="true" final="true" visibility="public"
  43668. deprecated="not deprecated">
  43669. <doc>
  43670. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  43671. </doc>
  43672. </field>
  43673. <doc>
  43674. <![CDATA[This class represents a common API for hashing functions.]]>
  43675. </doc>
  43676. </class>
  43677. <!-- end class org.apache.hadoop.util.hash.Hash -->
  43678. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  43679. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  43680. abstract="false"
  43681. static="false" final="false" visibility="public"
  43682. deprecated="not deprecated">
  43683. <constructor name="JenkinsHash"
  43684. static="false" final="false" visibility="public"
  43685. deprecated="not deprecated">
  43686. </constructor>
  43687. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43688. abstract="false" native="false" synchronized="false"
  43689. static="true" final="false" visibility="public"
  43690. deprecated="not deprecated">
  43691. </method>
  43692. <method name="hash" return="int"
  43693. abstract="false" native="false" synchronized="false"
  43694. static="false" final="false" visibility="public"
  43695. deprecated="not deprecated">
  43696. <param name="key" type="byte[]"/>
  43697. <param name="nbytes" type="int"/>
  43698. <param name="initval" type="int"/>
  43699. <doc>
  43700. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  43701. @param key the key (the unaligned variable-length array of bytes)
  43702. @param nbytes number of bytes to include in hash
  43703. @param initval can be any integer value
  43704. @return a 32-bit value. Every bit of the key affects every bit of the
  43705. return value. Two keys differing by one or two bits will have totally
  43706. different hash values.
  43707. <p>The best hash table sizes are powers of 2. There is no need to do mod
  43708. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  43709. For example, if you need only 10 bits, do
  43710. <code>h = (h & hashmask(10));</code>
  43711. In which case, the hash table should have hashsize(10) elements.
  43712. <p>If you are hashing n strings byte[][] k, do it like this:
  43713. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  43714. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  43715. code any way you wish, private, educational, or commercial. It's free.
  43716. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  43717. acceptable. Do NOT use for cryptographic purposes.]]>
  43718. </doc>
  43719. </method>
  43720. <method name="main"
  43721. abstract="false" native="false" synchronized="false"
  43722. static="true" final="false" visibility="public"
  43723. deprecated="not deprecated">
  43724. <param name="args" type="java.lang.String[]"/>
  43725. <exception name="IOException" type="java.io.IOException"/>
  43726. <doc>
  43727. <![CDATA[Compute the hash of the specified file
  43728. @param args name of file to compute hash of.
  43729. @throws IOException]]>
  43730. </doc>
  43731. </method>
  43732. <doc>
  43733. <![CDATA[Produces 32-bit hash for hash table lookup.
  43734. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  43735. You can use this free for any purpose. It's in the public domain.
  43736. It has no warranty.
  43737. </pre>
  43738. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  43739. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  43740. function compares to others such as CRC, MD?, etc</a>
  43741. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  43742. Dr. Dobbs Article</a>]]>
  43743. </doc>
  43744. </class>
  43745. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  43746. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  43747. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  43748. abstract="false"
  43749. static="false" final="false" visibility="public"
  43750. deprecated="not deprecated">
  43751. <constructor name="MurmurHash"
  43752. static="false" final="false" visibility="public"
  43753. deprecated="not deprecated">
  43754. </constructor>
  43755. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43756. abstract="false" native="false" synchronized="false"
  43757. static="true" final="false" visibility="public"
  43758. deprecated="not deprecated">
  43759. </method>
  43760. <method name="hash" return="int"
  43761. abstract="false" native="false" synchronized="false"
  43762. static="false" final="false" visibility="public"
  43763. deprecated="not deprecated">
  43764. <param name="data" type="byte[]"/>
  43765. <param name="length" type="int"/>
  43766. <param name="seed" type="int"/>
  43767. </method>
  43768. <doc>
  43769. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  43770. lookup. See http://murmurhash.googlepages.com/ for more details.
  43771. <p>The C version of MurmurHash 2.0 found at that site was ported
  43772. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  43773. </doc>
  43774. </class>
  43775. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  43776. </package>
  43777. <package name="org.apache.hadoop.filecache">
  43778. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  43779. <class name="DistributedCache" extends="java.lang.Object"
  43780. abstract="false"
  43781. static="false" final="false" visibility="public"
  43782. deprecated="not deprecated">
  43783. <constructor name="DistributedCache"
  43784. static="false" final="false" visibility="public"
  43785. deprecated="not deprecated">
  43786. </constructor>
  43787. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  43788. abstract="false" native="false" synchronized="false"
  43789. static="true" final="false" visibility="public"
  43790. deprecated="not deprecated">
  43791. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43792. <param name="cache" type="java.net.URI"/>
  43793. <exception name="IOException" type="java.io.IOException"/>
  43794. <doc>
  43795. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  43796. MapReduce.
  43797. @param conf configuration
  43798. @param cache cache file
  43799. @return <code>FileStatus</code> of a given cache file on hdfs
  43800. @throws IOException]]>
  43801. </doc>
  43802. </method>
  43803. <method name="getTimestamp" return="long"
  43804. abstract="false" native="false" synchronized="false"
  43805. static="true" final="false" visibility="public"
  43806. deprecated="not deprecated">
  43807. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43808. <param name="cache" type="java.net.URI"/>
  43809. <exception name="IOException" type="java.io.IOException"/>
  43810. <doc>
  43811. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  43812. @param conf configuration
  43813. @param cache cache file
  43814. @return mtime of a given cache file on hdfs
  43815. @throws IOException]]>
  43816. </doc>
  43817. </method>
  43818. <method name="createAllSymlink"
  43819. abstract="false" native="false" synchronized="false"
  43820. static="true" final="false" visibility="public"
  43821. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  43822. instead.">
  43823. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43824. <param name="jobCacheDir" type="java.io.File"/>
  43825. <param name="workDir" type="java.io.File"/>
  43826. <exception name="IOException" type="java.io.IOException"/>
  43827. <doc>
  43828. <![CDATA[This method create symlinks for all files in a given dir in another directory
  43829. @param conf the configuration
  43830. @param jobCacheDir the target directory for creating symlinks
  43831. @param workDir the directory in which the symlinks are created
  43832. @throws IOException
  43833. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  43834. instead.]]>
  43835. </doc>
  43836. </method>
  43837. <method name="setCacheArchives"
  43838. abstract="false" native="false" synchronized="false"
  43839. static="true" final="false" visibility="public"
  43840. deprecated="not deprecated">
  43841. <param name="archives" type="java.net.URI[]"/>
  43842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43843. <doc>
  43844. <![CDATA[Set the configuration with the given set of archives. Intended
  43845. to be used by user code.
  43846. @param archives The list of archives that need to be localized
  43847. @param conf Configuration which will be changed]]>
  43848. </doc>
  43849. </method>
  43850. <method name="setCacheFiles"
  43851. abstract="false" native="false" synchronized="false"
  43852. static="true" final="false" visibility="public"
  43853. deprecated="not deprecated">
  43854. <param name="files" type="java.net.URI[]"/>
  43855. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43856. <doc>
  43857. <![CDATA[Set the configuration with the given set of files. Intended to be
  43858. used by user code.
  43859. @param files The list of files that need to be localized
  43860. @param conf Configuration which will be changed]]>
  43861. </doc>
  43862. </method>
  43863. <method name="getCacheArchives" return="java.net.URI[]"
  43864. abstract="false" native="false" synchronized="false"
  43865. static="true" final="false" visibility="public"
  43866. deprecated="not deprecated">
  43867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43868. <exception name="IOException" type="java.io.IOException"/>
  43869. <doc>
  43870. <![CDATA[Get cache archives set in the Configuration. Used by
  43871. internal DistributedCache and MapReduce code.
  43872. @param conf The configuration which contains the archives
  43873. @return An array of the caches set in the Configuration
  43874. @throws IOException]]>
  43875. </doc>
  43876. </method>
  43877. <method name="getCacheFiles" return="java.net.URI[]"
  43878. abstract="false" native="false" synchronized="false"
  43879. static="true" final="false" visibility="public"
  43880. deprecated="not deprecated">
  43881. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43882. <exception name="IOException" type="java.io.IOException"/>
  43883. <doc>
  43884. <![CDATA[Get cache files set in the Configuration. Used by internal
  43885. DistributedCache and MapReduce code.
  43886. @param conf The configuration which contains the files
  43887. @return Am array of the files set in the Configuration
  43888. @throws IOException]]>
  43889. </doc>
  43890. </method>
  43891. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  43892. abstract="false" native="false" synchronized="false"
  43893. static="true" final="false" visibility="public"
  43894. deprecated="not deprecated">
  43895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43896. <exception name="IOException" type="java.io.IOException"/>
  43897. <doc>
  43898. <![CDATA[Return the path array of the localized caches. Intended to be used
  43899. by user code.
  43900. @param conf Configuration that contains the localized archives
  43901. @return A path array of localized caches
  43902. @throws IOException]]>
  43903. </doc>
  43904. </method>
  43905. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  43906. abstract="false" native="false" synchronized="false"
  43907. static="true" final="false" visibility="public"
  43908. deprecated="not deprecated">
  43909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43910. <exception name="IOException" type="java.io.IOException"/>
  43911. <doc>
  43912. <![CDATA[Return the path array of the localized files. Intended to be used
  43913. by user code.
  43914. @param conf Configuration that contains the localized files
  43915. @return A path array of localized files
  43916. @throws IOException]]>
  43917. </doc>
  43918. </method>
  43919. <method name="getArchiveTimestamps" return="long[]"
  43920. abstract="false" native="false" synchronized="false"
  43921. static="true" final="false" visibility="public"
  43922. deprecated="not deprecated">
  43923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43924. <doc>
  43925. <![CDATA[Get the timestamps of the archives. Used by internal
  43926. DistributedCache and MapReduce code.
  43927. @param conf The configuration which stored the timestamps
  43928. @return a long array of timestamps
  43929. @throws IOException]]>
  43930. </doc>
  43931. </method>
  43932. <method name="getFileTimestamps" return="long[]"
  43933. abstract="false" native="false" synchronized="false"
  43934. static="true" final="false" visibility="public"
  43935. deprecated="not deprecated">
  43936. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43937. <doc>
  43938. <![CDATA[Get the timestamps of the files. Used by internal
  43939. DistributedCache and MapReduce code.
  43940. @param conf The configuration which stored the timestamps
  43941. @return a long array of timestamps
  43942. @throws IOException]]>
  43943. </doc>
  43944. </method>
  43945. <method name="setArchiveTimestamps"
  43946. abstract="false" native="false" synchronized="false"
  43947. static="true" final="false" visibility="public"
  43948. deprecated="not deprecated">
  43949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43950. <param name="timestamps" type="java.lang.String"/>
  43951. <doc>
  43952. <![CDATA[This is to check the timestamp of the archives to be localized.
  43953. Used by internal MapReduce code.
  43954. @param conf Configuration which stores the timestamp's
  43955. @param timestamps comma separated list of timestamps of archives.
  43956. The order should be the same as the order in which the archives are added.]]>
  43957. </doc>
  43958. </method>
  43959. <method name="setFileTimestamps"
  43960. abstract="false" native="false" synchronized="false"
  43961. static="true" final="false" visibility="public"
  43962. deprecated="not deprecated">
  43963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43964. <param name="timestamps" type="java.lang.String"/>
  43965. <doc>
  43966. <![CDATA[This is to check the timestamp of the files to be localized.
  43967. Used by internal MapReduce code.
  43968. @param conf Configuration which stores the timestamp's
  43969. @param timestamps comma separated list of timestamps of files.
  43970. The order should be the same as the order in which the files are added.]]>
  43971. </doc>
  43972. </method>
  43973. <method name="setLocalArchives"
  43974. abstract="false" native="false" synchronized="false"
  43975. static="true" final="false" visibility="public"
  43976. deprecated="not deprecated">
  43977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43978. <param name="str" type="java.lang.String"/>
  43979. <doc>
  43980. <![CDATA[Set the conf to contain the location for localized archives. Used
  43981. by internal DistributedCache code.
  43982. @param conf The conf to modify to contain the localized caches
  43983. @param str a comma separated list of local archives]]>
  43984. </doc>
  43985. </method>
  43986. <method name="setLocalFiles"
  43987. abstract="false" native="false" synchronized="false"
  43988. static="true" final="false" visibility="public"
  43989. deprecated="not deprecated">
  43990. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43991. <param name="str" type="java.lang.String"/>
  43992. <doc>
  43993. <![CDATA[Set the conf to contain the location for localized files. Used
  43994. by internal DistributedCache code.
  43995. @param conf The conf to modify to contain the localized caches
  43996. @param str a comma separated list of local files]]>
  43997. </doc>
  43998. </method>
  43999. <method name="addLocalArchives"
  44000. abstract="false" native="false" synchronized="false"
  44001. static="true" final="false" visibility="public"
  44002. deprecated="not deprecated">
  44003. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44004. <param name="str" type="java.lang.String"/>
  44005. <doc>
  44006. <![CDATA[Add a archive that has been localized to the conf. Used
  44007. by internal DistributedCache code.
  44008. @param conf The conf to modify to contain the localized caches
  44009. @param str a comma separated list of local archives]]>
  44010. </doc>
  44011. </method>
  44012. <method name="addLocalFiles"
  44013. abstract="false" native="false" synchronized="false"
  44014. static="true" final="false" visibility="public"
  44015. deprecated="not deprecated">
  44016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44017. <param name="str" type="java.lang.String"/>
  44018. <doc>
  44019. <![CDATA[Add a file that has been localized to the conf.. Used
  44020. by internal DistributedCache code.
  44021. @param conf The conf to modify to contain the localized caches
  44022. @param str a comma separated list of local files]]>
  44023. </doc>
  44024. </method>
  44025. <method name="addCacheArchive"
  44026. abstract="false" native="false" synchronized="false"
  44027. static="true" final="false" visibility="public"
  44028. deprecated="not deprecated">
  44029. <param name="uri" type="java.net.URI"/>
  44030. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44031. <doc>
  44032. <![CDATA[Add a archives to be localized to the conf. Intended to
  44033. be used by user code.
  44034. @param uri The uri of the cache to be localized
  44035. @param conf Configuration to add the cache to]]>
  44036. </doc>
  44037. </method>
  44038. <method name="addCacheFile"
  44039. abstract="false" native="false" synchronized="false"
  44040. static="true" final="false" visibility="public"
  44041. deprecated="not deprecated">
  44042. <param name="uri" type="java.net.URI"/>
  44043. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44044. <doc>
  44045. <![CDATA[Add a file to be localized to the conf. Intended
  44046. to be used by user code.
  44047. @param uri The uri of the cache to be localized
  44048. @param conf Configuration to add the cache to]]>
  44049. </doc>
  44050. </method>
  44051. <method name="addFileToClassPath"
  44052. abstract="false" native="false" synchronized="false"
  44053. static="true" final="false" visibility="public"
  44054. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44055. instead. The {@code FileSystem} should be obtained within an
  44056. appropriate {@code doAs}.">
  44057. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44059. <exception name="IOException" type="java.io.IOException"/>
  44060. <doc>
  44061. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44062. to cache as well. Intended to be used by user code.
  44063. @deprecated
  44064. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44065. instead. The {@code FileSystem} should be obtained within an
  44066. appropriate {@code doAs}.
  44067. @param file Path of the file to be added
  44068. @param conf Configuration that contains the classpath setting]]>
  44069. </doc>
  44070. </method>
  44071. <method name="addFileToClassPath"
  44072. abstract="false" native="false" synchronized="false"
  44073. static="true" final="false" visibility="public"
  44074. deprecated="not deprecated">
  44075. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44077. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44078. <exception name="IOException" type="java.io.IOException"/>
  44079. <doc>
  44080. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44081. to cache as well. Intended to be used by user code.
  44082. @param file Path of the file to be added
  44083. @param conf Configuration that contains the classpath setting
  44084. @param fs FileSystem with respect to which {@code archivefile} should
  44085. be interpreted.]]>
  44086. </doc>
  44087. </method>
  44088. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  44089. abstract="false" native="false" synchronized="false"
  44090. static="true" final="false" visibility="public"
  44091. deprecated="not deprecated">
  44092. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44093. <doc>
  44094. <![CDATA[Get the file entries in classpath as an array of Path.
  44095. Used by internal DistributedCache code.
  44096. @param conf Configuration that contains the classpath setting]]>
  44097. </doc>
  44098. </method>
  44099. <method name="addArchiveToClassPath"
  44100. abstract="false" native="false" synchronized="false"
  44101. static="true" final="false" visibility="public"
  44102. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44103. instead. The {@code FileSystem} should be obtained within an
  44104. appropriate {@code doAs}.">
  44105. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44106. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44107. <exception name="IOException" type="java.io.IOException"/>
  44108. <doc>
  44109. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44110. archive to cache as well. Intended to be used by user code.
  44111. @deprecated
  44112. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44113. instead. The {@code FileSystem} should be obtained within an
  44114. appropriate {@code doAs}.
  44115. @param archive Path of the archive to be added
  44116. @param conf Configuration that contains the classpath setting]]>
  44117. </doc>
  44118. </method>
  44119. <method name="addArchiveToClassPath"
  44120. abstract="false" native="false" synchronized="false"
  44121. static="true" final="false" visibility="public"
  44122. deprecated="not deprecated">
  44123. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44124. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44125. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44126. <exception name="IOException" type="java.io.IOException"/>
  44127. <doc>
  44128. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44129. archive to cache as well. Intended to be used by user code.
  44130. @param archive Path of the archive to be added
  44131. @param conf Configuration that contains the classpath setting
  44132. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  44133. </doc>
  44134. </method>
  44135. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  44136. abstract="false" native="false" synchronized="false"
  44137. static="true" final="false" visibility="public"
  44138. deprecated="not deprecated">
  44139. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44140. <doc>
  44141. <![CDATA[Get the archive entries in classpath as an array of Path.
  44142. Used by internal DistributedCache code.
  44143. @param conf Configuration that contains the classpath setting]]>
  44144. </doc>
  44145. </method>
  44146. <method name="createSymlink"
  44147. abstract="false" native="false" synchronized="false"
  44148. static="true" final="false" visibility="public"
  44149. deprecated="not deprecated">
  44150. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44151. <doc>
  44152. <![CDATA[This method allows you to create symlinks in the current working directory
  44153. of the task to all the cache files/archives.
  44154. Intended to be used by user code.
  44155. @param conf the jobconf]]>
  44156. </doc>
  44157. </method>
  44158. <method name="getSymlink" return="boolean"
  44159. abstract="false" native="false" synchronized="false"
  44160. static="true" final="false" visibility="public"
  44161. deprecated="not deprecated">
  44162. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44163. <doc>
  44164. <![CDATA[This method checks to see if symlinks are to be create for the
  44165. localized cache files in the current working directory
  44166. Used by internal DistributedCache code.
  44167. @param conf the jobconf
  44168. @return true if symlinks are to be created- else return false]]>
  44169. </doc>
  44170. </method>
  44171. <method name="checkURIs" return="boolean"
  44172. abstract="false" native="false" synchronized="false"
  44173. static="true" final="false" visibility="public"
  44174. deprecated="not deprecated">
  44175. <param name="uriFiles" type="java.net.URI[]"/>
  44176. <param name="uriArchives" type="java.net.URI[]"/>
  44177. <doc>
  44178. <![CDATA[This method checks if there is a conflict in the fragment names
  44179. of the uris. Also makes sure that each uri has a fragment. It
  44180. is only to be called if you want to create symlinks for
  44181. the various archives and files. May be used by user code.
  44182. @param uriFiles The uri array of urifiles
  44183. @param uriArchives the uri array of uri archives]]>
  44184. </doc>
  44185. </method>
  44186. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  44187. transient="false" volatile="false"
  44188. static="true" final="true" visibility="public"
  44189. deprecated="not deprecated">
  44190. <doc>
  44191. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  44192. </doc>
  44193. </field>
  44194. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  44195. transient="false" volatile="false"
  44196. static="true" final="true" visibility="public"
  44197. deprecated="not deprecated">
  44198. <doc>
  44199. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  44200. </doc>
  44201. </field>
  44202. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  44203. transient="false" volatile="false"
  44204. static="true" final="true" visibility="public"
  44205. deprecated="not deprecated">
  44206. <doc>
  44207. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  44208. </doc>
  44209. </field>
  44210. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  44211. transient="false" volatile="false"
  44212. static="true" final="true" visibility="public"
  44213. deprecated="not deprecated">
  44214. <doc>
  44215. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  44216. </doc>
  44217. </field>
  44218. <field name="CACHE_ARCHIVES" type="java.lang.String"
  44219. transient="false" volatile="false"
  44220. static="true" final="true" visibility="public"
  44221. deprecated="not deprecated">
  44222. <doc>
  44223. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  44224. </doc>
  44225. </field>
  44226. <field name="CACHE_FILES" type="java.lang.String"
  44227. transient="false" volatile="false"
  44228. static="true" final="true" visibility="public"
  44229. deprecated="not deprecated">
  44230. <doc>
  44231. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  44232. </doc>
  44233. </field>
  44234. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  44235. transient="false" volatile="false"
  44236. static="true" final="true" visibility="public"
  44237. deprecated="not deprecated">
  44238. <doc>
  44239. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  44240. </doc>
  44241. </field>
  44242. <field name="CACHE_LOCALFILES" type="java.lang.String"
  44243. transient="false" volatile="false"
  44244. static="true" final="true" visibility="public"
  44245. deprecated="not deprecated">
  44246. <doc>
  44247. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  44248. </doc>
  44249. </field>
  44250. <field name="CACHE_SYMLINK" type="java.lang.String"
  44251. transient="false" volatile="false"
  44252. static="true" final="true" visibility="public"
  44253. deprecated="not deprecated">
  44254. <doc>
  44255. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  44256. </doc>
  44257. </field>
  44258. <doc>
  44259. <![CDATA[Distribute application-specific large, read-only files efficiently.
  44260. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  44261. framework to cache files (text, archives, jars etc.) needed by applications.
  44262. </p>
  44263. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  44264. via the {@link org.apache.hadoop.mapred.JobConf}.
  44265. The <code>DistributedCache</code> assumes that the
  44266. files specified via hdfs:// urls are already present on the
  44267. {@link FileSystem} at the path specified by the url.</p>
  44268. <p>The framework will copy the necessary files on to the slave node before
  44269. any tasks for the job are executed on that node. Its efficiency stems from
  44270. the fact that the files are only copied once per job and the ability to
  44271. cache archives which are un-archived on the slaves.</p>
  44272. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  44273. data/text files and/or more complex types such as archives, jars etc.
  44274. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  44275. Jars may be optionally added to the classpath of the tasks, a rudimentary
  44276. software distribution mechanism. Files have execution permissions.
  44277. Optionally users can also direct it to symlink the distributed cache file(s)
  44278. into the working directory of the task.</p>
  44279. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  44280. files. Clearly the cache files should not be modified by the application
  44281. or externally while the job is executing.</p>
  44282. <p>Here is an illustrative example on how to use the
  44283. <code>DistributedCache</code>:</p>
  44284. <p><blockquote><pre>
  44285. // Setting up the cache for the application
  44286. 1. Copy the requisite files to the <code>FileSystem</code>:
  44287. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  44288. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  44289. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  44290. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  44291. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  44292. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  44293. 2. Setup the application's <code>JobConf</code>:
  44294. JobConf job = new JobConf();
  44295. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  44296. job);
  44297. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  44298. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  44299. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  44300. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  44301. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  44302. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  44303. or {@link org.apache.hadoop.mapred.Reducer}:
  44304. public static class MapClass extends MapReduceBase
  44305. implements Mapper&lt;K, V, K, V&gt; {
  44306. private Path[] localArchives;
  44307. private Path[] localFiles;
  44308. public void configure(JobConf job) {
  44309. // Get the cached archives/files
  44310. localArchives = DistributedCache.getLocalCacheArchives(job);
  44311. localFiles = DistributedCache.getLocalCacheFiles(job);
  44312. }
  44313. public void map(K key, V value,
  44314. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  44315. throws IOException {
  44316. // Use data from the cached archives/files here
  44317. // ...
  44318. // ...
  44319. output.collect(k, v);
  44320. }
  44321. }
  44322. </pre></blockquote></p>
  44323. It is also very common to use the DistributedCache by using
  44324. {@link org.apache.hadoop.util.GenericOptionsParser}.
  44325. This class includes methods that should be used by users
  44326. (specifically those mentioned in the example above, as well
  44327. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  44328. as well as methods intended for use by the MapReduce framework
  44329. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  44330. details, see {@link TrackerDistributedCacheManager} and
  44331. {@link TaskDistributedCacheManager}.
  44332. @see TrackerDistributedCacheManager
  44333. @see TaskDistributedCacheManager
  44334. @see org.apache.hadoop.mapred.JobConf
  44335. @see org.apache.hadoop.mapred.JobClient]]>
  44336. </doc>
  44337. </class>
  44338. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  44339. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  44340. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  44341. abstract="false"
  44342. static="false" final="false" visibility="public"
  44343. deprecated="not deprecated">
  44344. <method name="setupCache"
  44345. abstract="false" native="false" synchronized="false"
  44346. static="false" final="false" visibility="public"
  44347. deprecated="not deprecated">
  44348. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  44349. <param name="publicCacheSubdir" type="java.lang.String"/>
  44350. <param name="privateCacheSubdir" type="java.lang.String"/>
  44351. <exception name="IOException" type="java.io.IOException"/>
  44352. <doc>
  44353. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  44354. the task configuration (which has been passed in via the constructor).
  44355. The private distributed cache is just looked at and the paths where the
  44356. files/archives should go to is decided here. The actual localization is
  44357. done by {@link JobLocalizer}.
  44358. It is the caller's responsibility to re-write the task configuration XML
  44359. file, if necessary.]]>
  44360. </doc>
  44361. </method>
  44362. <method name="getClassPaths" return="java.util.List"
  44363. abstract="false" native="false" synchronized="false"
  44364. static="false" final="false" visibility="public"
  44365. deprecated="not deprecated">
  44366. <exception name="IOException" type="java.io.IOException"/>
  44367. <doc>
  44368. <![CDATA[Retrieves class paths (as local references) to add.
  44369. Should be called after setup().]]>
  44370. </doc>
  44371. </method>
  44372. <method name="release"
  44373. abstract="false" native="false" synchronized="false"
  44374. static="false" final="false" visibility="public"
  44375. deprecated="not deprecated">
  44376. <exception name="IOException" type="java.io.IOException"/>
  44377. <doc>
  44378. <![CDATA[Releases the cached files/archives, so that space
  44379. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  44380. </doc>
  44381. </method>
  44382. <method name="setSizes"
  44383. abstract="false" native="false" synchronized="false"
  44384. static="false" final="false" visibility="public"
  44385. deprecated="not deprecated">
  44386. <param name="sizes" type="long[]"/>
  44387. <exception name="IOException" type="java.io.IOException"/>
  44388. </method>
  44389. <method name="makeClassLoader" return="java.lang.ClassLoader"
  44390. abstract="false" native="false" synchronized="false"
  44391. static="false" final="false" visibility="public"
  44392. deprecated="not deprecated">
  44393. <param name="parent" type="java.lang.ClassLoader"/>
  44394. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  44395. <doc>
  44396. <![CDATA[Creates a class loader that includes the designated
  44397. files and archives.]]>
  44398. </doc>
  44399. </method>
  44400. <doc>
  44401. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  44402. the cached files of a single job.
  44403. <b>This class is internal to Hadoop, and should not be treated as a public
  44404. interface.</b>]]>
  44405. </doc>
  44406. </class>
  44407. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  44408. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  44409. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  44410. abstract="false"
  44411. static="false" final="false" visibility="public"
  44412. deprecated="not deprecated">
  44413. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  44414. static="false" final="false" visibility="public"
  44415. deprecated="not deprecated">
  44416. <exception name="IOException" type="java.io.IOException"/>
  44417. </constructor>
  44418. <method name="downloadCacheObject" return="long"
  44419. abstract="false" native="false" synchronized="false"
  44420. static="true" final="false" visibility="public"
  44421. deprecated="not deprecated">
  44422. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44423. <param name="source" type="java.net.URI"/>
  44424. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  44425. <param name="desiredTimestamp" type="long"/>
  44426. <param name="isArchive" type="boolean"/>
  44427. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  44428. <exception name="IOException" type="java.io.IOException"/>
  44429. <doc>
  44430. <![CDATA[Download a given path to the local file system.
  44431. @param conf the job's configuration
  44432. @param source the source to copy from
  44433. @param destination where to copy the file. must be local fs
  44434. @param desiredTimestamp the required modification timestamp of the source
  44435. @param isArchive is this an archive that should be expanded
  44436. @param permission the desired permissions of the file.
  44437. @return for archives, the number of bytes in the unpacked directory
  44438. @throws IOException]]>
  44439. </doc>
  44440. </method>
  44441. <method name="createAllSymlink"
  44442. abstract="false" native="false" synchronized="false"
  44443. static="true" final="false" visibility="public"
  44444. deprecated="not deprecated">
  44445. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44446. <param name="jobCacheDir" type="java.io.File"/>
  44447. <param name="workDir" type="java.io.File"/>
  44448. <exception name="IOException" type="java.io.IOException"/>
  44449. <doc>
  44450. <![CDATA[This method create symlinks for all files in a given dir in another
  44451. directory.
  44452. Should not be used outside of DistributedCache code.
  44453. @param conf the configuration
  44454. @param jobCacheDir the target directory for creating symlinks
  44455. @param workDir the directory in which the symlinks are created
  44456. @throws IOException]]>
  44457. </doc>
  44458. </method>
  44459. <method name="purgeCache"
  44460. abstract="false" native="false" synchronized="false"
  44461. static="false" final="false" visibility="public"
  44462. deprecated="not deprecated">
  44463. <doc>
  44464. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  44465. should only be used when the server is reinitializing, because the users
  44466. are going to lose their files.]]>
  44467. </doc>
  44468. </method>
  44469. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  44470. abstract="false" native="false" synchronized="false"
  44471. static="false" final="false" visibility="public"
  44472. deprecated="not deprecated">
  44473. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44474. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  44475. <exception name="IOException" type="java.io.IOException"/>
  44476. </method>
  44477. <method name="setArchiveSizes"
  44478. abstract="false" native="false" synchronized="false"
  44479. static="false" final="false" visibility="public"
  44480. deprecated="not deprecated">
  44481. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44482. <param name="sizes" type="long[]"/>
  44483. <exception name="IOException" type="java.io.IOException"/>
  44484. <doc>
  44485. <![CDATA[Set the sizes for any archives, files, or directories in the private
  44486. distributed cache.]]>
  44487. </doc>
  44488. </method>
  44489. <method name="removeTaskDistributedCacheManager"
  44490. abstract="false" native="false" synchronized="false"
  44491. static="false" final="false" visibility="public"
  44492. deprecated="not deprecated">
  44493. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44494. </method>
  44495. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  44496. abstract="false" native="false" synchronized="false"
  44497. static="false" final="false" visibility="protected"
  44498. deprecated="not deprecated">
  44499. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44500. </method>
  44501. <method name="determineTimestamps"
  44502. abstract="false" native="false" synchronized="false"
  44503. static="true" final="false" visibility="public"
  44504. deprecated="not deprecated">
  44505. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44506. <exception name="IOException" type="java.io.IOException"/>
  44507. <doc>
  44508. <![CDATA[Determines timestamps of files to be cached, and stores those
  44509. in the configuration. This is intended to be used internally by JobClient
  44510. after all cache files have been added.
  44511. This is an internal method!
  44512. @param job Configuration of a job.
  44513. @throws IOException]]>
  44514. </doc>
  44515. </method>
  44516. <method name="determineCacheVisibilities"
  44517. abstract="false" native="false" synchronized="false"
  44518. static="true" final="false" visibility="public"
  44519. deprecated="not deprecated">
  44520. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44521. <exception name="IOException" type="java.io.IOException"/>
  44522. <doc>
  44523. <![CDATA[Determines the visibilities of the distributed cache files and
  44524. archives. The visibility of a cache path is "public" if the leaf component
  44525. has READ permissions for others, and the parent subdirs have
  44526. EXECUTE permissions for others
  44527. @param job
  44528. @throws IOException]]>
  44529. </doc>
  44530. </method>
  44531. <method name="getFileVisibilities" return="boolean[]"
  44532. abstract="false" native="false" synchronized="false"
  44533. static="true" final="false" visibility="public"
  44534. deprecated="not deprecated">
  44535. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44536. <doc>
  44537. <![CDATA[Get the booleans on whether the files are public or not. Used by
  44538. internal DistributedCache and MapReduce code.
  44539. @param conf The configuration which stored the timestamps
  44540. @return array of booleans
  44541. @throws IOException]]>
  44542. </doc>
  44543. </method>
  44544. <method name="getArchiveVisibilities" return="boolean[]"
  44545. abstract="false" native="false" synchronized="false"
  44546. static="true" final="false" visibility="public"
  44547. deprecated="not deprecated">
  44548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44549. <doc>
  44550. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  44551. internal DistributedCache and MapReduce code.
  44552. @param conf The configuration which stored the timestamps
  44553. @return array of booleans]]>
  44554. </doc>
  44555. </method>
  44556. <method name="getDelegationTokens"
  44557. abstract="false" native="false" synchronized="false"
  44558. static="true" final="false" visibility="public"
  44559. deprecated="not deprecated">
  44560. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44561. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  44562. <exception name="IOException" type="java.io.IOException"/>
  44563. <doc>
  44564. <![CDATA[For each archive or cache file - get the corresponding delegation token
  44565. @param job
  44566. @param credentials
  44567. @throws IOException]]>
  44568. </doc>
  44569. </method>
  44570. <method name="validate"
  44571. abstract="false" native="false" synchronized="false"
  44572. static="true" final="false" visibility="public"
  44573. deprecated="not deprecated">
  44574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44575. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44576. <doc>
  44577. <![CDATA[This is part of the framework API. It's called within the job
  44578. submission code only, not by users. In the non-error case it has
  44579. no side effects and returns normally. If there's a URI in both
  44580. mapred.cache.files and mapred.cache.archives, it throws its
  44581. exception.
  44582. @param conf a {@link Configuration} to be cheked for duplication
  44583. in cached URIs
  44584. @throws InvalidJobConfException]]>
  44585. </doc>
  44586. </method>
  44587. <method name="startCleanupThread"
  44588. abstract="false" native="false" synchronized="false"
  44589. static="false" final="false" visibility="public"
  44590. deprecated="not deprecated">
  44591. <doc>
  44592. <![CDATA[Start the background thread]]>
  44593. </doc>
  44594. </method>
  44595. <method name="stopCleanupThread"
  44596. abstract="false" native="false" synchronized="false"
  44597. static="false" final="false" visibility="public"
  44598. deprecated="not deprecated">
  44599. <doc>
  44600. <![CDATA[Stop the background thread]]>
  44601. </doc>
  44602. </method>
  44603. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  44604. transient="false" volatile="false"
  44605. static="false" final="false" visibility="protected"
  44606. deprecated="not deprecated">
  44607. </field>
  44608. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  44609. transient="false" volatile="false"
  44610. static="false" final="false" visibility="protected"
  44611. deprecated="not deprecated">
  44612. </field>
  44613. <doc>
  44614. <![CDATA[Manages a single machine's instance of a cross-job
  44615. cache. This class would typically be instantiated
  44616. by a TaskTracker (or something that emulates it,
  44617. like LocalJobRunner).
  44618. <b>This class is internal to Hadoop, and should not be treated as a public
  44619. interface.</b>]]>
  44620. </doc>
  44621. </class>
  44622. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  44623. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  44624. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  44625. abstract="false"
  44626. static="false" final="false" visibility="protected"
  44627. deprecated="not deprecated">
  44628. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  44629. static="false" final="false" visibility="protected"
  44630. deprecated="not deprecated">
  44631. </constructor>
  44632. <method name="deleteCacheInfoUpdate"
  44633. abstract="false" native="false" synchronized="false"
  44634. static="false" final="false" visibility="public"
  44635. deprecated="not deprecated">
  44636. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  44637. <doc>
  44638. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  44639. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  44640. @param cacheStatus cache status of the cache is deleted]]>
  44641. </doc>
  44642. </method>
  44643. <method name="addCacheInfoUpdate"
  44644. abstract="false" native="false" synchronized="false"
  44645. static="false" final="false" visibility="public"
  44646. deprecated="not deprecated">
  44647. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  44648. <doc>
  44649. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  44650. Increase the size and sub directory count of the cache from baseDirSize
  44651. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  44652. @param cacheStatus cache status of the cache is added]]>
  44653. </doc>
  44654. </method>
  44655. <doc>
  44656. <![CDATA[This class holds properties of each base directories and is responsible
  44657. for clean up unused cache files in base directories.]]>
  44658. </doc>
  44659. </class>
  44660. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  44661. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  44662. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  44663. abstract="false"
  44664. static="false" final="false" visibility="protected"
  44665. deprecated="not deprecated">
  44666. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  44667. static="false" final="false" visibility="public"
  44668. deprecated="not deprecated">
  44669. </constructor>
  44670. <method name="stopRunning"
  44671. abstract="false" native="false" synchronized="false"
  44672. static="false" final="false" visibility="public"
  44673. deprecated="not deprecated">
  44674. </method>
  44675. <method name="run"
  44676. abstract="false" native="false" synchronized="false"
  44677. static="false" final="false" visibility="public"
  44678. deprecated="not deprecated">
  44679. </method>
  44680. <method name="exitTaskTracker"
  44681. abstract="false" native="false" synchronized="false"
  44682. static="false" final="false" visibility="protected"
  44683. deprecated="not deprecated">
  44684. <param name="t" type="java.lang.Throwable"/>
  44685. <doc>
  44686. <![CDATA[Exit the task tracker because of a fatal error.]]>
  44687. </doc>
  44688. </method>
  44689. <doc>
  44690. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  44691. </doc>
  44692. </class>
  44693. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  44694. </package>
  44695. <package name="org.apache.hadoop.mapred">
  44696. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  44697. <interface name="AdminOperationsProtocol" abstract="true"
  44698. static="false" final="false" visibility="public"
  44699. deprecated="not deprecated">
  44700. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  44701. <method name="refreshQueues"
  44702. abstract="false" native="false" synchronized="false"
  44703. static="false" final="false" visibility="public"
  44704. deprecated="not deprecated">
  44705. <exception name="IOException" type="java.io.IOException"/>
  44706. <doc>
  44707. <![CDATA[Refresh the queue acls in use currently.
  44708. Refresh the queues used by the jobtracker and scheduler.
  44709. Access control lists and queue states are refreshed.]]>
  44710. </doc>
  44711. </method>
  44712. <method name="refreshNodes"
  44713. abstract="false" native="false" synchronized="false"
  44714. static="false" final="false" visibility="public"
  44715. deprecated="not deprecated">
  44716. <exception name="IOException" type="java.io.IOException"/>
  44717. <doc>
  44718. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  44719. </doc>
  44720. </method>
  44721. <method name="setSafeMode" return="boolean"
  44722. abstract="false" native="false" synchronized="false"
  44723. static="false" final="false" visibility="public"
  44724. deprecated="not deprecated">
  44725. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  44726. <exception name="IOException" type="java.io.IOException"/>
  44727. <doc>
  44728. <![CDATA[Set safe mode for the JobTracker.
  44729. @param safeModeAction safe mode action
  44730. @return current safemode
  44731. @throws IOException]]>
  44732. </doc>
  44733. </method>
  44734. <field name="versionID" type="long"
  44735. transient="false" volatile="false"
  44736. static="true" final="true" visibility="public"
  44737. deprecated="not deprecated">
  44738. <doc>
  44739. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  44740. Version 2: Added node refresh facility
  44741. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  44742. </doc>
  44743. </field>
  44744. <doc>
  44745. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  44746. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  44747. </doc>
  44748. </interface>
  44749. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  44750. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  44751. <class name="ClusterStatus" extends="java.lang.Object"
  44752. abstract="false"
  44753. static="false" final="false" visibility="public"
  44754. deprecated="not deprecated">
  44755. <implements name="org.apache.hadoop.io.Writable"/>
  44756. <method name="getTaskTrackers" return="int"
  44757. abstract="false" native="false" synchronized="false"
  44758. static="false" final="false" visibility="public"
  44759. deprecated="not deprecated">
  44760. <doc>
  44761. <![CDATA[Get the number of active task trackers in the cluster. Includes
  44762. graylisted but not blacklisted trackers.
  44763. @return the number of active task trackers in the cluster.]]>
  44764. </doc>
  44765. </method>
  44766. <method name="getActiveTrackerNames" return="java.util.Collection"
  44767. abstract="false" native="false" synchronized="false"
  44768. static="false" final="false" visibility="public"
  44769. deprecated="not deprecated">
  44770. <doc>
  44771. <![CDATA[Get the names of active task trackers in the cluster. Includes
  44772. graylisted but not blacklisted trackers.
  44773. @return the active task trackers in the cluster.]]>
  44774. </doc>
  44775. </method>
  44776. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  44777. abstract="false" native="false" synchronized="false"
  44778. static="false" final="false" visibility="public"
  44779. deprecated="not deprecated">
  44780. <doc>
  44781. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  44782. @return the blacklisted task trackers in the cluster.]]>
  44783. </doc>
  44784. </method>
  44785. <method name="getBlacklistedTrackers" return="int"
  44786. abstract="false" native="false" synchronized="false"
  44787. static="false" final="false" visibility="public"
  44788. deprecated="not deprecated">
  44789. <doc>
  44790. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  44791. @return the number of blacklisted task trackers in the cluster.]]>
  44792. </doc>
  44793. </method>
  44794. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  44795. abstract="false" native="false" synchronized="false"
  44796. static="false" final="false" visibility="public"
  44797. deprecated="not deprecated">
  44798. <doc>
  44799. <![CDATA[Get the names of graylisted task trackers in the cluster.
  44800. @return the graylisted task trackers in the cluster.]]>
  44801. </doc>
  44802. </method>
  44803. <method name="getGraylistedTrackers" return="int"
  44804. abstract="false" native="false" synchronized="false"
  44805. static="false" final="false" visibility="public"
  44806. deprecated="not deprecated">
  44807. <doc>
  44808. <![CDATA[Get the number of graylisted task trackers in the cluster.
  44809. @return the number of graylisted task trackers in the cluster.]]>
  44810. </doc>
  44811. </method>
  44812. <method name="getNumExcludedNodes" return="int"
  44813. abstract="false" native="false" synchronized="false"
  44814. static="false" final="false" visibility="public"
  44815. deprecated="not deprecated">
  44816. <doc>
  44817. <![CDATA[Get the number of excluded hosts in the cluster.
  44818. @return the number of excluded hosts in the cluster.]]>
  44819. </doc>
  44820. </method>
  44821. <method name="getTTExpiryInterval" return="long"
  44822. abstract="false" native="false" synchronized="false"
  44823. static="false" final="false" visibility="public"
  44824. deprecated="not deprecated">
  44825. <doc>
  44826. <![CDATA[Get the tasktracker expiry interval for the cluster
  44827. @return the expiry interval in msec]]>
  44828. </doc>
  44829. </method>
  44830. <method name="getMapTasks" return="int"
  44831. abstract="false" native="false" synchronized="false"
  44832. static="false" final="false" visibility="public"
  44833. deprecated="not deprecated">
  44834. <doc>
  44835. <![CDATA[Get the number of currently running map tasks in the cluster.
  44836. @return the number of currently running map tasks in the cluster.]]>
  44837. </doc>
  44838. </method>
  44839. <method name="getReduceTasks" return="int"
  44840. abstract="false" native="false" synchronized="false"
  44841. static="false" final="false" visibility="public"
  44842. deprecated="not deprecated">
  44843. <doc>
  44844. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  44845. @return the number of currently running reduce tasks in the cluster.]]>
  44846. </doc>
  44847. </method>
  44848. <method name="getMaxMapTasks" return="int"
  44849. abstract="false" native="false" synchronized="false"
  44850. static="false" final="false" visibility="public"
  44851. deprecated="not deprecated">
  44852. <doc>
  44853. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  44854. @return the maximum capacity for running map tasks in the cluster.]]>
  44855. </doc>
  44856. </method>
  44857. <method name="getMaxReduceTasks" return="int"
  44858. abstract="false" native="false" synchronized="false"
  44859. static="false" final="false" visibility="public"
  44860. deprecated="not deprecated">
  44861. <doc>
  44862. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  44863. @return the maximum capacity for running reduce tasks in the cluster.]]>
  44864. </doc>
  44865. </method>
  44866. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  44867. abstract="false" native="false" synchronized="false"
  44868. static="false" final="false" visibility="public"
  44869. deprecated="not deprecated">
  44870. <doc>
  44871. <![CDATA[Get the current state of the <code>JobTracker</code>,
  44872. as {@link JobTracker.State}
  44873. @return the current state of the <code>JobTracker</code>.]]>
  44874. </doc>
  44875. </method>
  44876. <method name="getUsedMemory" return="long"
  44877. abstract="false" native="false" synchronized="false"
  44878. static="false" final="false" visibility="public"
  44879. deprecated="not deprecated">
  44880. <doc>
  44881. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  44882. @return the size of heap memory used by the <code>JobTracker</code>]]>
  44883. </doc>
  44884. </method>
  44885. <method name="getMaxMemory" return="long"
  44886. abstract="false" native="false" synchronized="false"
  44887. static="false" final="false" visibility="public"
  44888. deprecated="not deprecated">
  44889. <doc>
  44890. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  44891. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  44892. </doc>
  44893. </method>
  44894. <method name="write"
  44895. abstract="false" native="false" synchronized="false"
  44896. static="false" final="false" visibility="public"
  44897. deprecated="not deprecated">
  44898. <param name="out" type="java.io.DataOutput"/>
  44899. <exception name="IOException" type="java.io.IOException"/>
  44900. </method>
  44901. <method name="readFields"
  44902. abstract="false" native="false" synchronized="false"
  44903. static="false" final="false" visibility="public"
  44904. deprecated="not deprecated">
  44905. <param name="in" type="java.io.DataInput"/>
  44906. <exception name="IOException" type="java.io.IOException"/>
  44907. </method>
  44908. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  44909. transient="false" volatile="false"
  44910. static="true" final="true" visibility="public"
  44911. deprecated="not deprecated">
  44912. </field>
  44913. <doc>
  44914. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  44915. <p><code>ClusterStatus</code> provides clients with information such as:
  44916. <ol>
  44917. <li>
  44918. Size of the cluster.
  44919. </li>
  44920. <li>
  44921. Name of the trackers.
  44922. </li>
  44923. <li>
  44924. Task capacity of the cluster.
  44925. </li>
  44926. <li>
  44927. The number of currently running map & reduce tasks.
  44928. </li>
  44929. <li>
  44930. State of the <code>JobTracker</code>.
  44931. </li>
  44932. </ol></p>
  44933. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  44934. {@link JobClient#getClusterStatus()}.</p>
  44935. @see JobClient]]>
  44936. </doc>
  44937. </class>
  44938. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  44939. <!-- start class org.apache.hadoop.mapred.Counters -->
  44940. <class name="Counters" extends="java.lang.Object"
  44941. abstract="false"
  44942. static="false" final="false" visibility="public"
  44943. deprecated="not deprecated">
  44944. <implements name="org.apache.hadoop.io.Writable"/>
  44945. <implements name="java.lang.Iterable"/>
  44946. <constructor name="Counters"
  44947. static="false" final="false" visibility="public"
  44948. deprecated="not deprecated">
  44949. </constructor>
  44950. <method name="getGroupNames" return="java.util.Collection"
  44951. abstract="false" native="false" synchronized="true"
  44952. static="false" final="false" visibility="public"
  44953. deprecated="not deprecated">
  44954. <doc>
  44955. <![CDATA[Returns the names of all counter classes.
  44956. @return Set of counter names.]]>
  44957. </doc>
  44958. </method>
  44959. <method name="iterator" return="java.util.Iterator"
  44960. abstract="false" native="false" synchronized="true"
  44961. static="false" final="false" visibility="public"
  44962. deprecated="not deprecated">
  44963. </method>
  44964. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  44965. abstract="false" native="false" synchronized="true"
  44966. static="false" final="false" visibility="public"
  44967. deprecated="not deprecated">
  44968. <param name="groupName" type="java.lang.String"/>
  44969. <doc>
  44970. <![CDATA[Returns the named counter group, or an empty group if there is none
  44971. with the specified name.]]>
  44972. </doc>
  44973. </method>
  44974. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  44975. abstract="false" native="false" synchronized="true"
  44976. static="false" final="false" visibility="public"
  44977. deprecated="not deprecated">
  44978. <param name="key" type="java.lang.Enum"/>
  44979. <doc>
  44980. <![CDATA[Find the counter for the given enum. The same enum will always return the
  44981. same counter.
  44982. @param key the counter key
  44983. @return the matching counter object]]>
  44984. </doc>
  44985. </method>
  44986. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  44987. abstract="false" native="false" synchronized="true"
  44988. static="false" final="false" visibility="public"
  44989. deprecated="not deprecated">
  44990. <param name="group" type="java.lang.String"/>
  44991. <param name="name" type="java.lang.String"/>
  44992. <doc>
  44993. <![CDATA[Find a counter given the group and the name.
  44994. @param group the name of the group
  44995. @param name the internal name of the counter
  44996. @return the counter for that name]]>
  44997. </doc>
  44998. </method>
  44999. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45000. abstract="false" native="false" synchronized="true"
  45001. static="false" final="false" visibility="public"
  45002. deprecated="deprecated, no comment">
  45003. <param name="group" type="java.lang.String"/>
  45004. <param name="id" type="int"/>
  45005. <param name="name" type="java.lang.String"/>
  45006. <doc>
  45007. <![CDATA[Find a counter by using strings
  45008. @param group the name of the group
  45009. @param id the id of the counter within the group (0 to N-1)
  45010. @param name the internal name of the counter
  45011. @return the counter for that name
  45012. @deprecated]]>
  45013. </doc>
  45014. </method>
  45015. <method name="incrCounter"
  45016. abstract="false" native="false" synchronized="true"
  45017. static="false" final="false" visibility="public"
  45018. deprecated="not deprecated">
  45019. <param name="key" type="java.lang.Enum"/>
  45020. <param name="amount" type="long"/>
  45021. <doc>
  45022. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45023. it didn't already exist.
  45024. @param key identifies a counter
  45025. @param amount amount by which counter is to be incremented]]>
  45026. </doc>
  45027. </method>
  45028. <method name="incrCounter"
  45029. abstract="false" native="false" synchronized="true"
  45030. static="false" final="false" visibility="public"
  45031. deprecated="not deprecated">
  45032. <param name="group" type="java.lang.String"/>
  45033. <param name="counter" type="java.lang.String"/>
  45034. <param name="amount" type="long"/>
  45035. <doc>
  45036. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45037. it didn't already exist.
  45038. @param group the name of the group
  45039. @param counter the internal name of the counter
  45040. @param amount amount by which counter is to be incremented]]>
  45041. </doc>
  45042. </method>
  45043. <method name="getCounter" return="long"
  45044. abstract="false" native="false" synchronized="true"
  45045. static="false" final="false" visibility="public"
  45046. deprecated="not deprecated">
  45047. <param name="key" type="java.lang.Enum"/>
  45048. <doc>
  45049. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  45050. does not exist.]]>
  45051. </doc>
  45052. </method>
  45053. <method name="incrAllCounters"
  45054. abstract="false" native="false" synchronized="true"
  45055. static="false" final="false" visibility="public"
  45056. deprecated="not deprecated">
  45057. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  45058. <doc>
  45059. <![CDATA[Increments multiple counters by their amounts in another Counters
  45060. instance.
  45061. @param other the other Counters instance]]>
  45062. </doc>
  45063. </method>
  45064. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  45065. abstract="false" native="false" synchronized="false"
  45066. static="true" final="false" visibility="public"
  45067. deprecated="not deprecated">
  45068. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  45069. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  45070. <doc>
  45071. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  45072. </doc>
  45073. </method>
  45074. <method name="size" return="int"
  45075. abstract="false" native="false" synchronized="true"
  45076. static="false" final="false" visibility="public"
  45077. deprecated="not deprecated">
  45078. <doc>
  45079. <![CDATA[Returns the total number of counters, by summing the number of counters
  45080. in each group.]]>
  45081. </doc>
  45082. </method>
  45083. <method name="write"
  45084. abstract="false" native="false" synchronized="true"
  45085. static="false" final="false" visibility="public"
  45086. deprecated="not deprecated">
  45087. <param name="out" type="java.io.DataOutput"/>
  45088. <exception name="IOException" type="java.io.IOException"/>
  45089. <doc>
  45090. <![CDATA[Write the set of groups.
  45091. The external format is:
  45092. #groups (groupName group)*
  45093. i.e. the number of groups followed by 0 or more groups, where each
  45094. group is of the form:
  45095. groupDisplayName #counters (false | true counter)*
  45096. where each counter is of the form:
  45097. name (false | true displayName) value]]>
  45098. </doc>
  45099. </method>
  45100. <method name="readFields"
  45101. abstract="false" native="false" synchronized="true"
  45102. static="false" final="false" visibility="public"
  45103. deprecated="not deprecated">
  45104. <param name="in" type="java.io.DataInput"/>
  45105. <exception name="IOException" type="java.io.IOException"/>
  45106. <doc>
  45107. <![CDATA[Read a set of groups.]]>
  45108. </doc>
  45109. </method>
  45110. <method name="log"
  45111. abstract="false" native="false" synchronized="false"
  45112. static="false" final="false" visibility="public"
  45113. deprecated="not deprecated">
  45114. <param name="log" type="org.apache.commons.logging.Log"/>
  45115. <doc>
  45116. <![CDATA[Logs the current counter values.
  45117. @param log The log to use.]]>
  45118. </doc>
  45119. </method>
  45120. <method name="toString" return="java.lang.String"
  45121. abstract="false" native="false" synchronized="true"
  45122. static="false" final="false" visibility="public"
  45123. deprecated="not deprecated">
  45124. <doc>
  45125. <![CDATA[Return textual representation of the counter values.]]>
  45126. </doc>
  45127. </method>
  45128. <method name="makeCompactString" return="java.lang.String"
  45129. abstract="false" native="false" synchronized="true"
  45130. static="false" final="false" visibility="public"
  45131. deprecated="not deprecated">
  45132. <doc>
  45133. <![CDATA[Convert a counters object into a single line that is easy to parse.
  45134. @return the string with "name=value" for each counter and separated by ","]]>
  45135. </doc>
  45136. </method>
  45137. <method name="makeEscapedCompactString" return="java.lang.String"
  45138. abstract="false" native="false" synchronized="true"
  45139. static="false" final="false" visibility="public"
  45140. deprecated="not deprecated">
  45141. <doc>
  45142. <![CDATA[Represent the counter in a textual format that can be converted back to
  45143. its object form
  45144. @return the string in the following format
  45145. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  45146. </doc>
  45147. </method>
  45148. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  45149. abstract="false" native="false" synchronized="false"
  45150. static="true" final="false" visibility="public"
  45151. deprecated="not deprecated">
  45152. <param name="compactString" type="java.lang.String"/>
  45153. <exception name="ParseException" type="java.text.ParseException"/>
  45154. <doc>
  45155. <![CDATA[Convert a stringified counter representation into a counter object. Note
  45156. that the counter can be recovered if its stringified using
  45157. {@link #makeEscapedCompactString()}.
  45158. @return a Counter]]>
  45159. </doc>
  45160. </method>
  45161. <method name="hashCode" return="int"
  45162. abstract="false" native="false" synchronized="true"
  45163. static="false" final="false" visibility="public"
  45164. deprecated="not deprecated">
  45165. </method>
  45166. <method name="equals" return="boolean"
  45167. abstract="false" native="false" synchronized="true"
  45168. static="false" final="false" visibility="public"
  45169. deprecated="not deprecated">
  45170. <param name="obj" type="java.lang.Object"/>
  45171. </method>
  45172. <field name="MAX_COUNTER_LIMIT" type="int"
  45173. transient="false" volatile="false"
  45174. static="true" final="false" visibility="public"
  45175. deprecated="not deprecated">
  45176. <doc>
  45177. <![CDATA[limit on counters]]>
  45178. </doc>
  45179. </field>
  45180. <field name="MAX_GROUP_LIMIT" type="int"
  45181. transient="false" volatile="false"
  45182. static="true" final="true" visibility="public"
  45183. deprecated="not deprecated">
  45184. <doc>
  45185. <![CDATA[the max groups allowed]]>
  45186. </doc>
  45187. </field>
  45188. <doc>
  45189. <![CDATA[A set of named counters.
  45190. <p><code>Counters</code> represent global counters, defined either by the
  45191. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  45192. any {@link Enum} type.</p>
  45193. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  45194. counters from a particular <code>Enum</code> class.]]>
  45195. </doc>
  45196. </class>
  45197. <!-- end class org.apache.hadoop.mapred.Counters -->
  45198. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  45199. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  45200. abstract="false"
  45201. static="true" final="false" visibility="public"
  45202. deprecated="not deprecated">
  45203. <method name="setDisplayName"
  45204. abstract="false" native="false" synchronized="false"
  45205. static="false" final="false" visibility="public"
  45206. deprecated="not deprecated">
  45207. <param name="newName" type="java.lang.String"/>
  45208. </method>
  45209. <method name="makeEscapedCompactString" return="java.lang.String"
  45210. abstract="false" native="false" synchronized="true"
  45211. static="false" final="false" visibility="public"
  45212. deprecated="not deprecated">
  45213. <doc>
  45214. <![CDATA[Returns the compact stringified version of the counter in the format
  45215. [(actual-name)(display-name)(value)]]]>
  45216. </doc>
  45217. </method>
  45218. <method name="getCounter" return="long"
  45219. abstract="false" native="false" synchronized="true"
  45220. static="false" final="false" visibility="public"
  45221. deprecated="not deprecated">
  45222. <doc>
  45223. <![CDATA[What is the current value of this counter?
  45224. @return the current value]]>
  45225. </doc>
  45226. </method>
  45227. <doc>
  45228. <![CDATA[A counter record, comprising its name and value.]]>
  45229. </doc>
  45230. </class>
  45231. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  45232. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  45233. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  45234. abstract="false"
  45235. static="true" final="false" visibility="public"
  45236. deprecated="not deprecated">
  45237. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  45238. static="false" final="false" visibility="public"
  45239. deprecated="not deprecated">
  45240. </constructor>
  45241. <doc>
  45242. <![CDATA[Counter exception thrown when the number of counters exceed
  45243. the limit]]>
  45244. </doc>
  45245. </class>
  45246. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  45247. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  45248. <class name="Counters.Group" extends="java.lang.Object"
  45249. abstract="false"
  45250. static="false" final="false" visibility="public"
  45251. deprecated="not deprecated">
  45252. <implements name="org.apache.hadoop.io.Writable"/>
  45253. <implements name="java.lang.Iterable"/>
  45254. <method name="getName" return="java.lang.String"
  45255. abstract="false" native="false" synchronized="false"
  45256. static="false" final="false" visibility="public"
  45257. deprecated="not deprecated">
  45258. <doc>
  45259. <![CDATA[Returns raw name of the group. This is the name of the enum class
  45260. for this group of counters.]]>
  45261. </doc>
  45262. </method>
  45263. <method name="getDisplayName" return="java.lang.String"
  45264. abstract="false" native="false" synchronized="false"
  45265. static="false" final="false" visibility="public"
  45266. deprecated="not deprecated">
  45267. <doc>
  45268. <![CDATA[Returns localized name of the group. This is the same as getName() by
  45269. default, but different if an appropriate ResourceBundle is found.]]>
  45270. </doc>
  45271. </method>
  45272. <method name="setDisplayName"
  45273. abstract="false" native="false" synchronized="false"
  45274. static="false" final="false" visibility="public"
  45275. deprecated="not deprecated">
  45276. <param name="displayName" type="java.lang.String"/>
  45277. <doc>
  45278. <![CDATA[Set the display name]]>
  45279. </doc>
  45280. </method>
  45281. <method name="makeEscapedCompactString" return="java.lang.String"
  45282. abstract="false" native="false" synchronized="false"
  45283. static="false" final="false" visibility="public"
  45284. deprecated="not deprecated">
  45285. <doc>
  45286. <![CDATA[Returns the compact stringified version of the group in the format
  45287. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  45288. counters within.]]>
  45289. </doc>
  45290. </method>
  45291. <method name="hashCode" return="int"
  45292. abstract="false" native="false" synchronized="false"
  45293. static="false" final="false" visibility="public"
  45294. deprecated="not deprecated">
  45295. </method>
  45296. <method name="equals" return="boolean"
  45297. abstract="false" native="false" synchronized="true"
  45298. static="false" final="false" visibility="public"
  45299. deprecated="not deprecated">
  45300. <param name="obj" type="java.lang.Object"/>
  45301. <doc>
  45302. <![CDATA[Checks for (content) equality of Groups]]>
  45303. </doc>
  45304. </method>
  45305. <method name="getCounter" return="long"
  45306. abstract="false" native="false" synchronized="true"
  45307. static="false" final="false" visibility="public"
  45308. deprecated="not deprecated">
  45309. <param name="counterName" type="java.lang.String"/>
  45310. <doc>
  45311. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  45312. not exist.]]>
  45313. </doc>
  45314. </method>
  45315. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45316. abstract="false" native="false" synchronized="true"
  45317. static="false" final="false" visibility="public"
  45318. deprecated="use {@link #getCounter(String)} instead">
  45319. <param name="id" type="int"/>
  45320. <param name="name" type="java.lang.String"/>
  45321. <doc>
  45322. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  45323. @param id the numeric id of the counter within the group
  45324. @param name the internal counter name
  45325. @return the counter
  45326. @deprecated use {@link #getCounter(String)} instead]]>
  45327. </doc>
  45328. </method>
  45329. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  45330. abstract="false" native="false" synchronized="true"
  45331. static="false" final="false" visibility="public"
  45332. deprecated="not deprecated">
  45333. <param name="name" type="java.lang.String"/>
  45334. <doc>
  45335. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  45336. @param name the internal counter name
  45337. @return the counter]]>
  45338. </doc>
  45339. </method>
  45340. <method name="size" return="int"
  45341. abstract="false" native="false" synchronized="true"
  45342. static="false" final="false" visibility="public"
  45343. deprecated="not deprecated">
  45344. <doc>
  45345. <![CDATA[Returns the number of counters in this group.]]>
  45346. </doc>
  45347. </method>
  45348. <method name="write"
  45349. abstract="false" native="false" synchronized="true"
  45350. static="false" final="false" visibility="public"
  45351. deprecated="not deprecated">
  45352. <param name="out" type="java.io.DataOutput"/>
  45353. <exception name="IOException" type="java.io.IOException"/>
  45354. </method>
  45355. <method name="readFields"
  45356. abstract="false" native="false" synchronized="true"
  45357. static="false" final="false" visibility="public"
  45358. deprecated="not deprecated">
  45359. <param name="in" type="java.io.DataInput"/>
  45360. <exception name="IOException" type="java.io.IOException"/>
  45361. </method>
  45362. <method name="iterator" return="java.util.Iterator"
  45363. abstract="false" native="false" synchronized="true"
  45364. static="false" final="false" visibility="public"
  45365. deprecated="not deprecated">
  45366. </method>
  45367. <doc>
  45368. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  45369. counter {@link Enum} class.
  45370. <p><code>Group</code>handles localization of the class name and the
  45371. counter names.</p>]]>
  45372. </doc>
  45373. </class>
  45374. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  45375. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  45376. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  45377. abstract="false"
  45378. static="false" final="false" visibility="public"
  45379. deprecated="not deprecated">
  45380. <constructor name="DefaultJobHistoryParser"
  45381. static="false" final="false" visibility="public"
  45382. deprecated="not deprecated">
  45383. </constructor>
  45384. <method name="parseJobTasks"
  45385. abstract="false" native="false" synchronized="false"
  45386. static="true" final="false" visibility="public"
  45387. deprecated="not deprecated">
  45388. <param name="jobHistoryFile" type="java.lang.String"/>
  45389. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  45390. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45391. <exception name="IOException" type="java.io.IOException"/>
  45392. <doc>
  45393. <![CDATA[Populates a JobInfo object from the job's history log file.
  45394. @param jobHistoryFile history file for this job.
  45395. @param job a precreated JobInfo object, should be non-null.
  45396. @param fs FileSystem where historyFile is present.
  45397. @throws IOException]]>
  45398. </doc>
  45399. </method>
  45400. <doc>
  45401. <![CDATA[Default parser for job history files. It creates object model from
  45402. job history file.]]>
  45403. </doc>
  45404. </class>
  45405. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  45406. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  45407. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  45408. abstract="false"
  45409. static="false" final="false" visibility="public"
  45410. deprecated="not deprecated">
  45411. <constructor name="DefaultTaskController"
  45412. static="false" final="false" visibility="public"
  45413. deprecated="not deprecated">
  45414. </constructor>
  45415. <method name="setConf"
  45416. abstract="false" native="false" synchronized="false"
  45417. static="false" final="false" visibility="public"
  45418. deprecated="not deprecated">
  45419. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45420. </method>
  45421. <method name="createLogDir"
  45422. abstract="false" native="false" synchronized="false"
  45423. static="false" final="false" visibility="public"
  45424. deprecated="not deprecated">
  45425. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  45426. <param name="isCleanup" type="boolean"/>
  45427. <exception name="IOException" type="java.io.IOException"/>
  45428. </method>
  45429. <method name="launchTask" return="int"
  45430. abstract="false" native="false" synchronized="false"
  45431. static="false" final="false" visibility="public"
  45432. deprecated="not deprecated">
  45433. <param name="user" type="java.lang.String"/>
  45434. <param name="jobId" type="java.lang.String"/>
  45435. <param name="attemptId" type="java.lang.String"/>
  45436. <param name="setup" type="java.util.List"/>
  45437. <param name="jvmArguments" type="java.util.List"/>
  45438. <param name="currentWorkDirectory" type="java.io.File"/>
  45439. <param name="stdout" type="java.lang.String"/>
  45440. <param name="stderr" type="java.lang.String"/>
  45441. <exception name="IOException" type="java.io.IOException"/>
  45442. <doc>
  45443. <![CDATA[Create all of the directories for the task and launches the child jvm.
  45444. @param user the user name
  45445. @param attemptId the attempt id
  45446. @throws IOException]]>
  45447. </doc>
  45448. </method>
  45449. <method name="initializeJob"
  45450. abstract="false" native="false" synchronized="false"
  45451. static="false" final="false" visibility="public"
  45452. deprecated="not deprecated">
  45453. <param name="user" type="java.lang.String"/>
  45454. <param name="jobid" type="java.lang.String"/>
  45455. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  45456. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  45457. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  45458. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  45459. <exception name="IOException" type="java.io.IOException"/>
  45460. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45461. <doc>
  45462. <![CDATA[This routine initializes the local file system for running a job.
  45463. Details:
  45464. <ul>
  45465. <li>Copies the credentials file from the TaskTracker's private space to
  45466. the job's private space </li>
  45467. <li>Creates the job work directory and set
  45468. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  45469. <li>Downloads the job.jar, unjars it, and updates the configuration to
  45470. reflect the localized path of the job.jar</li>
  45471. <li>Creates a base JobConf in the job's private space</li>
  45472. <li>Sets up the distributed cache</li>
  45473. <li>Sets up the user logs directory for the job</li>
  45474. </ul>
  45475. This method must be invoked in the access control context of the job owner
  45476. user. This is because the distributed cache is also setup here and the
  45477. access to the hdfs files requires authentication tokens in case where
  45478. security is enabled.
  45479. @param user the user in question (the job owner)
  45480. @param jobid the ID of the job in question
  45481. @param credentials the path to the credentials file that the TaskTracker
  45482. downloaded
  45483. @param jobConf the path to the job configuration file that the TaskTracker
  45484. downloaded
  45485. @param taskTracker the connection to the task tracker
  45486. @throws IOException
  45487. @throws InterruptedException]]>
  45488. </doc>
  45489. </method>
  45490. <method name="signalTask"
  45491. abstract="false" native="false" synchronized="false"
  45492. static="false" final="false" visibility="public"
  45493. deprecated="not deprecated">
  45494. <param name="user" type="java.lang.String"/>
  45495. <param name="taskPid" type="int"/>
  45496. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  45497. </method>
  45498. <method name="deleteAsUser"
  45499. abstract="false" native="false" synchronized="false"
  45500. static="false" final="false" visibility="public"
  45501. deprecated="not deprecated">
  45502. <param name="user" type="java.lang.String"/>
  45503. <param name="subDir" type="java.lang.String"/>
  45504. <exception name="IOException" type="java.io.IOException"/>
  45505. <doc>
  45506. <![CDATA[Delete the user's files under all of the task tracker root directories.
  45507. @param user the user name
  45508. @param subDir the path relative to the user's subdirectory under
  45509. the task tracker root directories.
  45510. @throws IOException]]>
  45511. </doc>
  45512. </method>
  45513. <method name="deleteLogAsUser"
  45514. abstract="false" native="false" synchronized="false"
  45515. static="false" final="false" visibility="public"
  45516. deprecated="not deprecated">
  45517. <param name="user" type="java.lang.String"/>
  45518. <param name="subDir" type="java.lang.String"/>
  45519. <exception name="IOException" type="java.io.IOException"/>
  45520. <doc>
  45521. <![CDATA[Delete the user's files under the userlogs directory.
  45522. @param user the user to work as
  45523. @param subDir the path under the userlogs directory.
  45524. @throws IOException]]>
  45525. </doc>
  45526. </method>
  45527. <method name="truncateLogsAsUser"
  45528. abstract="false" native="false" synchronized="false"
  45529. static="false" final="false" visibility="public"
  45530. deprecated="not deprecated">
  45531. <param name="user" type="java.lang.String"/>
  45532. <param name="allAttempts" type="java.util.List"/>
  45533. <exception name="IOException" type="java.io.IOException"/>
  45534. </method>
  45535. <method name="setup"
  45536. abstract="false" native="false" synchronized="false"
  45537. static="false" final="false" visibility="public"
  45538. deprecated="not deprecated">
  45539. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  45540. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  45541. </method>
  45542. <doc>
  45543. <![CDATA[The default implementation for controlling tasks.
  45544. This class provides an implementation for launching and killing
  45545. tasks that need to be run as the tasktracker itself. Hence,
  45546. many of the initializing or cleanup methods are not required here.
  45547. <br/>
  45548. NOTE: This class is internal only class and not intended for users!!]]>
  45549. </doc>
  45550. </class>
  45551. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  45552. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  45553. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  45554. abstract="false"
  45555. static="false" final="false" visibility="public"
  45556. deprecated="not deprecated">
  45557. <constructor name="FileAlreadyExistsException"
  45558. static="false" final="false" visibility="public"
  45559. deprecated="not deprecated">
  45560. </constructor>
  45561. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  45562. static="false" final="false" visibility="public"
  45563. deprecated="not deprecated">
  45564. </constructor>
  45565. <doc>
  45566. <![CDATA[Used when target file already exists for any operation and
  45567. is not configured to be overwritten.]]>
  45568. </doc>
  45569. </class>
  45570. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  45571. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  45572. <class name="FileInputFormat" extends="java.lang.Object"
  45573. abstract="true"
  45574. static="false" final="false" visibility="public"
  45575. deprecated="not deprecated">
  45576. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  45577. <constructor name="FileInputFormat"
  45578. static="false" final="false" visibility="public"
  45579. deprecated="not deprecated">
  45580. </constructor>
  45581. <method name="setMinSplitSize"
  45582. abstract="false" native="false" synchronized="false"
  45583. static="false" final="false" visibility="protected"
  45584. deprecated="not deprecated">
  45585. <param name="minSplitSize" type="long"/>
  45586. </method>
  45587. <method name="isSplitable" return="boolean"
  45588. abstract="false" native="false" synchronized="false"
  45589. static="false" final="false" visibility="protected"
  45590. deprecated="not deprecated">
  45591. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45592. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  45593. <doc>
  45594. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  45595. stream compressed, it will not be.
  45596. <code>FileInputFormat</code> implementations can override this and return
  45597. <code>false</code> to ensure that individual input files are never split-up
  45598. so that {@link Mapper}s process entire files.
  45599. @param fs the file system that the file is on
  45600. @param filename the file name to check
  45601. @return is this file splitable?]]>
  45602. </doc>
  45603. </method>
  45604. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  45605. abstract="true" native="false" synchronized="false"
  45606. static="false" final="false" visibility="public"
  45607. deprecated="not deprecated">
  45608. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  45609. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45610. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45611. <exception name="IOException" type="java.io.IOException"/>
  45612. </method>
  45613. <method name="setInputPathFilter"
  45614. abstract="false" native="false" synchronized="false"
  45615. static="true" final="false" visibility="public"
  45616. deprecated="not deprecated">
  45617. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45618. <param name="filter" type="java.lang.Class"/>
  45619. <doc>
  45620. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  45621. @param filter the PathFilter class use for filtering the input paths.]]>
  45622. </doc>
  45623. </method>
  45624. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  45625. abstract="false" native="false" synchronized="false"
  45626. static="true" final="false" visibility="public"
  45627. deprecated="not deprecated">
  45628. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45629. <doc>
  45630. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  45631. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  45632. </doc>
  45633. </method>
  45634. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  45635. abstract="false" native="false" synchronized="false"
  45636. static="false" final="false" visibility="protected"
  45637. deprecated="not deprecated">
  45638. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45639. <exception name="IOException" type="java.io.IOException"/>
  45640. <doc>
  45641. <![CDATA[List input directories.
  45642. Subclasses may override to, e.g., select only files matching a regular
  45643. expression.
  45644. @param job the job to list input paths for
  45645. @return array of FileStatus objects
  45646. @throws IOException if zero items.]]>
  45647. </doc>
  45648. </method>
  45649. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  45650. abstract="false" native="false" synchronized="false"
  45651. static="false" final="false" visibility="public"
  45652. deprecated="not deprecated">
  45653. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45654. <param name="numSplits" type="int"/>
  45655. <exception name="IOException" type="java.io.IOException"/>
  45656. <doc>
  45657. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  45658. they're too big.]]>
  45659. </doc>
  45660. </method>
  45661. <method name="computeSplitSize" return="long"
  45662. abstract="false" native="false" synchronized="false"
  45663. static="false" final="false" visibility="protected"
  45664. deprecated="not deprecated">
  45665. <param name="goalSize" type="long"/>
  45666. <param name="minSize" type="long"/>
  45667. <param name="blockSize" type="long"/>
  45668. </method>
  45669. <method name="getBlockIndex" return="int"
  45670. abstract="false" native="false" synchronized="false"
  45671. static="false" final="false" visibility="protected"
  45672. deprecated="not deprecated">
  45673. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  45674. <param name="offset" type="long"/>
  45675. </method>
  45676. <method name="setInputPaths"
  45677. abstract="false" native="false" synchronized="false"
  45678. static="true" final="false" visibility="public"
  45679. deprecated="not deprecated">
  45680. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45681. <param name="commaSeparatedPaths" type="java.lang.String"/>
  45682. <doc>
  45683. <![CDATA[Sets the given comma separated paths as the list of inputs
  45684. for the map-reduce job.
  45685. @param conf Configuration of the job
  45686. @param commaSeparatedPaths Comma separated paths to be set as
  45687. the list of inputs for the map-reduce job.]]>
  45688. </doc>
  45689. </method>
  45690. <method name="addInputPaths"
  45691. abstract="false" native="false" synchronized="false"
  45692. static="true" final="false" visibility="public"
  45693. deprecated="not deprecated">
  45694. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45695. <param name="commaSeparatedPaths" type="java.lang.String"/>
  45696. <doc>
  45697. <![CDATA[Add the given comma separated paths to the list of inputs for
  45698. the map-reduce job.
  45699. @param conf The configuration of the job
  45700. @param commaSeparatedPaths Comma separated paths to be added to
  45701. the list of inputs for the map-reduce job.]]>
  45702. </doc>
  45703. </method>
  45704. <method name="setInputPaths"
  45705. abstract="false" native="false" synchronized="false"
  45706. static="true" final="false" visibility="public"
  45707. deprecated="not deprecated">
  45708. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45709. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  45710. <doc>
  45711. <![CDATA[Set the array of {@link Path}s as the list of inputs
  45712. for the map-reduce job.
  45713. @param conf Configuration of the job.
  45714. @param inputPaths the {@link Path}s of the input directories/files
  45715. for the map-reduce job.]]>
  45716. </doc>
  45717. </method>
  45718. <method name="addInputPath"
  45719. abstract="false" native="false" synchronized="false"
  45720. static="true" final="false" visibility="public"
  45721. deprecated="not deprecated">
  45722. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45723. <param name="path" type="org.apache.hadoop.fs.Path"/>
  45724. <doc>
  45725. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  45726. @param conf The configuration of the job
  45727. @param path {@link Path} to be added to the list of inputs for
  45728. the map-reduce job.]]>
  45729. </doc>
  45730. </method>
  45731. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  45732. abstract="false" native="false" synchronized="false"
  45733. static="true" final="false" visibility="public"
  45734. deprecated="not deprecated">
  45735. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45736. <doc>
  45737. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  45738. @param conf The configuration of the job
  45739. @return the list of input {@link Path}s for the map-reduce job.]]>
  45740. </doc>
  45741. </method>
  45742. <method name="getSplitHosts" return="java.lang.String[]"
  45743. abstract="false" native="false" synchronized="false"
  45744. static="false" final="false" visibility="protected"
  45745. deprecated="not deprecated">
  45746. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  45747. <param name="offset" type="long"/>
  45748. <param name="splitSize" type="long"/>
  45749. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  45750. <exception name="IOException" type="java.io.IOException"/>
  45751. <doc>
  45752. <![CDATA[This function identifies and returns the hosts that contribute
  45753. most for a given split. For calculating the contribution, rack
  45754. locality is treated on par with host locality, so hosts from racks
  45755. that contribute the most are preferred over hosts on racks that
  45756. contribute less
  45757. @param blkLocations The list of block locations
  45758. @param offset
  45759. @param splitSize
  45760. @return array of hosts that contribute most to this split
  45761. @throws IOException]]>
  45762. </doc>
  45763. </method>
  45764. <field name="LOG" type="org.apache.commons.logging.Log"
  45765. transient="false" volatile="false"
  45766. static="true" final="true" visibility="public"
  45767. deprecated="not deprecated">
  45768. </field>
  45769. <doc>
  45770. <![CDATA[A base class for file-based {@link InputFormat}.
  45771. <p><code>FileInputFormat</code> is the base class for all file-based
  45772. <code>InputFormat</code>s. This provides a generic implementation of
  45773. {@link #getSplits(JobConf, int)}.
  45774. Subclasses of <code>FileInputFormat</code> can also override the
  45775. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  45776. not split-up and are processed as a whole by {@link Mapper}s.]]>
  45777. </doc>
  45778. </class>
  45779. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  45780. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  45781. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  45782. abstract="false"
  45783. static="true" final="true" visibility="public"
  45784. deprecated="not deprecated">
  45785. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  45786. abstract="false" native="false" synchronized="false"
  45787. static="true" final="false" visibility="public"
  45788. deprecated="not deprecated">
  45789. </method>
  45790. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  45791. abstract="false" native="false" synchronized="false"
  45792. static="true" final="false" visibility="public"
  45793. deprecated="not deprecated">
  45794. <param name="name" type="java.lang.String"/>
  45795. </method>
  45796. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  45797. transient="false" volatile="false"
  45798. static="true" final="true" visibility="public"
  45799. deprecated="not deprecated">
  45800. </field>
  45801. </class>
  45802. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  45803. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  45804. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  45805. abstract="false"
  45806. static="false" final="false" visibility="public"
  45807. deprecated="not deprecated">
  45808. <constructor name="FileOutputCommitter"
  45809. static="false" final="false" visibility="public"
  45810. deprecated="not deprecated">
  45811. </constructor>
  45812. <method name="setupJob"
  45813. abstract="false" native="false" synchronized="false"
  45814. static="false" final="false" visibility="public"
  45815. deprecated="not deprecated">
  45816. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45817. <exception name="IOException" type="java.io.IOException"/>
  45818. </method>
  45819. <method name="commitJob"
  45820. abstract="false" native="false" synchronized="false"
  45821. static="false" final="false" visibility="public"
  45822. deprecated="not deprecated">
  45823. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45824. <exception name="IOException" type="java.io.IOException"/>
  45825. </method>
  45826. <method name="cleanupJob"
  45827. abstract="false" native="false" synchronized="false"
  45828. static="false" final="false" visibility="public"
  45829. deprecated="not deprecated">
  45830. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45831. <exception name="IOException" type="java.io.IOException"/>
  45832. </method>
  45833. <method name="abortJob"
  45834. abstract="false" native="false" synchronized="false"
  45835. static="false" final="false" visibility="public"
  45836. deprecated="not deprecated">
  45837. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45838. <param name="runState" type="int"/>
  45839. <exception name="IOException" type="java.io.IOException"/>
  45840. <doc>
  45841. <![CDATA[Delete the temporary directory, including all of the work directories.
  45842. @param context the job's context
  45843. @param runState final run state of the job, should be
  45844. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  45845. </doc>
  45846. </method>
  45847. <method name="setupTask"
  45848. abstract="false" native="false" synchronized="false"
  45849. static="false" final="false" visibility="public"
  45850. deprecated="not deprecated">
  45851. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45852. <exception name="IOException" type="java.io.IOException"/>
  45853. </method>
  45854. <method name="commitTask"
  45855. abstract="false" native="false" synchronized="false"
  45856. static="false" final="false" visibility="public"
  45857. deprecated="not deprecated">
  45858. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45859. <exception name="IOException" type="java.io.IOException"/>
  45860. </method>
  45861. <method name="abortTask"
  45862. abstract="false" native="false" synchronized="false"
  45863. static="false" final="false" visibility="public"
  45864. deprecated="not deprecated">
  45865. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45866. <exception name="IOException" type="java.io.IOException"/>
  45867. </method>
  45868. <method name="needsTaskCommit" return="boolean"
  45869. abstract="false" native="false" synchronized="false"
  45870. static="false" final="false" visibility="public"
  45871. deprecated="not deprecated">
  45872. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45873. <exception name="IOException" type="java.io.IOException"/>
  45874. </method>
  45875. <field name="LOG" type="org.apache.commons.logging.Log"
  45876. transient="false" volatile="false"
  45877. static="true" final="true" visibility="public"
  45878. deprecated="not deprecated">
  45879. </field>
  45880. <field name="TEMP_DIR_NAME" type="java.lang.String"
  45881. transient="false" volatile="false"
  45882. static="true" final="true" visibility="public"
  45883. deprecated="not deprecated">
  45884. <doc>
  45885. <![CDATA[Temporary directory name]]>
  45886. </doc>
  45887. </field>
  45888. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  45889. transient="false" volatile="false"
  45890. static="true" final="true" visibility="public"
  45891. deprecated="not deprecated">
  45892. </field>
  45893. <doc>
  45894. <![CDATA[An {@link OutputCommitter} that commits files specified
  45895. in job output directory i.e. ${mapred.output.dir}.]]>
  45896. </doc>
  45897. </class>
  45898. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  45899. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  45900. <class name="FileOutputFormat" extends="java.lang.Object"
  45901. abstract="true"
  45902. static="false" final="false" visibility="public"
  45903. deprecated="not deprecated">
  45904. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  45905. <constructor name="FileOutputFormat"
  45906. static="false" final="false" visibility="public"
  45907. deprecated="not deprecated">
  45908. </constructor>
  45909. <method name="setCompressOutput"
  45910. abstract="false" native="false" synchronized="false"
  45911. static="true" final="false" visibility="public"
  45912. deprecated="not deprecated">
  45913. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45914. <param name="compress" type="boolean"/>
  45915. <doc>
  45916. <![CDATA[Set whether the output of the job is compressed.
  45917. @param conf the {@link JobConf} to modify
  45918. @param compress should the output of the job be compressed?]]>
  45919. </doc>
  45920. </method>
  45921. <method name="getCompressOutput" return="boolean"
  45922. abstract="false" native="false" synchronized="false"
  45923. static="true" final="false" visibility="public"
  45924. deprecated="not deprecated">
  45925. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45926. <doc>
  45927. <![CDATA[Is the job output compressed?
  45928. @param conf the {@link JobConf} to look in
  45929. @return <code>true</code> if the job output should be compressed,
  45930. <code>false</code> otherwise]]>
  45931. </doc>
  45932. </method>
  45933. <method name="setOutputCompressorClass"
  45934. abstract="false" native="false" synchronized="false"
  45935. static="true" final="false" visibility="public"
  45936. deprecated="not deprecated">
  45937. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45938. <param name="codecClass" type="java.lang.Class"/>
  45939. <doc>
  45940. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  45941. @param conf the {@link JobConf} to modify
  45942. @param codecClass the {@link CompressionCodec} to be used to
  45943. compress the job outputs]]>
  45944. </doc>
  45945. </method>
  45946. <method name="getOutputCompressorClass" return="java.lang.Class"
  45947. abstract="false" native="false" synchronized="false"
  45948. static="true" final="false" visibility="public"
  45949. deprecated="not deprecated">
  45950. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45951. <param name="defaultValue" type="java.lang.Class"/>
  45952. <doc>
  45953. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  45954. @param conf the {@link JobConf} to look in
  45955. @param defaultValue the {@link CompressionCodec} to return if not set
  45956. @return the {@link CompressionCodec} to be used to compress the
  45957. job outputs
  45958. @throws IllegalArgumentException if the class was specified, but not found]]>
  45959. </doc>
  45960. </method>
  45961. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  45962. abstract="true" native="false" synchronized="false"
  45963. static="false" final="false" visibility="public"
  45964. deprecated="not deprecated">
  45965. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  45966. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45967. <param name="name" type="java.lang.String"/>
  45968. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  45969. <exception name="IOException" type="java.io.IOException"/>
  45970. </method>
  45971. <method name="checkOutputSpecs"
  45972. abstract="false" native="false" synchronized="false"
  45973. static="false" final="false" visibility="public"
  45974. deprecated="not deprecated">
  45975. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  45976. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45977. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  45978. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  45979. <exception name="IOException" type="java.io.IOException"/>
  45980. </method>
  45981. <method name="setOutputPath"
  45982. abstract="false" native="false" synchronized="false"
  45983. static="true" final="false" visibility="public"
  45984. deprecated="not deprecated">
  45985. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45986. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  45987. <doc>
  45988. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  45989. @param conf The configuration of the job.
  45990. @param outputDir the {@link Path} of the output directory for
  45991. the map-reduce job.]]>
  45992. </doc>
  45993. </method>
  45994. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  45995. abstract="false" native="false" synchronized="false"
  45996. static="true" final="false" visibility="public"
  45997. deprecated="not deprecated">
  45998. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45999. <doc>
  46000. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  46001. @return the {@link Path} to the output directory for the map-reduce job.
  46002. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  46003. </doc>
  46004. </method>
  46005. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  46006. abstract="false" native="false" synchronized="false"
  46007. static="true" final="false" visibility="public"
  46008. deprecated="not deprecated">
  46009. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46010. <doc>
  46011. <![CDATA[Get the {@link Path} to the task's temporary output directory
  46012. for the map-reduce job
  46013. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  46014. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  46015. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  46016. a <code>FileOutputCommitter</code>, the task's temporary output
  46017. directory is same as {@link #getOutputPath(JobConf)} i.e.
  46018. <tt>${mapred.output.dir}$</tt></p>
  46019. <p>Some applications need to create/write-to side-files, which differ from
  46020. the actual job-outputs.
  46021. <p>In such cases there could be issues with 2 instances of the same TIP
  46022. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  46023. same file (path) on HDFS. Hence the application-writer will have to pick
  46024. unique names per task-attempt (e.g. using the attemptid, say
  46025. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  46026. <p>To get around this the Map-Reduce framework helps the application-writer
  46027. out by maintaining a special
  46028. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  46029. sub-directory for each task-attempt on HDFS where the output of the
  46030. task-attempt goes. On successful completion of the task-attempt the files
  46031. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  46032. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  46033. framework discards the sub-directory of unsuccessful task-attempts. This
  46034. is completely transparent to the application.</p>
  46035. <p>The application-writer can take advantage of this by creating any
  46036. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  46037. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  46038. framework will move them out similarly - thus she doesn't have to pick
  46039. unique paths per task-attempt.</p>
  46040. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  46041. execution of a particular task-attempt is actually
  46042. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  46043. set by the map-reduce framework. So, just create any side-files in the
  46044. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  46045. task to take advantage of this feature.</p>
  46046. <p>The entire discussion holds true for maps of jobs with
  46047. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  46048. goes directly to HDFS.</p>
  46049. @return the {@link Path} to the task's temporary output directory
  46050. for the map-reduce job.]]>
  46051. </doc>
  46052. </method>
  46053. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  46054. abstract="false" native="false" synchronized="false"
  46055. static="true" final="false" visibility="public"
  46056. deprecated="not deprecated">
  46057. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46058. <param name="name" type="java.lang.String"/>
  46059. <exception name="IOException" type="java.io.IOException"/>
  46060. <doc>
  46061. <![CDATA[Helper function to create the task's temporary output directory and
  46062. return the path to the task's output file.
  46063. @param conf job-configuration
  46064. @param name temporary task-output filename
  46065. @return path to the task's temporary output file
  46066. @throws IOException]]>
  46067. </doc>
  46068. </method>
  46069. <method name="getUniqueName" return="java.lang.String"
  46070. abstract="false" native="false" synchronized="false"
  46071. static="true" final="false" visibility="public"
  46072. deprecated="not deprecated">
  46073. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46074. <param name="name" type="java.lang.String"/>
  46075. <doc>
  46076. <![CDATA[Helper function to generate a name that is unique for the task.
  46077. <p>The generated name can be used to create custom files from within the
  46078. different tasks for the job, the names for different tasks will not collide
  46079. with each other.</p>
  46080. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  46081. reduces and the task partition number. For example, give a name 'test'
  46082. running on the first map o the job the generated name will be
  46083. 'test-m-00000'.</p>
  46084. @param conf the configuration for the job.
  46085. @param name the name to make unique.
  46086. @return a unique name accross all tasks of the job.]]>
  46087. </doc>
  46088. </method>
  46089. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  46090. abstract="false" native="false" synchronized="false"
  46091. static="true" final="false" visibility="public"
  46092. deprecated="not deprecated">
  46093. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46094. <param name="name" type="java.lang.String"/>
  46095. <doc>
  46096. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  46097. the task within the job output directory.
  46098. <p>The path can be used to create custom files from within the map and
  46099. reduce tasks. The path name will be unique for each task. The path parent
  46100. will be the job output directory.</p>ls
  46101. <p>This method uses the {@link #getUniqueName} method to make the file name
  46102. unique for the task.</p>
  46103. @param conf the configuration for the job.
  46104. @param name the name for the file.
  46105. @return a unique path accross all tasks of the job.]]>
  46106. </doc>
  46107. </method>
  46108. <doc>
  46109. <![CDATA[A base class for {@link OutputFormat}.]]>
  46110. </doc>
  46111. </class>
  46112. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  46113. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46114. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  46115. abstract="false"
  46116. static="true" final="true" visibility="public"
  46117. deprecated="not deprecated">
  46118. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  46119. abstract="false" native="false" synchronized="false"
  46120. static="true" final="false" visibility="public"
  46121. deprecated="not deprecated">
  46122. </method>
  46123. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46124. abstract="false" native="false" synchronized="false"
  46125. static="true" final="false" visibility="public"
  46126. deprecated="not deprecated">
  46127. <param name="name" type="java.lang.String"/>
  46128. </method>
  46129. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46130. transient="false" volatile="false"
  46131. static="true" final="true" visibility="public"
  46132. deprecated="not deprecated">
  46133. </field>
  46134. </class>
  46135. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46136. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  46137. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  46138. abstract="false"
  46139. static="false" final="false" visibility="public"
  46140. deprecated="not deprecated">
  46141. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  46142. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  46143. static="false" final="false" visibility="public"
  46144. deprecated="deprecated, no comment">
  46145. <doc>
  46146. <![CDATA[Constructs a split.
  46147. @deprecated
  46148. @param file the file name
  46149. @param start the position of the first byte in the file to process
  46150. @param length the number of bytes in the file to process]]>
  46151. </doc>
  46152. </constructor>
  46153. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  46154. static="false" final="false" visibility="public"
  46155. deprecated="not deprecated">
  46156. <doc>
  46157. <![CDATA[Constructs a split with host information
  46158. @param file the file name
  46159. @param start the position of the first byte in the file to process
  46160. @param length the number of bytes in the file to process
  46161. @param hosts the list of hosts containing the block, possibly null]]>
  46162. </doc>
  46163. </constructor>
  46164. <method name="getPath" return="org.apache.hadoop.fs.Path"
  46165. abstract="false" native="false" synchronized="false"
  46166. static="false" final="false" visibility="public"
  46167. deprecated="not deprecated">
  46168. <doc>
  46169. <![CDATA[The file containing this split's data.]]>
  46170. </doc>
  46171. </method>
  46172. <method name="getStart" return="long"
  46173. abstract="false" native="false" synchronized="false"
  46174. static="false" final="false" visibility="public"
  46175. deprecated="not deprecated">
  46176. <doc>
  46177. <![CDATA[The position of the first byte in the file to process.]]>
  46178. </doc>
  46179. </method>
  46180. <method name="getLength" return="long"
  46181. abstract="false" native="false" synchronized="false"
  46182. static="false" final="false" visibility="public"
  46183. deprecated="not deprecated">
  46184. <doc>
  46185. <![CDATA[The number of bytes in the file to process.]]>
  46186. </doc>
  46187. </method>
  46188. <method name="toString" return="java.lang.String"
  46189. abstract="false" native="false" synchronized="false"
  46190. static="false" final="false" visibility="public"
  46191. deprecated="not deprecated">
  46192. </method>
  46193. <method name="write"
  46194. abstract="false" native="false" synchronized="false"
  46195. static="false" final="false" visibility="public"
  46196. deprecated="not deprecated">
  46197. <param name="out" type="java.io.DataOutput"/>
  46198. <exception name="IOException" type="java.io.IOException"/>
  46199. </method>
  46200. <method name="readFields"
  46201. abstract="false" native="false" synchronized="false"
  46202. static="false" final="false" visibility="public"
  46203. deprecated="not deprecated">
  46204. <param name="in" type="java.io.DataInput"/>
  46205. <exception name="IOException" type="java.io.IOException"/>
  46206. </method>
  46207. <method name="getLocations" return="java.lang.String[]"
  46208. abstract="false" native="false" synchronized="false"
  46209. static="false" final="false" visibility="public"
  46210. deprecated="not deprecated">
  46211. <exception name="IOException" type="java.io.IOException"/>
  46212. </method>
  46213. <doc>
  46214. <![CDATA[A section of an input file. Returned by {@link
  46215. InputFormat#getSplits(JobConf, int)} and passed to
  46216. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  46217. </doc>
  46218. </class>
  46219. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  46220. <!-- start class org.apache.hadoop.mapred.HDFSMonitorThread -->
  46221. <class name="HDFSMonitorThread" extends="java.lang.Thread"
  46222. abstract="false"
  46223. static="false" final="false" visibility="public"
  46224. deprecated="not deprecated">
  46225. <constructor name="HDFSMonitorThread" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.JobTracker, org.apache.hadoop.fs.FileSystem"
  46226. static="false" final="false" visibility="public"
  46227. deprecated="not deprecated">
  46228. </constructor>
  46229. <method name="run"
  46230. abstract="false" native="false" synchronized="false"
  46231. static="false" final="false" visibility="public"
  46232. deprecated="not deprecated">
  46233. </method>
  46234. <field name="LOG" type="org.apache.commons.logging.Log"
  46235. transient="false" volatile="false"
  46236. static="true" final="true" visibility="public"
  46237. deprecated="not deprecated">
  46238. </field>
  46239. </class>
  46240. <!-- end class org.apache.hadoop.mapred.HDFSMonitorThread -->
  46241. <!-- start class org.apache.hadoop.mapred.ID -->
  46242. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  46243. abstract="true"
  46244. static="false" final="false" visibility="public"
  46245. deprecated="not deprecated">
  46246. <constructor name="ID" type="int"
  46247. static="false" final="false" visibility="public"
  46248. deprecated="not deprecated">
  46249. <doc>
  46250. <![CDATA[constructs an ID object from the given int]]>
  46251. </doc>
  46252. </constructor>
  46253. <constructor name="ID"
  46254. static="false" final="false" visibility="protected"
  46255. deprecated="not deprecated">
  46256. </constructor>
  46257. <doc>
  46258. <![CDATA[A general identifier, which internally stores the id
  46259. as an integer. This is the super class of {@link JobID},
  46260. {@link TaskID} and {@link TaskAttemptID}.
  46261. @see JobID
  46262. @see TaskID
  46263. @see TaskAttemptID]]>
  46264. </doc>
  46265. </class>
  46266. <!-- end class org.apache.hadoop.mapred.ID -->
  46267. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  46268. <interface name="InputFormat" abstract="true"
  46269. static="false" final="false" visibility="public"
  46270. deprecated="not deprecated">
  46271. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  46272. abstract="false" native="false" synchronized="false"
  46273. static="false" final="false" visibility="public"
  46274. deprecated="not deprecated">
  46275. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46276. <param name="numSplits" type="int"/>
  46277. <exception name="IOException" type="java.io.IOException"/>
  46278. <doc>
  46279. <![CDATA[Logically split the set of input files for the job.
  46280. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  46281. for processing.</p>
  46282. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  46283. input files are not physically split into chunks. For e.g. a split could
  46284. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  46285. @param job job configuration.
  46286. @param numSplits the desired number of splits, a hint.
  46287. @return an array of {@link InputSplit}s for the job.]]>
  46288. </doc>
  46289. </method>
  46290. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  46291. abstract="false" native="false" synchronized="false"
  46292. static="false" final="false" visibility="public"
  46293. deprecated="not deprecated">
  46294. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  46295. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46296. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46297. <exception name="IOException" type="java.io.IOException"/>
  46298. <doc>
  46299. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  46300. <p>It is the responsibility of the <code>RecordReader</code> to respect
  46301. record boundaries while processing the logical split to present a
  46302. record-oriented view to the individual task.</p>
  46303. @param split the {@link InputSplit}
  46304. @param job the job that this split belongs to
  46305. @return a {@link RecordReader}]]>
  46306. </doc>
  46307. </method>
  46308. <doc>
  46309. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  46310. Map-Reduce job.
  46311. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  46312. job to:<p>
  46313. <ol>
  46314. <li>
  46315. Validate the input-specification of the job.
  46316. <li>
  46317. Split-up the input file(s) into logical {@link InputSplit}s, each of
  46318. which is then assigned to an individual {@link Mapper}.
  46319. </li>
  46320. <li>
  46321. Provide the {@link RecordReader} implementation to be used to glean
  46322. input records from the logical <code>InputSplit</code> for processing by
  46323. the {@link Mapper}.
  46324. </li>
  46325. </ol>
  46326. <p>The default behavior of file-based {@link InputFormat}s, typically
  46327. sub-classes of {@link FileInputFormat}, is to split the
  46328. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46329. bytes, of the input files. However, the {@link FileSystem} blocksize of
  46330. the input files is treated as an upper bound for input splits. A lower bound
  46331. on the split size can be set via
  46332. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46333. mapred.min.split.size</a>.</p>
  46334. <p>Clearly, logical splits based on input-size is insufficient for many
  46335. applications since record boundaries are to respected. In such cases, the
  46336. application has to also implement a {@link RecordReader} on whom lies the
  46337. responsibilty to respect record-boundaries and present a record-oriented
  46338. view of the logical <code>InputSplit</code> to the individual task.
  46339. @see InputSplit
  46340. @see RecordReader
  46341. @see JobClient
  46342. @see FileInputFormat]]>
  46343. </doc>
  46344. </interface>
  46345. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  46346. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  46347. <interface name="InputSplit" abstract="true"
  46348. static="false" final="false" visibility="public"
  46349. deprecated="not deprecated">
  46350. <implements name="org.apache.hadoop.io.Writable"/>
  46351. <method name="getLength" return="long"
  46352. abstract="false" native="false" synchronized="false"
  46353. static="false" final="false" visibility="public"
  46354. deprecated="not deprecated">
  46355. <exception name="IOException" type="java.io.IOException"/>
  46356. <doc>
  46357. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  46358. @return the number of bytes in the input split.
  46359. @throws IOException]]>
  46360. </doc>
  46361. </method>
  46362. <method name="getLocations" return="java.lang.String[]"
  46363. abstract="false" native="false" synchronized="false"
  46364. static="false" final="false" visibility="public"
  46365. deprecated="not deprecated">
  46366. <exception name="IOException" type="java.io.IOException"/>
  46367. <doc>
  46368. <![CDATA[Get the list of hostnames where the input split is located.
  46369. @return list of hostnames where data of the <code>InputSplit</code> is
  46370. located as an array of <code>String</code>s.
  46371. @throws IOException]]>
  46372. </doc>
  46373. </method>
  46374. <doc>
  46375. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  46376. individual {@link Mapper}.
  46377. <p>Typically, it presents a byte-oriented view on the input and is the
  46378. responsibility of {@link RecordReader} of the job to process this and present
  46379. a record-oriented view.
  46380. @see InputFormat
  46381. @see RecordReader]]>
  46382. </doc>
  46383. </interface>
  46384. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  46385. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  46386. <class name="InvalidFileTypeException" extends="java.io.IOException"
  46387. abstract="false"
  46388. static="false" final="false" visibility="public"
  46389. deprecated="not deprecated">
  46390. <constructor name="InvalidFileTypeException"
  46391. static="false" final="false" visibility="public"
  46392. deprecated="not deprecated">
  46393. </constructor>
  46394. <constructor name="InvalidFileTypeException" type="java.lang.String"
  46395. static="false" final="false" visibility="public"
  46396. deprecated="not deprecated">
  46397. </constructor>
  46398. <doc>
  46399. <![CDATA[Used when file type differs from the desired file type. like
  46400. getting a file when a directory is expected. Or a wrong file type.]]>
  46401. </doc>
  46402. </class>
  46403. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  46404. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  46405. <class name="InvalidInputException" extends="java.io.IOException"
  46406. abstract="false"
  46407. static="false" final="false" visibility="public"
  46408. deprecated="not deprecated">
  46409. <constructor name="InvalidInputException" type="java.util.List"
  46410. static="false" final="false" visibility="public"
  46411. deprecated="not deprecated">
  46412. <doc>
  46413. <![CDATA[Create the exception with the given list.
  46414. @param probs the list of problems to report. this list is not copied.]]>
  46415. </doc>
  46416. </constructor>
  46417. <method name="getProblems" return="java.util.List"
  46418. abstract="false" native="false" synchronized="false"
  46419. static="false" final="false" visibility="public"
  46420. deprecated="not deprecated">
  46421. <doc>
  46422. <![CDATA[Get the complete list of the problems reported.
  46423. @return the list of problems, which must not be modified]]>
  46424. </doc>
  46425. </method>
  46426. <method name="getMessage" return="java.lang.String"
  46427. abstract="false" native="false" synchronized="false"
  46428. static="false" final="false" visibility="public"
  46429. deprecated="not deprecated">
  46430. <doc>
  46431. <![CDATA[Get a summary message of the problems found.
  46432. @return the concatenated messages from all of the problems.]]>
  46433. </doc>
  46434. </method>
  46435. <doc>
  46436. <![CDATA[This class wraps a list of problems with the input, so that the user
  46437. can get a list of problems together instead of finding and fixing them one
  46438. by one.]]>
  46439. </doc>
  46440. </class>
  46441. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  46442. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  46443. <class name="InvalidJobConfException" extends="java.io.IOException"
  46444. abstract="false"
  46445. static="false" final="false" visibility="public"
  46446. deprecated="not deprecated">
  46447. <constructor name="InvalidJobConfException"
  46448. static="false" final="false" visibility="public"
  46449. deprecated="not deprecated">
  46450. </constructor>
  46451. <constructor name="InvalidJobConfException" type="java.lang.String"
  46452. static="false" final="false" visibility="public"
  46453. deprecated="not deprecated">
  46454. </constructor>
  46455. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  46456. static="false" final="false" visibility="public"
  46457. deprecated="not deprecated">
  46458. </constructor>
  46459. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  46460. static="false" final="false" visibility="public"
  46461. deprecated="not deprecated">
  46462. </constructor>
  46463. <doc>
  46464. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  46465. or value of some attributes is invalid.]]>
  46466. </doc>
  46467. </class>
  46468. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  46469. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  46470. <class name="IsolationRunner" extends="java.lang.Object"
  46471. abstract="false"
  46472. static="false" final="false" visibility="public"
  46473. deprecated="not deprecated">
  46474. <constructor name="IsolationRunner"
  46475. static="false" final="false" visibility="public"
  46476. deprecated="not deprecated">
  46477. </constructor>
  46478. <method name="main"
  46479. abstract="false" native="false" synchronized="false"
  46480. static="true" final="false" visibility="public"
  46481. deprecated="not deprecated">
  46482. <param name="args" type="java.lang.String[]"/>
  46483. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  46484. <exception name="IOException" type="java.io.IOException"/>
  46485. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46486. <doc>
  46487. <![CDATA[Run a single task.
  46488. @param args the first argument is the task directory]]>
  46489. </doc>
  46490. </method>
  46491. <doc>
  46492. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  46493. task, given left-over task files for a (typically failed) past job.
  46494. Currently, it is limited to re-running map tasks.
  46495. Users may coerce MapReduce to keep task files around by setting
  46496. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  46497. </doc>
  46498. </class>
  46499. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  46500. <!-- start class org.apache.hadoop.mapred.JobClient -->
  46501. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  46502. abstract="false"
  46503. static="false" final="false" visibility="public"
  46504. deprecated="not deprecated">
  46505. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  46506. <implements name="org.apache.hadoop.util.Tool"/>
  46507. <constructor name="JobClient"
  46508. static="false" final="false" visibility="public"
  46509. deprecated="not deprecated">
  46510. <doc>
  46511. <![CDATA[Create a job client.]]>
  46512. </doc>
  46513. </constructor>
  46514. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  46515. static="false" final="false" visibility="public"
  46516. deprecated="not deprecated">
  46517. <exception name="IOException" type="java.io.IOException"/>
  46518. <doc>
  46519. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  46520. default {@link JobTracker}.
  46521. @param conf the job configuration.
  46522. @throws IOException]]>
  46523. </doc>
  46524. </constructor>
  46525. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  46526. static="false" final="false" visibility="public"
  46527. deprecated="not deprecated">
  46528. <exception name="IOException" type="java.io.IOException"/>
  46529. <doc>
  46530. <![CDATA[Build a job client, connect to the indicated job tracker.
  46531. @param jobTrackAddr the job tracker to connect to.
  46532. @param conf configuration.]]>
  46533. </doc>
  46534. </constructor>
  46535. <method name="init"
  46536. abstract="false" native="false" synchronized="false"
  46537. static="false" final="false" visibility="public"
  46538. deprecated="not deprecated">
  46539. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46540. <exception name="IOException" type="java.io.IOException"/>
  46541. <doc>
  46542. <![CDATA[Connect to the default {@link JobTracker}.
  46543. @param conf the job configuration.
  46544. @throws IOException]]>
  46545. </doc>
  46546. </method>
  46547. <method name="close"
  46548. abstract="false" native="false" synchronized="true"
  46549. static="false" final="false" visibility="public"
  46550. deprecated="not deprecated">
  46551. <exception name="IOException" type="java.io.IOException"/>
  46552. <doc>
  46553. <![CDATA[Close the <code>JobClient</code>.]]>
  46554. </doc>
  46555. </method>
  46556. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  46557. abstract="false" native="false" synchronized="true"
  46558. static="false" final="false" visibility="public"
  46559. deprecated="not deprecated">
  46560. <exception name="IOException" type="java.io.IOException"/>
  46561. <doc>
  46562. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  46563. for submission to the MapReduce system.
  46564. @return the filesystem handle.
  46565. @throws IOException]]>
  46566. </doc>
  46567. </method>
  46568. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46569. abstract="false" native="false" synchronized="false"
  46570. static="false" final="false" visibility="public"
  46571. deprecated="not deprecated">
  46572. <param name="jobFile" type="java.lang.String"/>
  46573. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46574. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  46575. <exception name="IOException" type="java.io.IOException"/>
  46576. <doc>
  46577. <![CDATA[Submit a job to the MR system.
  46578. This returns a handle to the {@link RunningJob} which can be used to track
  46579. the running-job.
  46580. @param jobFile the job configuration.
  46581. @return a handle to the {@link RunningJob} which can be used to track the
  46582. running-job.
  46583. @throws FileNotFoundException
  46584. @throws InvalidJobConfException
  46585. @throws IOException]]>
  46586. </doc>
  46587. </method>
  46588. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46589. abstract="false" native="false" synchronized="false"
  46590. static="false" final="false" visibility="public"
  46591. deprecated="not deprecated">
  46592. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46593. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46594. <exception name="IOException" type="java.io.IOException"/>
  46595. <doc>
  46596. <![CDATA[Submit a job to the MR system.
  46597. This returns a handle to the {@link RunningJob} which can be used to track
  46598. the running-job.
  46599. @param job the job configuration.
  46600. @return a handle to the {@link RunningJob} which can be used to track the
  46601. running-job.
  46602. @throws FileNotFoundException
  46603. @throws IOException]]>
  46604. </doc>
  46605. </method>
  46606. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  46607. abstract="false" native="false" synchronized="false"
  46608. static="false" final="false" visibility="public"
  46609. deprecated="not deprecated">
  46610. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46611. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46612. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  46613. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46614. <exception name="IOException" type="java.io.IOException"/>
  46615. <doc>
  46616. <![CDATA[Internal method for submitting jobs to the system.
  46617. @param job the configuration to submit
  46618. @return a proxy object for the running job
  46619. @throws FileNotFoundException
  46620. @throws ClassNotFoundException
  46621. @throws InterruptedException
  46622. @throws IOException]]>
  46623. </doc>
  46624. </method>
  46625. <method name="isJobDirValid" return="boolean"
  46626. abstract="false" native="false" synchronized="false"
  46627. static="true" final="false" visibility="public"
  46628. deprecated="not deprecated">
  46629. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  46630. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46631. <exception name="IOException" type="java.io.IOException"/>
  46632. <doc>
  46633. <![CDATA[Checks if the job directory is clean and has all the required components
  46634. for (re) starting the job]]>
  46635. </doc>
  46636. </method>
  46637. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  46638. abstract="false" native="false" synchronized="false"
  46639. static="false" final="false" visibility="public"
  46640. deprecated="not deprecated">
  46641. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  46642. <exception name="IOException" type="java.io.IOException"/>
  46643. <doc>
  46644. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  46645. null if the id does not correspond to any known job.
  46646. @param jobid the jobid of the job.
  46647. @return the {@link RunningJob} handle to track the job, null if the
  46648. <code>jobid</code> doesn't correspond to any known job.
  46649. @throws IOException]]>
  46650. </doc>
  46651. </method>
  46652. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  46653. abstract="false" native="false" synchronized="false"
  46654. static="false" final="false" visibility="public"
  46655. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  46656. <param name="jobid" type="java.lang.String"/>
  46657. <exception name="IOException" type="java.io.IOException"/>
  46658. <doc>
  46659. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  46660. </doc>
  46661. </method>
  46662. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46663. abstract="false" native="false" synchronized="false"
  46664. static="false" final="false" visibility="public"
  46665. deprecated="not deprecated">
  46666. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46667. <exception name="IOException" type="java.io.IOException"/>
  46668. <doc>
  46669. <![CDATA[Get the information of the current state of the map tasks of a job.
  46670. @param jobId the job to query.
  46671. @return the list of all of the map tips.
  46672. @throws IOException]]>
  46673. </doc>
  46674. </method>
  46675. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46676. abstract="false" native="false" synchronized="false"
  46677. static="false" final="false" visibility="public"
  46678. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  46679. <param name="jobId" type="java.lang.String"/>
  46680. <exception name="IOException" type="java.io.IOException"/>
  46681. <doc>
  46682. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  46683. </doc>
  46684. </method>
  46685. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46686. abstract="false" native="false" synchronized="false"
  46687. static="false" final="false" visibility="public"
  46688. deprecated="not deprecated">
  46689. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46690. <exception name="IOException" type="java.io.IOException"/>
  46691. <doc>
  46692. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  46693. @param jobId the job to query.
  46694. @return the list of all of the reduce tips.
  46695. @throws IOException]]>
  46696. </doc>
  46697. </method>
  46698. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46699. abstract="false" native="false" synchronized="false"
  46700. static="false" final="false" visibility="public"
  46701. deprecated="not deprecated">
  46702. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46703. <exception name="IOException" type="java.io.IOException"/>
  46704. <doc>
  46705. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  46706. @param jobId the job to query.
  46707. @return the list of all of the cleanup tips.
  46708. @throws IOException]]>
  46709. </doc>
  46710. </method>
  46711. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46712. abstract="false" native="false" synchronized="false"
  46713. static="false" final="false" visibility="public"
  46714. deprecated="not deprecated">
  46715. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46716. <exception name="IOException" type="java.io.IOException"/>
  46717. <doc>
  46718. <![CDATA[Get the information of the current state of the setup tasks of a job.
  46719. @param jobId the job to query.
  46720. @return the list of all of the setup tips.
  46721. @throws IOException]]>
  46722. </doc>
  46723. </method>
  46724. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46725. abstract="false" native="false" synchronized="false"
  46726. static="false" final="false" visibility="public"
  46727. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  46728. <param name="jobId" type="java.lang.String"/>
  46729. <exception name="IOException" type="java.io.IOException"/>
  46730. <doc>
  46731. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  46732. </doc>
  46733. </method>
  46734. <method name="displayTasks"
  46735. abstract="false" native="false" synchronized="false"
  46736. static="false" final="false" visibility="public"
  46737. deprecated="not deprecated">
  46738. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46739. <param name="type" type="java.lang.String"/>
  46740. <param name="state" type="java.lang.String"/>
  46741. <exception name="IOException" type="java.io.IOException"/>
  46742. <doc>
  46743. <![CDATA[Display the information about a job's tasks, of a particular type and
  46744. in a particular state
  46745. @param jobId the ID of the job
  46746. @param type the type of the task (map/reduce/setup/cleanup)
  46747. @param state the state of the task
  46748. (pending/running/completed/failed/killed)]]>
  46749. </doc>
  46750. </method>
  46751. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  46752. abstract="false" native="false" synchronized="false"
  46753. static="false" final="false" visibility="public"
  46754. deprecated="not deprecated">
  46755. <exception name="IOException" type="java.io.IOException"/>
  46756. <doc>
  46757. <![CDATA[Get status information about the Map-Reduce cluster.
  46758. @return the status information about the Map-Reduce cluster as an object
  46759. of {@link ClusterStatus}.
  46760. @throws IOException]]>
  46761. </doc>
  46762. </method>
  46763. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  46764. abstract="false" native="false" synchronized="false"
  46765. static="false" final="false" visibility="public"
  46766. deprecated="not deprecated">
  46767. <param name="detailed" type="boolean"/>
  46768. <exception name="IOException" type="java.io.IOException"/>
  46769. <doc>
  46770. <![CDATA[Get status information about the Map-Reduce cluster.
  46771. @param detailed if true then get a detailed status including the
  46772. tracker names and memory usage of the JobTracker
  46773. @return the status information about the Map-Reduce cluster as an object
  46774. of {@link ClusterStatus}.
  46775. @throws IOException]]>
  46776. </doc>
  46777. </method>
  46778. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  46779. abstract="false" native="false" synchronized="false"
  46780. static="false" final="false" visibility="public"
  46781. deprecated="not deprecated">
  46782. <exception name="IOException" type="java.io.IOException"/>
  46783. <doc>
  46784. <![CDATA[Grab the jobtracker's view of the staging directory path where
  46785. job-specific files will be placed.
  46786. @return the staging directory where job-specific files are to be placed.]]>
  46787. </doc>
  46788. </method>
  46789. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  46790. abstract="false" native="false" synchronized="false"
  46791. static="false" final="false" visibility="public"
  46792. deprecated="not deprecated">
  46793. <exception name="IOException" type="java.io.IOException"/>
  46794. <doc>
  46795. <![CDATA[Get the jobs that are not completed and not failed.
  46796. @return array of {@link JobStatus} for the running/to-be-run jobs.
  46797. @throws IOException]]>
  46798. </doc>
  46799. </method>
  46800. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  46801. abstract="false" native="false" synchronized="false"
  46802. static="false" final="false" visibility="public"
  46803. deprecated="not deprecated">
  46804. <exception name="IOException" type="java.io.IOException"/>
  46805. <doc>
  46806. <![CDATA[Get the jobs that are submitted.
  46807. @return array of {@link JobStatus} for the submitted jobs.
  46808. @throws IOException]]>
  46809. </doc>
  46810. </method>
  46811. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  46812. abstract="false" native="false" synchronized="false"
  46813. static="true" final="false" visibility="public"
  46814. deprecated="not deprecated">
  46815. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46816. <exception name="IOException" type="java.io.IOException"/>
  46817. <doc>
  46818. <![CDATA[Utility that submits a job, then polls for progress until the job is
  46819. complete.
  46820. @param job the job configuration.
  46821. @throws IOException if the job fails]]>
  46822. </doc>
  46823. </method>
  46824. <method name="monitorAndPrintJob" return="boolean"
  46825. abstract="false" native="false" synchronized="false"
  46826. static="false" final="false" visibility="public"
  46827. deprecated="not deprecated">
  46828. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46829. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  46830. <exception name="IOException" type="java.io.IOException"/>
  46831. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46832. <doc>
  46833. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  46834. fail.
  46835. @param conf the job's configuration
  46836. @param job the job to track
  46837. @return true if the job succeeded
  46838. @throws IOException if communication to the JobTracker fails]]>
  46839. </doc>
  46840. </method>
  46841. <method name="setTaskOutputFilter"
  46842. abstract="false" native="false" synchronized="false"
  46843. static="false" final="false" visibility="public"
  46844. deprecated="not deprecated">
  46845. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  46846. <doc>
  46847. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  46848. output matches the filter.
  46849. @param newValue task filter.]]>
  46850. </doc>
  46851. </method>
  46852. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46853. abstract="false" native="false" synchronized="false"
  46854. static="true" final="false" visibility="public"
  46855. deprecated="not deprecated">
  46856. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46857. <doc>
  46858. <![CDATA[Get the task output filter out of the JobConf.
  46859. @param job the JobConf to examine.
  46860. @return the filter level.]]>
  46861. </doc>
  46862. </method>
  46863. <method name="setTaskOutputFilter"
  46864. abstract="false" native="false" synchronized="false"
  46865. static="true" final="false" visibility="public"
  46866. deprecated="not deprecated">
  46867. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46868. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  46869. <doc>
  46870. <![CDATA[Modify the JobConf to set the task output filter.
  46871. @param job the JobConf to modify.
  46872. @param newValue the value to set.]]>
  46873. </doc>
  46874. </method>
  46875. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46876. abstract="false" native="false" synchronized="false"
  46877. static="false" final="false" visibility="public"
  46878. deprecated="not deprecated">
  46879. <doc>
  46880. <![CDATA[Returns task output filter.
  46881. @return task filter.]]>
  46882. </doc>
  46883. </method>
  46884. <method name="run" return="int"
  46885. abstract="false" native="false" synchronized="false"
  46886. static="false" final="false" visibility="public"
  46887. deprecated="not deprecated">
  46888. <param name="argv" type="java.lang.String[]"/>
  46889. <exception name="Exception" type="java.lang.Exception"/>
  46890. </method>
  46891. <method name="getDefaultMaps" return="int"
  46892. abstract="false" native="false" synchronized="false"
  46893. static="false" final="false" visibility="public"
  46894. deprecated="not deprecated">
  46895. <exception name="IOException" type="java.io.IOException"/>
  46896. <doc>
  46897. <![CDATA[Get status information about the max available Maps in the cluster.
  46898. @return the max available Maps in the cluster
  46899. @throws IOException]]>
  46900. </doc>
  46901. </method>
  46902. <method name="getDefaultReduces" return="int"
  46903. abstract="false" native="false" synchronized="false"
  46904. static="false" final="false" visibility="public"
  46905. deprecated="not deprecated">
  46906. <exception name="IOException" type="java.io.IOException"/>
  46907. <doc>
  46908. <![CDATA[Get status information about the max available Reduces in the cluster.
  46909. @return the max available Reduces in the cluster
  46910. @throws IOException]]>
  46911. </doc>
  46912. </method>
  46913. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  46914. abstract="false" native="false" synchronized="false"
  46915. static="false" final="false" visibility="public"
  46916. deprecated="not deprecated">
  46917. <doc>
  46918. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  46919. @return the system directory where job-specific files are to be placed.]]>
  46920. </doc>
  46921. </method>
  46922. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  46923. abstract="false" native="false" synchronized="false"
  46924. static="false" final="false" visibility="public"
  46925. deprecated="not deprecated">
  46926. <exception name="IOException" type="java.io.IOException"/>
  46927. <doc>
  46928. <![CDATA[Return an array of queue information objects about all the Job Queues
  46929. configured.
  46930. @return Array of JobQueueInfo objects
  46931. @throws IOException]]>
  46932. </doc>
  46933. </method>
  46934. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  46935. abstract="false" native="false" synchronized="false"
  46936. static="false" final="false" visibility="public"
  46937. deprecated="not deprecated">
  46938. <param name="queueName" type="java.lang.String"/>
  46939. <exception name="IOException" type="java.io.IOException"/>
  46940. <doc>
  46941. <![CDATA[Gets all the jobs which were added to particular Job Queue
  46942. @param queueName name of the Job Queue
  46943. @return Array of jobs present in the job queue
  46944. @throws IOException]]>
  46945. </doc>
  46946. </method>
  46947. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  46948. abstract="false" native="false" synchronized="false"
  46949. static="false" final="false" visibility="public"
  46950. deprecated="not deprecated">
  46951. <param name="queueName" type="java.lang.String"/>
  46952. <exception name="IOException" type="java.io.IOException"/>
  46953. <doc>
  46954. <![CDATA[Gets the queue information associated to a particular Job Queue
  46955. @param queueName name of the job queue.
  46956. @return Queue information associated to particular queue.
  46957. @throws IOException]]>
  46958. </doc>
  46959. </method>
  46960. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  46961. abstract="false" native="false" synchronized="false"
  46962. static="false" final="false" visibility="public"
  46963. deprecated="not deprecated">
  46964. <exception name="IOException" type="java.io.IOException"/>
  46965. <doc>
  46966. <![CDATA[Gets the Queue ACLs for current user
  46967. @return array of QueueAclsInfo object for current user.
  46968. @throws IOException]]>
  46969. </doc>
  46970. </method>
  46971. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  46972. abstract="false" native="false" synchronized="false"
  46973. static="false" final="false" visibility="public"
  46974. deprecated="not deprecated">
  46975. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  46976. <exception name="IOException" type="java.io.IOException"/>
  46977. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46978. </method>
  46979. <method name="renewDelegationToken" return="long"
  46980. abstract="false" native="false" synchronized="false"
  46981. static="false" final="false" visibility="public"
  46982. deprecated="not deprecated">
  46983. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  46984. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  46985. <exception name="IOException" type="java.io.IOException"/>
  46986. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46987. <doc>
  46988. <![CDATA[Renew a delegation token
  46989. @param token the token to renew
  46990. @return the new expiration time
  46991. @throws InvalidToken
  46992. @throws IOException]]>
  46993. </doc>
  46994. </method>
  46995. <method name="cancelDelegationToken"
  46996. abstract="false" native="false" synchronized="false"
  46997. static="false" final="false" visibility="public"
  46998. deprecated="not deprecated">
  46999. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47000. <exception name="IOException" type="java.io.IOException"/>
  47001. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47002. <doc>
  47003. <![CDATA[Cancel a delegation token from the JobTracker
  47004. @param token the token to cancel
  47005. @throws IOException]]>
  47006. </doc>
  47007. </method>
  47008. <method name="main"
  47009. abstract="false" native="false" synchronized="false"
  47010. static="true" final="false" visibility="public"
  47011. deprecated="not deprecated">
  47012. <param name="argv" type="java.lang.String[]"/>
  47013. <exception name="Exception" type="java.lang.Exception"/>
  47014. </method>
  47015. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_KEY" type="java.lang.String"
  47016. transient="false" volatile="false"
  47017. static="true" final="true" visibility="public"
  47018. deprecated="not deprecated">
  47019. </field>
  47020. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_DEFAULT" type="boolean"
  47021. transient="false" volatile="false"
  47022. static="true" final="true" visibility="public"
  47023. deprecated="not deprecated">
  47024. </field>
  47025. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_KEY" type="java.lang.String"
  47026. transient="false" volatile="false"
  47027. static="true" final="true" visibility="public"
  47028. deprecated="not deprecated">
  47029. </field>
  47030. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_DEFAULT" type="java.lang.String"
  47031. transient="false" volatile="false"
  47032. static="true" final="true" visibility="public"
  47033. deprecated="not deprecated">
  47034. </field>
  47035. <doc>
  47036. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  47037. with the {@link JobTracker}.
  47038. <code>JobClient</code> provides facilities to submit jobs, track their
  47039. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  47040. status information etc.
  47041. <p>The job submission process involves:
  47042. <ol>
  47043. <li>
  47044. Checking the input and output specifications of the job.
  47045. </li>
  47046. <li>
  47047. Computing the {@link InputSplit}s for the job.
  47048. </li>
  47049. <li>
  47050. Setup the requisite accounting information for the {@link DistributedCache}
  47051. of the job, if necessary.
  47052. </li>
  47053. <li>
  47054. Copying the job's jar and configuration to the map-reduce system directory
  47055. on the distributed file-system.
  47056. </li>
  47057. <li>
  47058. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  47059. it's status.
  47060. </li>
  47061. </ol></p>
  47062. Normally the user creates the application, describes various facets of the
  47063. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  47064. the job and monitor its progress.
  47065. <p>Here is an example on how to use <code>JobClient</code>:</p>
  47066. <p><blockquote><pre>
  47067. // Create a new JobConf
  47068. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47069. // Specify various job-specific parameters
  47070. job.setJobName("myjob");
  47071. job.setInputPath(new Path("in"));
  47072. job.setOutputPath(new Path("out"));
  47073. job.setMapperClass(MyJob.MyMapper.class);
  47074. job.setReducerClass(MyJob.MyReducer.class);
  47075. // Submit the job, then poll for progress until the job is complete
  47076. JobClient.runJob(job);
  47077. </pre></blockquote></p>
  47078. <h4 id="JobControl">Job Control</h4>
  47079. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  47080. which cannot be done via a single map-reduce job. This is fairly easy since
  47081. the output of the job, typically, goes to distributed file-system and that
  47082. can be used as the input for the next job.</p>
  47083. <p>However, this also means that the onus on ensuring jobs are complete
  47084. (success/failure) lies squarely on the clients. In such situations the
  47085. various job-control options are:
  47086. <ol>
  47087. <li>
  47088. {@link #runJob(JobConf)} : submits the job and returns only after
  47089. the job has completed.
  47090. </li>
  47091. <li>
  47092. {@link #submitJob(JobConf)} : only submits the job, then poll the
  47093. returned handle to the {@link RunningJob} to query status and make
  47094. scheduling decisions.
  47095. </li>
  47096. <li>
  47097. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  47098. on job-completion, thus avoiding polling.
  47099. </li>
  47100. </ol></p>
  47101. @see JobConf
  47102. @see ClusterStatus
  47103. @see Tool
  47104. @see DistributedCache]]>
  47105. </doc>
  47106. </class>
  47107. <!-- end class org.apache.hadoop.mapred.JobClient -->
  47108. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  47109. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  47110. abstract="false"
  47111. static="true" final="false" visibility="public"
  47112. deprecated="not deprecated">
  47113. <constructor name="JobClient.Renewer"
  47114. static="false" final="false" visibility="public"
  47115. deprecated="not deprecated">
  47116. </constructor>
  47117. <method name="handleKind" return="boolean"
  47118. abstract="false" native="false" synchronized="false"
  47119. static="false" final="false" visibility="public"
  47120. deprecated="not deprecated">
  47121. <param name="kind" type="org.apache.hadoop.io.Text"/>
  47122. </method>
  47123. <method name="renew" return="long"
  47124. abstract="false" native="false" synchronized="false"
  47125. static="false" final="false" visibility="public"
  47126. deprecated="not deprecated">
  47127. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47129. <exception name="IOException" type="java.io.IOException"/>
  47130. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47131. </method>
  47132. <method name="cancel"
  47133. abstract="false" native="false" synchronized="false"
  47134. static="false" final="false" visibility="public"
  47135. deprecated="not deprecated">
  47136. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47137. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47138. <exception name="IOException" type="java.io.IOException"/>
  47139. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47140. </method>
  47141. <method name="isManaged" return="boolean"
  47142. abstract="false" native="false" synchronized="false"
  47143. static="false" final="false" visibility="public"
  47144. deprecated="not deprecated">
  47145. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47146. <exception name="IOException" type="java.io.IOException"/>
  47147. </method>
  47148. </class>
  47149. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  47150. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47151. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  47152. abstract="false"
  47153. static="true" final="true" visibility="public"
  47154. deprecated="not deprecated">
  47155. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  47156. abstract="false" native="false" synchronized="false"
  47157. static="true" final="false" visibility="public"
  47158. deprecated="not deprecated">
  47159. </method>
  47160. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47161. abstract="false" native="false" synchronized="false"
  47162. static="true" final="false" visibility="public"
  47163. deprecated="not deprecated">
  47164. <param name="name" type="java.lang.String"/>
  47165. </method>
  47166. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47167. transient="false" volatile="false"
  47168. static="true" final="true" visibility="public"
  47169. deprecated="not deprecated">
  47170. </field>
  47171. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47172. transient="false" volatile="false"
  47173. static="true" final="true" visibility="public"
  47174. deprecated="not deprecated">
  47175. </field>
  47176. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47177. transient="false" volatile="false"
  47178. static="true" final="true" visibility="public"
  47179. deprecated="not deprecated">
  47180. </field>
  47181. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47182. transient="false" volatile="false"
  47183. static="true" final="true" visibility="public"
  47184. deprecated="not deprecated">
  47185. </field>
  47186. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47187. transient="false" volatile="false"
  47188. static="true" final="true" visibility="public"
  47189. deprecated="not deprecated">
  47190. </field>
  47191. </class>
  47192. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47193. <!-- start class org.apache.hadoop.mapred.JobConf -->
  47194. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  47195. abstract="false"
  47196. static="false" final="false" visibility="public"
  47197. deprecated="not deprecated">
  47198. <constructor name="JobConf"
  47199. static="false" final="false" visibility="public"
  47200. deprecated="not deprecated">
  47201. <doc>
  47202. <![CDATA[Construct a map/reduce job configuration.]]>
  47203. </doc>
  47204. </constructor>
  47205. <constructor name="JobConf" type="java.lang.Class"
  47206. static="false" final="false" visibility="public"
  47207. deprecated="not deprecated">
  47208. <doc>
  47209. <![CDATA[Construct a map/reduce job configuration.
  47210. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  47211. </doc>
  47212. </constructor>
  47213. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  47214. static="false" final="false" visibility="public"
  47215. deprecated="not deprecated">
  47216. <doc>
  47217. <![CDATA[Construct a map/reduce job configuration.
  47218. @param conf a Configuration whose settings will be inherited.]]>
  47219. </doc>
  47220. </constructor>
  47221. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  47222. static="false" final="false" visibility="public"
  47223. deprecated="not deprecated">
  47224. <doc>
  47225. <![CDATA[Construct a map/reduce job configuration.
  47226. @param conf a Configuration whose settings will be inherited.
  47227. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  47228. </doc>
  47229. </constructor>
  47230. <constructor name="JobConf" type="java.lang.String"
  47231. static="false" final="false" visibility="public"
  47232. deprecated="not deprecated">
  47233. <doc>
  47234. <![CDATA[Construct a map/reduce configuration.
  47235. @param config a Configuration-format XML job description file.]]>
  47236. </doc>
  47237. </constructor>
  47238. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  47239. static="false" final="false" visibility="public"
  47240. deprecated="not deprecated">
  47241. <doc>
  47242. <![CDATA[Construct a map/reduce configuration.
  47243. @param config a Configuration-format XML job description file.]]>
  47244. </doc>
  47245. </constructor>
  47246. <constructor name="JobConf" type="boolean"
  47247. static="false" final="false" visibility="public"
  47248. deprecated="not deprecated">
  47249. <doc>
  47250. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  47251. default resources can be turned off.
  47252. <p/>
  47253. If the parameter {@code loadDefaults} is false, the new instance
  47254. will not load resources from the default files.
  47255. @param loadDefaults specifies whether to load from the default files]]>
  47256. </doc>
  47257. </constructor>
  47258. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  47259. abstract="false" native="false" synchronized="false"
  47260. static="false" final="false" visibility="public"
  47261. deprecated="not deprecated">
  47262. <doc>
  47263. <![CDATA[Get credentials for the job.
  47264. @return credentials for the job]]>
  47265. </doc>
  47266. </method>
  47267. <method name="getJar" return="java.lang.String"
  47268. abstract="false" native="false" synchronized="false"
  47269. static="false" final="false" visibility="public"
  47270. deprecated="not deprecated">
  47271. <doc>
  47272. <![CDATA[Get the user jar for the map-reduce job.
  47273. @return the user jar for the map-reduce job.]]>
  47274. </doc>
  47275. </method>
  47276. <method name="setJar"
  47277. abstract="false" native="false" synchronized="false"
  47278. static="false" final="false" visibility="public"
  47279. deprecated="not deprecated">
  47280. <param name="jar" type="java.lang.String"/>
  47281. <doc>
  47282. <![CDATA[Set the user jar for the map-reduce job.
  47283. @param jar the user jar for the map-reduce job.]]>
  47284. </doc>
  47285. </method>
  47286. <method name="setJarByClass"
  47287. abstract="false" native="false" synchronized="false"
  47288. static="false" final="false" visibility="public"
  47289. deprecated="not deprecated">
  47290. <param name="cls" type="java.lang.Class"/>
  47291. <doc>
  47292. <![CDATA[Set the job's jar file by finding an example class location.
  47293. @param cls the example class.]]>
  47294. </doc>
  47295. </method>
  47296. <method name="getLocalDirs" return="java.lang.String[]"
  47297. abstract="false" native="false" synchronized="false"
  47298. static="false" final="false" visibility="public"
  47299. deprecated="not deprecated">
  47300. <exception name="IOException" type="java.io.IOException"/>
  47301. </method>
  47302. <method name="deleteLocalFiles"
  47303. abstract="false" native="false" synchronized="false"
  47304. static="false" final="false" visibility="public"
  47305. deprecated="not deprecated">
  47306. <exception name="IOException" type="java.io.IOException"/>
  47307. </method>
  47308. <method name="deleteLocalFiles"
  47309. abstract="false" native="false" synchronized="false"
  47310. static="false" final="false" visibility="public"
  47311. deprecated="not deprecated">
  47312. <param name="subdir" type="java.lang.String"/>
  47313. <exception name="IOException" type="java.io.IOException"/>
  47314. </method>
  47315. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  47316. abstract="false" native="false" synchronized="false"
  47317. static="false" final="false" visibility="public"
  47318. deprecated="not deprecated">
  47319. <param name="pathString" type="java.lang.String"/>
  47320. <exception name="IOException" type="java.io.IOException"/>
  47321. <doc>
  47322. <![CDATA[Constructs a local file name. Files are distributed among configured
  47323. local directories.]]>
  47324. </doc>
  47325. </method>
  47326. <method name="getUser" return="java.lang.String"
  47327. abstract="false" native="false" synchronized="false"
  47328. static="false" final="false" visibility="public"
  47329. deprecated="not deprecated">
  47330. <doc>
  47331. <![CDATA[Get the reported username for this job.
  47332. @return the username]]>
  47333. </doc>
  47334. </method>
  47335. <method name="setUser"
  47336. abstract="false" native="false" synchronized="false"
  47337. static="false" final="false" visibility="public"
  47338. deprecated="not deprecated">
  47339. <param name="user" type="java.lang.String"/>
  47340. <doc>
  47341. <![CDATA[Set the reported username for this job.
  47342. @param user the username for this job.]]>
  47343. </doc>
  47344. </method>
  47345. <method name="setKeepFailedTaskFiles"
  47346. abstract="false" native="false" synchronized="false"
  47347. static="false" final="false" visibility="public"
  47348. deprecated="not deprecated">
  47349. <param name="keep" type="boolean"/>
  47350. <doc>
  47351. <![CDATA[Set whether the framework should keep the intermediate files for
  47352. failed tasks.
  47353. @param keep <code>true</code> if framework should keep the intermediate files
  47354. for failed tasks, <code>false</code> otherwise.]]>
  47355. </doc>
  47356. </method>
  47357. <method name="getKeepFailedTaskFiles" return="boolean"
  47358. abstract="false" native="false" synchronized="false"
  47359. static="false" final="false" visibility="public"
  47360. deprecated="not deprecated">
  47361. <doc>
  47362. <![CDATA[Should the temporary files for failed tasks be kept?
  47363. @return should the files be kept?]]>
  47364. </doc>
  47365. </method>
  47366. <method name="setKeepTaskFilesPattern"
  47367. abstract="false" native="false" synchronized="false"
  47368. static="false" final="false" visibility="public"
  47369. deprecated="not deprecated">
  47370. <param name="pattern" type="java.lang.String"/>
  47371. <doc>
  47372. <![CDATA[Set a regular expression for task names that should be kept.
  47373. The regular expression ".*_m_000123_0" would keep the files
  47374. for the first instance of map 123 that ran.
  47375. @param pattern the java.util.regex.Pattern to match against the
  47376. task names.]]>
  47377. </doc>
  47378. </method>
  47379. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  47380. abstract="false" native="false" synchronized="false"
  47381. static="false" final="false" visibility="public"
  47382. deprecated="not deprecated">
  47383. <doc>
  47384. <![CDATA[Get the regular expression that is matched against the task names
  47385. to see if we need to keep the files.
  47386. @return the pattern as a string, if it was set, othewise null.]]>
  47387. </doc>
  47388. </method>
  47389. <method name="setWorkingDirectory"
  47390. abstract="false" native="false" synchronized="false"
  47391. static="false" final="false" visibility="public"
  47392. deprecated="not deprecated">
  47393. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  47394. <doc>
  47395. <![CDATA[Set the current working directory for the default file system.
  47396. @param dir the new current working directory.]]>
  47397. </doc>
  47398. </method>
  47399. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  47400. abstract="false" native="false" synchronized="false"
  47401. static="false" final="false" visibility="public"
  47402. deprecated="not deprecated">
  47403. <doc>
  47404. <![CDATA[Get the current working directory for the default file system.
  47405. @return the directory name.]]>
  47406. </doc>
  47407. </method>
  47408. <method name="setNumTasksToExecutePerJvm"
  47409. abstract="false" native="false" synchronized="false"
  47410. static="false" final="false" visibility="public"
  47411. deprecated="not deprecated">
  47412. <param name="numTasks" type="int"/>
  47413. <doc>
  47414. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  47415. before it exits
  47416. @param numTasks the number of tasks to execute; defaults to 1;
  47417. -1 signifies no limit]]>
  47418. </doc>
  47419. </method>
  47420. <method name="getNumTasksToExecutePerJvm" return="int"
  47421. abstract="false" native="false" synchronized="false"
  47422. static="false" final="false" visibility="public"
  47423. deprecated="not deprecated">
  47424. <doc>
  47425. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  47426. </doc>
  47427. </method>
  47428. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  47429. abstract="false" native="false" synchronized="false"
  47430. static="false" final="false" visibility="public"
  47431. deprecated="not deprecated">
  47432. <doc>
  47433. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  47434. defaults to {@link TextInputFormat} if not specified explicity.
  47435. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  47436. </doc>
  47437. </method>
  47438. <method name="setInputFormat"
  47439. abstract="false" native="false" synchronized="false"
  47440. static="false" final="false" visibility="public"
  47441. deprecated="not deprecated">
  47442. <param name="theClass" type="java.lang.Class"/>
  47443. <doc>
  47444. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  47445. @param theClass the {@link InputFormat} implementation for the map-reduce
  47446. job.]]>
  47447. </doc>
  47448. </method>
  47449. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  47450. abstract="false" native="false" synchronized="false"
  47451. static="false" final="false" visibility="public"
  47452. deprecated="not deprecated">
  47453. <doc>
  47454. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  47455. defaults to {@link TextOutputFormat} if not specified explicity.
  47456. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  47457. </doc>
  47458. </method>
  47459. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  47460. abstract="false" native="false" synchronized="false"
  47461. static="false" final="false" visibility="public"
  47462. deprecated="not deprecated">
  47463. <doc>
  47464. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  47465. defaults to {@link FileOutputCommitter} if not specified explicitly.
  47466. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  47467. </doc>
  47468. </method>
  47469. <method name="setOutputCommitter"
  47470. abstract="false" native="false" synchronized="false"
  47471. static="false" final="false" visibility="public"
  47472. deprecated="not deprecated">
  47473. <param name="theClass" type="java.lang.Class"/>
  47474. <doc>
  47475. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  47476. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  47477. job.]]>
  47478. </doc>
  47479. </method>
  47480. <method name="setOutputFormat"
  47481. abstract="false" native="false" synchronized="false"
  47482. static="false" final="false" visibility="public"
  47483. deprecated="not deprecated">
  47484. <param name="theClass" type="java.lang.Class"/>
  47485. <doc>
  47486. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  47487. @param theClass the {@link OutputFormat} implementation for the map-reduce
  47488. job.]]>
  47489. </doc>
  47490. </method>
  47491. <method name="setCompressMapOutput"
  47492. abstract="false" native="false" synchronized="false"
  47493. static="false" final="false" visibility="public"
  47494. deprecated="not deprecated">
  47495. <param name="compress" type="boolean"/>
  47496. <doc>
  47497. <![CDATA[Should the map outputs be compressed before transfer?
  47498. Uses the SequenceFile compression.
  47499. @param compress should the map outputs be compressed?]]>
  47500. </doc>
  47501. </method>
  47502. <method name="getCompressMapOutput" return="boolean"
  47503. abstract="false" native="false" synchronized="false"
  47504. static="false" final="false" visibility="public"
  47505. deprecated="not deprecated">
  47506. <doc>
  47507. <![CDATA[Are the outputs of the maps be compressed?
  47508. @return <code>true</code> if the outputs of the maps are to be compressed,
  47509. <code>false</code> otherwise.]]>
  47510. </doc>
  47511. </method>
  47512. <method name="setMapOutputCompressorClass"
  47513. abstract="false" native="false" synchronized="false"
  47514. static="false" final="false" visibility="public"
  47515. deprecated="not deprecated">
  47516. <param name="codecClass" type="java.lang.Class"/>
  47517. <doc>
  47518. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  47519. @param codecClass the {@link CompressionCodec} class that will compress
  47520. the map outputs.]]>
  47521. </doc>
  47522. </method>
  47523. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  47524. abstract="false" native="false" synchronized="false"
  47525. static="false" final="false" visibility="public"
  47526. deprecated="not deprecated">
  47527. <param name="defaultValue" type="java.lang.Class"/>
  47528. <doc>
  47529. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  47530. @param defaultValue the {@link CompressionCodec} to return if not set
  47531. @return the {@link CompressionCodec} class that should be used to compress the
  47532. map outputs.
  47533. @throws IllegalArgumentException if the class was specified, but not found]]>
  47534. </doc>
  47535. </method>
  47536. <method name="getMapOutputKeyClass" return="java.lang.Class"
  47537. abstract="false" native="false" synchronized="false"
  47538. static="false" final="false" visibility="public"
  47539. deprecated="not deprecated">
  47540. <doc>
  47541. <![CDATA[Get the key class for the map output data. If it is not set, use the
  47542. (final) output key class. This allows the map output key class to be
  47543. different than the final output key class.
  47544. @return the map output key class.]]>
  47545. </doc>
  47546. </method>
  47547. <method name="setMapOutputKeyClass"
  47548. abstract="false" native="false" synchronized="false"
  47549. static="false" final="false" visibility="public"
  47550. deprecated="not deprecated">
  47551. <param name="theClass" type="java.lang.Class"/>
  47552. <doc>
  47553. <![CDATA[Set the key class for the map output data. This allows the user to
  47554. specify the map output key class to be different than the final output
  47555. value class.
  47556. @param theClass the map output key class.]]>
  47557. </doc>
  47558. </method>
  47559. <method name="getMapOutputValueClass" return="java.lang.Class"
  47560. abstract="false" native="false" synchronized="false"
  47561. static="false" final="false" visibility="public"
  47562. deprecated="not deprecated">
  47563. <doc>
  47564. <![CDATA[Get the value class for the map output data. If it is not set, use the
  47565. (final) output value class This allows the map output value class to be
  47566. different than the final output value class.
  47567. @return the map output value class.]]>
  47568. </doc>
  47569. </method>
  47570. <method name="setMapOutputValueClass"
  47571. abstract="false" native="false" synchronized="false"
  47572. static="false" final="false" visibility="public"
  47573. deprecated="not deprecated">
  47574. <param name="theClass" type="java.lang.Class"/>
  47575. <doc>
  47576. <![CDATA[Set the value class for the map output data. This allows the user to
  47577. specify the map output value class to be different than the final output
  47578. value class.
  47579. @param theClass the map output value class.]]>
  47580. </doc>
  47581. </method>
  47582. <method name="getOutputKeyClass" return="java.lang.Class"
  47583. abstract="false" native="false" synchronized="false"
  47584. static="false" final="false" visibility="public"
  47585. deprecated="not deprecated">
  47586. <doc>
  47587. <![CDATA[Get the key class for the job output data.
  47588. @return the key class for the job output data.]]>
  47589. </doc>
  47590. </method>
  47591. <method name="setOutputKeyClass"
  47592. abstract="false" native="false" synchronized="false"
  47593. static="false" final="false" visibility="public"
  47594. deprecated="not deprecated">
  47595. <param name="theClass" type="java.lang.Class"/>
  47596. <doc>
  47597. <![CDATA[Set the key class for the job output data.
  47598. @param theClass the key class for the job output data.]]>
  47599. </doc>
  47600. </method>
  47601. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  47602. abstract="false" native="false" synchronized="false"
  47603. static="false" final="false" visibility="public"
  47604. deprecated="not deprecated">
  47605. <doc>
  47606. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  47607. @return the {@link RawComparator} comparator used to compare keys.]]>
  47608. </doc>
  47609. </method>
  47610. <method name="setOutputKeyComparatorClass"
  47611. abstract="false" native="false" synchronized="false"
  47612. static="false" final="false" visibility="public"
  47613. deprecated="not deprecated">
  47614. <param name="theClass" type="java.lang.Class"/>
  47615. <doc>
  47616. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  47617. @param theClass the {@link RawComparator} comparator used to
  47618. compare keys.
  47619. @see #setOutputValueGroupingComparator(Class)]]>
  47620. </doc>
  47621. </method>
  47622. <method name="setKeyFieldComparatorOptions"
  47623. abstract="false" native="false" synchronized="false"
  47624. static="false" final="false" visibility="public"
  47625. deprecated="not deprecated">
  47626. <param name="keySpec" type="java.lang.String"/>
  47627. <doc>
  47628. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  47629. @param keySpec the key specification of the form -k pos1[,pos2], where,
  47630. pos is of the form f[.c][opts], where f is the number
  47631. of the key field to use, and c is the number of the first character from
  47632. the beginning of the field. Fields and character posns are numbered
  47633. starting with 1; a character position of zero in pos2 indicates the
  47634. field's last character. If '.c' is omitted from pos1, it defaults to 1
  47635. (the beginning of the field); if omitted from pos2, it defaults to 0
  47636. (the end of the field). opts are ordering options. The supported options
  47637. are:
  47638. -n, (Sort numerically)
  47639. -r, (Reverse the result of comparison)]]>
  47640. </doc>
  47641. </method>
  47642. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  47643. abstract="false" native="false" synchronized="false"
  47644. static="false" final="false" visibility="public"
  47645. deprecated="not deprecated">
  47646. <doc>
  47647. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  47648. </doc>
  47649. </method>
  47650. <method name="setKeyFieldPartitionerOptions"
  47651. abstract="false" native="false" synchronized="false"
  47652. static="false" final="false" visibility="public"
  47653. deprecated="not deprecated">
  47654. <param name="keySpec" type="java.lang.String"/>
  47655. <doc>
  47656. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  47657. {@link Partitioner}
  47658. @param keySpec the key specification of the form -k pos1[,pos2], where,
  47659. pos is of the form f[.c][opts], where f is the number
  47660. of the key field to use, and c is the number of the first character from
  47661. the beginning of the field. Fields and character posns are numbered
  47662. starting with 1; a character position of zero in pos2 indicates the
  47663. field's last character. If '.c' is omitted from pos1, it defaults to 1
  47664. (the beginning of the field); if omitted from pos2, it defaults to 0
  47665. (the end of the field).]]>
  47666. </doc>
  47667. </method>
  47668. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  47669. abstract="false" native="false" synchronized="false"
  47670. static="false" final="false" visibility="public"
  47671. deprecated="not deprecated">
  47672. <doc>
  47673. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  47674. </doc>
  47675. </method>
  47676. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  47677. abstract="false" native="false" synchronized="false"
  47678. static="false" final="false" visibility="public"
  47679. deprecated="not deprecated">
  47680. <doc>
  47681. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  47682. grouping keys of inputs to the reduce.
  47683. @return comparator set by the user for grouping values.
  47684. @see #setOutputValueGroupingComparator(Class) for details.]]>
  47685. </doc>
  47686. </method>
  47687. <method name="setOutputValueGroupingComparator"
  47688. abstract="false" native="false" synchronized="false"
  47689. static="false" final="false" visibility="public"
  47690. deprecated="not deprecated">
  47691. <param name="theClass" type="java.lang.Class"/>
  47692. <doc>
  47693. <![CDATA[Set the user defined {@link RawComparator} comparator for
  47694. grouping keys in the input to the reduce.
  47695. <p>This comparator should be provided if the equivalence rules for keys
  47696. for sorting the intermediates are different from those for grouping keys
  47697. before each call to
  47698. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  47699. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  47700. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  47701. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  47702. how keys are sorted, this can be used in conjunction to simulate
  47703. <i>secondary sort on values</i>.</p>
  47704. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  47705. <i>stable</i> in any sense. (In any case, with the order of available
  47706. map-outputs to the reduce being non-deterministic, it wouldn't make
  47707. that much sense.)</p>
  47708. @param theClass the comparator class to be used for grouping keys.
  47709. It should implement <code>RawComparator</code>.
  47710. @see #setOutputKeyComparatorClass(Class)]]>
  47711. </doc>
  47712. </method>
  47713. <method name="getUseNewMapper" return="boolean"
  47714. abstract="false" native="false" synchronized="false"
  47715. static="false" final="false" visibility="public"
  47716. deprecated="not deprecated">
  47717. <doc>
  47718. <![CDATA[Should the framework use the new context-object code for running
  47719. the mapper?
  47720. @return true, if the new api should be used]]>
  47721. </doc>
  47722. </method>
  47723. <method name="setUseNewMapper"
  47724. abstract="false" native="false" synchronized="false"
  47725. static="false" final="false" visibility="public"
  47726. deprecated="not deprecated">
  47727. <param name="flag" type="boolean"/>
  47728. <doc>
  47729. <![CDATA[Set whether the framework should use the new api for the mapper.
  47730. This is the default for jobs submitted with the new Job api.
  47731. @param flag true, if the new api should be used]]>
  47732. </doc>
  47733. </method>
  47734. <method name="getUseNewReducer" return="boolean"
  47735. abstract="false" native="false" synchronized="false"
  47736. static="false" final="false" visibility="public"
  47737. deprecated="not deprecated">
  47738. <doc>
  47739. <![CDATA[Should the framework use the new context-object code for running
  47740. the reducer?
  47741. @return true, if the new api should be used]]>
  47742. </doc>
  47743. </method>
  47744. <method name="setUseNewReducer"
  47745. abstract="false" native="false" synchronized="false"
  47746. static="false" final="false" visibility="public"
  47747. deprecated="not deprecated">
  47748. <param name="flag" type="boolean"/>
  47749. <doc>
  47750. <![CDATA[Set whether the framework should use the new api for the reducer.
  47751. This is the default for jobs submitted with the new Job api.
  47752. @param flag true, if the new api should be used]]>
  47753. </doc>
  47754. </method>
  47755. <method name="getOutputValueClass" return="java.lang.Class"
  47756. abstract="false" native="false" synchronized="false"
  47757. static="false" final="false" visibility="public"
  47758. deprecated="not deprecated">
  47759. <doc>
  47760. <![CDATA[Get the value class for job outputs.
  47761. @return the value class for job outputs.]]>
  47762. </doc>
  47763. </method>
  47764. <method name="setOutputValueClass"
  47765. abstract="false" native="false" synchronized="false"
  47766. static="false" final="false" visibility="public"
  47767. deprecated="not deprecated">
  47768. <param name="theClass" type="java.lang.Class"/>
  47769. <doc>
  47770. <![CDATA[Set the value class for job outputs.
  47771. @param theClass the value class for job outputs.]]>
  47772. </doc>
  47773. </method>
  47774. <method name="getMapperClass" return="java.lang.Class"
  47775. abstract="false" native="false" synchronized="false"
  47776. static="false" final="false" visibility="public"
  47777. deprecated="not deprecated">
  47778. <doc>
  47779. <![CDATA[Get the {@link Mapper} class for the job.
  47780. @return the {@link Mapper} class for the job.]]>
  47781. </doc>
  47782. </method>
  47783. <method name="setMapperClass"
  47784. abstract="false" native="false" synchronized="false"
  47785. static="false" final="false" visibility="public"
  47786. deprecated="not deprecated">
  47787. <param name="theClass" type="java.lang.Class"/>
  47788. <doc>
  47789. <![CDATA[Set the {@link Mapper} class for the job.
  47790. @param theClass the {@link Mapper} class for the job.]]>
  47791. </doc>
  47792. </method>
  47793. <method name="getMapRunnerClass" return="java.lang.Class"
  47794. abstract="false" native="false" synchronized="false"
  47795. static="false" final="false" visibility="public"
  47796. deprecated="not deprecated">
  47797. <doc>
  47798. <![CDATA[Get the {@link MapRunnable} class for the job.
  47799. @return the {@link MapRunnable} class for the job.]]>
  47800. </doc>
  47801. </method>
  47802. <method name="setMapRunnerClass"
  47803. abstract="false" native="false" synchronized="false"
  47804. static="false" final="false" visibility="public"
  47805. deprecated="not deprecated">
  47806. <param name="theClass" type="java.lang.Class"/>
  47807. <doc>
  47808. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  47809. Typically used to exert greater control on {@link Mapper}s.
  47810. @param theClass the {@link MapRunnable} class for the job.]]>
  47811. </doc>
  47812. </method>
  47813. <method name="getPartitionerClass" return="java.lang.Class"
  47814. abstract="false" native="false" synchronized="false"
  47815. static="false" final="false" visibility="public"
  47816. deprecated="not deprecated">
  47817. <doc>
  47818. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  47819. to be sent to the {@link Reducer}s.
  47820. @return the {@link Partitioner} used to partition map-outputs.]]>
  47821. </doc>
  47822. </method>
  47823. <method name="setPartitionerClass"
  47824. abstract="false" native="false" synchronized="false"
  47825. static="false" final="false" visibility="public"
  47826. deprecated="not deprecated">
  47827. <param name="theClass" type="java.lang.Class"/>
  47828. <doc>
  47829. <![CDATA[Set the {@link Partitioner} class used to partition
  47830. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  47831. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  47832. </doc>
  47833. </method>
  47834. <method name="getReducerClass" return="java.lang.Class"
  47835. abstract="false" native="false" synchronized="false"
  47836. static="false" final="false" visibility="public"
  47837. deprecated="not deprecated">
  47838. <doc>
  47839. <![CDATA[Get the {@link Reducer} class for the job.
  47840. @return the {@link Reducer} class for the job.]]>
  47841. </doc>
  47842. </method>
  47843. <method name="setReducerClass"
  47844. abstract="false" native="false" synchronized="false"
  47845. static="false" final="false" visibility="public"
  47846. deprecated="not deprecated">
  47847. <param name="theClass" type="java.lang.Class"/>
  47848. <doc>
  47849. <![CDATA[Set the {@link Reducer} class for the job.
  47850. @param theClass the {@link Reducer} class for the job.]]>
  47851. </doc>
  47852. </method>
  47853. <method name="getCombinerClass" return="java.lang.Class"
  47854. abstract="false" native="false" synchronized="false"
  47855. static="false" final="false" visibility="public"
  47856. deprecated="not deprecated">
  47857. <doc>
  47858. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  47859. before being sent to the reducers. Typically the combiner is same as the
  47860. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  47861. @return the user-defined combiner class used to combine map-outputs.]]>
  47862. </doc>
  47863. </method>
  47864. <method name="setCombinerClass"
  47865. abstract="false" native="false" synchronized="false"
  47866. static="false" final="false" visibility="public"
  47867. deprecated="not deprecated">
  47868. <param name="theClass" type="java.lang.Class"/>
  47869. <doc>
  47870. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  47871. before being sent to the reducers.
  47872. <p>The combiner is an application-specified aggregation operation, which
  47873. can help cut down the amount of data transferred between the
  47874. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  47875. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  47876. the mapper and reducer tasks. In general, the combiner is called as the
  47877. sort/merge result is written to disk. The combiner must:
  47878. <ul>
  47879. <li> be side-effect free</li>
  47880. <li> have the same input and output key types and the same input and
  47881. output value types</li>
  47882. </ul></p>
  47883. <p>Typically the combiner is same as the <code>Reducer</code> for the
  47884. job i.e. {@link #setReducerClass(Class)}.</p>
  47885. @param theClass the user-defined combiner class used to combine
  47886. map-outputs.]]>
  47887. </doc>
  47888. </method>
  47889. <method name="getSpeculativeExecution" return="boolean"
  47890. abstract="false" native="false" synchronized="false"
  47891. static="false" final="false" visibility="public"
  47892. deprecated="not deprecated">
  47893. <doc>
  47894. <![CDATA[Should speculative execution be used for this job?
  47895. Defaults to <code>true</code>.
  47896. @return <code>true</code> if speculative execution be used for this job,
  47897. <code>false</code> otherwise.]]>
  47898. </doc>
  47899. </method>
  47900. <method name="setSpeculativeExecution"
  47901. abstract="false" native="false" synchronized="false"
  47902. static="false" final="false" visibility="public"
  47903. deprecated="not deprecated">
  47904. <param name="speculativeExecution" type="boolean"/>
  47905. <doc>
  47906. <![CDATA[Turn speculative execution on or off for this job.
  47907. @param speculativeExecution <code>true</code> if speculative execution
  47908. should be turned on, else <code>false</code>.]]>
  47909. </doc>
  47910. </method>
  47911. <method name="getMapSpeculativeExecution" return="boolean"
  47912. abstract="false" native="false" synchronized="false"
  47913. static="false" final="false" visibility="public"
  47914. deprecated="not deprecated">
  47915. <doc>
  47916. <![CDATA[Should speculative execution be used for this job for map tasks?
  47917. Defaults to <code>true</code>.
  47918. @return <code>true</code> if speculative execution be
  47919. used for this job for map tasks,
  47920. <code>false</code> otherwise.]]>
  47921. </doc>
  47922. </method>
  47923. <method name="setMapSpeculativeExecution"
  47924. abstract="false" native="false" synchronized="false"
  47925. static="false" final="false" visibility="public"
  47926. deprecated="not deprecated">
  47927. <param name="speculativeExecution" type="boolean"/>
  47928. <doc>
  47929. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  47930. @param speculativeExecution <code>true</code> if speculative execution
  47931. should be turned on for map tasks,
  47932. else <code>false</code>.]]>
  47933. </doc>
  47934. </method>
  47935. <method name="getReduceSpeculativeExecution" return="boolean"
  47936. abstract="false" native="false" synchronized="false"
  47937. static="false" final="false" visibility="public"
  47938. deprecated="not deprecated">
  47939. <doc>
  47940. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  47941. Defaults to <code>true</code>.
  47942. @return <code>true</code> if speculative execution be used
  47943. for reduce tasks for this job,
  47944. <code>false</code> otherwise.]]>
  47945. </doc>
  47946. </method>
  47947. <method name="setReduceSpeculativeExecution"
  47948. abstract="false" native="false" synchronized="false"
  47949. static="false" final="false" visibility="public"
  47950. deprecated="not deprecated">
  47951. <param name="speculativeExecution" type="boolean"/>
  47952. <doc>
  47953. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  47954. @param speculativeExecution <code>true</code> if speculative execution
  47955. should be turned on for reduce tasks,
  47956. else <code>false</code>.]]>
  47957. </doc>
  47958. </method>
  47959. <method name="getNumMapTasks" return="int"
  47960. abstract="false" native="false" synchronized="false"
  47961. static="false" final="false" visibility="public"
  47962. deprecated="not deprecated">
  47963. <doc>
  47964. <![CDATA[Get configured the number of reduce tasks for this job.
  47965. Defaults to <code>1</code>.
  47966. @return the number of reduce tasks for this job.]]>
  47967. </doc>
  47968. </method>
  47969. <method name="setNumMapTasks"
  47970. abstract="false" native="false" synchronized="false"
  47971. static="false" final="false" visibility="public"
  47972. deprecated="not deprecated">
  47973. <param name="n" type="int"/>
  47974. <doc>
  47975. <![CDATA[Set the number of map tasks for this job.
  47976. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  47977. number of spawned map tasks depends on the number of {@link InputSplit}s
  47978. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  47979. A custom {@link InputFormat} is typically used to accurately control
  47980. the number of map tasks for the job.</p>
  47981. <h4 id="NoOfMaps">How many maps?</h4>
  47982. <p>The number of maps is usually driven by the total size of the inputs
  47983. i.e. total number of blocks of the input files.</p>
  47984. <p>The right level of parallelism for maps seems to be around 10-100 maps
  47985. per-node, although it has been set up to 300 or so for very cpu-light map
  47986. tasks. Task setup takes awhile, so it is best if the maps take at least a
  47987. minute to execute.</p>
  47988. <p>The default behavior of file-based {@link InputFormat}s is to split the
  47989. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  47990. bytes, of input files. However, the {@link FileSystem} blocksize of the
  47991. input files is treated as an upper bound for input splits. A lower bound
  47992. on the split size can be set via
  47993. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  47994. mapred.min.split.size</a>.</p>
  47995. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  47996. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  47997. used to set it even higher.</p>
  47998. @param n the number of map tasks for this job.
  47999. @see InputFormat#getSplits(JobConf, int)
  48000. @see FileInputFormat
  48001. @see FileSystem#getDefaultBlockSize()
  48002. @see FileStatus#getBlockSize()]]>
  48003. </doc>
  48004. </method>
  48005. <method name="getNumReduceTasks" return="int"
  48006. abstract="false" native="false" synchronized="false"
  48007. static="false" final="false" visibility="public"
  48008. deprecated="not deprecated">
  48009. <doc>
  48010. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  48011. <code>1</code>.
  48012. @return the number of reduce tasks for this job.]]>
  48013. </doc>
  48014. </method>
  48015. <method name="setNumReduceTasks"
  48016. abstract="false" native="false" synchronized="false"
  48017. static="false" final="false" visibility="public"
  48018. deprecated="not deprecated">
  48019. <param name="n" type="int"/>
  48020. <doc>
  48021. <![CDATA[Set the requisite number of reduce tasks for this job.
  48022. <h4 id="NoOfReduces">How many reduces?</h4>
  48023. <p>The right number of reduces seems to be <code>0.95</code> or
  48024. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  48025. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  48026. mapred.tasktracker.reduce.tasks.maximum</a>).
  48027. </p>
  48028. <p>With <code>0.95</code> all of the reduces can launch immediately and
  48029. start transfering map outputs as the maps finish. With <code>1.75</code>
  48030. the faster nodes will finish their first round of reduces and launch a
  48031. second wave of reduces doing a much better job of load balancing.</p>
  48032. <p>Increasing the number of reduces increases the framework overhead, but
  48033. increases load balancing and lowers the cost of failures.</p>
  48034. <p>The scaling factors above are slightly less than whole numbers to
  48035. reserve a few reduce slots in the framework for speculative-tasks, failures
  48036. etc.</p>
  48037. <h4 id="ReducerNone">Reducer NONE</h4>
  48038. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  48039. <p>In this case the output of the map-tasks directly go to distributed
  48040. file-system, to the path set by
  48041. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  48042. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  48043. @param n the number of reduce tasks for this job.]]>
  48044. </doc>
  48045. </method>
  48046. <method name="getMaxMapAttempts" return="int"
  48047. abstract="false" native="false" synchronized="false"
  48048. static="false" final="false" visibility="public"
  48049. deprecated="not deprecated">
  48050. <doc>
  48051. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48052. map task, as specified by the <code>mapred.map.max.attempts</code>
  48053. property. If this property is not already set, the default is 4 attempts.
  48054. @return the max number of attempts per map task.]]>
  48055. </doc>
  48056. </method>
  48057. <method name="setMaxMapAttempts"
  48058. abstract="false" native="false" synchronized="false"
  48059. static="false" final="false" visibility="public"
  48060. deprecated="not deprecated">
  48061. <param name="n" type="int"/>
  48062. <doc>
  48063. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48064. map task.
  48065. @param n the number of attempts per map task.]]>
  48066. </doc>
  48067. </method>
  48068. <method name="getMaxReduceAttempts" return="int"
  48069. abstract="false" native="false" synchronized="false"
  48070. static="false" final="false" visibility="public"
  48071. deprecated="not deprecated">
  48072. <doc>
  48073. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48074. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  48075. property. If this property is not already set, the default is 4 attempts.
  48076. @return the max number of attempts per reduce task.]]>
  48077. </doc>
  48078. </method>
  48079. <method name="setMaxReduceAttempts"
  48080. abstract="false" native="false" synchronized="false"
  48081. static="false" final="false" visibility="public"
  48082. deprecated="not deprecated">
  48083. <param name="n" type="int"/>
  48084. <doc>
  48085. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48086. reduce task.
  48087. @param n the number of attempts per reduce task.]]>
  48088. </doc>
  48089. </method>
  48090. <method name="getJobName" return="java.lang.String"
  48091. abstract="false" native="false" synchronized="false"
  48092. static="false" final="false" visibility="public"
  48093. deprecated="not deprecated">
  48094. <doc>
  48095. <![CDATA[Get the user-specified job name. This is only used to identify the
  48096. job to the user.
  48097. @return the job's name, defaulting to "".]]>
  48098. </doc>
  48099. </method>
  48100. <method name="setJobName"
  48101. abstract="false" native="false" synchronized="false"
  48102. static="false" final="false" visibility="public"
  48103. deprecated="not deprecated">
  48104. <param name="name" type="java.lang.String"/>
  48105. <doc>
  48106. <![CDATA[Set the user-specified job name.
  48107. @param name the job's new name.]]>
  48108. </doc>
  48109. </method>
  48110. <method name="getSessionId" return="java.lang.String"
  48111. abstract="false" native="false" synchronized="false"
  48112. static="false" final="false" visibility="public"
  48113. deprecated="not deprecated">
  48114. <doc>
  48115. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  48116. The session identifier is used to tag metric data that is reported to some
  48117. performance metrics system via the org.apache.hadoop.metrics API. The
  48118. session identifier is intended, in particular, for use by Hadoop-On-Demand
  48119. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  48120. HOD will set the session identifier by modifying the mapred-site.xml file
  48121. before starting the cluster.
  48122. When not running under HOD, this identifer is expected to remain set to
  48123. the empty string.
  48124. @return the session identifier, defaulting to "".]]>
  48125. </doc>
  48126. </method>
  48127. <method name="setSessionId"
  48128. abstract="false" native="false" synchronized="false"
  48129. static="false" final="false" visibility="public"
  48130. deprecated="not deprecated">
  48131. <param name="sessionId" type="java.lang.String"/>
  48132. <doc>
  48133. <![CDATA[Set the user-specified session identifier.
  48134. @param sessionId the new session id.]]>
  48135. </doc>
  48136. </method>
  48137. <method name="setMaxTaskFailuresPerTracker"
  48138. abstract="false" native="false" synchronized="false"
  48139. static="false" final="false" visibility="public"
  48140. deprecated="not deprecated">
  48141. <param name="noFailures" type="int"/>
  48142. <doc>
  48143. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  48144. If the no. of task failures exceeds <code>noFailures</code>, the
  48145. tasktracker is <i>blacklisted</i> for this job.
  48146. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  48147. </doc>
  48148. </method>
  48149. <method name="getMaxTaskFailuresPerTracker" return="int"
  48150. abstract="false" native="false" synchronized="false"
  48151. static="false" final="false" visibility="public"
  48152. deprecated="not deprecated">
  48153. <doc>
  48154. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  48155. If the no. of task failures exceeds this, the tasktracker is
  48156. <i>blacklisted</i> for this job.
  48157. @return the maximum no. of failures of a given job per tasktracker.]]>
  48158. </doc>
  48159. </method>
  48160. <method name="getMaxMapTaskFailuresPercent" return="int"
  48161. abstract="false" native="false" synchronized="false"
  48162. static="false" final="false" visibility="public"
  48163. deprecated="not deprecated">
  48164. <doc>
  48165. <![CDATA[Get the maximum percentage of map tasks that can fail without
  48166. the job being aborted.
  48167. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  48168. attempts before being declared as <i>failed</i>.
  48169. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  48170. the job being declared as {@link JobStatus#FAILED}.
  48171. @return the maximum percentage of map tasks that can fail without
  48172. the job being aborted.]]>
  48173. </doc>
  48174. </method>
  48175. <method name="setMaxMapTaskFailuresPercent"
  48176. abstract="false" native="false" synchronized="false"
  48177. static="false" final="false" visibility="public"
  48178. deprecated="not deprecated">
  48179. <param name="percent" type="int"/>
  48180. <doc>
  48181. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  48182. job being aborted.
  48183. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  48184. before being declared as <i>failed</i>.
  48185. @param percent the maximum percentage of map tasks that can fail without
  48186. the job being aborted.]]>
  48187. </doc>
  48188. </method>
  48189. <method name="getMaxReduceTaskFailuresPercent" return="int"
  48190. abstract="false" native="false" synchronized="false"
  48191. static="false" final="false" visibility="public"
  48192. deprecated="not deprecated">
  48193. <doc>
  48194. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  48195. the job being aborted.
  48196. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  48197. attempts before being declared as <i>failed</i>.
  48198. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  48199. in the job being declared as {@link JobStatus#FAILED}.
  48200. @return the maximum percentage of reduce tasks that can fail without
  48201. the job being aborted.]]>
  48202. </doc>
  48203. </method>
  48204. <method name="setMaxReduceTaskFailuresPercent"
  48205. abstract="false" native="false" synchronized="false"
  48206. static="false" final="false" visibility="public"
  48207. deprecated="not deprecated">
  48208. <param name="percent" type="int"/>
  48209. <doc>
  48210. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  48211. being aborted.
  48212. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  48213. attempts before being declared as <i>failed</i>.
  48214. @param percent the maximum percentage of reduce tasks that can fail without
  48215. the job being aborted.]]>
  48216. </doc>
  48217. </method>
  48218. <method name="setJobPriority"
  48219. abstract="false" native="false" synchronized="false"
  48220. static="false" final="false" visibility="public"
  48221. deprecated="not deprecated">
  48222. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  48223. <doc>
  48224. <![CDATA[Set {@link JobPriority} for this job.
  48225. @param prio the {@link JobPriority} for this job.]]>
  48226. </doc>
  48227. </method>
  48228. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  48229. abstract="false" native="false" synchronized="false"
  48230. static="false" final="false" visibility="public"
  48231. deprecated="not deprecated">
  48232. <doc>
  48233. <![CDATA[Get the {@link JobPriority} for this job.
  48234. @return the {@link JobPriority} for this job.]]>
  48235. </doc>
  48236. </method>
  48237. <method name="getProfileEnabled" return="boolean"
  48238. abstract="false" native="false" synchronized="false"
  48239. static="false" final="false" visibility="public"
  48240. deprecated="not deprecated">
  48241. <doc>
  48242. <![CDATA[Get whether the task profiling is enabled.
  48243. @return true if some tasks will be profiled]]>
  48244. </doc>
  48245. </method>
  48246. <method name="setProfileEnabled"
  48247. abstract="false" native="false" synchronized="false"
  48248. static="false" final="false" visibility="public"
  48249. deprecated="not deprecated">
  48250. <param name="newValue" type="boolean"/>
  48251. <doc>
  48252. <![CDATA[Set whether the system should collect profiler information for some of
  48253. the tasks in this job? The information is stored in the user log
  48254. directory.
  48255. @param newValue true means it should be gathered]]>
  48256. </doc>
  48257. </method>
  48258. <method name="getProfileParams" return="java.lang.String"
  48259. abstract="false" native="false" synchronized="false"
  48260. static="false" final="false" visibility="public"
  48261. deprecated="not deprecated">
  48262. <doc>
  48263. <![CDATA[Get the profiler configuration arguments.
  48264. The default value for this property is
  48265. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  48266. @return the parameters to pass to the task child to configure profiling]]>
  48267. </doc>
  48268. </method>
  48269. <method name="setProfileParams"
  48270. abstract="false" native="false" synchronized="false"
  48271. static="false" final="false" visibility="public"
  48272. deprecated="not deprecated">
  48273. <param name="value" type="java.lang.String"/>
  48274. <doc>
  48275. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  48276. will be replaced with the name of the profiling output file when the task
  48277. runs.
  48278. This value is passed to the task child JVM on the command line.
  48279. @param value the configuration string]]>
  48280. </doc>
  48281. </method>
  48282. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  48283. abstract="false" native="false" synchronized="false"
  48284. static="false" final="false" visibility="public"
  48285. deprecated="not deprecated">
  48286. <param name="isMap" type="boolean"/>
  48287. <doc>
  48288. <![CDATA[Get the range of maps or reduces to profile.
  48289. @param isMap is the task a map?
  48290. @return the task ranges]]>
  48291. </doc>
  48292. </method>
  48293. <method name="setProfileTaskRange"
  48294. abstract="false" native="false" synchronized="false"
  48295. static="false" final="false" visibility="public"
  48296. deprecated="not deprecated">
  48297. <param name="isMap" type="boolean"/>
  48298. <param name="newValue" type="java.lang.String"/>
  48299. <doc>
  48300. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  48301. must also be called.
  48302. @param newValue a set of integer ranges of the map ids]]>
  48303. </doc>
  48304. </method>
  48305. <method name="setMapDebugScript"
  48306. abstract="false" native="false" synchronized="false"
  48307. static="false" final="false" visibility="public"
  48308. deprecated="not deprecated">
  48309. <param name="mDbgScript" type="java.lang.String"/>
  48310. <doc>
  48311. <![CDATA[Set the debug script to run when the map tasks fail.
  48312. <p>The debug script can aid debugging of failed map tasks. The script is
  48313. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  48314. <p>The debug command, run on the node where the map failed, is:</p>
  48315. <p><pre><blockquote>
  48316. $script $stdout $stderr $syslog $jobconf.
  48317. </blockquote></pre></p>
  48318. <p> The script file is distributed through {@link DistributedCache}
  48319. APIs. The script needs to be symlinked. </p>
  48320. <p>Here is an example on how to submit a script
  48321. <p><blockquote><pre>
  48322. job.setMapDebugScript("./myscript");
  48323. DistributedCache.createSymlink(job);
  48324. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  48325. </pre></blockquote></p>
  48326. @param mDbgScript the script name]]>
  48327. </doc>
  48328. </method>
  48329. <method name="getMapDebugScript" return="java.lang.String"
  48330. abstract="false" native="false" synchronized="false"
  48331. static="false" final="false" visibility="public"
  48332. deprecated="not deprecated">
  48333. <doc>
  48334. <![CDATA[Get the map task's debug script.
  48335. @return the debug Script for the mapred job for failed map tasks.
  48336. @see #setMapDebugScript(String)]]>
  48337. </doc>
  48338. </method>
  48339. <method name="setReduceDebugScript"
  48340. abstract="false" native="false" synchronized="false"
  48341. static="false" final="false" visibility="public"
  48342. deprecated="not deprecated">
  48343. <param name="rDbgScript" type="java.lang.String"/>
  48344. <doc>
  48345. <![CDATA[Set the debug script to run when the reduce tasks fail.
  48346. <p>The debug script can aid debugging of failed reduce tasks. The script
  48347. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  48348. <p>The debug command, run on the node where the map failed, is:</p>
  48349. <p><pre><blockquote>
  48350. $script $stdout $stderr $syslog $jobconf.
  48351. </blockquote></pre></p>
  48352. <p> The script file is distributed through {@link DistributedCache}
  48353. APIs. The script file needs to be symlinked </p>
  48354. <p>Here is an example on how to submit a script
  48355. <p><blockquote><pre>
  48356. job.setReduceDebugScript("./myscript");
  48357. DistributedCache.createSymlink(job);
  48358. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  48359. </pre></blockquote></p>
  48360. @param rDbgScript the script name]]>
  48361. </doc>
  48362. </method>
  48363. <method name="getReduceDebugScript" return="java.lang.String"
  48364. abstract="false" native="false" synchronized="false"
  48365. static="false" final="false" visibility="public"
  48366. deprecated="not deprecated">
  48367. <doc>
  48368. <![CDATA[Get the reduce task's debug Script
  48369. @return the debug script for the mapred job for failed reduce tasks.
  48370. @see #setReduceDebugScript(String)]]>
  48371. </doc>
  48372. </method>
  48373. <method name="getJobEndNotificationURI" return="java.lang.String"
  48374. abstract="false" native="false" synchronized="false"
  48375. static="false" final="false" visibility="public"
  48376. deprecated="not deprecated">
  48377. <doc>
  48378. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  48379. has completed (success/failure).
  48380. @return the job end notification uri, <code>null</code> if it hasn't
  48381. been set.
  48382. @see #setJobEndNotificationURI(String)]]>
  48383. </doc>
  48384. </method>
  48385. <method name="setJobEndNotificationURI"
  48386. abstract="false" native="false" synchronized="false"
  48387. static="false" final="false" visibility="public"
  48388. deprecated="not deprecated">
  48389. <param name="uri" type="java.lang.String"/>
  48390. <doc>
  48391. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  48392. has completed (success/failure).
  48393. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  48394. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  48395. identifier and completion-status respectively.</p>
  48396. <p>This is typically used by application-writers to implement chaining of
  48397. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  48398. @param uri the job end notification uri
  48399. @see JobStatus
  48400. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  48401. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  48402. </doc>
  48403. </method>
  48404. <method name="getJobLocalDir" return="java.lang.String"
  48405. abstract="false" native="false" synchronized="false"
  48406. static="false" final="false" visibility="public"
  48407. deprecated="not deprecated">
  48408. <doc>
  48409. <![CDATA[Get job-specific shared directory for use as scratch space
  48410. <p>
  48411. When a job starts, a shared directory is created at location
  48412. <code>
  48413. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  48414. This directory is exposed to the users through
  48415. <code>job.local.dir </code>.
  48416. So, the tasks can use this space
  48417. as scratch space and share files among them. </p>
  48418. This value is available as System property also.
  48419. @return The localized job specific shared directory]]>
  48420. </doc>
  48421. </method>
  48422. <method name="getMemoryForMapTask" return="long"
  48423. abstract="false" native="false" synchronized="false"
  48424. static="false" final="false" visibility="public"
  48425. deprecated="not deprecated">
  48426. <doc>
  48427. <![CDATA[Get memory required to run a map task of the job, in MB.
  48428. If a value is specified in the configuration, it is returned.
  48429. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  48430. <p/>
  48431. For backward compatibility, if the job configuration sets the
  48432. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48433. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  48434. after converting it from bytes to MB.
  48435. @return memory required to run a map task of the job, in MB,
  48436. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  48437. </doc>
  48438. </method>
  48439. <method name="setMemoryForMapTask"
  48440. abstract="false" native="false" synchronized="false"
  48441. static="false" final="false" visibility="public"
  48442. deprecated="not deprecated">
  48443. <param name="mem" type="long"/>
  48444. </method>
  48445. <method name="getMemoryForReduceTask" return="long"
  48446. abstract="false" native="false" synchronized="false"
  48447. static="false" final="false" visibility="public"
  48448. deprecated="not deprecated">
  48449. <doc>
  48450. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  48451. If a value is specified in the configuration, it is returned.
  48452. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  48453. <p/>
  48454. For backward compatibility, if the job configuration sets the
  48455. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48456. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  48457. after converting it from bytes to MB.
  48458. @return memory required to run a reduce task of the job, in MB,
  48459. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  48460. </doc>
  48461. </method>
  48462. <method name="setMemoryForReduceTask"
  48463. abstract="false" native="false" synchronized="false"
  48464. static="false" final="false" visibility="public"
  48465. deprecated="not deprecated">
  48466. <param name="mem" type="long"/>
  48467. </method>
  48468. <method name="getQueueName" return="java.lang.String"
  48469. abstract="false" native="false" synchronized="false"
  48470. static="false" final="false" visibility="public"
  48471. deprecated="not deprecated">
  48472. <doc>
  48473. <![CDATA[Return the name of the queue to which this job is submitted.
  48474. Defaults to 'default'.
  48475. @return name of the queue]]>
  48476. </doc>
  48477. </method>
  48478. <method name="setQueueName"
  48479. abstract="false" native="false" synchronized="false"
  48480. static="false" final="false" visibility="public"
  48481. deprecated="not deprecated">
  48482. <param name="queueName" type="java.lang.String"/>
  48483. <doc>
  48484. <![CDATA[Set the name of the queue to which this job should be submitted.
  48485. @param queueName Name of the queue]]>
  48486. </doc>
  48487. </method>
  48488. <method name="normalizeMemoryConfigValue" return="long"
  48489. abstract="false" native="false" synchronized="false"
  48490. static="true" final="false" visibility="public"
  48491. deprecated="not deprecated">
  48492. <param name="val" type="long"/>
  48493. <doc>
  48494. <![CDATA[Normalize the negative values in configuration
  48495. @param val
  48496. @return normalized value]]>
  48497. </doc>
  48498. </method>
  48499. <method name="getMaxVirtualMemoryForTask" return="long"
  48500. abstract="false" native="false" synchronized="false"
  48501. static="false" final="false" visibility="public"
  48502. deprecated="Use {@link #getMemoryForMapTask()} and
  48503. {@link #getMemoryForReduceTask()}">
  48504. <doc>
  48505. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  48506. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  48507. <p/>
  48508. This method is deprecated. Now, different memory limits can be
  48509. set for map and reduce tasks of a job, in MB.
  48510. <p/>
  48511. For backward compatibility, if the job configuration sets the
  48512. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48513. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  48514. Otherwise, this method will return the larger of the values returned by
  48515. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  48516. after converting them into bytes.
  48517. @return Memory required to run a task of this job, in bytes,
  48518. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  48519. @see #setMaxVirtualMemoryForTask(long)
  48520. @deprecated Use {@link #getMemoryForMapTask()} and
  48521. {@link #getMemoryForReduceTask()}]]>
  48522. </doc>
  48523. </method>
  48524. <method name="setMaxVirtualMemoryForTask"
  48525. abstract="false" native="false" synchronized="false"
  48526. static="false" final="false" visibility="public"
  48527. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  48528. Use {@link #setMemoryForReduceTask(long mem)}">
  48529. <param name="vmem" type="long"/>
  48530. <doc>
  48531. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  48532. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  48533. <p/>
  48534. mapred.task.maxvmem is split into
  48535. mapred.job.map.memory.mb
  48536. and mapred.job.map.memory.mb,mapred
  48537. each of the new key are set
  48538. as mapred.task.maxvmem / 1024
  48539. as new values are in MB
  48540. @param vmem Maximum amount of virtual memory in bytes any task of this job
  48541. can use.
  48542. @see #getMaxVirtualMemoryForTask()
  48543. @deprecated
  48544. Use {@link #setMemoryForMapTask(long mem)} and
  48545. Use {@link #setMemoryForReduceTask(long mem)}]]>
  48546. </doc>
  48547. </method>
  48548. <method name="getMaxPhysicalMemoryForTask" return="long"
  48549. abstract="false" native="false" synchronized="false"
  48550. static="false" final="false" visibility="public"
  48551. deprecated="this variable is deprecated and nolonger in use.">
  48552. <doc>
  48553. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  48554. </doc>
  48555. </method>
  48556. <method name="setMaxPhysicalMemoryForTask"
  48557. abstract="false" native="false" synchronized="false"
  48558. static="false" final="false" visibility="public"
  48559. deprecated="not deprecated">
  48560. <param name="mem" type="long"/>
  48561. </method>
  48562. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  48563. transient="false" volatile="false"
  48564. static="true" final="true" visibility="public"
  48565. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  48566. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  48567. <doc>
  48568. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  48569. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  48570. </doc>
  48571. </field>
  48572. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  48573. transient="false" volatile="false"
  48574. static="true" final="true" visibility="public"
  48575. deprecated="deprecated, no comment">
  48576. <doc>
  48577. <![CDATA[@deprecated]]>
  48578. </doc>
  48579. </field>
  48580. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  48581. transient="false" volatile="false"
  48582. static="true" final="true" visibility="public"
  48583. deprecated="deprecated, no comment">
  48584. <doc>
  48585. <![CDATA[@deprecated]]>
  48586. </doc>
  48587. </field>
  48588. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  48589. transient="false" volatile="false"
  48590. static="true" final="true" visibility="public"
  48591. deprecated="deprecated, no comment">
  48592. <doc>
  48593. <![CDATA[@deprecated]]>
  48594. </doc>
  48595. </field>
  48596. <field name="DISABLED_MEMORY_LIMIT" type="long"
  48597. transient="false" volatile="false"
  48598. static="true" final="true" visibility="public"
  48599. deprecated="not deprecated">
  48600. <doc>
  48601. <![CDATA[A value which if set for memory related configuration options,
  48602. indicates that the options are turned off.]]>
  48603. </doc>
  48604. </field>
  48605. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  48606. transient="false" volatile="false"
  48607. static="true" final="true" visibility="public"
  48608. deprecated="not deprecated">
  48609. <doc>
  48610. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  48611. </doc>
  48612. </field>
  48613. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  48614. transient="false" volatile="false"
  48615. static="true" final="true" visibility="public"
  48616. deprecated="not deprecated">
  48617. <doc>
  48618. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  48619. name is mentioned.]]>
  48620. </doc>
  48621. </field>
  48622. <field name="MAPRED_JOB_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  48623. transient="false" volatile="false"
  48624. static="true" final="true" visibility="public"
  48625. deprecated="not deprecated">
  48626. </field>
  48627. <field name="MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  48628. transient="false" volatile="false"
  48629. static="true" final="true" visibility="public"
  48630. deprecated="not deprecated">
  48631. </field>
  48632. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  48633. transient="false" volatile="false"
  48634. static="true" final="true" visibility="public"
  48635. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  48636. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  48637. <doc>
  48638. <![CDATA[Configuration key to set the java command line options for the child
  48639. map and reduce tasks.
  48640. Java opts for the task tracker child processes.
  48641. The following symbol, if present, will be interpolated: @taskid@.
  48642. It is replaced by current TaskID. Any other occurrences of '@' will go
  48643. unchanged.
  48644. For example, to enable verbose gc logging to a file named for the taskid in
  48645. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48646. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48647. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  48648. control the maximum virtual memory of the child processes.
  48649. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  48650. other environment variables to the child processes.
  48651. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  48652. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  48653. </doc>
  48654. </field>
  48655. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  48656. transient="false" volatile="false"
  48657. static="true" final="true" visibility="public"
  48658. deprecated="not deprecated">
  48659. <doc>
  48660. <![CDATA[Configuration key to set the java command line options for the map tasks.
  48661. Java opts for the task tracker child map processes.
  48662. The following symbol, if present, will be interpolated: @taskid@.
  48663. It is replaced by current TaskID. Any other occurrences of '@' will go
  48664. unchanged.
  48665. For example, to enable verbose gc logging to a file named for the taskid in
  48666. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48667. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48668. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  48669. control the maximum virtual memory of the map processes.
  48670. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  48671. other environment variables to the map processes.]]>
  48672. </doc>
  48673. </field>
  48674. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  48675. transient="false" volatile="false"
  48676. static="true" final="true" visibility="public"
  48677. deprecated="not deprecated">
  48678. <doc>
  48679. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  48680. Java opts for the task tracker child reduce processes.
  48681. The following symbol, if present, will be interpolated: @taskid@.
  48682. It is replaced by current TaskID. Any other occurrences of '@' will go
  48683. unchanged.
  48684. For example, to enable verbose gc logging to a file named for the taskid in
  48685. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48686. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48687. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  48688. to control the maximum virtual memory of the reduce processes.
  48689. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  48690. pass process environment variables to the reduce processes.]]>
  48691. </doc>
  48692. </field>
  48693. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  48694. transient="false" volatile="false"
  48695. static="true" final="true" visibility="public"
  48696. deprecated="not deprecated">
  48697. </field>
  48698. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  48699. transient="false" volatile="false"
  48700. static="true" final="true" visibility="public"
  48701. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  48702. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  48703. <doc>
  48704. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  48705. map and reduce tasks (in kilo-bytes).
  48706. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48707. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  48708. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  48709. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  48710. </doc>
  48711. </field>
  48712. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  48713. transient="false" volatile="false"
  48714. static="true" final="true" visibility="public"
  48715. deprecated="not deprecated">
  48716. <doc>
  48717. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48718. map tasks (in kilo-bytes).
  48719. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48720. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  48721. </doc>
  48722. </field>
  48723. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  48724. transient="false" volatile="false"
  48725. static="true" final="true" visibility="public"
  48726. deprecated="not deprecated">
  48727. <doc>
  48728. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48729. reduce tasks (in kilo-bytes).
  48730. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48731. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  48732. </doc>
  48733. </field>
  48734. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  48735. transient="false" volatile="false"
  48736. static="true" final="true" visibility="public"
  48737. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  48738. {@link #MAPRED_REDUCE_TASK_ENV}">
  48739. <doc>
  48740. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  48741. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48742. reference existing environment variables via <code>$key</code>.
  48743. Example:
  48744. <ul>
  48745. <li> A=foo - This will set the env variable A to foo. </li>
  48746. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48747. </ul>
  48748. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  48749. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  48750. </doc>
  48751. </field>
  48752. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  48753. transient="false" volatile="false"
  48754. static="true" final="true" visibility="public"
  48755. deprecated="not deprecated">
  48756. <doc>
  48757. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48758. map tasks.
  48759. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48760. reference existing environment variables via <code>$key</code>.
  48761. Example:
  48762. <ul>
  48763. <li> A=foo - This will set the env variable A to foo. </li>
  48764. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48765. </ul>]]>
  48766. </doc>
  48767. </field>
  48768. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  48769. transient="false" volatile="false"
  48770. static="true" final="true" visibility="public"
  48771. deprecated="not deprecated">
  48772. <doc>
  48773. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48774. reduce tasks.
  48775. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48776. reference existing environment variables via <code>$key</code>.
  48777. Example:
  48778. <ul>
  48779. <li> A=foo - This will set the env variable A to foo. </li>
  48780. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48781. </ul>]]>
  48782. </doc>
  48783. </field>
  48784. <doc>
  48785. <![CDATA[A map/reduce job configuration.
  48786. <p><code>JobConf</code> is the primary interface for a user to describe a
  48787. map-reduce job to the Hadoop framework for execution. The framework tries to
  48788. faithfully execute the job as-is described by <code>JobConf</code>, however:
  48789. <ol>
  48790. <li>
  48791. Some configuration parameters might have been marked as
  48792. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  48793. final</a> by administrators and hence cannot be altered.
  48794. </li>
  48795. <li>
  48796. While some job parameters are straight-forward to set
  48797. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  48798. rest of the framework and/or job-configuration and is relatively more
  48799. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  48800. </li>
  48801. </ol></p>
  48802. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  48803. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  48804. {@link OutputFormat} implementations to be used etc.
  48805. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  48806. of the job such as <code>Comparator</code>s to be used, files to be put in
  48807. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  48808. are to be compressed (and how), debugability via user-provided scripts
  48809. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  48810. for doing post-processing on task logs, task's stdout, stderr, syslog.
  48811. and etc.</p>
  48812. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  48813. <p><blockquote><pre>
  48814. // Create a new JobConf
  48815. JobConf job = new JobConf(new Configuration(), MyJob.class);
  48816. // Specify various job-specific parameters
  48817. job.setJobName("myjob");
  48818. FileInputFormat.setInputPaths(job, new Path("in"));
  48819. FileOutputFormat.setOutputPath(job, new Path("out"));
  48820. job.setMapperClass(MyJob.MyMapper.class);
  48821. job.setCombinerClass(MyJob.MyReducer.class);
  48822. job.setReducerClass(MyJob.MyReducer.class);
  48823. job.setInputFormat(SequenceFileInputFormat.class);
  48824. job.setOutputFormat(SequenceFileOutputFormat.class);
  48825. </pre></blockquote></p>
  48826. @see JobClient
  48827. @see ClusterStatus
  48828. @see Tool
  48829. @see DistributedCache]]>
  48830. </doc>
  48831. </class>
  48832. <!-- end class org.apache.hadoop.mapred.JobConf -->
  48833. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  48834. <interface name="JobConfigurable" abstract="true"
  48835. static="false" final="false" visibility="public"
  48836. deprecated="not deprecated">
  48837. <method name="configure"
  48838. abstract="false" native="false" synchronized="false"
  48839. static="false" final="false" visibility="public"
  48840. deprecated="not deprecated">
  48841. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  48842. <doc>
  48843. <![CDATA[Initializes a new instance from a {@link JobConf}.
  48844. @param job the configuration]]>
  48845. </doc>
  48846. </method>
  48847. <doc>
  48848. <![CDATA[That what may be configured.]]>
  48849. </doc>
  48850. </interface>
  48851. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  48852. <!-- start class org.apache.hadoop.mapred.JobContext -->
  48853. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  48854. abstract="false"
  48855. static="false" final="false" visibility="public"
  48856. deprecated="not deprecated">
  48857. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  48858. abstract="false" native="false" synchronized="false"
  48859. static="false" final="false" visibility="public"
  48860. deprecated="not deprecated">
  48861. <doc>
  48862. <![CDATA[Get the job Configuration
  48863. @return JobConf]]>
  48864. </doc>
  48865. </method>
  48866. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  48867. abstract="false" native="false" synchronized="false"
  48868. static="false" final="false" visibility="public"
  48869. deprecated="not deprecated">
  48870. <doc>
  48871. <![CDATA[Get the progress mechanism for reporting progress.
  48872. @return progress mechanism]]>
  48873. </doc>
  48874. </method>
  48875. </class>
  48876. <!-- end class org.apache.hadoop.mapred.JobContext -->
  48877. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  48878. <class name="JobEndNotifier" extends="java.lang.Object"
  48879. abstract="false"
  48880. static="false" final="false" visibility="public"
  48881. deprecated="not deprecated">
  48882. <constructor name="JobEndNotifier"
  48883. static="false" final="false" visibility="public"
  48884. deprecated="not deprecated">
  48885. </constructor>
  48886. <method name="startNotifier"
  48887. abstract="false" native="false" synchronized="false"
  48888. static="true" final="false" visibility="public"
  48889. deprecated="not deprecated">
  48890. </method>
  48891. <method name="stopNotifier"
  48892. abstract="false" native="false" synchronized="false"
  48893. static="true" final="false" visibility="public"
  48894. deprecated="not deprecated">
  48895. </method>
  48896. <method name="registerNotification"
  48897. abstract="false" native="false" synchronized="false"
  48898. static="true" final="false" visibility="public"
  48899. deprecated="not deprecated">
  48900. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48901. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  48902. </method>
  48903. <method name="localRunnerNotification"
  48904. abstract="false" native="false" synchronized="false"
  48905. static="true" final="false" visibility="public"
  48906. deprecated="not deprecated">
  48907. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48908. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  48909. </method>
  48910. </class>
  48911. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  48912. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  48913. <class name="JobHistory" extends="java.lang.Object"
  48914. abstract="false"
  48915. static="false" final="false" visibility="public"
  48916. deprecated="not deprecated">
  48917. <constructor name="JobHistory"
  48918. static="false" final="false" visibility="public"
  48919. deprecated="not deprecated">
  48920. </constructor>
  48921. <method name="getHistoryFilePath" return="java.lang.String"
  48922. abstract="false" native="false" synchronized="false"
  48923. static="true" final="false" visibility="public"
  48924. deprecated="not deprecated">
  48925. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48926. <doc>
  48927. <![CDATA[Given the job id, return the history file path from the cache]]>
  48928. </doc>
  48929. </method>
  48930. <method name="init"
  48931. abstract="false" native="false" synchronized="false"
  48932. static="true" final="false" visibility="public"
  48933. deprecated="not deprecated">
  48934. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  48935. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48936. <param name="hostname" type="java.lang.String"/>
  48937. <param name="jobTrackerStartTime" type="long"/>
  48938. <exception name="IOException" type="java.io.IOException"/>
  48939. <doc>
  48940. <![CDATA[Initialize JobHistory files.
  48941. @param conf Jobconf of the job tracker.
  48942. @param hostname jobtracker's hostname
  48943. @param jobTrackerStartTime jobtracker's start time]]>
  48944. </doc>
  48945. </method>
  48946. <method name="parseHistoryFromFS"
  48947. abstract="false" native="false" synchronized="false"
  48948. static="true" final="false" visibility="public"
  48949. deprecated="not deprecated">
  48950. <param name="path" type="java.lang.String"/>
  48951. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  48952. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  48953. <exception name="IOException" type="java.io.IOException"/>
  48954. <doc>
  48955. <![CDATA[Parses history file and invokes Listener.handle() for
  48956. each line of history. It can be used for looking through history
  48957. files for specific items without having to keep whole history in memory.
  48958. @param path path to history file
  48959. @param l Listener for history events
  48960. @param fs FileSystem where history file is present
  48961. @throws IOException]]>
  48962. </doc>
  48963. </method>
  48964. <method name="getTaskLogsUrl" return="java.lang.String"
  48965. abstract="false" native="false" synchronized="false"
  48966. static="true" final="false" visibility="public"
  48967. deprecated="not deprecated">
  48968. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  48969. <doc>
  48970. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  48971. @param attempt
  48972. @return the taskLogsUrl. null if http-port or tracker-name or
  48973. task-attempt-id are unavailable.]]>
  48974. </doc>
  48975. </method>
  48976. <field name="LOG" type="org.apache.commons.logging.Log"
  48977. transient="false" volatile="false"
  48978. static="true" final="true" visibility="public"
  48979. deprecated="not deprecated">
  48980. </field>
  48981. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  48982. transient="false" volatile="false"
  48983. static="true" final="true" visibility="public"
  48984. deprecated="not deprecated">
  48985. </field>
  48986. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  48987. transient="false" volatile="false"
  48988. static="true" final="true" visibility="public"
  48989. deprecated="not deprecated">
  48990. </field>
  48991. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  48992. transient="false" volatile="false"
  48993. static="true" final="true" visibility="public"
  48994. deprecated="not deprecated">
  48995. </field>
  48996. <doc>
  48997. <![CDATA[Provides methods for writing to and reading from job history.
  48998. Job History works in an append mode, JobHistory and its inner classes provide methods
  48999. to log job events.
  49000. JobHistory is split into multiple files, format of each file is plain text where each line
  49001. is of the format [type (key=value)*], where type identifies the type of the record.
  49002. Type maps to UID of one of the inner classes of this class.
  49003. Job history is maintained in a master index which contains star/stop times of all jobs with
  49004. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  49005. file. name of job history files follows the format jobtrackerId_jobid
  49006. For parsing the job history it supports a listener based interface where each line is parsed
  49007. and passed to listener. The listener can create an object model of history or look for specific
  49008. events and discard rest of the history.
  49009. CHANGE LOG :
  49010. Version 0 : The history has the following format :
  49011. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  49012. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  49013. Note that a '"' is the line delimiter.
  49014. Version 1 : Changes the line delimiter to '.'
  49015. Values are now escaped for unambiguous parsing.
  49016. Added the Meta tag to store version info.]]>
  49017. </doc>
  49018. </class>
  49019. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  49020. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49021. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  49022. abstract="false"
  49023. static="true" final="false" visibility="public"
  49024. deprecated="not deprecated">
  49025. <implements name="java.lang.Runnable"/>
  49026. <constructor name="JobHistory.HistoryCleaner"
  49027. static="false" final="false" visibility="public"
  49028. deprecated="not deprecated">
  49029. </constructor>
  49030. <method name="run"
  49031. abstract="false" native="false" synchronized="false"
  49032. static="false" final="false" visibility="public"
  49033. deprecated="not deprecated">
  49034. <doc>
  49035. <![CDATA[Cleans up history data.]]>
  49036. </doc>
  49037. </method>
  49038. <doc>
  49039. <![CDATA[Delete history files older than one month. Update master index and remove all
  49040. jobs older than one month. Also if a job tracker has no jobs in last one month
  49041. remove reference to the job tracker.]]>
  49042. </doc>
  49043. </class>
  49044. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49045. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49046. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  49047. abstract="false"
  49048. static="true" final="false" visibility="public"
  49049. deprecated="not deprecated">
  49050. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  49051. static="false" final="false" visibility="public"
  49052. deprecated="not deprecated">
  49053. <doc>
  49054. <![CDATA[Create new JobInfo]]>
  49055. </doc>
  49056. </constructor>
  49057. <method name="getAllTasks" return="java.util.Map"
  49058. abstract="false" native="false" synchronized="false"
  49059. static="false" final="false" visibility="public"
  49060. deprecated="not deprecated">
  49061. <doc>
  49062. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  49063. </doc>
  49064. </method>
  49065. <method name="getJobACLs" return="java.util.Map"
  49066. abstract="false" native="false" synchronized="false"
  49067. static="false" final="false" visibility="public"
  49068. deprecated="not deprecated">
  49069. <doc>
  49070. <![CDATA[Get the job acls.
  49071. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49072. </doc>
  49073. </method>
  49074. <method name="handle"
  49075. abstract="false" native="false" synchronized="true"
  49076. static="false" final="false" visibility="public"
  49077. deprecated="not deprecated">
  49078. <param name="values" type="java.util.Map"/>
  49079. </method>
  49080. <method name="getLocalJobFilePath" return="java.lang.String"
  49081. abstract="false" native="false" synchronized="false"
  49082. static="true" final="false" visibility="public"
  49083. deprecated="not deprecated">
  49084. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49085. <doc>
  49086. <![CDATA[Get the path of the locally stored job file
  49087. @param jobId id of the job
  49088. @return the path of the job file on the local file system]]>
  49089. </doc>
  49090. </method>
  49091. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  49092. abstract="false" native="false" synchronized="false"
  49093. static="true" final="false" visibility="public"
  49094. deprecated="not deprecated">
  49095. <param name="logFile" type="java.lang.String"/>
  49096. <exception name="IOException" type="java.io.IOException"/>
  49097. <doc>
  49098. <![CDATA[Helper function to encode the URL of the path of the job-history
  49099. log file.
  49100. @param logFile path of the job-history file
  49101. @return URL encoded path
  49102. @throws IOException]]>
  49103. </doc>
  49104. </method>
  49105. <method name="encodeJobHistoryFileName" return="java.lang.String"
  49106. abstract="false" native="false" synchronized="false"
  49107. static="true" final="false" visibility="public"
  49108. deprecated="not deprecated">
  49109. <param name="logFileName" type="java.lang.String"/>
  49110. <exception name="IOException" type="java.io.IOException"/>
  49111. <doc>
  49112. <![CDATA[Helper function to encode the URL of the filename of the job-history
  49113. log file.
  49114. @param logFileName file name of the job-history file
  49115. @return URL encoded filename
  49116. @throws IOException]]>
  49117. </doc>
  49118. </method>
  49119. <method name="decodeJobHistoryFileName" return="java.lang.String"
  49120. abstract="false" native="false" synchronized="false"
  49121. static="true" final="false" visibility="public"
  49122. deprecated="not deprecated">
  49123. <param name="logFileName" type="java.lang.String"/>
  49124. <exception name="IOException" type="java.io.IOException"/>
  49125. <doc>
  49126. <![CDATA[Helper function to decode the URL of the filename of the job-history
  49127. log file.
  49128. @param logFileName file name of the job-history file
  49129. @return URL decoded filename
  49130. @throws IOException]]>
  49131. </doc>
  49132. </method>
  49133. <method name="getUserName" return="java.lang.String"
  49134. abstract="false" native="false" synchronized="false"
  49135. static="true" final="false" visibility="public"
  49136. deprecated="not deprecated">
  49137. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49138. <doc>
  49139. <![CDATA[Get the user name from the job conf]]>
  49140. </doc>
  49141. </method>
  49142. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  49143. abstract="false" native="false" synchronized="false"
  49144. static="true" final="false" visibility="public"
  49145. deprecated="not deprecated">
  49146. <param name="logFileName" type="java.lang.String"/>
  49147. <doc>
  49148. <![CDATA[Get the job history file path given the history filename]]>
  49149. </doc>
  49150. </method>
  49151. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  49152. abstract="false" native="false" synchronized="false"
  49153. static="true" final="false" visibility="public"
  49154. deprecated="not deprecated">
  49155. <param name="logFileName" type="java.lang.String"/>
  49156. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49157. <doc>
  49158. <![CDATA[Get the user job history file path]]>
  49159. </doc>
  49160. </method>
  49161. <method name="getJobHistoryFileName" return="java.lang.String"
  49162. abstract="false" native="false" synchronized="true"
  49163. static="true" final="false" visibility="public"
  49164. deprecated="not deprecated">
  49165. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49166. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  49167. <exception name="IOException" type="java.io.IOException"/>
  49168. <doc>
  49169. <![CDATA[Recover the job history filename from the history folder.
  49170. Uses the following pattern
  49171. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  49172. @param jobConf the job conf
  49173. @param id job id]]>
  49174. </doc>
  49175. </method>
  49176. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  49177. abstract="false" native="false" synchronized="true"
  49178. static="true" final="false" visibility="public"
  49179. deprecated="not deprecated">
  49180. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49181. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  49182. <exception name="IOException" type="java.io.IOException"/>
  49183. <doc>
  49184. <![CDATA[Selects one of the two files generated as a part of recovery.
  49185. The thumb rule is that always select the oldest file.
  49186. This call makes sure that only one file is left in the end.
  49187. @param conf job conf
  49188. @param logFilePath Path of the log file
  49189. @throws IOException]]>
  49190. </doc>
  49191. </method>
  49192. <method name="logSubmitted"
  49193. abstract="false" native="false" synchronized="false"
  49194. static="true" final="false" visibility="public"
  49195. deprecated="Use
  49196. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  49197. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49198. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49199. <param name="jobConfPath" type="java.lang.String"/>
  49200. <param name="submitTime" type="long"/>
  49201. <exception name="IOException" type="java.io.IOException"/>
  49202. <doc>
  49203. <![CDATA[Log job submitted event to history. Creates a new file in history
  49204. for the job. if history file creation fails, it disables history
  49205. for all other events.
  49206. @param jobId job id assigned by job tracker.
  49207. @param jobConf job conf of the job
  49208. @param jobConfPath path to job conf xml file in HDFS.
  49209. @param submitTime time when job tracker received the job
  49210. @throws IOException
  49211. @deprecated Use
  49212. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  49213. </doc>
  49214. </method>
  49215. <method name="logSubmitted"
  49216. abstract="false" native="false" synchronized="false"
  49217. static="true" final="false" visibility="public"
  49218. deprecated="not deprecated">
  49219. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49220. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49221. <param name="jobConfPath" type="java.lang.String"/>
  49222. <param name="submitTime" type="long"/>
  49223. <param name="restarted" type="boolean"/>
  49224. <exception name="IOException" type="java.io.IOException"/>
  49225. </method>
  49226. <method name="logInited"
  49227. abstract="false" native="false" synchronized="false"
  49228. static="true" final="false" visibility="public"
  49229. deprecated="not deprecated">
  49230. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49231. <param name="startTime" type="long"/>
  49232. <param name="totalMaps" type="int"/>
  49233. <param name="totalReduces" type="int"/>
  49234. <doc>
  49235. <![CDATA[Logs launch time of job.
  49236. @param jobId job id, assigned by jobtracker.
  49237. @param startTime start time of job.
  49238. @param totalMaps total maps assigned by jobtracker.
  49239. @param totalReduces total reduces.]]>
  49240. </doc>
  49241. </method>
  49242. <method name="logStarted"
  49243. abstract="false" native="false" synchronized="false"
  49244. static="true" final="false" visibility="public"
  49245. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  49246. {@link #logStarted(JobID)}">
  49247. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49248. <param name="startTime" type="long"/>
  49249. <param name="totalMaps" type="int"/>
  49250. <param name="totalReduces" type="int"/>
  49251. <doc>
  49252. <![CDATA[Logs the job as RUNNING.
  49253. @param jobId job id, assigned by jobtracker.
  49254. @param startTime start time of job.
  49255. @param totalMaps total maps assigned by jobtracker.
  49256. @param totalReduces total reduces.
  49257. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  49258. {@link #logStarted(JobID)}]]>
  49259. </doc>
  49260. </method>
  49261. <method name="logStarted"
  49262. abstract="false" native="false" synchronized="false"
  49263. static="true" final="false" visibility="public"
  49264. deprecated="not deprecated">
  49265. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49266. <doc>
  49267. <![CDATA[Logs job as running
  49268. @param jobId job id, assigned by jobtracker.]]>
  49269. </doc>
  49270. </method>
  49271. <method name="logFinished"
  49272. abstract="false" native="false" synchronized="false"
  49273. static="true" final="false" visibility="public"
  49274. deprecated="not deprecated">
  49275. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49276. <param name="finishTime" type="long"/>
  49277. <param name="finishedMaps" type="int"/>
  49278. <param name="finishedReduces" type="int"/>
  49279. <param name="failedMaps" type="int"/>
  49280. <param name="failedReduces" type="int"/>
  49281. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  49282. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  49283. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  49284. <doc>
  49285. <![CDATA[Log job finished. closes the job file in history.
  49286. @param jobId job id, assigned by jobtracker.
  49287. @param finishTime finish time of job in ms.
  49288. @param finishedMaps no of maps successfully finished.
  49289. @param finishedReduces no of reduces finished sucessfully.
  49290. @param failedMaps no of failed map tasks.
  49291. @param failedReduces no of failed reduce tasks.
  49292. @param counters the counters from the job]]>
  49293. </doc>
  49294. </method>
  49295. <method name="logFailed"
  49296. abstract="false" native="false" synchronized="false"
  49297. static="true" final="false" visibility="public"
  49298. deprecated="not deprecated">
  49299. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49300. <param name="timestamp" type="long"/>
  49301. <param name="finishedMaps" type="int"/>
  49302. <param name="finishedReduces" type="int"/>
  49303. <param name="failReason" type="java.lang.String"/>
  49304. <doc>
  49305. <![CDATA[Logs job failed event. Closes the job history log file.
  49306. @param jobid job id
  49307. @param timestamp time when job failure was detected in ms.
  49308. @param finishedMaps no finished map tasks.
  49309. @param finishedReduces no of finished reduce tasks.]]>
  49310. </doc>
  49311. </method>
  49312. <method name="logKilled"
  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. <param name="timestamp" type="long"/>
  49318. <param name="finishedMaps" type="int"/>
  49319. <param name="finishedReduces" type="int"/>
  49320. <doc>
  49321. <![CDATA[Logs job killed event. Closes the job history log file.
  49322. @param jobid
  49323. job id
  49324. @param timestamp
  49325. time when job killed was issued in ms.
  49326. @param finishedMaps
  49327. no finished map tasks.
  49328. @param finishedReduces
  49329. no of finished reduce tasks.]]>
  49330. </doc>
  49331. </method>
  49332. <method name="logJobPriority"
  49333. abstract="false" native="false" synchronized="false"
  49334. static="true" final="false" visibility="public"
  49335. deprecated="not deprecated">
  49336. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49337. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  49338. <doc>
  49339. <![CDATA[Log job's priority.
  49340. @param jobid job id
  49341. @param priority Jobs priority]]>
  49342. </doc>
  49343. </method>
  49344. <method name="logJobInfo"
  49345. abstract="false" native="false" synchronized="false"
  49346. static="true" final="false" visibility="public"
  49347. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  49348. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49349. <param name="submitTime" type="long"/>
  49350. <param name="launchTime" type="long"/>
  49351. <param name="restartCount" type="int"/>
  49352. <doc>
  49353. <![CDATA[Log job's submit-time/launch-time
  49354. @param jobid job id
  49355. @param submitTime job's submit time
  49356. @param launchTime job's launch time
  49357. @param restartCount number of times the job got restarted
  49358. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  49359. </doc>
  49360. </method>
  49361. <method name="logJobInfo"
  49362. abstract="false" native="false" synchronized="false"
  49363. static="true" final="false" visibility="public"
  49364. deprecated="not deprecated">
  49365. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49366. <param name="submitTime" type="long"/>
  49367. <param name="launchTime" type="long"/>
  49368. </method>
  49369. <doc>
  49370. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  49371. </doc>
  49372. </class>
  49373. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49374. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  49375. <class name="JobHistory.Keys" extends="java.lang.Enum"
  49376. abstract="false"
  49377. static="true" final="true" visibility="public"
  49378. deprecated="not deprecated">
  49379. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  49380. abstract="false" native="false" synchronized="false"
  49381. static="true" final="false" visibility="public"
  49382. deprecated="not deprecated">
  49383. </method>
  49384. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  49385. abstract="false" native="false" synchronized="false"
  49386. static="true" final="false" visibility="public"
  49387. deprecated="not deprecated">
  49388. <param name="name" type="java.lang.String"/>
  49389. </method>
  49390. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49391. transient="false" volatile="false"
  49392. static="true" final="true" visibility="public"
  49393. deprecated="not deprecated">
  49394. </field>
  49395. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49396. transient="false" volatile="false"
  49397. static="true" final="true" visibility="public"
  49398. deprecated="not deprecated">
  49399. </field>
  49400. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49401. transient="false" volatile="false"
  49402. static="true" final="true" visibility="public"
  49403. deprecated="not deprecated">
  49404. </field>
  49405. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49406. transient="false" volatile="false"
  49407. static="true" final="true" visibility="public"
  49408. deprecated="not deprecated">
  49409. </field>
  49410. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49411. transient="false" volatile="false"
  49412. static="true" final="true" visibility="public"
  49413. deprecated="not deprecated">
  49414. </field>
  49415. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49416. transient="false" volatile="false"
  49417. static="true" final="true" visibility="public"
  49418. deprecated="not deprecated">
  49419. </field>
  49420. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49421. transient="false" volatile="false"
  49422. static="true" final="true" visibility="public"
  49423. deprecated="not deprecated">
  49424. </field>
  49425. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49426. transient="false" volatile="false"
  49427. static="true" final="true" visibility="public"
  49428. deprecated="not deprecated">
  49429. </field>
  49430. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49431. transient="false" volatile="false"
  49432. static="true" final="true" visibility="public"
  49433. deprecated="not deprecated">
  49434. </field>
  49435. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49436. transient="false" volatile="false"
  49437. static="true" final="true" visibility="public"
  49438. deprecated="not deprecated">
  49439. </field>
  49440. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49441. transient="false" volatile="false"
  49442. static="true" final="true" visibility="public"
  49443. deprecated="not deprecated">
  49444. </field>
  49445. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49446. transient="false" volatile="false"
  49447. static="true" final="true" visibility="public"
  49448. deprecated="not deprecated">
  49449. </field>
  49450. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49451. transient="false" volatile="false"
  49452. static="true" final="true" visibility="public"
  49453. deprecated="not deprecated">
  49454. </field>
  49455. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49456. transient="false" volatile="false"
  49457. static="true" final="true" visibility="public"
  49458. deprecated="not deprecated">
  49459. </field>
  49460. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49461. transient="false" volatile="false"
  49462. static="true" final="true" visibility="public"
  49463. deprecated="not deprecated">
  49464. </field>
  49465. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49466. transient="false" volatile="false"
  49467. static="true" final="true" visibility="public"
  49468. deprecated="not deprecated">
  49469. </field>
  49470. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49471. transient="false" volatile="false"
  49472. static="true" final="true" visibility="public"
  49473. deprecated="not deprecated">
  49474. </field>
  49475. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49476. transient="false" volatile="false"
  49477. static="true" final="true" visibility="public"
  49478. deprecated="not deprecated">
  49479. </field>
  49480. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49481. transient="false" volatile="false"
  49482. static="true" final="true" visibility="public"
  49483. deprecated="not deprecated">
  49484. </field>
  49485. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49486. transient="false" volatile="false"
  49487. static="true" final="true" visibility="public"
  49488. deprecated="not deprecated">
  49489. </field>
  49490. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49491. transient="false" volatile="false"
  49492. static="true" final="true" visibility="public"
  49493. deprecated="not deprecated">
  49494. </field>
  49495. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49496. transient="false" volatile="false"
  49497. static="true" final="true" visibility="public"
  49498. deprecated="not deprecated">
  49499. </field>
  49500. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49501. transient="false" volatile="false"
  49502. static="true" final="true" visibility="public"
  49503. deprecated="not deprecated">
  49504. </field>
  49505. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49506. transient="false" volatile="false"
  49507. static="true" final="true" visibility="public"
  49508. deprecated="not deprecated">
  49509. </field>
  49510. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49511. transient="false" volatile="false"
  49512. static="true" final="true" visibility="public"
  49513. deprecated="not deprecated">
  49514. </field>
  49515. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49516. transient="false" volatile="false"
  49517. static="true" final="true" visibility="public"
  49518. deprecated="not deprecated">
  49519. </field>
  49520. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49521. transient="false" volatile="false"
  49522. static="true" final="true" visibility="public"
  49523. deprecated="not deprecated">
  49524. </field>
  49525. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49526. transient="false" volatile="false"
  49527. static="true" final="true" visibility="public"
  49528. deprecated="not deprecated">
  49529. </field>
  49530. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49531. transient="false" volatile="false"
  49532. static="true" final="true" visibility="public"
  49533. deprecated="not deprecated">
  49534. </field>
  49535. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49536. transient="false" volatile="false"
  49537. static="true" final="true" visibility="public"
  49538. deprecated="not deprecated">
  49539. </field>
  49540. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49541. transient="false" volatile="false"
  49542. static="true" final="true" visibility="public"
  49543. deprecated="not deprecated">
  49544. </field>
  49545. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49546. transient="false" volatile="false"
  49547. static="true" final="true" visibility="public"
  49548. deprecated="not deprecated">
  49549. </field>
  49550. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49551. transient="false" volatile="false"
  49552. static="true" final="true" visibility="public"
  49553. deprecated="not deprecated">
  49554. </field>
  49555. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49556. transient="false" volatile="false"
  49557. static="true" final="true" visibility="public"
  49558. deprecated="not deprecated">
  49559. </field>
  49560. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49561. transient="false" volatile="false"
  49562. static="true" final="true" visibility="public"
  49563. deprecated="not deprecated">
  49564. </field>
  49565. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49566. transient="false" volatile="false"
  49567. static="true" final="true" visibility="public"
  49568. deprecated="not deprecated">
  49569. </field>
  49570. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49571. transient="false" volatile="false"
  49572. static="true" final="true" visibility="public"
  49573. deprecated="not deprecated">
  49574. </field>
  49575. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49576. transient="false" volatile="false"
  49577. static="true" final="true" visibility="public"
  49578. deprecated="not deprecated">
  49579. </field>
  49580. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49581. transient="false" volatile="false"
  49582. static="true" final="true" visibility="public"
  49583. deprecated="not deprecated">
  49584. </field>
  49585. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49586. transient="false" volatile="false"
  49587. static="true" final="true" visibility="public"
  49588. deprecated="not deprecated">
  49589. </field>
  49590. <doc>
  49591. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  49592. It acts as a global namespace for all keys.]]>
  49593. </doc>
  49594. </class>
  49595. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  49596. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  49597. <interface name="JobHistory.Listener" abstract="true"
  49598. static="true" final="false" visibility="public"
  49599. deprecated="not deprecated">
  49600. <method name="handle"
  49601. abstract="false" native="false" synchronized="false"
  49602. static="false" final="false" visibility="public"
  49603. deprecated="not deprecated">
  49604. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  49605. <param name="values" type="java.util.Map"/>
  49606. <exception name="IOException" type="java.io.IOException"/>
  49607. <doc>
  49608. <![CDATA[Callback method for history parser.
  49609. @param recType type of record, which is the first entry in the line.
  49610. @param values a map of key-value pairs as thry appear in history.
  49611. @throws IOException]]>
  49612. </doc>
  49613. </method>
  49614. <doc>
  49615. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  49616. should be implemented and passed to JobHistory.parseHistory()]]>
  49617. </doc>
  49618. </interface>
  49619. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  49620. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  49621. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  49622. abstract="false"
  49623. static="true" final="false" visibility="public"
  49624. deprecated="not deprecated">
  49625. <constructor name="JobHistory.MapAttempt"
  49626. static="false" final="false" visibility="public"
  49627. deprecated="not deprecated">
  49628. </constructor>
  49629. <method name="logStarted"
  49630. abstract="false" native="false" synchronized="false"
  49631. static="true" final="false" visibility="public"
  49632. deprecated="Use
  49633. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  49634. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49635. <param name="startTime" type="long"/>
  49636. <param name="hostName" type="java.lang.String"/>
  49637. <doc>
  49638. <![CDATA[Log start time of this map task attempt.
  49639. @param taskAttemptId task attempt id
  49640. @param startTime start time of task attempt as reported by task tracker.
  49641. @param hostName host name of the task attempt.
  49642. @deprecated Use
  49643. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  49644. </doc>
  49645. </method>
  49646. <method name="logStarted"
  49647. abstract="false" native="false" synchronized="false"
  49648. static="true" final="false" visibility="public"
  49649. deprecated="not deprecated">
  49650. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49651. <param name="startTime" type="long"/>
  49652. <param name="trackerName" type="java.lang.String"/>
  49653. <param name="httpPort" type="int"/>
  49654. <param name="taskType" type="java.lang.String"/>
  49655. <doc>
  49656. <![CDATA[Log start time of this map task attempt.
  49657. @param taskAttemptId task attempt id
  49658. @param startTime start time of task attempt as reported by task tracker.
  49659. @param trackerName name of the tracker executing the task attempt.
  49660. @param httpPort http port of the task tracker executing the task attempt
  49661. @param taskType Whether the attempt is cleanup or setup or map]]>
  49662. </doc>
  49663. </method>
  49664. <method name="logFinished"
  49665. abstract="false" native="false" synchronized="false"
  49666. static="true" final="false" visibility="public"
  49667. deprecated="Use
  49668. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  49669. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49670. <param name="finishTime" type="long"/>
  49671. <param name="hostName" type="java.lang.String"/>
  49672. <doc>
  49673. <![CDATA[Log finish time of map task attempt.
  49674. @param taskAttemptId task attempt id
  49675. @param finishTime finish time
  49676. @param hostName host name
  49677. @deprecated Use
  49678. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  49679. </doc>
  49680. </method>
  49681. <method name="logFinished"
  49682. abstract="false" native="false" synchronized="false"
  49683. static="true" final="false" visibility="public"
  49684. deprecated="not deprecated">
  49685. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49686. <param name="finishTime" type="long"/>
  49687. <param name="hostName" type="java.lang.String"/>
  49688. <param name="taskType" type="java.lang.String"/>
  49689. <param name="stateString" type="java.lang.String"/>
  49690. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  49691. <doc>
  49692. <![CDATA[Log finish time of map task attempt.
  49693. @param taskAttemptId task attempt id
  49694. @param finishTime finish time
  49695. @param hostName host name
  49696. @param taskType Whether the attempt is cleanup or setup or map
  49697. @param stateString state string of the task attempt
  49698. @param counter counters of the task attempt]]>
  49699. </doc>
  49700. </method>
  49701. <method name="logFailed"
  49702. abstract="false" native="false" synchronized="false"
  49703. static="true" final="false" visibility="public"
  49704. deprecated="Use
  49705. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  49706. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49707. <param name="timestamp" type="long"/>
  49708. <param name="hostName" type="java.lang.String"/>
  49709. <param name="error" type="java.lang.String"/>
  49710. <doc>
  49711. <![CDATA[Log task attempt failed event.
  49712. @param taskAttemptId task attempt id
  49713. @param timestamp timestamp
  49714. @param hostName hostname of this task attempt.
  49715. @param error error message if any for this task attempt.
  49716. @deprecated Use
  49717. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  49718. </doc>
  49719. </method>
  49720. <method name="logFailed"
  49721. abstract="false" native="false" synchronized="false"
  49722. static="true" final="false" visibility="public"
  49723. deprecated="not deprecated">
  49724. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49725. <param name="timestamp" type="long"/>
  49726. <param name="hostName" type="java.lang.String"/>
  49727. <param name="error" type="java.lang.String"/>
  49728. <param name="taskType" type="java.lang.String"/>
  49729. <doc>
  49730. <![CDATA[Log task attempt failed event.
  49731. @param taskAttemptId task attempt id
  49732. @param timestamp timestamp
  49733. @param hostName hostname of this task attempt.
  49734. @param error error message if any for this task attempt.
  49735. @param taskType Whether the attempt is cleanup or setup or map]]>
  49736. </doc>
  49737. </method>
  49738. <method name="logKilled"
  49739. abstract="false" native="false" synchronized="false"
  49740. static="true" final="false" visibility="public"
  49741. deprecated="Use
  49742. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  49743. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49744. <param name="timestamp" type="long"/>
  49745. <param name="hostName" type="java.lang.String"/>
  49746. <param name="error" type="java.lang.String"/>
  49747. <doc>
  49748. <![CDATA[Log task attempt killed event.
  49749. @param taskAttemptId task attempt id
  49750. @param timestamp timestamp
  49751. @param hostName hostname of this task attempt.
  49752. @param error error message if any for this task attempt.
  49753. @deprecated Use
  49754. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  49755. </doc>
  49756. </method>
  49757. <method name="logKilled"
  49758. abstract="false" native="false" synchronized="false"
  49759. static="true" final="false" visibility="public"
  49760. deprecated="not deprecated">
  49761. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49762. <param name="timestamp" type="long"/>
  49763. <param name="hostName" type="java.lang.String"/>
  49764. <param name="error" type="java.lang.String"/>
  49765. <param name="taskType" type="java.lang.String"/>
  49766. <doc>
  49767. <![CDATA[Log task attempt killed event.
  49768. @param taskAttemptId task attempt id
  49769. @param timestamp timestamp
  49770. @param hostName hostname of this task attempt.
  49771. @param error error message if any for this task attempt.
  49772. @param taskType Whether the attempt is cleanup or setup or map]]>
  49773. </doc>
  49774. </method>
  49775. <doc>
  49776. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  49777. a Map Attempt on a node.]]>
  49778. </doc>
  49779. </class>
  49780. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  49781. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  49782. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  49783. abstract="false"
  49784. static="true" final="true" visibility="public"
  49785. deprecated="not deprecated">
  49786. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  49787. abstract="false" native="false" synchronized="false"
  49788. static="true" final="false" visibility="public"
  49789. deprecated="not deprecated">
  49790. </method>
  49791. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49792. abstract="false" native="false" synchronized="false"
  49793. static="true" final="false" visibility="public"
  49794. deprecated="not deprecated">
  49795. <param name="name" type="java.lang.String"/>
  49796. </method>
  49797. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49798. transient="false" volatile="false"
  49799. static="true" final="true" visibility="public"
  49800. deprecated="not deprecated">
  49801. </field>
  49802. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49803. transient="false" volatile="false"
  49804. static="true" final="true" visibility="public"
  49805. deprecated="not deprecated">
  49806. </field>
  49807. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49808. transient="false" volatile="false"
  49809. static="true" final="true" visibility="public"
  49810. deprecated="not deprecated">
  49811. </field>
  49812. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49813. transient="false" volatile="false"
  49814. static="true" final="true" visibility="public"
  49815. deprecated="not deprecated">
  49816. </field>
  49817. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49818. transient="false" volatile="false"
  49819. static="true" final="true" visibility="public"
  49820. deprecated="not deprecated">
  49821. </field>
  49822. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49823. transient="false" volatile="false"
  49824. static="true" final="true" visibility="public"
  49825. deprecated="not deprecated">
  49826. </field>
  49827. <doc>
  49828. <![CDATA[Record types are identifiers for each line of log in history files.
  49829. A record type appears as the first token in a single line of log.]]>
  49830. </doc>
  49831. </class>
  49832. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  49833. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  49834. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  49835. abstract="false"
  49836. static="true" final="false" visibility="public"
  49837. deprecated="not deprecated">
  49838. <constructor name="JobHistory.ReduceAttempt"
  49839. static="false" final="false" visibility="public"
  49840. deprecated="not deprecated">
  49841. </constructor>
  49842. <method name="logStarted"
  49843. abstract="false" native="false" synchronized="false"
  49844. static="true" final="false" visibility="public"
  49845. deprecated="Use
  49846. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  49847. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49848. <param name="startTime" type="long"/>
  49849. <param name="hostName" type="java.lang.String"/>
  49850. <doc>
  49851. <![CDATA[Log start time of Reduce task attempt.
  49852. @param taskAttemptId task attempt id
  49853. @param startTime start time
  49854. @param hostName host name
  49855. @deprecated Use
  49856. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  49857. </doc>
  49858. </method>
  49859. <method name="logStarted"
  49860. abstract="false" native="false" synchronized="false"
  49861. static="true" final="false" visibility="public"
  49862. deprecated="not deprecated">
  49863. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49864. <param name="startTime" type="long"/>
  49865. <param name="trackerName" type="java.lang.String"/>
  49866. <param name="httpPort" type="int"/>
  49867. <param name="taskType" type="java.lang.String"/>
  49868. <doc>
  49869. <![CDATA[Log start time of Reduce task attempt.
  49870. @param taskAttemptId task attempt id
  49871. @param startTime start time
  49872. @param trackerName tracker name
  49873. @param httpPort the http port of the tracker executing the task attempt
  49874. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49875. </doc>
  49876. </method>
  49877. <method name="logFinished"
  49878. abstract="false" native="false" synchronized="false"
  49879. static="true" final="false" visibility="public"
  49880. deprecated="Use
  49881. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  49882. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49883. <param name="shuffleFinished" type="long"/>
  49884. <param name="sortFinished" type="long"/>
  49885. <param name="finishTime" type="long"/>
  49886. <param name="hostName" type="java.lang.String"/>
  49887. <doc>
  49888. <![CDATA[Log finished event of this task.
  49889. @param taskAttemptId task attempt id
  49890. @param shuffleFinished shuffle finish time
  49891. @param sortFinished sort finish time
  49892. @param finishTime finish time of task
  49893. @param hostName host name where task attempt executed
  49894. @deprecated Use
  49895. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  49896. </doc>
  49897. </method>
  49898. <method name="logFinished"
  49899. abstract="false" native="false" synchronized="false"
  49900. static="true" final="false" visibility="public"
  49901. deprecated="not deprecated">
  49902. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49903. <param name="shuffleFinished" type="long"/>
  49904. <param name="sortFinished" type="long"/>
  49905. <param name="finishTime" type="long"/>
  49906. <param name="hostName" type="java.lang.String"/>
  49907. <param name="taskType" type="java.lang.String"/>
  49908. <param name="stateString" type="java.lang.String"/>
  49909. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  49910. <doc>
  49911. <![CDATA[Log finished event of this task.
  49912. @param taskAttemptId task attempt id
  49913. @param shuffleFinished shuffle finish time
  49914. @param sortFinished sort finish time
  49915. @param finishTime finish time of task
  49916. @param hostName host name where task attempt executed
  49917. @param taskType Whether the attempt is cleanup or setup or reduce
  49918. @param stateString the state string of the attempt
  49919. @param counter counters of the attempt]]>
  49920. </doc>
  49921. </method>
  49922. <method name="logFailed"
  49923. abstract="false" native="false" synchronized="false"
  49924. static="true" final="false" visibility="public"
  49925. deprecated="Use
  49926. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  49927. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49928. <param name="timestamp" type="long"/>
  49929. <param name="hostName" type="java.lang.String"/>
  49930. <param name="error" type="java.lang.String"/>
  49931. <doc>
  49932. <![CDATA[Log failed reduce task attempt.
  49933. @param taskAttemptId task attempt id
  49934. @param timestamp time stamp when task failed
  49935. @param hostName host name of the task attempt.
  49936. @param error error message of the task.
  49937. @deprecated Use
  49938. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  49939. </doc>
  49940. </method>
  49941. <method name="logFailed"
  49942. abstract="false" native="false" synchronized="false"
  49943. static="true" final="false" visibility="public"
  49944. deprecated="not deprecated">
  49945. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49946. <param name="timestamp" type="long"/>
  49947. <param name="hostName" type="java.lang.String"/>
  49948. <param name="error" type="java.lang.String"/>
  49949. <param name="taskType" type="java.lang.String"/>
  49950. <doc>
  49951. <![CDATA[Log failed reduce task attempt.
  49952. @param taskAttemptId task attempt id
  49953. @param timestamp time stamp when task failed
  49954. @param hostName host name of the task attempt.
  49955. @param error error message of the task.
  49956. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49957. </doc>
  49958. </method>
  49959. <method name="logKilled"
  49960. abstract="false" native="false" synchronized="false"
  49961. static="true" final="false" visibility="public"
  49962. deprecated="Use
  49963. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  49964. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49965. <param name="timestamp" type="long"/>
  49966. <param name="hostName" type="java.lang.String"/>
  49967. <param name="error" type="java.lang.String"/>
  49968. <doc>
  49969. <![CDATA[Log killed reduce task attempt.
  49970. @param taskAttemptId task attempt id
  49971. @param timestamp time stamp when task failed
  49972. @param hostName host name of the task attempt.
  49973. @param error error message of the task.
  49974. @deprecated Use
  49975. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  49976. </doc>
  49977. </method>
  49978. <method name="logKilled"
  49979. abstract="false" native="false" synchronized="false"
  49980. static="true" final="false" visibility="public"
  49981. deprecated="not deprecated">
  49982. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49983. <param name="timestamp" type="long"/>
  49984. <param name="hostName" type="java.lang.String"/>
  49985. <param name="error" type="java.lang.String"/>
  49986. <param name="taskType" type="java.lang.String"/>
  49987. <doc>
  49988. <![CDATA[Log killed reduce task attempt.
  49989. @param taskAttemptId task attempt id
  49990. @param timestamp time stamp when task failed
  49991. @param hostName host name of the task attempt.
  49992. @param error error message of the task.
  49993. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49994. </doc>
  49995. </method>
  49996. <doc>
  49997. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  49998. a Map Attempt on a node.]]>
  49999. </doc>
  50000. </class>
  50001. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  50002. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  50003. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  50004. abstract="false"
  50005. static="true" final="false" visibility="public"
  50006. deprecated="not deprecated">
  50007. <constructor name="JobHistory.Task"
  50008. static="false" final="false" visibility="public"
  50009. deprecated="not deprecated">
  50010. </constructor>
  50011. <method name="logStarted"
  50012. abstract="false" native="false" synchronized="false"
  50013. static="true" final="false" visibility="public"
  50014. deprecated="not deprecated">
  50015. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50016. <param name="taskType" type="java.lang.String"/>
  50017. <param name="startTime" type="long"/>
  50018. <param name="splitLocations" type="java.lang.String"/>
  50019. <doc>
  50020. <![CDATA[Log start time of task (TIP).
  50021. @param taskId task id
  50022. @param taskType MAP or REDUCE
  50023. @param startTime startTime of tip.]]>
  50024. </doc>
  50025. </method>
  50026. <method name="logFinished"
  50027. abstract="false" native="false" synchronized="false"
  50028. static="true" final="false" visibility="public"
  50029. deprecated="not deprecated">
  50030. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50031. <param name="taskType" type="java.lang.String"/>
  50032. <param name="finishTime" type="long"/>
  50033. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50034. <doc>
  50035. <![CDATA[Log finish time of task.
  50036. @param taskId task id
  50037. @param taskType MAP or REDUCE
  50038. @param finishTime finish timeof task in ms]]>
  50039. </doc>
  50040. </method>
  50041. <method name="logUpdates"
  50042. abstract="false" native="false" synchronized="false"
  50043. static="true" final="false" visibility="public"
  50044. deprecated="not deprecated">
  50045. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50046. <param name="finishTime" type="long"/>
  50047. <doc>
  50048. <![CDATA[Update the finish time of task.
  50049. @param taskId task id
  50050. @param finishTime finish time of task in ms]]>
  50051. </doc>
  50052. </method>
  50053. <method name="logFailed"
  50054. abstract="false" native="false" synchronized="false"
  50055. static="true" final="false" visibility="public"
  50056. deprecated="not deprecated">
  50057. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50058. <param name="taskType" type="java.lang.String"/>
  50059. <param name="time" type="long"/>
  50060. <param name="error" type="java.lang.String"/>
  50061. <doc>
  50062. <![CDATA[Log job failed event.
  50063. @param taskId task id
  50064. @param taskType MAP or REDUCE.
  50065. @param time timestamp when job failed detected.
  50066. @param error error message for failure.]]>
  50067. </doc>
  50068. </method>
  50069. <method name="logFailed"
  50070. abstract="false" native="false" synchronized="false"
  50071. static="true" final="false" visibility="public"
  50072. deprecated="not deprecated">
  50073. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50074. <param name="taskType" type="java.lang.String"/>
  50075. <param name="time" type="long"/>
  50076. <param name="error" type="java.lang.String"/>
  50077. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50078. <doc>
  50079. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  50080. </doc>
  50081. </method>
  50082. <method name="getTaskAttempts" return="java.util.Map"
  50083. abstract="false" native="false" synchronized="false"
  50084. static="false" final="false" visibility="public"
  50085. deprecated="not deprecated">
  50086. <doc>
  50087. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  50088. </doc>
  50089. </method>
  50090. <doc>
  50091. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  50092. All events logged by this class are logged in a separate file per job in
  50093. job tracker history. These events map to TIPs in jobtracker.]]>
  50094. </doc>
  50095. </class>
  50096. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  50097. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  50098. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  50099. abstract="false"
  50100. static="true" final="false" visibility="public"
  50101. deprecated="not deprecated">
  50102. <constructor name="JobHistory.TaskAttempt"
  50103. static="false" final="false" visibility="public"
  50104. deprecated="not deprecated">
  50105. </constructor>
  50106. <doc>
  50107. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  50108. </doc>
  50109. </class>
  50110. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  50111. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  50112. <class name="JobHistory.Values" extends="java.lang.Enum"
  50113. abstract="false"
  50114. static="true" final="true" visibility="public"
  50115. deprecated="not deprecated">
  50116. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  50117. abstract="false" native="false" synchronized="false"
  50118. static="true" final="false" visibility="public"
  50119. deprecated="not deprecated">
  50120. </method>
  50121. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  50122. abstract="false" native="false" synchronized="false"
  50123. static="true" final="false" visibility="public"
  50124. deprecated="not deprecated">
  50125. <param name="name" type="java.lang.String"/>
  50126. </method>
  50127. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  50128. transient="false" volatile="false"
  50129. static="true" final="true" visibility="public"
  50130. deprecated="not deprecated">
  50131. </field>
  50132. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  50133. transient="false" volatile="false"
  50134. static="true" final="true" visibility="public"
  50135. deprecated="not deprecated">
  50136. </field>
  50137. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  50138. transient="false" volatile="false"
  50139. static="true" final="true" visibility="public"
  50140. deprecated="not deprecated">
  50141. </field>
  50142. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50143. transient="false" volatile="false"
  50144. static="true" final="true" visibility="public"
  50145. deprecated="not deprecated">
  50146. </field>
  50147. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  50148. transient="false" volatile="false"
  50149. static="true" final="true" visibility="public"
  50150. deprecated="not deprecated">
  50151. </field>
  50152. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50153. transient="false" volatile="false"
  50154. static="true" final="true" visibility="public"
  50155. deprecated="not deprecated">
  50156. </field>
  50157. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  50158. transient="false" volatile="false"
  50159. static="true" final="true" visibility="public"
  50160. deprecated="not deprecated">
  50161. </field>
  50162. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50163. transient="false" volatile="false"
  50164. static="true" final="true" visibility="public"
  50165. deprecated="not deprecated">
  50166. </field>
  50167. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50168. transient="false" volatile="false"
  50169. static="true" final="true" visibility="public"
  50170. deprecated="not deprecated">
  50171. </field>
  50172. <doc>
  50173. <![CDATA[This enum contains some of the values commonly used by history log events.
  50174. since values in history can only be strings - Values.name() is used in
  50175. most places in history file.]]>
  50176. </doc>
  50177. </class>
  50178. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  50179. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  50180. <class name="JobHistoryServer" extends="java.lang.Object"
  50181. abstract="false"
  50182. static="false" final="false" visibility="public"
  50183. deprecated="not deprecated">
  50184. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  50185. static="false" final="false" visibility="public"
  50186. deprecated="not deprecated">
  50187. <exception name="IOException" type="java.io.IOException"/>
  50188. <doc>
  50189. <![CDATA[Starts job history server as a independent process
  50190. * Initializes ACL Manager
  50191. * Starts a webapp to service history requests
  50192. @param conf - Mr Cluster configuration
  50193. @throws IOException - any exception starting history server]]>
  50194. </doc>
  50195. </constructor>
  50196. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  50197. static="false" final="false" visibility="public"
  50198. deprecated="not deprecated">
  50199. <exception name="IOException" type="java.io.IOException"/>
  50200. <doc>
  50201. <![CDATA[Starts job history server as a embedded server within job tracker
  50202. * Starts a webapp to service history requests
  50203. @param conf - MR Cluster configuration
  50204. @param aclsManager - ACLs Manager for user authentication
  50205. @param httpServer - Http Server instance
  50206. @throws IOException - any exception starting history server]]>
  50207. </doc>
  50208. </constructor>
  50209. <method name="start"
  50210. abstract="false" native="false" synchronized="false"
  50211. static="false" final="false" visibility="public"
  50212. deprecated="not deprecated">
  50213. <exception name="IOException" type="java.io.IOException"/>
  50214. </method>
  50215. <method name="join"
  50216. abstract="false" native="false" synchronized="false"
  50217. static="false" final="false" visibility="public"
  50218. deprecated="not deprecated">
  50219. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50220. </method>
  50221. <method name="shutdown"
  50222. abstract="false" native="false" synchronized="false"
  50223. static="false" final="false" visibility="public"
  50224. deprecated="not deprecated">
  50225. <exception name="Exception" type="java.lang.Exception"/>
  50226. <doc>
  50227. <![CDATA[Shutsdown the history server if already initialized
  50228. @throws Exception - Any exception during shutdown]]>
  50229. </doc>
  50230. </method>
  50231. <method name="main"
  50232. abstract="false" native="false" synchronized="false"
  50233. static="true" final="false" visibility="public"
  50234. deprecated="not deprecated">
  50235. <param name="args" type="java.lang.String[]"/>
  50236. <doc>
  50237. <![CDATA[Start job history server as an independent process
  50238. @param args - Command line arguments]]>
  50239. </doc>
  50240. </method>
  50241. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  50242. transient="false" volatile="false"
  50243. static="true" final="true" visibility="public"
  50244. deprecated="not deprecated">
  50245. </field>
  50246. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  50247. transient="false" volatile="false"
  50248. static="true" final="true" visibility="public"
  50249. deprecated="not deprecated">
  50250. </field>
  50251. <doc>
  50252. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  50253. related requests from client.
  50254. History Server can be initialized in one of two modes
  50255. * Emdedded within {@link JobTracker}
  50256. * External daemon, can either be run on the job tracker node or outside
  50257. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  50258. of the history server
  50259. mapred.job.history.server.http.address is address to which history web
  50260. server is bound to. If operating in embedded mode, the hostname on
  50261. history address has to be same as the job tracker host name
  50262. mapred.job.history.server.embedded (default is true) will cause job tracker
  50263. to init history server, else the server need to be started as a
  50264. separate daemon process]]>
  50265. </doc>
  50266. </class>
  50267. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  50268. <!-- start class org.apache.hadoop.mapred.JobID -->
  50269. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  50270. abstract="false"
  50271. static="false" final="false" visibility="public"
  50272. deprecated="not deprecated">
  50273. <constructor name="JobID" type="java.lang.String, int"
  50274. static="false" final="false" visibility="public"
  50275. deprecated="not deprecated">
  50276. <doc>
  50277. <![CDATA[Constructs a JobID object
  50278. @param jtIdentifier jobTracker identifier
  50279. @param id job number]]>
  50280. </doc>
  50281. </constructor>
  50282. <constructor name="JobID"
  50283. static="false" final="false" visibility="public"
  50284. deprecated="not deprecated">
  50285. </constructor>
  50286. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  50287. abstract="false" native="false" synchronized="false"
  50288. static="true" final="false" visibility="public"
  50289. deprecated="not deprecated">
  50290. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  50291. <doc>
  50292. <![CDATA[Downgrade a new JobID to an old one
  50293. @param old a new or old JobID
  50294. @return either old or a new JobID build to match old]]>
  50295. </doc>
  50296. </method>
  50297. <method name="read" return="org.apache.hadoop.mapred.JobID"
  50298. abstract="false" native="false" synchronized="false"
  50299. static="true" final="false" visibility="public"
  50300. deprecated="not deprecated">
  50301. <param name="in" type="java.io.DataInput"/>
  50302. <exception name="IOException" type="java.io.IOException"/>
  50303. </method>
  50304. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  50305. abstract="false" native="false" synchronized="false"
  50306. static="true" final="false" visibility="public"
  50307. deprecated="not deprecated">
  50308. <param name="str" type="java.lang.String"/>
  50309. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  50310. <doc>
  50311. <![CDATA[Construct a JobId object from given string
  50312. @return constructed JobId object or null if the given String is null
  50313. @throws IllegalArgumentException if the given string is malformed]]>
  50314. </doc>
  50315. </method>
  50316. <method name="getJobIDsPattern" return="java.lang.String"
  50317. abstract="false" native="false" synchronized="false"
  50318. static="true" final="false" visibility="public"
  50319. deprecated="not deprecated">
  50320. <param name="jtIdentifier" type="java.lang.String"/>
  50321. <param name="jobId" type="java.lang.Integer"/>
  50322. <doc>
  50323. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  50324. be given null, in which case that part of the regex will be generic.
  50325. For example to obtain a regex matching <i>any job</i>
  50326. run on the jobtracker started at <i>200707121733</i>, we would use :
  50327. <pre>
  50328. JobID.getTaskIDsPattern("200707121733", null);
  50329. </pre>
  50330. which will return :
  50331. <pre> "job_200707121733_[0-9]*" </pre>
  50332. @param jtIdentifier jobTracker identifier, or null
  50333. @param jobId job number, or null
  50334. @return a regex pattern matching JobIDs]]>
  50335. </doc>
  50336. </method>
  50337. <doc>
  50338. <![CDATA[JobID represents the immutable and unique identifier for
  50339. the job. JobID consists of two parts. First part
  50340. represents the jobtracker identifier, so that jobID to jobtracker map
  50341. is defined. For cluster setup this string is the jobtracker
  50342. start time, for local setting, it is "local".
  50343. Second part of the JobID is the job number. <br>
  50344. An example JobID is :
  50345. <code>job_200707121733_0003</code> , which represents the third job
  50346. running at the jobtracker started at <code>200707121733</code>.
  50347. <p>
  50348. Applications should never construct or parse JobID strings, but rather
  50349. use appropriate constructors or {@link #forName(String)} method.
  50350. @see TaskID
  50351. @see TaskAttemptID]]>
  50352. </doc>
  50353. </class>
  50354. <!-- end class org.apache.hadoop.mapred.JobID -->
  50355. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  50356. <class name="JobInProgress" extends="java.lang.Object"
  50357. abstract="false"
  50358. static="false" final="false" visibility="public"
  50359. deprecated="not deprecated">
  50360. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  50361. static="false" final="false" visibility="protected"
  50362. deprecated="not deprecated">
  50363. <exception name="IOException" type="java.io.IOException"/>
  50364. <doc>
  50365. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  50366. </doc>
  50367. </constructor>
  50368. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  50369. abstract="false" native="false" synchronized="false"
  50370. static="false" final="false" visibility="public"
  50371. deprecated="not deprecated">
  50372. <doc>
  50373. <![CDATA[Get the QueueMetrics object associated with this job
  50374. @return QueueMetrics]]>
  50375. </doc>
  50376. </method>
  50377. <method name="cleanUpMetrics"
  50378. abstract="false" native="false" synchronized="false"
  50379. static="false" final="false" visibility="public"
  50380. deprecated="not deprecated">
  50381. <doc>
  50382. <![CDATA[Called when the job is complete]]>
  50383. </doc>
  50384. </method>
  50385. <method name="inited" return="boolean"
  50386. abstract="false" native="false" synchronized="false"
  50387. static="false" final="false" visibility="public"
  50388. deprecated="not deprecated">
  50389. <doc>
  50390. <![CDATA[Check if the job has been initialized.
  50391. @return <code>true</code> if the job has been initialized,
  50392. <code>false</code> otherwise]]>
  50393. </doc>
  50394. </method>
  50395. <method name="getUser" return="java.lang.String"
  50396. abstract="false" native="false" synchronized="false"
  50397. static="false" final="false" visibility="public"
  50398. deprecated="not deprecated">
  50399. <doc>
  50400. <![CDATA[Get the user for the job]]>
  50401. </doc>
  50402. </method>
  50403. <method name="initTasks"
  50404. abstract="false" native="false" synchronized="true"
  50405. static="false" final="false" visibility="public"
  50406. deprecated="not deprecated">
  50407. <exception name="IOException" type="java.io.IOException"/>
  50408. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  50409. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50410. <doc>
  50411. <![CDATA[Construct the splits, etc. This is invoked from an async
  50412. thread so that split-computation doesn't block anyone.]]>
  50413. </doc>
  50414. </method>
  50415. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  50416. abstract="false" native="false" synchronized="false"
  50417. static="false" final="false" visibility="public"
  50418. deprecated="not deprecated">
  50419. </method>
  50420. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  50421. abstract="false" native="false" synchronized="false"
  50422. static="false" final="false" visibility="public"
  50423. deprecated="not deprecated">
  50424. </method>
  50425. <method name="getLaunchTime" return="long"
  50426. abstract="false" native="false" synchronized="true"
  50427. static="false" final="false" visibility="public"
  50428. deprecated="not deprecated">
  50429. </method>
  50430. <method name="getStartTime" return="long"
  50431. abstract="false" native="false" synchronized="false"
  50432. static="false" final="false" visibility="public"
  50433. deprecated="not deprecated">
  50434. </method>
  50435. <method name="getFinishTime" return="long"
  50436. abstract="false" native="false" synchronized="false"
  50437. static="false" final="false" visibility="public"
  50438. deprecated="not deprecated">
  50439. </method>
  50440. <method name="desiredMaps" return="int"
  50441. abstract="false" native="false" synchronized="false"
  50442. static="false" final="false" visibility="public"
  50443. deprecated="not deprecated">
  50444. </method>
  50445. <method name="finishedMaps" return="int"
  50446. abstract="false" native="false" synchronized="true"
  50447. static="false" final="false" visibility="public"
  50448. deprecated="not deprecated">
  50449. </method>
  50450. <method name="desiredReduces" return="int"
  50451. abstract="false" native="false" synchronized="false"
  50452. static="false" final="false" visibility="public"
  50453. deprecated="not deprecated">
  50454. </method>
  50455. <method name="runningMaps" return="int"
  50456. abstract="false" native="false" synchronized="true"
  50457. static="false" final="false" visibility="public"
  50458. deprecated="not deprecated">
  50459. </method>
  50460. <method name="runningReduces" return="int"
  50461. abstract="false" native="false" synchronized="true"
  50462. static="false" final="false" visibility="public"
  50463. deprecated="not deprecated">
  50464. </method>
  50465. <method name="finishedReduces" return="int"
  50466. abstract="false" native="false" synchronized="true"
  50467. static="false" final="false" visibility="public"
  50468. deprecated="not deprecated">
  50469. </method>
  50470. <method name="pendingMaps" return="int"
  50471. abstract="false" native="false" synchronized="true"
  50472. static="false" final="false" visibility="public"
  50473. deprecated="not deprecated">
  50474. </method>
  50475. <method name="pendingReduces" return="int"
  50476. abstract="false" native="false" synchronized="true"
  50477. static="false" final="false" visibility="public"
  50478. deprecated="not deprecated">
  50479. </method>
  50480. <method name="desiredTasks" return="int"
  50481. abstract="false" native="false" synchronized="false"
  50482. static="false" final="false" visibility="public"
  50483. deprecated="not deprecated">
  50484. <doc>
  50485. <![CDATA[Return total number of map and reduce tasks desired by the job.
  50486. @return total number of map and reduce tasks desired by the job]]>
  50487. </doc>
  50488. </method>
  50489. <method name="getNumSlotsPerTask" return="int"
  50490. abstract="false" native="false" synchronized="false"
  50491. static="false" final="false" visibility="public"
  50492. deprecated="not deprecated">
  50493. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  50494. </method>
  50495. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  50496. abstract="false" native="false" synchronized="false"
  50497. static="false" final="false" visibility="public"
  50498. deprecated="not deprecated">
  50499. </method>
  50500. <method name="setPriority"
  50501. abstract="false" native="false" synchronized="false"
  50502. static="false" final="false" visibility="public"
  50503. deprecated="not deprecated">
  50504. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  50505. </method>
  50506. <method name="reportTasksInProgress" return="java.util.Vector"
  50507. abstract="false" native="false" synchronized="true"
  50508. static="false" final="false" visibility="public"
  50509. deprecated="not deprecated">
  50510. <param name="shouldBeMap" type="boolean"/>
  50511. <param name="shouldBeComplete" type="boolean"/>
  50512. <doc>
  50513. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  50514. </doc>
  50515. </method>
  50516. <method name="reportCleanupTIPs" return="java.util.Vector"
  50517. abstract="false" native="false" synchronized="true"
  50518. static="false" final="false" visibility="public"
  50519. deprecated="not deprecated">
  50520. <param name="shouldBeComplete" type="boolean"/>
  50521. <doc>
  50522. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  50523. </doc>
  50524. </method>
  50525. <method name="reportSetupTIPs" return="java.util.Vector"
  50526. abstract="false" native="false" synchronized="true"
  50527. static="false" final="false" visibility="public"
  50528. deprecated="not deprecated">
  50529. <param name="shouldBeComplete" type="boolean"/>
  50530. <doc>
  50531. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  50532. </doc>
  50533. </method>
  50534. <method name="updateTaskStatus"
  50535. abstract="false" native="false" synchronized="true"
  50536. static="false" final="false" visibility="public"
  50537. deprecated="not deprecated">
  50538. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50539. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  50540. <doc>
  50541. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  50542. </doc>
  50543. </method>
  50544. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  50545. abstract="false" native="false" synchronized="true"
  50546. static="false" final="false" visibility="public"
  50547. deprecated="not deprecated">
  50548. <doc>
  50549. <![CDATA[Returns the job-level counters.
  50550. @return the job-level counters.]]>
  50551. </doc>
  50552. </method>
  50553. <method name="getMapCounters" return="boolean"
  50554. abstract="false" native="false" synchronized="true"
  50555. static="false" final="false" visibility="public"
  50556. deprecated="not deprecated">
  50557. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50558. <doc>
  50559. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  50560. This method returns true if counters are within limit or false.]]>
  50561. </doc>
  50562. </method>
  50563. <method name="getReduceCounters" return="boolean"
  50564. abstract="false" native="false" synchronized="true"
  50565. static="false" final="false" visibility="public"
  50566. deprecated="not deprecated">
  50567. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50568. <doc>
  50569. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  50570. This method returns true if counters are within limits and false otherwise.]]>
  50571. </doc>
  50572. </method>
  50573. <method name="getCounters" return="boolean"
  50574. abstract="false" native="false" synchronized="true"
  50575. static="false" final="false" visibility="public"
  50576. deprecated="not deprecated">
  50577. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  50578. <doc>
  50579. <![CDATA[Returns the total job counters, by adding together the job,
  50580. the map and the reduce counters. This method returns true if
  50581. counters are within limits and false otherwise.]]>
  50582. </doc>
  50583. </method>
  50584. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  50585. abstract="false" native="false" synchronized="true"
  50586. static="false" final="false" visibility="public"
  50587. deprecated="not deprecated">
  50588. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50589. <param name="clusterSize" type="int"/>
  50590. <param name="numUniqueHosts" type="int"/>
  50591. <exception name="IOException" type="java.io.IOException"/>
  50592. <doc>
  50593. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  50594. </doc>
  50595. </method>
  50596. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  50597. abstract="false" native="false" synchronized="false"
  50598. static="false" final="false" visibility="public"
  50599. deprecated="not deprecated">
  50600. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50601. <param name="isMapSlot" type="boolean"/>
  50602. <exception name="IOException" type="java.io.IOException"/>
  50603. </method>
  50604. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50605. abstract="false" native="false" synchronized="true"
  50606. static="false" final="false" visibility="public"
  50607. deprecated="not deprecated">
  50608. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50609. <param name="clusterSize" type="int"/>
  50610. <param name="numUniqueHosts" type="int"/>
  50611. <exception name="IOException" type="java.io.IOException"/>
  50612. </method>
  50613. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50614. abstract="false" native="false" synchronized="true"
  50615. static="false" final="false" visibility="public"
  50616. deprecated="not deprecated">
  50617. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50618. <param name="clusterSize" type="int"/>
  50619. <param name="numUniqueHosts" type="int"/>
  50620. <exception name="IOException" type="java.io.IOException"/>
  50621. </method>
  50622. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50623. abstract="false" native="false" synchronized="true"
  50624. static="false" final="false" visibility="public"
  50625. deprecated="not deprecated">
  50626. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50627. <param name="clusterSize" type="int"/>
  50628. <param name="numUniqueHosts" type="int"/>
  50629. <exception name="IOException" type="java.io.IOException"/>
  50630. </method>
  50631. <method name="schedulingOpportunity"
  50632. abstract="false" native="false" synchronized="false"
  50633. static="false" final="false" visibility="public"
  50634. deprecated="not deprecated">
  50635. </method>
  50636. <method name="resetSchedulingOpportunities"
  50637. abstract="false" native="false" synchronized="false"
  50638. static="false" final="false" visibility="public"
  50639. deprecated="not deprecated">
  50640. </method>
  50641. <method name="getNumSchedulingOpportunities" return="long"
  50642. abstract="false" native="false" synchronized="false"
  50643. static="false" final="false" visibility="public"
  50644. deprecated="not deprecated">
  50645. </method>
  50646. <method name="overrideSchedulingOpportunities"
  50647. abstract="false" native="false" synchronized="false"
  50648. static="false" final="false" visibility="public"
  50649. deprecated="not deprecated">
  50650. </method>
  50651. <method name="scheduleOffSwitch" return="boolean"
  50652. abstract="false" native="false" synchronized="false"
  50653. static="false" final="false" visibility="public"
  50654. deprecated="not deprecated">
  50655. <param name="numTaskTrackers" type="int"/>
  50656. <doc>
  50657. <![CDATA[Check if we can schedule an off-switch task for this job.
  50658. @param numTaskTrackers number of tasktrackers
  50659. @return <code>true</code> if we can schedule off-switch,
  50660. <code>false</code> otherwise
  50661. We check the number of missed opportunities for the job.
  50662. If it has 'waited' long enough we go ahead and schedule.]]>
  50663. </doc>
  50664. </method>
  50665. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  50666. abstract="false" native="false" synchronized="false"
  50667. static="false" final="false" visibility="public"
  50668. deprecated="not deprecated">
  50669. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50670. <param name="clusterSize" type="int"/>
  50671. <param name="numUniqueHosts" type="int"/>
  50672. <param name="isMapSlot" type="boolean"/>
  50673. <exception name="IOException" type="java.io.IOException"/>
  50674. <doc>
  50675. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  50676. </doc>
  50677. </method>
  50678. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  50679. abstract="false" native="false" synchronized="false"
  50680. static="false" final="false" visibility="public"
  50681. deprecated="not deprecated">
  50682. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50683. <param name="clusterSize" type="int"/>
  50684. <param name="numUniqueHosts" type="int"/>
  50685. <param name="isMapSlot" type="boolean"/>
  50686. <exception name="IOException" type="java.io.IOException"/>
  50687. <doc>
  50688. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  50689. </doc>
  50690. </method>
  50691. <method name="scheduleReduces" return="boolean"
  50692. abstract="false" native="false" synchronized="true"
  50693. static="false" final="false" visibility="public"
  50694. deprecated="not deprecated">
  50695. </method>
  50696. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  50697. abstract="false" native="false" synchronized="true"
  50698. static="false" final="false" visibility="public"
  50699. deprecated="not deprecated">
  50700. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50701. <param name="clusterSize" type="int"/>
  50702. <param name="numUniqueHosts" type="int"/>
  50703. <exception name="IOException" type="java.io.IOException"/>
  50704. <doc>
  50705. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  50706. We don't have cache-sensitivity for reduce tasks, as they
  50707. work on temporary MapRed files.]]>
  50708. </doc>
  50709. </method>
  50710. <method name="reserveTaskTracker"
  50711. abstract="false" native="false" synchronized="true"
  50712. static="false" final="false" visibility="public"
  50713. deprecated="not deprecated">
  50714. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  50715. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  50716. <param name="numSlots" type="int"/>
  50717. </method>
  50718. <method name="unreserveTaskTracker"
  50719. abstract="false" native="false" synchronized="true"
  50720. static="false" final="false" visibility="public"
  50721. deprecated="not deprecated">
  50722. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  50723. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  50724. </method>
  50725. <method name="getNumReservedTaskTrackersForMaps" return="int"
  50726. abstract="false" native="false" synchronized="false"
  50727. static="false" final="false" visibility="public"
  50728. deprecated="not deprecated">
  50729. </method>
  50730. <method name="getNumReservedTaskTrackersForReduces" return="int"
  50731. abstract="false" native="false" synchronized="false"
  50732. static="false" final="false" visibility="public"
  50733. deprecated="not deprecated">
  50734. </method>
  50735. <method name="scheduleMap"
  50736. abstract="false" native="false" synchronized="true"
  50737. static="false" final="false" visibility="protected"
  50738. deprecated="not deprecated">
  50739. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50740. <doc>
  50741. <![CDATA[Adds a map tip to the list of running maps.
  50742. @param tip the tip that needs to be scheduled as running]]>
  50743. </doc>
  50744. </method>
  50745. <method name="scheduleReduce"
  50746. abstract="false" native="false" synchronized="true"
  50747. static="false" final="false" visibility="protected"
  50748. deprecated="not deprecated">
  50749. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50750. <doc>
  50751. <![CDATA[Adds a reduce tip to the list of running reduces
  50752. @param tip the tip that needs to be scheduled as running]]>
  50753. </doc>
  50754. </method>
  50755. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  50756. abstract="false" native="false" synchronized="true"
  50757. static="false" final="false" visibility="protected"
  50758. deprecated="not deprecated">
  50759. <param name="list" type="java.util.Collection"/>
  50760. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50761. <param name="avgProgress" type="double"/>
  50762. <param name="currentTime" type="long"/>
  50763. <param name="shouldRemove" type="boolean"/>
  50764. <doc>
  50765. <![CDATA[Find a speculative task
  50766. @param list a list of tips
  50767. @param ttStatus status of the tracker that has requested a tip
  50768. @param avgProgress the average progress for speculation
  50769. @param currentTime current time in milliseconds
  50770. @param shouldRemove whether to remove the tips
  50771. @return a tip that can be speculated on the tracker]]>
  50772. </doc>
  50773. </method>
  50774. <method name="completedTask" return="boolean"
  50775. abstract="false" native="false" synchronized="true"
  50776. static="false" final="false" visibility="public"
  50777. deprecated="not deprecated">
  50778. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50779. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  50780. <doc>
  50781. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  50782. </doc>
  50783. </method>
  50784. <method name="kill"
  50785. abstract="false" native="false" synchronized="false"
  50786. static="false" final="false" visibility="public"
  50787. deprecated="not deprecated">
  50788. <doc>
  50789. <![CDATA[Kill the job and all its component tasks. This method should be called from
  50790. jobtracker and should return fast as it locks the jobtracker.]]>
  50791. </doc>
  50792. </method>
  50793. <method name="failedTask"
  50794. abstract="false" native="false" synchronized="false"
  50795. static="false" final="false" visibility="public"
  50796. deprecated="not deprecated">
  50797. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50798. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50799. <param name="reason" type="java.lang.String"/>
  50800. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  50801. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  50802. <param name="trackerName" type="java.lang.String"/>
  50803. <doc>
  50804. <![CDATA[Fail a task with a given reason, but without a status object.
  50805. Assuming {@link JobTracker} is locked on entry.
  50806. @param tip The task's tip
  50807. @param taskid The task id
  50808. @param reason The reason that the task failed
  50809. @param trackerName The task tracker the task failed on]]>
  50810. </doc>
  50811. </method>
  50812. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  50813. abstract="false" native="false" synchronized="true"
  50814. static="false" final="false" visibility="public"
  50815. deprecated="not deprecated">
  50816. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  50817. <doc>
  50818. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  50819. </doc>
  50820. </method>
  50821. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  50822. abstract="false" native="false" synchronized="true"
  50823. static="false" final="false" visibility="public"
  50824. deprecated="not deprecated">
  50825. <param name="mapId" type="int"/>
  50826. <doc>
  50827. <![CDATA[Find the details of someplace where a map has finished
  50828. @param mapId the id of the map
  50829. @return the task status of the completed task]]>
  50830. </doc>
  50831. </method>
  50832. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  50833. abstract="false" native="false" synchronized="true"
  50834. static="false" final="false" visibility="public"
  50835. deprecated="not deprecated">
  50836. <param name="fromEventId" type="int"/>
  50837. <param name="maxEvents" type="int"/>
  50838. </method>
  50839. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  50840. abstract="false" native="false" synchronized="false"
  50841. static="false" final="false" visibility="public"
  50842. deprecated="not deprecated">
  50843. <doc>
  50844. <![CDATA[@return The JobID of this JobInProgress.]]>
  50845. </doc>
  50846. </method>
  50847. <method name="getJobSubmitHostName" return="java.lang.String"
  50848. abstract="false" native="false" synchronized="false"
  50849. static="false" final="false" visibility="public"
  50850. deprecated="not deprecated">
  50851. <doc>
  50852. <![CDATA[@return submitHostName of this JobInProgress.]]>
  50853. </doc>
  50854. </method>
  50855. <method name="getJobSubmitHostAddress" return="java.lang.String"
  50856. abstract="false" native="false" synchronized="false"
  50857. static="false" final="false" visibility="public"
  50858. deprecated="not deprecated">
  50859. <doc>
  50860. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  50861. </doc>
  50862. </method>
  50863. <method name="getSchedulingInfo" return="java.lang.Object"
  50864. abstract="false" native="false" synchronized="true"
  50865. static="false" final="false" visibility="public"
  50866. deprecated="not deprecated">
  50867. </method>
  50868. <method name="setSchedulingInfo"
  50869. abstract="false" native="false" synchronized="true"
  50870. static="false" final="false" visibility="public"
  50871. deprecated="not deprecated">
  50872. <param name="schedulingInfo" type="java.lang.Object"/>
  50873. </method>
  50874. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  50875. transient="false" volatile="false"
  50876. static="false" final="false" visibility="protected"
  50877. deprecated="not deprecated">
  50878. </field>
  50879. <doc>
  50880. <![CDATA[JobInProgress maintains all the info for keeping
  50881. a Job on the straight and narrow. It keeps its JobProfile
  50882. and its latest JobStatus, plus a set of tables for
  50883. doing bookkeeping of its Tasks.
  50884. ***********************************************************]]>
  50885. </doc>
  50886. </class>
  50887. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  50888. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  50889. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  50890. abstract="false"
  50891. static="true" final="true" visibility="public"
  50892. deprecated="not deprecated">
  50893. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  50894. abstract="false" native="false" synchronized="false"
  50895. static="true" final="false" visibility="public"
  50896. deprecated="not deprecated">
  50897. </method>
  50898. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  50899. abstract="false" native="false" synchronized="false"
  50900. static="true" final="false" visibility="public"
  50901. deprecated="not deprecated">
  50902. <param name="name" type="java.lang.String"/>
  50903. </method>
  50904. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50905. transient="false" volatile="false"
  50906. static="true" final="true" visibility="public"
  50907. deprecated="not deprecated">
  50908. </field>
  50909. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50910. transient="false" volatile="false"
  50911. static="true" final="true" visibility="public"
  50912. deprecated="not deprecated">
  50913. </field>
  50914. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50915. transient="false" volatile="false"
  50916. static="true" final="true" visibility="public"
  50917. deprecated="not deprecated">
  50918. </field>
  50919. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50920. transient="false" volatile="false"
  50921. static="true" final="true" visibility="public"
  50922. deprecated="not deprecated">
  50923. </field>
  50924. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50925. transient="false" volatile="false"
  50926. static="true" final="true" visibility="public"
  50927. deprecated="not deprecated">
  50928. </field>
  50929. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50930. transient="false" volatile="false"
  50931. static="true" final="true" visibility="public"
  50932. deprecated="not deprecated">
  50933. </field>
  50934. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50935. transient="false" volatile="false"
  50936. static="true" final="true" visibility="public"
  50937. deprecated="not deprecated">
  50938. </field>
  50939. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50940. transient="false" volatile="false"
  50941. static="true" final="true" visibility="public"
  50942. deprecated="not deprecated">
  50943. </field>
  50944. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50945. transient="false" volatile="false"
  50946. static="true" final="true" visibility="public"
  50947. deprecated="not deprecated">
  50948. </field>
  50949. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50950. transient="false" volatile="false"
  50951. static="true" final="true" visibility="public"
  50952. deprecated="not deprecated">
  50953. </field>
  50954. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50955. transient="false" volatile="false"
  50956. static="true" final="true" visibility="public"
  50957. deprecated="not deprecated">
  50958. </field>
  50959. </class>
  50960. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  50961. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  50962. <class name="JobLocalizer" extends="java.lang.Object"
  50963. abstract="false"
  50964. static="false" final="false" visibility="public"
  50965. deprecated="not deprecated">
  50966. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  50967. static="false" final="false" visibility="public"
  50968. deprecated="not deprecated">
  50969. <exception name="IOException" type="java.io.IOException"/>
  50970. </constructor>
  50971. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  50972. static="false" final="false" visibility="public"
  50973. deprecated="not deprecated">
  50974. <exception name="IOException" type="java.io.IOException"/>
  50975. </constructor>
  50976. <method name="createLocalDirs"
  50977. abstract="false" native="false" synchronized="false"
  50978. static="false" final="false" visibility="public"
  50979. deprecated="not deprecated">
  50980. <exception name="IOException" type="java.io.IOException"/>
  50981. </method>
  50982. <method name="createUserDirs"
  50983. abstract="false" native="false" synchronized="false"
  50984. static="false" final="false" visibility="public"
  50985. deprecated="not deprecated">
  50986. <exception name="IOException" type="java.io.IOException"/>
  50987. <doc>
  50988. <![CDATA[Initialize the local directories for a particular user on this TT. This
  50989. involves creation and setting permissions of the following directories
  50990. <ul>
  50991. <li>$mapred.local.dir/taskTracker/$user</li>
  50992. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  50993. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  50994. </ul>]]>
  50995. </doc>
  50996. </method>
  50997. <method name="createJobDirs"
  50998. abstract="false" native="false" synchronized="false"
  50999. static="false" final="false" visibility="public"
  51000. deprecated="not deprecated">
  51001. <exception name="IOException" type="java.io.IOException"/>
  51002. <doc>
  51003. <![CDATA[Prepare the job directories for a given job. To be called by the job
  51004. localization code, only if the job is not already localized.
  51005. <br>
  51006. Here, we set 700 permissions on the job directories created on all disks.
  51007. This we do so as to avoid any misuse by other users till the time
  51008. {@link TaskController#initializeJob} is run at a
  51009. later time to set proper private permissions on the job directories. <br>]]>
  51010. </doc>
  51011. </method>
  51012. <method name="initializeJobLogDir"
  51013. abstract="false" native="false" synchronized="false"
  51014. static="false" final="false" visibility="public"
  51015. deprecated="not deprecated">
  51016. <exception name="IOException" type="java.io.IOException"/>
  51017. <doc>
  51018. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  51019. </doc>
  51020. </method>
  51021. <method name="downloadPrivateCache" return="long[]"
  51022. abstract="false" native="false" synchronized="false"
  51023. static="true" final="false" visibility="public"
  51024. deprecated="not deprecated">
  51025. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51026. <exception name="IOException" type="java.io.IOException"/>
  51027. <doc>
  51028. <![CDATA[Download the parts of the distributed cache that are private.
  51029. @param conf the job's configuration
  51030. @throws IOException
  51031. @return the size of the archive objects]]>
  51032. </doc>
  51033. </method>
  51034. <method name="localizeJobFiles"
  51035. abstract="false" native="false" synchronized="false"
  51036. static="false" final="false" visibility="public"
  51037. deprecated="not deprecated">
  51038. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  51039. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51040. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51041. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51042. <exception name="IOException" type="java.io.IOException"/>
  51043. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51044. </method>
  51045. <method name="localizeJobFiles"
  51046. abstract="false" native="false" synchronized="false"
  51047. static="false" final="false" visibility="public"
  51048. deprecated="not deprecated">
  51049. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  51050. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51051. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  51052. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51053. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51054. <exception name="IOException" type="java.io.IOException"/>
  51055. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51056. </method>
  51057. <method name="createWorkDir"
  51058. abstract="false" native="false" synchronized="false"
  51059. static="false" final="false" visibility="public"
  51060. deprecated="not deprecated">
  51061. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51062. <exception name="IOException" type="java.io.IOException"/>
  51063. </method>
  51064. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  51065. abstract="false" native="false" synchronized="false"
  51066. static="false" final="false" visibility="public"
  51067. deprecated="not deprecated">
  51068. <exception name="IOException" type="java.io.IOException"/>
  51069. </method>
  51070. <method name="runSetup" return="int"
  51071. abstract="false" native="false" synchronized="false"
  51072. static="false" final="false" visibility="public"
  51073. deprecated="not deprecated">
  51074. <param name="user" type="java.lang.String"/>
  51075. <param name="jobid" type="java.lang.String"/>
  51076. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51077. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51078. <exception name="IOException" type="java.io.IOException"/>
  51079. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51080. </method>
  51081. <method name="main"
  51082. abstract="false" native="false" synchronized="false"
  51083. static="true" final="false" visibility="public"
  51084. deprecated="not deprecated">
  51085. <param name="argv" type="java.lang.String[]"/>
  51086. <exception name="IOException" type="java.io.IOException"/>
  51087. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51088. </method>
  51089. <method name="writeLocalJobFile"
  51090. abstract="false" native="false" synchronized="false"
  51091. static="true" final="false" visibility="public"
  51092. deprecated="not deprecated">
  51093. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  51094. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51095. <exception name="IOException" type="java.io.IOException"/>
  51096. <doc>
  51097. <![CDATA[Write the task specific job-configuration file.
  51098. @throws IOException]]>
  51099. </doc>
  51100. </method>
  51101. <doc>
  51102. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  51103. Creates the following hierarchy:
  51104. <li>$mapred.local.dir/taskTracker/$user</li>
  51105. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  51106. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  51107. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  51108. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  51109. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  51110. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  51111. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  51112. </doc>
  51113. </class>
  51114. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  51115. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  51116. <class name="JobPriority" extends="java.lang.Enum"
  51117. abstract="false"
  51118. static="false" final="true" visibility="public"
  51119. deprecated="not deprecated">
  51120. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  51121. abstract="false" native="false" synchronized="false"
  51122. static="true" final="false" visibility="public"
  51123. deprecated="not deprecated">
  51124. </method>
  51125. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  51126. abstract="false" native="false" synchronized="false"
  51127. static="true" final="false" visibility="public"
  51128. deprecated="not deprecated">
  51129. <param name="name" type="java.lang.String"/>
  51130. </method>
  51131. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  51132. transient="false" volatile="false"
  51133. static="true" final="true" visibility="public"
  51134. deprecated="not deprecated">
  51135. </field>
  51136. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  51137. transient="false" volatile="false"
  51138. static="true" final="true" visibility="public"
  51139. deprecated="not deprecated">
  51140. </field>
  51141. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  51142. transient="false" volatile="false"
  51143. static="true" final="true" visibility="public"
  51144. deprecated="not deprecated">
  51145. </field>
  51146. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  51147. transient="false" volatile="false"
  51148. static="true" final="true" visibility="public"
  51149. deprecated="not deprecated">
  51150. </field>
  51151. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  51152. transient="false" volatile="false"
  51153. static="true" final="true" visibility="public"
  51154. deprecated="not deprecated">
  51155. </field>
  51156. <doc>
  51157. <![CDATA[Used to describe the priority of the running job.]]>
  51158. </doc>
  51159. </class>
  51160. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  51161. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  51162. <class name="JobProfile" extends="java.lang.Object"
  51163. abstract="false"
  51164. static="false" final="false" visibility="public"
  51165. deprecated="not deprecated">
  51166. <implements name="org.apache.hadoop.io.Writable"/>
  51167. <constructor name="JobProfile"
  51168. static="false" final="false" visibility="public"
  51169. deprecated="not deprecated">
  51170. <doc>
  51171. <![CDATA[Construct an empty {@link JobProfile}.]]>
  51172. </doc>
  51173. </constructor>
  51174. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  51175. static="false" final="false" visibility="public"
  51176. deprecated="not deprecated">
  51177. <doc>
  51178. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  51179. job config-file, job-details url and job name.
  51180. @param user userid of the person who submitted the job.
  51181. @param jobid id of the job.
  51182. @param jobFile job configuration file.
  51183. @param url link to the web-ui for details of the job.
  51184. @param name user-specified job name.]]>
  51185. </doc>
  51186. </constructor>
  51187. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  51188. static="false" final="false" visibility="public"
  51189. deprecated="not deprecated">
  51190. <doc>
  51191. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  51192. job config-file, job-details url and job name.
  51193. @param user userid of the person who submitted the job.
  51194. @param jobid id of the job.
  51195. @param jobFile job configuration file.
  51196. @param url link to the web-ui for details of the job.
  51197. @param name user-specified job name.
  51198. @param queueName name of the queue to which the job is submitted]]>
  51199. </doc>
  51200. </constructor>
  51201. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  51202. static="false" final="false" visibility="public"
  51203. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  51204. <doc>
  51205. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  51206. </doc>
  51207. </constructor>
  51208. <method name="getUser" return="java.lang.String"
  51209. abstract="false" native="false" synchronized="false"
  51210. static="false" final="false" visibility="public"
  51211. deprecated="not deprecated">
  51212. <doc>
  51213. <![CDATA[Get the user id.]]>
  51214. </doc>
  51215. </method>
  51216. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51217. abstract="false" native="false" synchronized="false"
  51218. static="false" final="false" visibility="public"
  51219. deprecated="not deprecated">
  51220. <doc>
  51221. <![CDATA[Get the job id.]]>
  51222. </doc>
  51223. </method>
  51224. <method name="getJobId" return="java.lang.String"
  51225. abstract="false" native="false" synchronized="false"
  51226. static="false" final="false" visibility="public"
  51227. deprecated="use getJobID() instead">
  51228. <doc>
  51229. <![CDATA[@deprecated use getJobID() instead]]>
  51230. </doc>
  51231. </method>
  51232. <method name="getJobFile" return="java.lang.String"
  51233. abstract="false" native="false" synchronized="false"
  51234. static="false" final="false" visibility="public"
  51235. deprecated="not deprecated">
  51236. <doc>
  51237. <![CDATA[Get the configuration file for the job.]]>
  51238. </doc>
  51239. </method>
  51240. <method name="getURL" return="java.net.URL"
  51241. abstract="false" native="false" synchronized="false"
  51242. static="false" final="false" visibility="public"
  51243. deprecated="not deprecated">
  51244. <doc>
  51245. <![CDATA[Get the link to the web-ui for details of the job.]]>
  51246. </doc>
  51247. </method>
  51248. <method name="getJobName" return="java.lang.String"
  51249. abstract="false" native="false" synchronized="false"
  51250. static="false" final="false" visibility="public"
  51251. deprecated="not deprecated">
  51252. <doc>
  51253. <![CDATA[Get the user-specified job name.]]>
  51254. </doc>
  51255. </method>
  51256. <method name="getQueueName" return="java.lang.String"
  51257. abstract="false" native="false" synchronized="false"
  51258. static="false" final="false" visibility="public"
  51259. deprecated="not deprecated">
  51260. <doc>
  51261. <![CDATA[Get the name of the queue to which the job is submitted.
  51262. @return name of the queue.]]>
  51263. </doc>
  51264. </method>
  51265. <method name="write"
  51266. abstract="false" native="false" synchronized="false"
  51267. static="false" final="false" visibility="public"
  51268. deprecated="not deprecated">
  51269. <param name="out" type="java.io.DataOutput"/>
  51270. <exception name="IOException" type="java.io.IOException"/>
  51271. </method>
  51272. <method name="readFields"
  51273. abstract="false" native="false" synchronized="false"
  51274. static="false" final="false" visibility="public"
  51275. deprecated="not deprecated">
  51276. <param name="in" type="java.io.DataInput"/>
  51277. <exception name="IOException" type="java.io.IOException"/>
  51278. </method>
  51279. <doc>
  51280. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  51281. whether living or dead.]]>
  51282. </doc>
  51283. </class>
  51284. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  51285. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  51286. <class name="JobQueueInfo" extends="java.lang.Object"
  51287. abstract="false"
  51288. static="false" final="false" visibility="public"
  51289. deprecated="not deprecated">
  51290. <implements name="org.apache.hadoop.io.Writable"/>
  51291. <constructor name="JobQueueInfo"
  51292. static="false" final="false" visibility="public"
  51293. deprecated="not deprecated">
  51294. </constructor>
  51295. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  51296. static="false" final="false" visibility="public"
  51297. deprecated="not deprecated">
  51298. <doc>
  51299. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  51300. scheduling information passed.
  51301. @param queueName Name of the job queue
  51302. @param schedulingInfo Scheduling Information associated with the job
  51303. queue]]>
  51304. </doc>
  51305. </constructor>
  51306. <method name="setQueueName"
  51307. abstract="false" native="false" synchronized="false"
  51308. static="false" final="false" visibility="public"
  51309. deprecated="not deprecated">
  51310. <param name="queueName" type="java.lang.String"/>
  51311. <doc>
  51312. <![CDATA[Set the queue name of the JobQueueInfo
  51313. @param queueName Name of the job queue.]]>
  51314. </doc>
  51315. </method>
  51316. <method name="getQueueName" return="java.lang.String"
  51317. abstract="false" native="false" synchronized="false"
  51318. static="false" final="false" visibility="public"
  51319. deprecated="not deprecated">
  51320. <doc>
  51321. <![CDATA[Get the queue name from JobQueueInfo
  51322. @return queue name]]>
  51323. </doc>
  51324. </method>
  51325. <method name="setSchedulingInfo"
  51326. abstract="false" native="false" synchronized="false"
  51327. static="false" final="false" visibility="public"
  51328. deprecated="not deprecated">
  51329. <param name="schedulingInfo" type="java.lang.String"/>
  51330. <doc>
  51331. <![CDATA[Set the scheduling information associated to particular job queue
  51332. @param schedulingInfo]]>
  51333. </doc>
  51334. </method>
  51335. <method name="getSchedulingInfo" return="java.lang.String"
  51336. abstract="false" native="false" synchronized="false"
  51337. static="false" final="false" visibility="public"
  51338. deprecated="not deprecated">
  51339. <doc>
  51340. <![CDATA[Gets the scheduling information associated to particular job queue.
  51341. If nothing is set would return <b>"N/A"</b>
  51342. @return Scheduling information associated to particular Job Queue]]>
  51343. </doc>
  51344. </method>
  51345. <method name="setQueueState"
  51346. abstract="false" native="false" synchronized="false"
  51347. static="false" final="false" visibility="public"
  51348. deprecated="not deprecated">
  51349. <param name="state" type="java.lang.String"/>
  51350. <doc>
  51351. <![CDATA[Set the state of the queue
  51352. @param state state of the queue.]]>
  51353. </doc>
  51354. </method>
  51355. <method name="getQueueState" return="java.lang.String"
  51356. abstract="false" native="false" synchronized="false"
  51357. static="false" final="false" visibility="public"
  51358. deprecated="not deprecated">
  51359. <doc>
  51360. <![CDATA[Return the queue state
  51361. @return the queue state.]]>
  51362. </doc>
  51363. </method>
  51364. <method name="readFields"
  51365. abstract="false" native="false" synchronized="false"
  51366. static="false" final="false" visibility="public"
  51367. deprecated="not deprecated">
  51368. <param name="in" type="java.io.DataInput"/>
  51369. <exception name="IOException" type="java.io.IOException"/>
  51370. </method>
  51371. <method name="write"
  51372. abstract="false" native="false" synchronized="false"
  51373. static="false" final="false" visibility="public"
  51374. deprecated="not deprecated">
  51375. <param name="out" type="java.io.DataOutput"/>
  51376. <exception name="IOException" type="java.io.IOException"/>
  51377. </method>
  51378. <doc>
  51379. <![CDATA[Class that contains the information regarding the Job Queues which are
  51380. maintained by the Hadoop Map/Reduce framework.]]>
  51381. </doc>
  51382. </class>
  51383. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  51384. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  51385. <class name="JobStatus" extends="java.lang.Object"
  51386. abstract="false"
  51387. static="false" final="false" visibility="public"
  51388. deprecated="not deprecated">
  51389. <implements name="org.apache.hadoop.io.Writable"/>
  51390. <implements name="java.lang.Cloneable"/>
  51391. <constructor name="JobStatus"
  51392. static="false" final="false" visibility="public"
  51393. deprecated="not deprecated">
  51394. </constructor>
  51395. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  51396. static="false" final="false" visibility="public"
  51397. deprecated="not deprecated">
  51398. <doc>
  51399. <![CDATA[Create a job status object for a given jobid.
  51400. @param jobid The jobid of the job
  51401. @param mapProgress The progress made on the maps
  51402. @param reduceProgress The progress made on the reduces
  51403. @param cleanupProgress The progress made on cleanup
  51404. @param runState The current state of the job]]>
  51405. </doc>
  51406. </constructor>
  51407. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  51408. static="false" final="false" visibility="public"
  51409. deprecated="not deprecated">
  51410. <doc>
  51411. <![CDATA[Create a job status object for a given jobid.
  51412. @param jobid The jobid of the job
  51413. @param mapProgress The progress made on the maps
  51414. @param reduceProgress The progress made on the reduces
  51415. @param runState The current state of the job]]>
  51416. </doc>
  51417. </constructor>
  51418. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  51419. static="false" final="false" visibility="public"
  51420. deprecated="not deprecated">
  51421. <doc>
  51422. <![CDATA[Create a job status object for a given jobid.
  51423. @param jobid The jobid of the job
  51424. @param mapProgress The progress made on the maps
  51425. @param reduceProgress The progress made on the reduces
  51426. @param runState The current state of the job
  51427. @param jp Priority of the job.]]>
  51428. </doc>
  51429. </constructor>
  51430. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  51431. static="false" final="false" visibility="public"
  51432. deprecated="not deprecated">
  51433. <doc>
  51434. <![CDATA[Create a job status object for a given jobid.
  51435. @param jobid The jobid of the job
  51436. @param setupProgress The progress made on the setup
  51437. @param mapProgress The progress made on the maps
  51438. @param reduceProgress The progress made on the reduces
  51439. @param cleanupProgress The progress made on the cleanup
  51440. @param runState The current state of the job
  51441. @param jp Priority of the job.]]>
  51442. </doc>
  51443. </constructor>
  51444. <method name="getJobRunState" return="java.lang.String"
  51445. abstract="false" native="false" synchronized="false"
  51446. static="true" final="false" visibility="public"
  51447. deprecated="not deprecated">
  51448. <param name="state" type="int"/>
  51449. <doc>
  51450. <![CDATA[Helper method to get human-readable state of the job.
  51451. @param state job state
  51452. @return human-readable state of the job]]>
  51453. </doc>
  51454. </method>
  51455. <method name="getJobId" return="java.lang.String"
  51456. abstract="false" native="false" synchronized="false"
  51457. static="false" final="false" visibility="public"
  51458. deprecated="use getJobID instead">
  51459. <doc>
  51460. <![CDATA[@deprecated use getJobID instead]]>
  51461. </doc>
  51462. </method>
  51463. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51464. abstract="false" native="false" synchronized="false"
  51465. static="false" final="false" visibility="public"
  51466. deprecated="not deprecated">
  51467. <doc>
  51468. <![CDATA[@return The jobid of the Job]]>
  51469. </doc>
  51470. </method>
  51471. <method name="mapProgress" return="float"
  51472. abstract="false" native="false" synchronized="true"
  51473. static="false" final="false" visibility="public"
  51474. deprecated="not deprecated">
  51475. <doc>
  51476. <![CDATA[@return Percentage of progress in maps]]>
  51477. </doc>
  51478. </method>
  51479. <method name="setJobACLs"
  51480. abstract="false" native="false" synchronized="true"
  51481. static="false" final="false" visibility="protected"
  51482. deprecated="not deprecated">
  51483. <param name="acls" type="java.util.Map"/>
  51484. <doc>
  51485. <![CDATA[Set the job acls
  51486. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  51487. </doc>
  51488. </method>
  51489. <method name="cleanupProgress" return="float"
  51490. abstract="false" native="false" synchronized="true"
  51491. static="false" final="false" visibility="public"
  51492. deprecated="not deprecated">
  51493. <doc>
  51494. <![CDATA[@return Percentage of progress in cleanup]]>
  51495. </doc>
  51496. </method>
  51497. <method name="setupProgress" return="float"
  51498. abstract="false" native="false" synchronized="true"
  51499. static="false" final="false" visibility="public"
  51500. deprecated="not deprecated">
  51501. <doc>
  51502. <![CDATA[@return Percentage of progress in setup]]>
  51503. </doc>
  51504. </method>
  51505. <method name="reduceProgress" return="float"
  51506. abstract="false" native="false" synchronized="true"
  51507. static="false" final="false" visibility="public"
  51508. deprecated="not deprecated">
  51509. <doc>
  51510. <![CDATA[@return Percentage of progress in reduce]]>
  51511. </doc>
  51512. </method>
  51513. <method name="getRunState" return="int"
  51514. abstract="false" native="false" synchronized="true"
  51515. static="false" final="false" visibility="public"
  51516. deprecated="not deprecated">
  51517. <doc>
  51518. <![CDATA[@return running state of the job]]>
  51519. </doc>
  51520. </method>
  51521. <method name="setRunState"
  51522. abstract="false" native="false" synchronized="true"
  51523. static="false" final="false" visibility="public"
  51524. deprecated="not deprecated">
  51525. <param name="state" type="int"/>
  51526. <doc>
  51527. <![CDATA[Change the current run state of the job.]]>
  51528. </doc>
  51529. </method>
  51530. <method name="getStartTime" return="long"
  51531. abstract="false" native="false" synchronized="true"
  51532. static="false" final="false" visibility="public"
  51533. deprecated="not deprecated">
  51534. <doc>
  51535. <![CDATA[@return start time of the job]]>
  51536. </doc>
  51537. </method>
  51538. <method name="clone" return="java.lang.Object"
  51539. abstract="false" native="false" synchronized="false"
  51540. static="false" final="false" visibility="public"
  51541. deprecated="not deprecated">
  51542. </method>
  51543. <method name="getUsername" return="java.lang.String"
  51544. abstract="false" native="false" synchronized="true"
  51545. static="false" final="false" visibility="public"
  51546. deprecated="not deprecated">
  51547. <doc>
  51548. <![CDATA[@return the username of the job]]>
  51549. </doc>
  51550. </method>
  51551. <method name="getSchedulingInfo" return="java.lang.String"
  51552. abstract="false" native="false" synchronized="true"
  51553. static="false" final="false" visibility="public"
  51554. deprecated="not deprecated">
  51555. <doc>
  51556. <![CDATA[Gets the Scheduling information associated to a particular Job.
  51557. @return the scheduling information of the job]]>
  51558. </doc>
  51559. </method>
  51560. <method name="getFailureInfo" return="java.lang.String"
  51561. abstract="false" native="false" synchronized="true"
  51562. static="false" final="false" visibility="public"
  51563. deprecated="not deprecated">
  51564. <doc>
  51565. <![CDATA[gets any available info on the reason of failure of the job.
  51566. @return diagnostic information on why a job might have failed.]]>
  51567. </doc>
  51568. </method>
  51569. <method name="setFailureInfo"
  51570. abstract="false" native="false" synchronized="true"
  51571. static="false" final="false" visibility="public"
  51572. deprecated="not deprecated">
  51573. <param name="failureInfo" type="java.lang.String"/>
  51574. <doc>
  51575. <![CDATA[set the reason for failuire of this job
  51576. @param failureInfo the reason for failure of this job.]]>
  51577. </doc>
  51578. </method>
  51579. <method name="setSchedulingInfo"
  51580. abstract="false" native="false" synchronized="true"
  51581. static="false" final="false" visibility="public"
  51582. deprecated="not deprecated">
  51583. <param name="schedulingInfo" type="java.lang.String"/>
  51584. <doc>
  51585. <![CDATA[Used to set the scheduling information associated to a particular Job.
  51586. @param schedulingInfo Scheduling information of the job]]>
  51587. </doc>
  51588. </method>
  51589. <method name="getJobACLs" return="java.util.Map"
  51590. abstract="false" native="false" synchronized="true"
  51591. static="false" final="false" visibility="public"
  51592. deprecated="not deprecated">
  51593. <doc>
  51594. <![CDATA[Get the acls for Job.
  51595. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  51596. </doc>
  51597. </method>
  51598. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  51599. abstract="false" native="false" synchronized="true"
  51600. static="false" final="false" visibility="public"
  51601. deprecated="not deprecated">
  51602. <doc>
  51603. <![CDATA[Return the priority of the job
  51604. @return job priority]]>
  51605. </doc>
  51606. </method>
  51607. <method name="setJobPriority"
  51608. abstract="false" native="false" synchronized="true"
  51609. static="false" final="false" visibility="public"
  51610. deprecated="not deprecated">
  51611. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  51612. <doc>
  51613. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  51614. @param jp new job priority]]>
  51615. </doc>
  51616. </method>
  51617. <method name="isJobComplete" return="boolean"
  51618. abstract="false" native="false" synchronized="true"
  51619. static="false" final="false" visibility="public"
  51620. deprecated="not deprecated">
  51621. <doc>
  51622. <![CDATA[Returns true if the status is for a completed job.]]>
  51623. </doc>
  51624. </method>
  51625. <method name="write"
  51626. abstract="false" native="false" synchronized="true"
  51627. static="false" final="false" visibility="public"
  51628. deprecated="not deprecated">
  51629. <param name="out" type="java.io.DataOutput"/>
  51630. <exception name="IOException" type="java.io.IOException"/>
  51631. </method>
  51632. <method name="readFields"
  51633. abstract="false" native="false" synchronized="true"
  51634. static="false" final="false" visibility="public"
  51635. deprecated="not deprecated">
  51636. <param name="in" type="java.io.DataInput"/>
  51637. <exception name="IOException" type="java.io.IOException"/>
  51638. </method>
  51639. <field name="RUNNING" type="int"
  51640. transient="false" volatile="false"
  51641. static="true" final="true" visibility="public"
  51642. deprecated="not deprecated">
  51643. </field>
  51644. <field name="SUCCEEDED" type="int"
  51645. transient="false" volatile="false"
  51646. static="true" final="true" visibility="public"
  51647. deprecated="not deprecated">
  51648. </field>
  51649. <field name="FAILED" type="int"
  51650. transient="false" volatile="false"
  51651. static="true" final="true" visibility="public"
  51652. deprecated="not deprecated">
  51653. </field>
  51654. <field name="PREP" type="int"
  51655. transient="false" volatile="false"
  51656. static="true" final="true" visibility="public"
  51657. deprecated="not deprecated">
  51658. </field>
  51659. <field name="KILLED" type="int"
  51660. transient="false" volatile="false"
  51661. static="true" final="true" visibility="public"
  51662. deprecated="not deprecated">
  51663. </field>
  51664. <doc>
  51665. <![CDATA[Describes the current status of a job.
  51666. @see JobProfile for some more information.]]>
  51667. </doc>
  51668. </class>
  51669. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  51670. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  51671. <class name="JobTracker" extends="java.lang.Object"
  51672. abstract="false"
  51673. static="false" final="false" visibility="public"
  51674. deprecated="not deprecated">
  51675. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  51676. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  51677. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  51678. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  51679. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  51680. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  51681. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  51682. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  51683. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  51684. abstract="false" native="false" synchronized="false"
  51685. static="false" final="false" visibility="public"
  51686. deprecated="not deprecated">
  51687. </method>
  51688. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51689. abstract="false" native="false" synchronized="false"
  51690. static="true" final="false" visibility="public"
  51691. deprecated="not deprecated">
  51692. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51693. <exception name="IOException" type="java.io.IOException"/>
  51694. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51695. <doc>
  51696. <![CDATA[Start the JobTracker with given configuration.
  51697. The conf will be modified to reflect the actual ports on which
  51698. the JobTracker is up and running if the user passes the port as
  51699. <code>zero</code>.
  51700. @param conf configuration for the JobTracker.
  51701. @throws IOException]]>
  51702. </doc>
  51703. </method>
  51704. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51705. abstract="false" native="false" synchronized="false"
  51706. static="true" final="false" visibility="public"
  51707. deprecated="not deprecated">
  51708. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51709. <param name="identifier" type="java.lang.String"/>
  51710. <exception name="IOException" type="java.io.IOException"/>
  51711. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51712. </method>
  51713. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51714. abstract="false" native="false" synchronized="false"
  51715. static="true" final="false" visibility="public"
  51716. deprecated="not deprecated">
  51717. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51718. <param name="identifier" type="java.lang.String"/>
  51719. <param name="initialize" type="boolean"/>
  51720. <exception name="IOException" type="java.io.IOException"/>
  51721. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51722. </method>
  51723. <method name="stopTracker"
  51724. abstract="false" native="false" synchronized="false"
  51725. static="false" final="false" visibility="public"
  51726. deprecated="not deprecated">
  51727. <exception name="IOException" type="java.io.IOException"/>
  51728. </method>
  51729. <method name="getProtocolVersion" return="long"
  51730. abstract="false" native="false" synchronized="false"
  51731. static="false" final="false" visibility="public"
  51732. deprecated="not deprecated">
  51733. <param name="protocol" type="java.lang.String"/>
  51734. <param name="clientVersion" type="long"/>
  51735. <exception name="IOException" type="java.io.IOException"/>
  51736. </method>
  51737. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  51738. abstract="false" native="false" synchronized="false"
  51739. static="false" final="false" visibility="public"
  51740. deprecated="not deprecated">
  51741. </method>
  51742. <method name="hasRestarted" return="boolean"
  51743. abstract="false" native="false" synchronized="false"
  51744. static="false" final="false" visibility="public"
  51745. deprecated="not deprecated">
  51746. <doc>
  51747. <![CDATA[Whether the JT has restarted]]>
  51748. </doc>
  51749. </method>
  51750. <method name="hasRecovered" return="boolean"
  51751. abstract="false" native="false" synchronized="false"
  51752. static="false" final="false" visibility="public"
  51753. deprecated="not deprecated">
  51754. <doc>
  51755. <![CDATA[Whether the JT has recovered upon restart]]>
  51756. </doc>
  51757. </method>
  51758. <method name="getRecoveryDuration" return="long"
  51759. abstract="false" native="false" synchronized="false"
  51760. static="false" final="false" visibility="public"
  51761. deprecated="not deprecated">
  51762. <doc>
  51763. <![CDATA[How long the jobtracker took to recover from restart.]]>
  51764. </doc>
  51765. </method>
  51766. <method name="getAddress" return="java.net.InetSocketAddress"
  51767. abstract="false" native="false" synchronized="false"
  51768. static="true" final="false" visibility="public"
  51769. deprecated="not deprecated">
  51770. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51771. </method>
  51772. <method name="offerService"
  51773. abstract="false" native="false" synchronized="false"
  51774. static="false" final="false" visibility="public"
  51775. deprecated="not deprecated">
  51776. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51777. <exception name="IOException" type="java.io.IOException"/>
  51778. <doc>
  51779. <![CDATA[Run forever]]>
  51780. </doc>
  51781. </method>
  51782. <method name="getTotalSubmissions" return="int"
  51783. abstract="false" native="false" synchronized="false"
  51784. static="false" final="false" visibility="public"
  51785. deprecated="not deprecated">
  51786. </method>
  51787. <method name="getJobTrackerMachine" return="java.lang.String"
  51788. abstract="false" native="false" synchronized="false"
  51789. static="false" final="false" visibility="public"
  51790. deprecated="not deprecated">
  51791. </method>
  51792. <method name="getTrackerIdentifier" return="java.lang.String"
  51793. abstract="false" native="false" synchronized="false"
  51794. static="false" final="false" visibility="public"
  51795. deprecated="not deprecated">
  51796. <doc>
  51797. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  51798. @return a string with a unique identifier]]>
  51799. </doc>
  51800. </method>
  51801. <method name="getTrackerPort" return="int"
  51802. abstract="false" native="false" synchronized="false"
  51803. static="false" final="false" visibility="public"
  51804. deprecated="not deprecated">
  51805. </method>
  51806. <method name="getInfoPort" return="int"
  51807. abstract="false" native="false" synchronized="false"
  51808. static="false" final="false" visibility="public"
  51809. deprecated="not deprecated">
  51810. </method>
  51811. <method name="getStartTime" return="long"
  51812. abstract="false" native="false" synchronized="false"
  51813. static="false" final="false" visibility="public"
  51814. deprecated="not deprecated">
  51815. </method>
  51816. <method name="runningJobs" return="java.util.Vector"
  51817. abstract="false" native="false" synchronized="false"
  51818. static="false" final="false" visibility="public"
  51819. deprecated="not deprecated">
  51820. </method>
  51821. <method name="getRunningJobs" return="java.util.List"
  51822. abstract="false" native="false" synchronized="true"
  51823. static="false" final="false" visibility="public"
  51824. deprecated="not deprecated">
  51825. <doc>
  51826. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  51827. careful to synchronize.]]>
  51828. </doc>
  51829. </method>
  51830. <method name="failedJobs" return="java.util.Vector"
  51831. abstract="false" native="false" synchronized="false"
  51832. static="false" final="false" visibility="public"
  51833. deprecated="not deprecated">
  51834. </method>
  51835. <method name="completedJobs" return="java.util.Vector"
  51836. abstract="false" native="false" synchronized="false"
  51837. static="false" final="false" visibility="public"
  51838. deprecated="not deprecated">
  51839. </method>
  51840. <method name="taskTrackers" return="java.util.Collection"
  51841. abstract="false" native="false" synchronized="true"
  51842. static="false" final="false" visibility="public"
  51843. deprecated="not deprecated">
  51844. <doc>
  51845. <![CDATA[Get all the task trackers in the cluster
  51846. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  51847. </doc>
  51848. </method>
  51849. <method name="activeTaskTrackers" return="java.util.Collection"
  51850. abstract="false" native="false" synchronized="true"
  51851. static="false" final="false" visibility="public"
  51852. deprecated="not deprecated">
  51853. <doc>
  51854. <![CDATA[Get the active task tracker statuses in the cluster
  51855. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  51856. </doc>
  51857. </method>
  51858. <method name="taskTrackerNames" return="java.util.List"
  51859. abstract="false" native="false" synchronized="true"
  51860. static="false" final="false" visibility="public"
  51861. deprecated="not deprecated">
  51862. <doc>
  51863. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  51864. cluster. The first element in the returned list contains the list of
  51865. active tracker names; the second element in the returned list contains
  51866. the list of blacklisted tracker names; and the third contains the list
  51867. of graylisted tracker names. Note that the blacklist is disjoint
  51868. from the active list, but the graylist is not: initially, graylisted
  51869. trackers are still active and therefore will appear in both lists.
  51870. (Graylisted trackers can later be blacklisted, in which case they'll
  51871. be removed from the active list and added to the blacklist, but they
  51872. remain on the graylist in this case. Blacklisting comes about via the
  51873. health-check script, while graylisting is heuristically based on the
  51874. number of per-job blacklistings in a specified time interval.)]]>
  51875. </doc>
  51876. </method>
  51877. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  51878. abstract="false" native="false" synchronized="false"
  51879. static="false" final="false" visibility="public"
  51880. deprecated="not deprecated">
  51881. <doc>
  51882. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  51883. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  51884. </doc>
  51885. </method>
  51886. <method name="graylistedTaskTrackers" return="java.util.Collection"
  51887. abstract="false" native="false" synchronized="false"
  51888. static="false" final="false" visibility="public"
  51889. deprecated="not deprecated">
  51890. <doc>
  51891. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  51892. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  51893. </doc>
  51894. </method>
  51895. <method name="isBlacklisted" return="boolean"
  51896. abstract="false" native="false" synchronized="true"
  51897. static="false" final="false" visibility="public"
  51898. deprecated="not deprecated">
  51899. <param name="trackerID" type="java.lang.String"/>
  51900. <doc>
  51901. <![CDATA[Whether the tracker is blacklisted or not
  51902. @param trackerID
  51903. @return true if blacklisted, false otherwise]]>
  51904. </doc>
  51905. </method>
  51906. <method name="isGraylisted" return="boolean"
  51907. abstract="false" native="false" synchronized="true"
  51908. static="false" final="false" visibility="public"
  51909. deprecated="not deprecated">
  51910. <param name="trackerID" type="java.lang.String"/>
  51911. <doc>
  51912. <![CDATA[Whether the tracker is graylisted or not
  51913. @param trackerID
  51914. @return true if graylisted, false otherwise]]>
  51915. </doc>
  51916. </method>
  51917. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  51918. abstract="false" native="false" synchronized="true"
  51919. static="false" final="false" visibility="public"
  51920. deprecated="not deprecated">
  51921. <param name="trackerID" type="java.lang.String"/>
  51922. </method>
  51923. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  51924. abstract="false" native="false" synchronized="true"
  51925. static="false" final="false" visibility="public"
  51926. deprecated="not deprecated">
  51927. <param name="trackerID" type="java.lang.String"/>
  51928. </method>
  51929. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  51930. abstract="false" native="false" synchronized="false"
  51931. static="false" final="false" visibility="public"
  51932. deprecated="not deprecated">
  51933. <param name="name" type="java.lang.String"/>
  51934. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  51935. </method>
  51936. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  51937. abstract="false" native="false" synchronized="false"
  51938. static="false" final="false" visibility="public"
  51939. deprecated="not deprecated">
  51940. <doc>
  51941. <![CDATA[Returns a collection of nodes at the max level]]>
  51942. </doc>
  51943. </method>
  51944. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  51945. abstract="false" native="false" synchronized="false"
  51946. static="true" final="false" visibility="public"
  51947. deprecated="not deprecated">
  51948. <param name="node" type="org.apache.hadoop.net.Node"/>
  51949. <param name="level" type="int"/>
  51950. </method>
  51951. <method name="getNode" return="org.apache.hadoop.net.Node"
  51952. abstract="false" native="false" synchronized="false"
  51953. static="false" final="false" visibility="public"
  51954. deprecated="not deprecated">
  51955. <param name="name" type="java.lang.String"/>
  51956. <doc>
  51957. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  51958. </doc>
  51959. </method>
  51960. <method name="getNumTaskCacheLevels" return="int"
  51961. abstract="false" native="false" synchronized="false"
  51962. static="false" final="false" visibility="public"
  51963. deprecated="not deprecated">
  51964. </method>
  51965. <method name="getNumResolvedTaskTrackers" return="int"
  51966. abstract="false" native="false" synchronized="false"
  51967. static="false" final="false" visibility="public"
  51968. deprecated="not deprecated">
  51969. </method>
  51970. <method name="getNumberOfUniqueHosts" return="int"
  51971. abstract="false" native="false" synchronized="false"
  51972. static="false" final="false" visibility="public"
  51973. deprecated="not deprecated">
  51974. </method>
  51975. <method name="addJobInProgressListener"
  51976. abstract="false" native="false" synchronized="false"
  51977. static="false" final="false" visibility="public"
  51978. deprecated="not deprecated">
  51979. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  51980. </method>
  51981. <method name="removeJobInProgressListener"
  51982. abstract="false" native="false" synchronized="false"
  51983. static="false" final="false" visibility="public"
  51984. deprecated="not deprecated">
  51985. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  51986. </method>
  51987. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  51988. abstract="false" native="false" synchronized="false"
  51989. static="false" final="false" visibility="public"
  51990. deprecated="not deprecated">
  51991. <doc>
  51992. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  51993. </doc>
  51994. </method>
  51995. <method name="getVIVersion" return="java.lang.String"
  51996. abstract="false" native="false" synchronized="false"
  51997. static="false" final="false" visibility="public"
  51998. deprecated="not deprecated">
  51999. <exception name="IOException" type="java.io.IOException"/>
  52000. </method>
  52001. <method name="getBuildVersion" return="java.lang.String"
  52002. abstract="false" native="false" synchronized="false"
  52003. static="false" final="false" visibility="public"
  52004. deprecated="not deprecated">
  52005. <exception name="IOException" type="java.io.IOException"/>
  52006. </method>
  52007. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  52008. abstract="false" native="false" synchronized="true"
  52009. static="false" final="false" visibility="public"
  52010. deprecated="not deprecated">
  52011. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  52012. <param name="restarted" type="boolean"/>
  52013. <param name="initialContact" type="boolean"/>
  52014. <param name="acceptNewTasks" type="boolean"/>
  52015. <param name="responseId" type="short"/>
  52016. <exception name="IOException" type="java.io.IOException"/>
  52017. <doc>
  52018. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  52019. the {@link JobTracker}.
  52020. The {@link JobTracker} processes the status information sent by the
  52021. {@link TaskTracker} and responds with instructions to start/stop
  52022. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  52023. </doc>
  52024. </method>
  52025. <method name="getNextHeartbeatInterval" return="int"
  52026. abstract="false" native="false" synchronized="false"
  52027. static="false" final="false" visibility="public"
  52028. deprecated="not deprecated">
  52029. <doc>
  52030. <![CDATA[Calculates next heartbeat interval using cluster size.
  52031. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  52032. @return next heartbeat interval.]]>
  52033. </doc>
  52034. </method>
  52035. <method name="getFilesystemName" return="java.lang.String"
  52036. abstract="false" native="false" synchronized="true"
  52037. static="false" final="false" visibility="public"
  52038. deprecated="not deprecated">
  52039. <exception name="IOException" type="java.io.IOException"/>
  52040. <doc>
  52041. <![CDATA[Grab the local fs name]]>
  52042. </doc>
  52043. </method>
  52044. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  52045. abstract="false" native="false" synchronized="false"
  52046. static="false" final="false" visibility="public"
  52047. deprecated="not deprecated">
  52048. <doc>
  52049. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  52050. </doc>
  52051. </method>
  52052. <method name="reportTaskTrackerError"
  52053. abstract="false" native="false" synchronized="false"
  52054. static="false" final="false" visibility="public"
  52055. deprecated="not deprecated">
  52056. <param name="taskTracker" type="java.lang.String"/>
  52057. <param name="errorClass" type="java.lang.String"/>
  52058. <param name="errorMessage" type="java.lang.String"/>
  52059. <exception name="IOException" type="java.io.IOException"/>
  52060. </method>
  52061. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  52062. abstract="false" native="false" synchronized="true"
  52063. static="false" final="false" visibility="public"
  52064. deprecated="not deprecated">
  52065. <exception name="IOException" type="java.io.IOException"/>
  52066. <doc>
  52067. <![CDATA[Allocates a new JobId string.]]>
  52068. </doc>
  52069. </method>
  52070. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  52071. abstract="false" native="false" synchronized="false"
  52072. static="false" final="false" visibility="public"
  52073. deprecated="not deprecated">
  52074. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52075. <param name="jobSubmitDir" type="java.lang.String"/>
  52076. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  52077. <exception name="IOException" type="java.io.IOException"/>
  52078. <doc>
  52079. <![CDATA[JobTracker.submitJob() kicks off a new job.
  52080. Create a 'JobInProgress' object, which contains both JobProfile
  52081. and JobStatus. Those two sub-objects are sometimes shipped outside
  52082. of the JobTracker. But JobInProgress adds info that's useful for
  52083. the JobTracker alone.]]>
  52084. </doc>
  52085. </method>
  52086. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  52087. abstract="false" native="false" synchronized="false"
  52088. static="false" final="false" visibility="public"
  52089. deprecated="not deprecated">
  52090. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52091. <param name="jobSubmitDir" type="java.lang.String"/>
  52092. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  52093. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  52094. <param name="recovered" type="boolean"/>
  52095. <exception name="IOException" type="java.io.IOException"/>
  52096. <doc>
  52097. <![CDATA[JobTracker.submitJob() kicks off a new job.
  52098. Create a 'JobInProgress' object, which contains both JobProfile and
  52099. JobStatus. Those two sub-objects are sometimes shipped outside of the
  52100. JobTracker. But JobInProgress adds info that's useful for the JobTracker
  52101. alone.]]>
  52102. </doc>
  52103. </method>
  52104. <method name="getStagingAreaDir" return="java.lang.String"
  52105. abstract="false" native="false" synchronized="false"
  52106. static="false" final="false" visibility="public"
  52107. deprecated="not deprecated">
  52108. <exception name="IOException" type="java.io.IOException"/>
  52109. <doc>
  52110. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  52111. </doc>
  52112. </method>
  52113. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  52114. abstract="false" native="false" synchronized="true"
  52115. static="false" final="false" visibility="public"
  52116. deprecated="use {@link #getClusterStatus(boolean)}">
  52117. <doc>
  52118. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  52119. </doc>
  52120. </method>
  52121. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  52122. abstract="false" native="false" synchronized="true"
  52123. static="false" final="false" visibility="public"
  52124. deprecated="not deprecated">
  52125. <param name="detailed" type="boolean"/>
  52126. </method>
  52127. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  52128. abstract="false" native="false" synchronized="true"
  52129. static="false" final="false" visibility="public"
  52130. deprecated="not deprecated">
  52131. </method>
  52132. <method name="killJob"
  52133. abstract="false" native="false" synchronized="true"
  52134. static="false" final="false" visibility="public"
  52135. deprecated="not deprecated">
  52136. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52137. <exception name="IOException" type="java.io.IOException"/>
  52138. <doc>
  52139. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  52140. </doc>
  52141. </method>
  52142. <method name="cancelDelegationToken"
  52143. abstract="false" native="false" synchronized="false"
  52144. static="false" final="false" visibility="public"
  52145. deprecated="not deprecated">
  52146. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  52147. <exception name="IOException" type="java.io.IOException"/>
  52148. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52149. <doc>
  52150. <![CDATA[Discard a current delegation token.]]>
  52151. </doc>
  52152. </method>
  52153. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  52154. abstract="false" native="false" synchronized="false"
  52155. static="false" final="false" visibility="public"
  52156. deprecated="not deprecated">
  52157. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  52158. <exception name="IOException" type="java.io.IOException"/>
  52159. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52160. <doc>
  52161. <![CDATA[Get a new delegation token.]]>
  52162. </doc>
  52163. </method>
  52164. <method name="renewDelegationToken" return="long"
  52165. abstract="false" native="false" synchronized="false"
  52166. static="false" final="false" visibility="public"
  52167. deprecated="not deprecated">
  52168. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  52169. <exception name="IOException" type="java.io.IOException"/>
  52170. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52171. <doc>
  52172. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  52173. </doc>
  52174. </method>
  52175. <method name="initJob"
  52176. abstract="false" native="false" synchronized="false"
  52177. static="false" final="false" visibility="public"
  52178. deprecated="not deprecated">
  52179. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  52180. </method>
  52181. <method name="failJob"
  52182. abstract="false" native="false" synchronized="true"
  52183. static="false" final="false" visibility="public"
  52184. deprecated="not deprecated">
  52185. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  52186. <doc>
  52187. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  52188. should use this to fail a job.]]>
  52189. </doc>
  52190. </method>
  52191. <method name="setJobPriority"
  52192. abstract="false" native="false" synchronized="true"
  52193. static="false" final="false" visibility="public"
  52194. deprecated="not deprecated">
  52195. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52196. <param name="priority" type="java.lang.String"/>
  52197. <exception name="IOException" type="java.io.IOException"/>
  52198. </method>
  52199. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  52200. abstract="false" native="false" synchronized="false"
  52201. static="false" final="false" visibility="public"
  52202. deprecated="not deprecated">
  52203. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52204. </method>
  52205. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  52206. abstract="false" native="false" synchronized="false"
  52207. static="false" final="false" visibility="public"
  52208. deprecated="not deprecated">
  52209. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52210. </method>
  52211. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  52212. abstract="false" native="false" synchronized="false"
  52213. static="false" final="false" visibility="public"
  52214. deprecated="not deprecated">
  52215. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52216. <exception name="IOException" type="java.io.IOException"/>
  52217. </method>
  52218. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52219. abstract="false" native="false" synchronized="true"
  52220. static="false" final="false" visibility="public"
  52221. deprecated="not deprecated">
  52222. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52223. <exception name="IOException" type="java.io.IOException"/>
  52224. </method>
  52225. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52226. abstract="false" native="false" synchronized="true"
  52227. static="false" final="false" visibility="public"
  52228. deprecated="not deprecated">
  52229. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52230. <exception name="IOException" type="java.io.IOException"/>
  52231. </method>
  52232. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52233. abstract="false" native="false" synchronized="true"
  52234. static="false" final="false" visibility="public"
  52235. deprecated="not deprecated">
  52236. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52237. <exception name="IOException" type="java.io.IOException"/>
  52238. </method>
  52239. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52240. abstract="false" native="false" synchronized="true"
  52241. static="false" final="false" visibility="public"
  52242. deprecated="not deprecated">
  52243. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52244. <exception name="IOException" type="java.io.IOException"/>
  52245. </method>
  52246. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52247. abstract="false" native="false" synchronized="false"
  52248. static="false" final="false" visibility="public"
  52249. deprecated="not deprecated">
  52250. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52251. <param name="fromEventId" type="int"/>
  52252. <param name="maxEvents" type="int"/>
  52253. <exception name="IOException" type="java.io.IOException"/>
  52254. </method>
  52255. <method name="getTaskDiagnostics" return="java.lang.String[]"
  52256. abstract="false" native="false" synchronized="true"
  52257. static="false" final="false" visibility="public"
  52258. deprecated="not deprecated">
  52259. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52260. <exception name="IOException" type="java.io.IOException"/>
  52261. <doc>
  52262. <![CDATA[Get the diagnostics for a given task
  52263. @param taskId the id of the task
  52264. @return an array of the diagnostic messages]]>
  52265. </doc>
  52266. </method>
  52267. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  52268. abstract="false" native="false" synchronized="false"
  52269. static="false" final="false" visibility="public"
  52270. deprecated="not deprecated">
  52271. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  52272. <doc>
  52273. <![CDATA[Returns specified TaskInProgress, or null.]]>
  52274. </doc>
  52275. </method>
  52276. <method name="killTask" return="boolean"
  52277. abstract="false" native="false" synchronized="true"
  52278. static="false" final="false" visibility="public"
  52279. deprecated="not deprecated">
  52280. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52281. <param name="shouldFail" type="boolean"/>
  52282. <exception name="IOException" type="java.io.IOException"/>
  52283. <doc>
  52284. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  52285. </doc>
  52286. </method>
  52287. <method name="getAssignedTracker" return="java.lang.String"
  52288. abstract="false" native="false" synchronized="true"
  52289. static="false" final="false" visibility="public"
  52290. deprecated="not deprecated">
  52291. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52292. <doc>
  52293. <![CDATA[Get tracker name for a given task id.
  52294. @param taskId the name of the task
  52295. @return The name of the task tracker]]>
  52296. </doc>
  52297. </method>
  52298. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  52299. abstract="false" native="false" synchronized="false"
  52300. static="false" final="false" visibility="public"
  52301. deprecated="not deprecated">
  52302. </method>
  52303. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  52304. abstract="false" native="false" synchronized="false"
  52305. static="false" final="false" visibility="public"
  52306. deprecated="not deprecated">
  52307. <doc>
  52308. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  52309. </doc>
  52310. </method>
  52311. <method name="getSystemDir" return="java.lang.String"
  52312. abstract="false" native="false" synchronized="false"
  52313. static="false" final="false" visibility="public"
  52314. deprecated="not deprecated">
  52315. <doc>
  52316. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  52317. </doc>
  52318. </method>
  52319. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  52320. abstract="false" native="false" synchronized="false"
  52321. static="false" final="false" visibility="public"
  52322. deprecated="not deprecated">
  52323. <param name="queueName" type="java.lang.String"/>
  52324. <exception name="IOException" type="java.io.IOException"/>
  52325. <doc>
  52326. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  52327. </doc>
  52328. </method>
  52329. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  52330. abstract="false" native="false" synchronized="false"
  52331. static="false" final="false" visibility="public"
  52332. deprecated="not deprecated">
  52333. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52334. </method>
  52335. <method name="refreshNodes"
  52336. abstract="false" native="false" synchronized="true"
  52337. static="false" final="false" visibility="public"
  52338. deprecated="not deprecated">
  52339. <exception name="IOException" type="java.io.IOException"/>
  52340. <doc>
  52341. <![CDATA[Rereads the config to get hosts and exclude list file names.
  52342. Rereads the files to update the hosts and exclude lists.]]>
  52343. </doc>
  52344. </method>
  52345. <method name="getLocalJobFilePath" return="java.lang.String"
  52346. abstract="false" native="false" synchronized="false"
  52347. static="true" final="false" visibility="public"
  52348. deprecated="not deprecated">
  52349. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52350. <doc>
  52351. <![CDATA[Get the localized job file path on the job trackers local file system
  52352. @param jobId id of the job
  52353. @return the path of the job conf file on the local file system]]>
  52354. </doc>
  52355. </method>
  52356. <method name="main"
  52357. abstract="false" native="false" synchronized="false"
  52358. static="true" final="false" visibility="public"
  52359. deprecated="not deprecated">
  52360. <param name="argv" type="java.lang.String[]"/>
  52361. <exception name="IOException" type="java.io.IOException"/>
  52362. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52363. <doc>
  52364. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  52365. JobTracker should be run as part of the DFS Namenode process.]]>
  52366. </doc>
  52367. </method>
  52368. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  52369. abstract="false" native="false" synchronized="false"
  52370. static="false" final="false" visibility="public"
  52371. deprecated="not deprecated">
  52372. <exception name="IOException" type="java.io.IOException"/>
  52373. </method>
  52374. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  52375. abstract="false" native="false" synchronized="false"
  52376. static="false" final="false" visibility="public"
  52377. deprecated="not deprecated">
  52378. <param name="queue" type="java.lang.String"/>
  52379. <exception name="IOException" type="java.io.IOException"/>
  52380. </method>
  52381. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  52382. abstract="false" native="false" synchronized="false"
  52383. static="false" final="false" visibility="public"
  52384. deprecated="not deprecated">
  52385. <param name="queue" type="java.lang.String"/>
  52386. <exception name="IOException" type="java.io.IOException"/>
  52387. </method>
  52388. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  52389. abstract="false" native="false" synchronized="false"
  52390. static="false" final="false" visibility="public"
  52391. deprecated="not deprecated">
  52392. <exception name="IOException" type="java.io.IOException"/>
  52393. </method>
  52394. <method name="refreshServiceAcl"
  52395. abstract="false" native="false" synchronized="false"
  52396. static="false" final="false" visibility="public"
  52397. deprecated="not deprecated">
  52398. <exception name="IOException" type="java.io.IOException"/>
  52399. </method>
  52400. <method name="refreshSuperUserGroupsConfiguration"
  52401. abstract="false" native="false" synchronized="false"
  52402. static="false" final="false" visibility="public"
  52403. deprecated="not deprecated">
  52404. </method>
  52405. <method name="refreshUserToGroupsMappings"
  52406. abstract="false" native="false" synchronized="false"
  52407. static="false" final="false" visibility="public"
  52408. deprecated="not deprecated">
  52409. <exception name="IOException" type="java.io.IOException"/>
  52410. </method>
  52411. <method name="refreshQueues"
  52412. abstract="false" native="false" synchronized="false"
  52413. static="false" final="false" visibility="public"
  52414. deprecated="not deprecated">
  52415. <exception name="IOException" type="java.io.IOException"/>
  52416. </method>
  52417. <method name="getReasonsForBlacklisting" return="java.lang.String"
  52418. abstract="false" native="false" synchronized="false"
  52419. static="false" final="false" visibility="public"
  52420. deprecated="not deprecated">
  52421. <param name="host" type="java.lang.String"/>
  52422. </method>
  52423. <method name="getReasonsForGraylisting" return="java.lang.String"
  52424. abstract="false" native="false" synchronized="false"
  52425. static="false" final="false" visibility="public"
  52426. deprecated="not deprecated">
  52427. <param name="host" type="java.lang.String"/>
  52428. </method>
  52429. <method name="getHostname" return="java.lang.String"
  52430. abstract="false" native="false" synchronized="false"
  52431. static="false" final="false" visibility="public"
  52432. deprecated="not deprecated">
  52433. </method>
  52434. <method name="getVersion" return="java.lang.String"
  52435. abstract="false" native="false" synchronized="false"
  52436. static="false" final="false" visibility="public"
  52437. deprecated="not deprecated">
  52438. </method>
  52439. <method name="getConfigVersion" return="java.lang.String"
  52440. abstract="false" native="false" synchronized="false"
  52441. static="false" final="false" visibility="public"
  52442. deprecated="not deprecated">
  52443. </method>
  52444. <method name="getThreadCount" return="int"
  52445. abstract="false" native="false" synchronized="false"
  52446. static="false" final="false" visibility="public"
  52447. deprecated="not deprecated">
  52448. </method>
  52449. <method name="getSummaryJson" return="java.lang.String"
  52450. abstract="false" native="false" synchronized="false"
  52451. static="false" final="false" visibility="public"
  52452. deprecated="not deprecated">
  52453. </method>
  52454. <method name="getAliveNodesInfoJson" return="java.lang.String"
  52455. abstract="false" native="false" synchronized="false"
  52456. static="false" final="false" visibility="public"
  52457. deprecated="not deprecated">
  52458. </method>
  52459. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  52460. abstract="false" native="false" synchronized="false"
  52461. static="false" final="false" visibility="public"
  52462. deprecated="not deprecated">
  52463. </method>
  52464. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  52465. abstract="false" native="false" synchronized="false"
  52466. static="false" final="false" visibility="public"
  52467. deprecated="not deprecated">
  52468. </method>
  52469. <method name="getQueueInfoJson" return="java.lang.String"
  52470. abstract="false" native="false" synchronized="false"
  52471. static="false" final="false" visibility="public"
  52472. deprecated="not deprecated">
  52473. </method>
  52474. <method name="setSafeMode" return="boolean"
  52475. abstract="false" native="false" synchronized="false"
  52476. static="false" final="false" visibility="public"
  52477. deprecated="not deprecated">
  52478. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  52479. <exception name="IOException" type="java.io.IOException"/>
  52480. </method>
  52481. <method name="isInSafeMode" return="boolean"
  52482. abstract="false" native="false" synchronized="false"
  52483. static="false" final="false" visibility="public"
  52484. deprecated="not deprecated">
  52485. </method>
  52486. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  52487. transient="false" volatile="false"
  52488. static="true" final="true" visibility="public"
  52489. deprecated="not deprecated">
  52490. <doc>
  52491. <![CDATA[the config key for max user jobconf size]]>
  52492. </doc>
  52493. </field>
  52494. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  52495. transient="false" volatile="false"
  52496. static="true" final="true" visibility="public"
  52497. deprecated="not deprecated">
  52498. </field>
  52499. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  52500. transient="false" volatile="false"
  52501. static="true" final="true" visibility="public"
  52502. deprecated="not deprecated">
  52503. </field>
  52504. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  52505. transient="false" volatile="false"
  52506. static="true" final="true" visibility="public"
  52507. deprecated="not deprecated">
  52508. </field>
  52509. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  52510. transient="false" volatile="false"
  52511. static="true" final="true" visibility="public"
  52512. deprecated="not deprecated">
  52513. </field>
  52514. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  52515. transient="false" volatile="false"
  52516. static="true" final="true" visibility="public"
  52517. deprecated="not deprecated">
  52518. </field>
  52519. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  52520. transient="false" volatile="false"
  52521. static="true" final="true" visibility="public"
  52522. deprecated="not deprecated">
  52523. </field>
  52524. <field name="LOG" type="org.apache.commons.logging.Log"
  52525. transient="false" volatile="false"
  52526. static="true" final="true" visibility="public"
  52527. deprecated="not deprecated">
  52528. </field>
  52529. <field name="JT_USER_NAME" type="java.lang.String"
  52530. transient="false" volatile="false"
  52531. static="true" final="true" visibility="public"
  52532. deprecated="not deprecated">
  52533. </field>
  52534. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  52535. transient="false" volatile="false"
  52536. static="true" final="true" visibility="public"
  52537. deprecated="not deprecated">
  52538. </field>
  52539. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  52540. transient="false" volatile="false"
  52541. static="true" final="true" visibility="public"
  52542. deprecated="not deprecated">
  52543. </field>
  52544. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  52545. transient="false" volatile="false"
  52546. static="true" final="true" visibility="public"
  52547. deprecated="not deprecated">
  52548. </field>
  52549. <field name="MAPRED_CLUSTER_MAX_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  52550. transient="false" volatile="false"
  52551. static="true" final="true" visibility="public"
  52552. deprecated="not deprecated">
  52553. </field>
  52554. <field name="MAPRED_CLUSTER_MAX_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  52555. transient="false" volatile="false"
  52556. static="true" final="true" visibility="public"
  52557. deprecated="not deprecated">
  52558. </field>
  52559. <doc>
  52560. <![CDATA[JobTracker is the central location for submitting and
  52561. tracking MR jobs in a network environment.]]>
  52562. </doc>
  52563. </class>
  52564. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  52565. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  52566. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  52567. abstract="false"
  52568. static="true" final="false" visibility="public"
  52569. deprecated="not deprecated">
  52570. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  52571. static="false" final="false" visibility="public"
  52572. deprecated="not deprecated">
  52573. </constructor>
  52574. <doc>
  52575. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  52576. </doc>
  52577. </class>
  52578. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  52579. <!-- start class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  52580. <class name="JobTracker.SafeModeAction" extends="java.lang.Enum"
  52581. abstract="false"
  52582. static="true" final="true" visibility="public"
  52583. deprecated="not deprecated">
  52584. <method name="values" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction[]"
  52585. abstract="false" native="false" synchronized="false"
  52586. static="true" final="false" visibility="public"
  52587. deprecated="not deprecated">
  52588. </method>
  52589. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52590. abstract="false" native="false" synchronized="false"
  52591. static="true" final="false" visibility="public"
  52592. deprecated="not deprecated">
  52593. <param name="name" type="java.lang.String"/>
  52594. </method>
  52595. <field name="SAFEMODE_LEAVE" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52596. transient="false" volatile="false"
  52597. static="true" final="true" visibility="public"
  52598. deprecated="not deprecated">
  52599. </field>
  52600. <field name="SAFEMODE_ENTER" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52601. transient="false" volatile="false"
  52602. static="true" final="true" visibility="public"
  52603. deprecated="not deprecated">
  52604. </field>
  52605. <field name="SAFEMODE_GET" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52606. transient="false" volatile="false"
  52607. static="true" final="true" visibility="public"
  52608. deprecated="not deprecated">
  52609. </field>
  52610. <doc>
  52611. <![CDATA[JobTracker SafeMode]]>
  52612. </doc>
  52613. </class>
  52614. <!-- end class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  52615. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  52616. <class name="JobTracker.State" extends="java.lang.Enum"
  52617. abstract="false"
  52618. static="true" final="true" visibility="public"
  52619. deprecated="not deprecated">
  52620. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  52621. abstract="false" native="false" synchronized="false"
  52622. static="true" final="false" visibility="public"
  52623. deprecated="not deprecated">
  52624. </method>
  52625. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  52626. abstract="false" native="false" synchronized="false"
  52627. static="true" final="false" visibility="public"
  52628. deprecated="not deprecated">
  52629. <param name="name" type="java.lang.String"/>
  52630. </method>
  52631. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  52632. transient="false" volatile="false"
  52633. static="true" final="true" visibility="public"
  52634. deprecated="not deprecated">
  52635. </field>
  52636. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  52637. transient="false" volatile="false"
  52638. static="true" final="true" visibility="public"
  52639. deprecated="not deprecated">
  52640. </field>
  52641. </class>
  52642. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  52643. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  52644. <interface name="JobTrackerMXBean" abstract="true"
  52645. static="false" final="false" visibility="public"
  52646. deprecated="not deprecated">
  52647. <method name="getHostname" return="java.lang.String"
  52648. abstract="false" native="false" synchronized="false"
  52649. static="false" final="false" visibility="public"
  52650. deprecated="not deprecated">
  52651. <doc>
  52652. <![CDATA[@return hostname of the jobtracker]]>
  52653. </doc>
  52654. </method>
  52655. <method name="getVersion" return="java.lang.String"
  52656. abstract="false" native="false" synchronized="false"
  52657. static="false" final="false" visibility="public"
  52658. deprecated="not deprecated">
  52659. <doc>
  52660. <![CDATA[@return version of the code base]]>
  52661. </doc>
  52662. </method>
  52663. <method name="getConfigVersion" return="java.lang.String"
  52664. abstract="false" native="false" synchronized="false"
  52665. static="false" final="false" visibility="public"
  52666. deprecated="not deprecated">
  52667. <doc>
  52668. <![CDATA[@return the config version (from a config property)]]>
  52669. </doc>
  52670. </method>
  52671. <method name="getThreadCount" return="int"
  52672. abstract="false" native="false" synchronized="false"
  52673. static="false" final="false" visibility="public"
  52674. deprecated="not deprecated">
  52675. <doc>
  52676. <![CDATA[@return number of threads of the jobtracker jvm]]>
  52677. </doc>
  52678. </method>
  52679. <method name="getSummaryJson" return="java.lang.String"
  52680. abstract="false" native="false" synchronized="false"
  52681. static="false" final="false" visibility="public"
  52682. deprecated="not deprecated">
  52683. <doc>
  52684. <![CDATA[@return the summary info in json]]>
  52685. </doc>
  52686. </method>
  52687. <method name="getAliveNodesInfoJson" return="java.lang.String"
  52688. abstract="false" native="false" synchronized="false"
  52689. static="false" final="false" visibility="public"
  52690. deprecated="not deprecated">
  52691. <doc>
  52692. <![CDATA[@return the alive nodes info in json]]>
  52693. </doc>
  52694. </method>
  52695. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  52696. abstract="false" native="false" synchronized="false"
  52697. static="false" final="false" visibility="public"
  52698. deprecated="not deprecated">
  52699. <doc>
  52700. <![CDATA[@return the blacklisted nodes info in json]]>
  52701. </doc>
  52702. </method>
  52703. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  52704. abstract="false" native="false" synchronized="false"
  52705. static="false" final="false" visibility="public"
  52706. deprecated="not deprecated">
  52707. <doc>
  52708. <![CDATA[@return the graylisted nodes info in json]]>
  52709. </doc>
  52710. </method>
  52711. <method name="getQueueInfoJson" return="java.lang.String"
  52712. abstract="false" native="false" synchronized="false"
  52713. static="false" final="false" visibility="public"
  52714. deprecated="not deprecated">
  52715. <doc>
  52716. <![CDATA[@return the queue info json]]>
  52717. </doc>
  52718. </method>
  52719. <doc>
  52720. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  52721. </doc>
  52722. </interface>
  52723. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  52724. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  52725. <class name="JvmTask" extends="java.lang.Object"
  52726. abstract="false"
  52727. static="false" final="false" visibility="public"
  52728. deprecated="not deprecated">
  52729. <implements name="org.apache.hadoop.io.Writable"/>
  52730. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  52731. static="false" final="false" visibility="public"
  52732. deprecated="not deprecated">
  52733. </constructor>
  52734. <constructor name="JvmTask"
  52735. static="false" final="false" visibility="public"
  52736. deprecated="not deprecated">
  52737. </constructor>
  52738. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  52739. abstract="false" native="false" synchronized="false"
  52740. static="false" final="false" visibility="public"
  52741. deprecated="not deprecated">
  52742. </method>
  52743. <method name="shouldDie" return="boolean"
  52744. abstract="false" native="false" synchronized="false"
  52745. static="false" final="false" visibility="public"
  52746. deprecated="not deprecated">
  52747. </method>
  52748. <method name="write"
  52749. abstract="false" native="false" synchronized="false"
  52750. static="false" final="false" visibility="public"
  52751. deprecated="not deprecated">
  52752. <param name="out" type="java.io.DataOutput"/>
  52753. <exception name="IOException" type="java.io.IOException"/>
  52754. </method>
  52755. <method name="readFields"
  52756. abstract="false" native="false" synchronized="false"
  52757. static="false" final="false" visibility="public"
  52758. deprecated="not deprecated">
  52759. <param name="in" type="java.io.DataInput"/>
  52760. <exception name="IOException" type="java.io.IOException"/>
  52761. </method>
  52762. </class>
  52763. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  52764. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  52765. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  52766. abstract="false"
  52767. static="false" final="false" visibility="public"
  52768. deprecated="not deprecated">
  52769. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52770. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52771. static="false" final="false" visibility="public"
  52772. deprecated="not deprecated">
  52773. <exception name="IOException" type="java.io.IOException"/>
  52774. </constructor>
  52775. <method name="getKeyClass" return="java.lang.Class"
  52776. abstract="false" native="false" synchronized="false"
  52777. static="false" final="false" visibility="public"
  52778. deprecated="not deprecated">
  52779. </method>
  52780. <method name="createKey" return="org.apache.hadoop.io.Text"
  52781. abstract="false" native="false" synchronized="false"
  52782. static="false" final="false" visibility="public"
  52783. deprecated="not deprecated">
  52784. </method>
  52785. <method name="createValue" return="org.apache.hadoop.io.Text"
  52786. abstract="false" native="false" synchronized="false"
  52787. static="false" final="false" visibility="public"
  52788. deprecated="not deprecated">
  52789. </method>
  52790. <method name="findSeparator" return="int"
  52791. abstract="false" native="false" synchronized="false"
  52792. static="true" final="false" visibility="public"
  52793. deprecated="not deprecated">
  52794. <param name="utf" type="byte[]"/>
  52795. <param name="start" type="int"/>
  52796. <param name="length" type="int"/>
  52797. <param name="sep" type="byte"/>
  52798. </method>
  52799. <method name="next" return="boolean"
  52800. abstract="false" native="false" synchronized="true"
  52801. static="false" final="false" visibility="public"
  52802. deprecated="not deprecated">
  52803. <param name="key" type="org.apache.hadoop.io.Text"/>
  52804. <param name="value" type="org.apache.hadoop.io.Text"/>
  52805. <exception name="IOException" type="java.io.IOException"/>
  52806. <doc>
  52807. <![CDATA[Read key/value pair in a line.]]>
  52808. </doc>
  52809. </method>
  52810. <method name="getProgress" return="float"
  52811. abstract="false" native="false" synchronized="false"
  52812. static="false" final="false" visibility="public"
  52813. deprecated="not deprecated">
  52814. <exception name="IOException" type="java.io.IOException"/>
  52815. </method>
  52816. <method name="getPos" return="long"
  52817. abstract="false" native="false" synchronized="true"
  52818. static="false" final="false" visibility="public"
  52819. deprecated="not deprecated">
  52820. <exception name="IOException" type="java.io.IOException"/>
  52821. </method>
  52822. <method name="close"
  52823. abstract="false" native="false" synchronized="true"
  52824. static="false" final="false" visibility="public"
  52825. deprecated="not deprecated">
  52826. <exception name="IOException" type="java.io.IOException"/>
  52827. </method>
  52828. <doc>
  52829. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  52830. separator character. The separator can be specified in config file
  52831. under the attribute name key.value.separator.in.input.line. The default
  52832. separator is the tab character ('\t').]]>
  52833. </doc>
  52834. </class>
  52835. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  52836. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  52837. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  52838. abstract="false"
  52839. static="false" final="false" visibility="public"
  52840. deprecated="not deprecated">
  52841. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52842. <constructor name="KeyValueTextInputFormat"
  52843. static="false" final="false" visibility="public"
  52844. deprecated="not deprecated">
  52845. </constructor>
  52846. <method name="configure"
  52847. abstract="false" native="false" synchronized="false"
  52848. static="false" final="false" visibility="public"
  52849. deprecated="not deprecated">
  52850. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52851. </method>
  52852. <method name="isSplitable" return="boolean"
  52853. abstract="false" native="false" synchronized="false"
  52854. static="false" final="false" visibility="protected"
  52855. deprecated="not deprecated">
  52856. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  52857. <param name="file" type="org.apache.hadoop.fs.Path"/>
  52858. </method>
  52859. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52860. abstract="false" native="false" synchronized="false"
  52861. static="false" final="false" visibility="public"
  52862. deprecated="not deprecated">
  52863. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  52864. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52865. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52866. <exception name="IOException" type="java.io.IOException"/>
  52867. </method>
  52868. <doc>
  52869. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  52870. Either linefeed or carriage-return are used to signal end of line. Each line
  52871. is divided into key and value parts by a separator byte. If no such a byte
  52872. exists, the key will be the entire line and value will be empty.]]>
  52873. </doc>
  52874. </class>
  52875. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  52876. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  52877. <class name="LineRecordReader" extends="java.lang.Object"
  52878. abstract="false"
  52879. static="false" final="false" visibility="public"
  52880. deprecated="not deprecated">
  52881. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52882. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52883. static="false" final="false" visibility="public"
  52884. deprecated="not deprecated">
  52885. <exception name="IOException" type="java.io.IOException"/>
  52886. </constructor>
  52887. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  52888. static="false" final="false" visibility="public"
  52889. deprecated="not deprecated">
  52890. </constructor>
  52891. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  52892. static="false" final="false" visibility="public"
  52893. deprecated="not deprecated">
  52894. <exception name="IOException" type="java.io.IOException"/>
  52895. </constructor>
  52896. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  52897. abstract="false" native="false" synchronized="false"
  52898. static="false" final="false" visibility="public"
  52899. deprecated="not deprecated">
  52900. </method>
  52901. <method name="createValue" return="org.apache.hadoop.io.Text"
  52902. abstract="false" native="false" synchronized="false"
  52903. static="false" final="false" visibility="public"
  52904. deprecated="not deprecated">
  52905. </method>
  52906. <method name="next" return="boolean"
  52907. abstract="false" native="false" synchronized="true"
  52908. static="false" final="false" visibility="public"
  52909. deprecated="not deprecated">
  52910. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  52911. <param name="value" type="org.apache.hadoop.io.Text"/>
  52912. <exception name="IOException" type="java.io.IOException"/>
  52913. <doc>
  52914. <![CDATA[Read a line.]]>
  52915. </doc>
  52916. </method>
  52917. <method name="getProgress" return="float"
  52918. abstract="false" native="false" synchronized="false"
  52919. static="false" final="false" visibility="public"
  52920. deprecated="not deprecated">
  52921. <exception name="IOException" type="java.io.IOException"/>
  52922. <doc>
  52923. <![CDATA[Get the progress within the split]]>
  52924. </doc>
  52925. </method>
  52926. <method name="getPos" return="long"
  52927. abstract="false" native="false" synchronized="true"
  52928. static="false" final="false" visibility="public"
  52929. deprecated="not deprecated">
  52930. <exception name="IOException" type="java.io.IOException"/>
  52931. </method>
  52932. <method name="close"
  52933. abstract="false" native="false" synchronized="true"
  52934. static="false" final="false" visibility="public"
  52935. deprecated="not deprecated">
  52936. <exception name="IOException" type="java.io.IOException"/>
  52937. </method>
  52938. <doc>
  52939. <![CDATA[Treats keys as offset in file and value as line.]]>
  52940. </doc>
  52941. </class>
  52942. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  52943. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  52944. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  52945. abstract="false"
  52946. static="true" final="false" visibility="public"
  52947. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  52948. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  52949. static="false" final="false" visibility="public"
  52950. deprecated="not deprecated">
  52951. <exception name="IOException" type="java.io.IOException"/>
  52952. </constructor>
  52953. <doc>
  52954. <![CDATA[A class that provides a line reader from an input stream.
  52955. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  52956. </doc>
  52957. </class>
  52958. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  52959. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  52960. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  52961. abstract="false"
  52962. static="false" final="false" visibility="public"
  52963. deprecated="not deprecated">
  52964. <constructor name="MapFileOutputFormat"
  52965. static="false" final="false" visibility="public"
  52966. deprecated="not deprecated">
  52967. </constructor>
  52968. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  52969. abstract="false" native="false" synchronized="false"
  52970. static="false" final="false" visibility="public"
  52971. deprecated="not deprecated">
  52972. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52973. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52974. <param name="name" type="java.lang.String"/>
  52975. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  52976. <exception name="IOException" type="java.io.IOException"/>
  52977. </method>
  52978. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  52979. abstract="false" native="false" synchronized="false"
  52980. static="true" final="false" visibility="public"
  52981. deprecated="not deprecated">
  52982. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52983. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  52984. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  52985. <exception name="IOException" type="java.io.IOException"/>
  52986. <doc>
  52987. <![CDATA[Open the output generated by this format.]]>
  52988. </doc>
  52989. </method>
  52990. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  52991. abstract="false" native="false" synchronized="false"
  52992. static="true" final="false" visibility="public"
  52993. deprecated="not deprecated">
  52994. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  52995. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  52996. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  52997. <param name="value" type="org.apache.hadoop.io.Writable"/>
  52998. <exception name="IOException" type="java.io.IOException"/>
  52999. <doc>
  53000. <![CDATA[Get an entry from output generated by this class.]]>
  53001. </doc>
  53002. </method>
  53003. <doc>
  53004. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  53005. </doc>
  53006. </class>
  53007. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  53008. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  53009. <interface name="Mapper" abstract="true"
  53010. static="false" final="false" visibility="public"
  53011. deprecated="not deprecated">
  53012. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53013. <implements name="org.apache.hadoop.io.Closeable"/>
  53014. <method name="map"
  53015. abstract="false" native="false" synchronized="false"
  53016. static="false" final="false" visibility="public"
  53017. deprecated="not deprecated">
  53018. <param name="key" type="java.lang.Object"/>
  53019. <param name="value" type="java.lang.Object"/>
  53020. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53021. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53022. <exception name="IOException" type="java.io.IOException"/>
  53023. <doc>
  53024. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  53025. <p>Output pairs need not be of the same types as input pairs. A given
  53026. input pair may map to zero or many output pairs. Output pairs are
  53027. collected with calls to
  53028. {@link OutputCollector#collect(Object,Object)}.</p>
  53029. <p>Applications can use the {@link Reporter} provided to report progress
  53030. or just indicate that they are alive. In scenarios where the application
  53031. takes an insignificant amount of time to process individual key/value
  53032. pairs, this is crucial since the framework might assume that the task has
  53033. timed-out and kill that task. The other way of avoiding this is to set
  53034. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  53035. mapred.task.timeout</a> to a high-enough value (or even zero for no
  53036. time-outs).</p>
  53037. @param key the input key.
  53038. @param value the input value.
  53039. @param output collects mapped keys and values.
  53040. @param reporter facility to report progress.]]>
  53041. </doc>
  53042. </method>
  53043. <doc>
  53044. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  53045. <p>Maps are the individual tasks which transform input records into a
  53046. intermediate records. The transformed intermediate records need not be of
  53047. the same type as the input records. A given input pair may map to zero or
  53048. many output pairs.</p>
  53049. <p>The Hadoop Map-Reduce framework spawns one map task for each
  53050. {@link InputSplit} generated by the {@link InputFormat} for the job.
  53051. <code>Mapper</code> implementations can access the {@link JobConf} for the
  53052. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  53053. themselves. Similarly they can use the {@link Closeable#close()} method for
  53054. de-initialization.</p>
  53055. <p>The framework then calls
  53056. {@link #map(Object, Object, OutputCollector, Reporter)}
  53057. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  53058. <p>All intermediate values associated with a given output key are
  53059. subsequently grouped by the framework, and passed to a {@link Reducer} to
  53060. determine the final output. Users can control the grouping by specifying
  53061. a <code>Comparator</code> via
  53062. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  53063. <p>The grouped <code>Mapper</code> outputs are partitioned per
  53064. <code>Reducer</code>. Users can control which keys (and hence records) go to
  53065. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  53066. <p>Users can optionally specify a <code>combiner</code>, via
  53067. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  53068. intermediate outputs, which helps to cut down the amount of data transferred
  53069. from the <code>Mapper</code> to the <code>Reducer</code>.
  53070. <p>The intermediate, grouped outputs are always stored in
  53071. {@link SequenceFile}s. Applications can specify if and how the intermediate
  53072. outputs are to be compressed and which {@link CompressionCodec}s are to be
  53073. used via the <code>JobConf</code>.</p>
  53074. <p>If the job has
  53075. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  53076. reduces</a> then the output of the <code>Mapper</code> is directly written
  53077. to the {@link FileSystem} without grouping by keys.</p>
  53078. <p>Example:</p>
  53079. <p><blockquote><pre>
  53080. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  53081. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  53082. static enum MyCounters { NUM_RECORDS }
  53083. private String mapTaskId;
  53084. private String inputFile;
  53085. private int noRecords = 0;
  53086. public void configure(JobConf job) {
  53087. mapTaskId = job.get("mapred.task.id");
  53088. inputFile = job.get("map.input.file");
  53089. }
  53090. public void map(K key, V val,
  53091. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  53092. throws IOException {
  53093. // Process the &lt;key, value&gt; pair (assume this takes a while)
  53094. // ...
  53095. // ...
  53096. // Let the framework know that we are alive, and kicking!
  53097. // reporter.progress();
  53098. // Process some more
  53099. // ...
  53100. // ...
  53101. // Increment the no. of &lt;key, value&gt; pairs processed
  53102. ++noRecords;
  53103. // Increment counters
  53104. reporter.incrCounter(NUM_RECORDS, 1);
  53105. // Every 100 records update application-level status
  53106. if ((noRecords%100) == 0) {
  53107. reporter.setStatus(mapTaskId + " processed " + noRecords +
  53108. " from input-file: " + inputFile);
  53109. }
  53110. // Output the result
  53111. output.collect(key, val);
  53112. }
  53113. }
  53114. </pre></blockquote></p>
  53115. <p>Applications may write a custom {@link MapRunnable} to exert greater
  53116. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  53117. @see JobConf
  53118. @see InputFormat
  53119. @see Partitioner
  53120. @see Reducer
  53121. @see MapReduceBase
  53122. @see MapRunnable
  53123. @see SequenceFile]]>
  53124. </doc>
  53125. </interface>
  53126. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  53127. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  53128. <class name="MapReduceBase" extends="java.lang.Object"
  53129. abstract="false"
  53130. static="false" final="false" visibility="public"
  53131. deprecated="not deprecated">
  53132. <implements name="org.apache.hadoop.io.Closeable"/>
  53133. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53134. <constructor name="MapReduceBase"
  53135. static="false" final="false" visibility="public"
  53136. deprecated="not deprecated">
  53137. </constructor>
  53138. <method name="close"
  53139. abstract="false" native="false" synchronized="false"
  53140. static="false" final="false" visibility="public"
  53141. deprecated="not deprecated">
  53142. <exception name="IOException" type="java.io.IOException"/>
  53143. <doc>
  53144. <![CDATA[Default implementation that does nothing.]]>
  53145. </doc>
  53146. </method>
  53147. <method name="configure"
  53148. abstract="false" native="false" synchronized="false"
  53149. static="false" final="false" visibility="public"
  53150. deprecated="not deprecated">
  53151. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53152. <doc>
  53153. <![CDATA[Default implementation that does nothing.]]>
  53154. </doc>
  53155. </method>
  53156. <doc>
  53157. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  53158. <p>Provides default no-op implementations for a few methods, most non-trivial
  53159. applications need to override some of them.</p>]]>
  53160. </doc>
  53161. </class>
  53162. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  53163. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  53164. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  53165. abstract="false"
  53166. static="false" final="false" visibility="public"
  53167. deprecated="not deprecated">
  53168. <constructor name="MapReducePolicyProvider"
  53169. static="false" final="false" visibility="public"
  53170. deprecated="not deprecated">
  53171. </constructor>
  53172. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  53173. abstract="false" native="false" synchronized="false"
  53174. static="false" final="false" visibility="public"
  53175. deprecated="not deprecated">
  53176. </method>
  53177. <doc>
  53178. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  53179. </doc>
  53180. </class>
  53181. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  53182. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  53183. <interface name="MapRunnable" abstract="true"
  53184. static="false" final="false" visibility="public"
  53185. deprecated="not deprecated">
  53186. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53187. <method name="run"
  53188. abstract="false" native="false" synchronized="false"
  53189. static="false" final="false" visibility="public"
  53190. deprecated="not deprecated">
  53191. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  53192. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53193. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53194. <exception name="IOException" type="java.io.IOException"/>
  53195. <doc>
  53196. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  53197. <p>Mapping of input records to output records is complete when this method
  53198. returns.</p>
  53199. @param input the {@link RecordReader} to read the input records.
  53200. @param output the {@link OutputCollector} to collect the outputrecords.
  53201. @param reporter {@link Reporter} to report progress, status-updates etc.
  53202. @throws IOException]]>
  53203. </doc>
  53204. </method>
  53205. <doc>
  53206. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  53207. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  53208. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  53209. @see Mapper]]>
  53210. </doc>
  53211. </interface>
  53212. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  53213. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  53214. <class name="MapRunner" extends="java.lang.Object"
  53215. abstract="false"
  53216. static="false" final="false" visibility="public"
  53217. deprecated="not deprecated">
  53218. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  53219. <constructor name="MapRunner"
  53220. static="false" final="false" visibility="public"
  53221. deprecated="not deprecated">
  53222. </constructor>
  53223. <method name="configure"
  53224. abstract="false" native="false" synchronized="false"
  53225. static="false" final="false" visibility="public"
  53226. deprecated="not deprecated">
  53227. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53228. </method>
  53229. <method name="run"
  53230. abstract="false" native="false" synchronized="false"
  53231. static="false" final="false" visibility="public"
  53232. deprecated="not deprecated">
  53233. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  53234. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53235. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53236. <exception name="IOException" type="java.io.IOException"/>
  53237. </method>
  53238. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  53239. abstract="false" native="false" synchronized="false"
  53240. static="false" final="false" visibility="protected"
  53241. deprecated="not deprecated">
  53242. </method>
  53243. <doc>
  53244. <![CDATA[Default {@link MapRunnable} implementation.]]>
  53245. </doc>
  53246. </class>
  53247. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  53248. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  53249. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  53250. abstract="false"
  53251. static="false" final="false" visibility="public"
  53252. deprecated="not deprecated">
  53253. <implements name="org.apache.hadoop.io.Writable"/>
  53254. <constructor name="MapTaskCompletionEventsUpdate"
  53255. static="false" final="false" visibility="public"
  53256. deprecated="not deprecated">
  53257. </constructor>
  53258. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  53259. static="false" final="false" visibility="public"
  53260. deprecated="not deprecated">
  53261. </constructor>
  53262. <method name="shouldReset" return="boolean"
  53263. abstract="false" native="false" synchronized="false"
  53264. static="false" final="false" visibility="public"
  53265. deprecated="not deprecated">
  53266. </method>
  53267. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  53268. abstract="false" native="false" synchronized="false"
  53269. static="false" final="false" visibility="public"
  53270. deprecated="not deprecated">
  53271. </method>
  53272. <method name="write"
  53273. abstract="false" native="false" synchronized="false"
  53274. static="false" final="false" visibility="public"
  53275. deprecated="not deprecated">
  53276. <param name="out" type="java.io.DataOutput"/>
  53277. <exception name="IOException" type="java.io.IOException"/>
  53278. </method>
  53279. <method name="readFields"
  53280. abstract="false" native="false" synchronized="false"
  53281. static="false" final="false" visibility="public"
  53282. deprecated="not deprecated">
  53283. <param name="in" type="java.io.DataInput"/>
  53284. <exception name="IOException" type="java.io.IOException"/>
  53285. </method>
  53286. <doc>
  53287. <![CDATA[A class that represents the communication between the tasktracker and child
  53288. tasks w.r.t the map task completion events. It also indicates whether the
  53289. child task should reset its events index.]]>
  53290. </doc>
  53291. </class>
  53292. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  53293. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  53294. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53295. abstract="true"
  53296. static="false" final="false" visibility="public"
  53297. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  53298. <constructor name="MultiFileInputFormat"
  53299. static="false" final="false" visibility="public"
  53300. deprecated="not deprecated">
  53301. </constructor>
  53302. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  53303. abstract="false" native="false" synchronized="false"
  53304. static="false" final="false" visibility="public"
  53305. deprecated="not deprecated">
  53306. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53307. <param name="numSplits" type="int"/>
  53308. <exception name="IOException" type="java.io.IOException"/>
  53309. </method>
  53310. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53311. abstract="true" native="false" synchronized="false"
  53312. static="false" final="false" visibility="public"
  53313. deprecated="not deprecated">
  53314. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53315. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53316. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53317. <exception name="IOException" type="java.io.IOException"/>
  53318. </method>
  53319. <doc>
  53320. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  53321. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  53322. the files under the input paths. Each split returned contains <i>nearly</i>
  53323. equal content length. <br>
  53324. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  53325. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  53326. @see MultiFileSplit
  53327. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  53328. </doc>
  53329. </class>
  53330. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  53331. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  53332. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  53333. abstract="false"
  53334. static="false" final="false" visibility="public"
  53335. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  53336. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  53337. static="false" final="false" visibility="public"
  53338. deprecated="not deprecated">
  53339. </constructor>
  53340. <method name="getLocations" return="java.lang.String[]"
  53341. abstract="false" native="false" synchronized="false"
  53342. static="false" final="false" visibility="public"
  53343. deprecated="not deprecated">
  53344. <exception name="IOException" type="java.io.IOException"/>
  53345. </method>
  53346. <method name="toString" return="java.lang.String"
  53347. abstract="false" native="false" synchronized="false"
  53348. static="false" final="false" visibility="public"
  53349. deprecated="not deprecated">
  53350. </method>
  53351. <doc>
  53352. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  53353. class does not represent a split of a file, but a split of input files
  53354. into smaller sets. The atomic unit of split is a file. <br>
  53355. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  53356. reading one record per file.
  53357. @see FileSplit
  53358. @see MultiFileInputFormat
  53359. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  53360. </doc>
  53361. </class>
  53362. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  53363. <!-- start class org.apache.hadoop.mapred.Operation -->
  53364. <class name="Operation" extends="java.lang.Enum"
  53365. abstract="false"
  53366. static="false" final="true" visibility="public"
  53367. deprecated="not deprecated">
  53368. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  53369. abstract="false" native="false" synchronized="false"
  53370. static="true" final="false" visibility="public"
  53371. deprecated="not deprecated">
  53372. </method>
  53373. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  53374. abstract="false" native="false" synchronized="false"
  53375. static="true" final="false" visibility="public"
  53376. deprecated="not deprecated">
  53377. <param name="name" type="java.lang.String"/>
  53378. </method>
  53379. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  53380. transient="false" volatile="false"
  53381. static="true" final="true" visibility="public"
  53382. deprecated="not deprecated">
  53383. </field>
  53384. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  53385. transient="false" volatile="false"
  53386. static="true" final="true" visibility="public"
  53387. deprecated="not deprecated">
  53388. </field>
  53389. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  53390. transient="false" volatile="false"
  53391. static="true" final="true" visibility="public"
  53392. deprecated="not deprecated">
  53393. </field>
  53394. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  53395. transient="false" volatile="false"
  53396. static="true" final="true" visibility="public"
  53397. deprecated="not deprecated">
  53398. </field>
  53399. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  53400. transient="false" volatile="false"
  53401. static="true" final="true" visibility="public"
  53402. deprecated="not deprecated">
  53403. </field>
  53404. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  53405. transient="false" volatile="false"
  53406. static="true" final="true" visibility="public"
  53407. deprecated="not deprecated">
  53408. </field>
  53409. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  53410. transient="false" volatile="false"
  53411. static="true" final="true" visibility="public"
  53412. deprecated="not deprecated">
  53413. </field>
  53414. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  53415. transient="false" volatile="false"
  53416. static="true" final="true" visibility="public"
  53417. deprecated="not deprecated">
  53418. </field>
  53419. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  53420. transient="false" volatile="false"
  53421. static="false" final="false" visibility="public"
  53422. deprecated="not deprecated">
  53423. </field>
  53424. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  53425. transient="false" volatile="false"
  53426. static="false" final="false" visibility="public"
  53427. deprecated="not deprecated">
  53428. </field>
  53429. <doc>
  53430. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  53431. authorization of the operation.]]>
  53432. </doc>
  53433. </class>
  53434. <!-- end class org.apache.hadoop.mapred.Operation -->
  53435. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  53436. <interface name="OutputCollector" abstract="true"
  53437. static="false" final="false" visibility="public"
  53438. deprecated="not deprecated">
  53439. <method name="collect"
  53440. abstract="false" native="false" synchronized="false"
  53441. static="false" final="false" visibility="public"
  53442. deprecated="not deprecated">
  53443. <param name="key" type="java.lang.Object"/>
  53444. <param name="value" type="java.lang.Object"/>
  53445. <exception name="IOException" type="java.io.IOException"/>
  53446. <doc>
  53447. <![CDATA[Adds a key/value pair to the output.
  53448. @param key the key to collect.
  53449. @param value to value to collect.
  53450. @throws IOException]]>
  53451. </doc>
  53452. </method>
  53453. <doc>
  53454. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  53455. and {@link Reducer}s.
  53456. <p><code>OutputCollector</code> is the generalization of the facility
  53457. provided by the Map-Reduce framework to collect data output by either the
  53458. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  53459. or the output of the job.</p>]]>
  53460. </doc>
  53461. </interface>
  53462. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  53463. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  53464. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  53465. abstract="true"
  53466. static="false" final="false" visibility="public"
  53467. deprecated="not deprecated">
  53468. <constructor name="OutputCommitter"
  53469. static="false" final="false" visibility="public"
  53470. deprecated="not deprecated">
  53471. </constructor>
  53472. <method name="setupJob"
  53473. abstract="true" native="false" synchronized="false"
  53474. static="false" final="false" visibility="public"
  53475. deprecated="not deprecated">
  53476. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53477. <exception name="IOException" type="java.io.IOException"/>
  53478. <doc>
  53479. <![CDATA[For the framework to setup the job output during initialization
  53480. @param jobContext Context of the job whose output is being written.
  53481. @throws IOException if temporary output could not be created]]>
  53482. </doc>
  53483. </method>
  53484. <method name="cleanupJob"
  53485. abstract="false" native="false" synchronized="false"
  53486. static="false" final="false" visibility="public"
  53487. deprecated="use {@link #commitJob(JobContext)} or
  53488. {@link #abortJob(JobContext, int)} instead">
  53489. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53490. <exception name="IOException" type="java.io.IOException"/>
  53491. <doc>
  53492. <![CDATA[For cleaning up the job's output after job completion
  53493. @deprecated use {@link #commitJob(JobContext)} or
  53494. {@link #abortJob(JobContext, int)} instead]]>
  53495. </doc>
  53496. </method>
  53497. <method name="commitJob"
  53498. abstract="false" native="false" synchronized="false"
  53499. static="false" final="false" visibility="public"
  53500. deprecated="not deprecated">
  53501. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53502. <exception name="IOException" type="java.io.IOException"/>
  53503. <doc>
  53504. <![CDATA[For committing job's output after successful job completion. Note that this
  53505. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  53506. @param jobContext Context of the job whose output is being written.
  53507. @throws IOException]]>
  53508. </doc>
  53509. </method>
  53510. <method name="abortJob"
  53511. abstract="false" native="false" synchronized="false"
  53512. static="false" final="false" visibility="public"
  53513. deprecated="not deprecated">
  53514. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53515. <param name="status" type="int"/>
  53516. <exception name="IOException" type="java.io.IOException"/>
  53517. <doc>
  53518. <![CDATA[For cleaning up the job's output after job failure.
  53519. @param jobContext Context of the job whose output is being written.
  53520. @param status Final run state of the job, should be
  53521. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  53522. @throws IOException]]>
  53523. </doc>
  53524. </method>
  53525. <method name="setupTask"
  53526. abstract="true" native="false" synchronized="false"
  53527. static="false" final="false" visibility="public"
  53528. deprecated="not deprecated">
  53529. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53530. <exception name="IOException" type="java.io.IOException"/>
  53531. <doc>
  53532. <![CDATA[Sets up output for the task.
  53533. @param taskContext Context of the task whose output is being written.
  53534. @throws IOException]]>
  53535. </doc>
  53536. </method>
  53537. <method name="needsTaskCommit" return="boolean"
  53538. abstract="true" native="false" synchronized="false"
  53539. static="false" final="false" visibility="public"
  53540. deprecated="not deprecated">
  53541. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53542. <exception name="IOException" type="java.io.IOException"/>
  53543. <doc>
  53544. <![CDATA[Check whether task needs a commit
  53545. @param taskContext
  53546. @return true/false
  53547. @throws IOException]]>
  53548. </doc>
  53549. </method>
  53550. <method name="commitTask"
  53551. abstract="true" native="false" synchronized="false"
  53552. static="false" final="false" visibility="public"
  53553. deprecated="not deprecated">
  53554. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53555. <exception name="IOException" type="java.io.IOException"/>
  53556. <doc>
  53557. <![CDATA[To promote the task's temporary output to final output location
  53558. The task's output is moved to the job's output directory.
  53559. @param taskContext Context of the task whose output is being written.
  53560. @throws IOException if commit is not]]>
  53561. </doc>
  53562. </method>
  53563. <method name="abortTask"
  53564. abstract="true" native="false" synchronized="false"
  53565. static="false" final="false" visibility="public"
  53566. deprecated="not deprecated">
  53567. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53568. <exception name="IOException" type="java.io.IOException"/>
  53569. <doc>
  53570. <![CDATA[Discard the task output
  53571. @param taskContext
  53572. @throws IOException]]>
  53573. </doc>
  53574. </method>
  53575. <method name="setupJob"
  53576. abstract="false" native="false" synchronized="false"
  53577. static="false" final="true" visibility="public"
  53578. deprecated="not deprecated">
  53579. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  53580. <exception name="IOException" type="java.io.IOException"/>
  53581. <doc>
  53582. <![CDATA[This method implements the new interface by calling the old method. Note
  53583. that the input types are different between the new and old apis and this
  53584. is a bridge between the two.]]>
  53585. </doc>
  53586. </method>
  53587. <method name="cleanupJob"
  53588. abstract="false" native="false" synchronized="false"
  53589. static="false" final="true" visibility="public"
  53590. deprecated="not deprecated">
  53591. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53592. <exception name="IOException" type="java.io.IOException"/>
  53593. <doc>
  53594. <![CDATA[This method implements the new interface by calling the old method. Note
  53595. that the input types are different between the new and old apis and this
  53596. is a bridge between the two.]]>
  53597. </doc>
  53598. </method>
  53599. <method name="commitJob"
  53600. abstract="false" native="false" synchronized="false"
  53601. static="false" final="true" visibility="public"
  53602. deprecated="not deprecated">
  53603. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53604. <exception name="IOException" type="java.io.IOException"/>
  53605. <doc>
  53606. <![CDATA[This method implements the new interface by calling the old method. Note
  53607. that the input types are different between the new and old apis and this
  53608. is a bridge between the two.]]>
  53609. </doc>
  53610. </method>
  53611. <method name="abortJob"
  53612. abstract="false" native="false" synchronized="false"
  53613. static="false" final="true" visibility="public"
  53614. deprecated="not deprecated">
  53615. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53616. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  53617. <exception name="IOException" type="java.io.IOException"/>
  53618. <doc>
  53619. <![CDATA[This method implements the new interface by calling the old method. Note
  53620. that the input types are different between the new and old apis and this
  53621. is a bridge between the two.]]>
  53622. </doc>
  53623. </method>
  53624. <method name="setupTask"
  53625. abstract="false" native="false" synchronized="false"
  53626. static="false" final="true" visibility="public"
  53627. deprecated="not deprecated">
  53628. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53629. <exception name="IOException" type="java.io.IOException"/>
  53630. <doc>
  53631. <![CDATA[This method implements the new interface by calling the old method. Note
  53632. that the input types are different between the new and old apis and this
  53633. is a bridge between the two.]]>
  53634. </doc>
  53635. </method>
  53636. <method name="needsTaskCommit" return="boolean"
  53637. abstract="false" native="false" synchronized="false"
  53638. static="false" final="true" visibility="public"
  53639. deprecated="not deprecated">
  53640. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53641. <exception name="IOException" type="java.io.IOException"/>
  53642. <doc>
  53643. <![CDATA[This method implements the new interface by calling the old method. Note
  53644. that the input types are different between the new and old apis and this
  53645. is a bridge between the two.]]>
  53646. </doc>
  53647. </method>
  53648. <method name="commitTask"
  53649. abstract="false" native="false" synchronized="false"
  53650. static="false" final="true" visibility="public"
  53651. deprecated="not deprecated">
  53652. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53653. <exception name="IOException" type="java.io.IOException"/>
  53654. <doc>
  53655. <![CDATA[This method implements the new interface by calling the old method. Note
  53656. that the input types are different between the new and old apis and this
  53657. is a bridge between the two.]]>
  53658. </doc>
  53659. </method>
  53660. <method name="abortTask"
  53661. abstract="false" native="false" synchronized="false"
  53662. static="false" final="true" visibility="public"
  53663. deprecated="not deprecated">
  53664. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53665. <exception name="IOException" type="java.io.IOException"/>
  53666. <doc>
  53667. <![CDATA[This method implements the new interface by calling the old method. Note
  53668. that the input types are different between the new and old apis and this
  53669. is a bridge between the two.]]>
  53670. </doc>
  53671. </method>
  53672. <doc>
  53673. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  53674. Map-Reduce job.
  53675. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  53676. the job to:<p>
  53677. <ol>
  53678. <li>
  53679. Setup the job during initialization. For example, create the temporary
  53680. output directory for the job during the initialization of the job.
  53681. </li>
  53682. <li>
  53683. Cleanup the job after the job completion. For example, remove the
  53684. temporary output directory after the job completion.
  53685. </li>
  53686. <li>
  53687. Setup the task temporary output.
  53688. </li>
  53689. <li>
  53690. Check whether a task needs a commit. This is to avoid the commit
  53691. procedure if a task does not need commit.
  53692. </li>
  53693. <li>
  53694. Commit of the task output.
  53695. </li>
  53696. <li>
  53697. Discard the task commit.
  53698. </li>
  53699. </ol>
  53700. @see FileOutputCommitter
  53701. @see JobContext
  53702. @see TaskAttemptContext]]>
  53703. </doc>
  53704. </class>
  53705. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  53706. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  53707. <interface name="OutputFormat" abstract="true"
  53708. static="false" final="false" visibility="public"
  53709. deprecated="not deprecated">
  53710. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53711. abstract="false" native="false" synchronized="false"
  53712. static="false" final="false" visibility="public"
  53713. deprecated="not deprecated">
  53714. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53715. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53716. <param name="name" type="java.lang.String"/>
  53717. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53718. <exception name="IOException" type="java.io.IOException"/>
  53719. <doc>
  53720. <![CDATA[Get the {@link RecordWriter} for the given job.
  53721. @param ignored
  53722. @param job configuration for the job whose output is being written.
  53723. @param name the unique name for this part of the output.
  53724. @param progress mechanism for reporting progress while writing to file.
  53725. @return a {@link RecordWriter} to write the output for the job.
  53726. @throws IOException]]>
  53727. </doc>
  53728. </method>
  53729. <method name="checkOutputSpecs"
  53730. abstract="false" native="false" synchronized="false"
  53731. static="false" final="false" visibility="public"
  53732. deprecated="not deprecated">
  53733. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53734. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53735. <exception name="IOException" type="java.io.IOException"/>
  53736. <doc>
  53737. <![CDATA[Check for validity of the output-specification for the job.
  53738. <p>This is to validate the output specification for the job when it is
  53739. a job is submitted. Typically checks that it does not already exist,
  53740. throwing an exception when it already exists, so that output is not
  53741. overwritten.</p>
  53742. @param ignored
  53743. @param job job configuration.
  53744. @throws IOException when output should not be attempted]]>
  53745. </doc>
  53746. </method>
  53747. <doc>
  53748. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  53749. Map-Reduce job.
  53750. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  53751. job to:<p>
  53752. <ol>
  53753. <li>
  53754. Validate the output-specification of the job. For e.g. check that the
  53755. output directory doesn't already exist.
  53756. <li>
  53757. Provide the {@link RecordWriter} implementation to be used to write out
  53758. the output files of the job. Output files are stored in a
  53759. {@link FileSystem}.
  53760. </li>
  53761. </ol>
  53762. @see RecordWriter
  53763. @see JobConf]]>
  53764. </doc>
  53765. </interface>
  53766. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  53767. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  53768. <class name="OutputLogFilter" extends="java.lang.Object"
  53769. abstract="false"
  53770. static="false" final="false" visibility="public"
  53771. deprecated="Use
  53772. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  53773. instead.">
  53774. <implements name="org.apache.hadoop.fs.PathFilter"/>
  53775. <constructor name="OutputLogFilter"
  53776. static="false" final="false" visibility="public"
  53777. deprecated="not deprecated">
  53778. </constructor>
  53779. <method name="accept" return="boolean"
  53780. abstract="false" native="false" synchronized="false"
  53781. static="false" final="false" visibility="public"
  53782. deprecated="not deprecated">
  53783. <param name="path" type="org.apache.hadoop.fs.Path"/>
  53784. </method>
  53785. <doc>
  53786. <![CDATA[This class filters log files from directory given
  53787. It doesnt accept paths having _logs.
  53788. This can be used to list paths of output directory as follows:
  53789. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  53790. new OutputLogFilter()));
  53791. @deprecated Use
  53792. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  53793. instead.]]>
  53794. </doc>
  53795. </class>
  53796. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  53797. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  53798. <interface name="Partitioner" abstract="true"
  53799. static="false" final="false" visibility="public"
  53800. deprecated="not deprecated">
  53801. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53802. <method name="getPartition" return="int"
  53803. abstract="false" native="false" synchronized="false"
  53804. static="false" final="false" visibility="public"
  53805. deprecated="not deprecated">
  53806. <param name="key" type="java.lang.Object"/>
  53807. <param name="value" type="java.lang.Object"/>
  53808. <param name="numPartitions" type="int"/>
  53809. <doc>
  53810. <![CDATA[Get the paritition number for a given key (hence record) given the total
  53811. number of partitions i.e. number of reduce-tasks for the job.
  53812. <p>Typically a hash function on a all or a subset of the key.</p>
  53813. @param key the key to be paritioned.
  53814. @param value the entry value.
  53815. @param numPartitions the total number of partitions.
  53816. @return the partition number for the <code>key</code>.]]>
  53817. </doc>
  53818. </method>
  53819. <doc>
  53820. <![CDATA[Partitions the key space.
  53821. <p><code>Partitioner</code> controls the partitioning of the keys of the
  53822. intermediate map-outputs. The key (or a subset of the key) is used to derive
  53823. the partition, typically by a hash function. The total number of partitions
  53824. is the same as the number of reduce tasks for the job. Hence this controls
  53825. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  53826. record) is sent for reduction.</p>
  53827. @see Reducer]]>
  53828. </doc>
  53829. </interface>
  53830. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  53831. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  53832. <class name="QueueAclsInfo" extends="java.lang.Object"
  53833. abstract="false"
  53834. static="false" final="false" visibility="public"
  53835. deprecated="not deprecated">
  53836. <implements name="org.apache.hadoop.io.Writable"/>
  53837. <constructor name="QueueAclsInfo"
  53838. static="false" final="false" visibility="public"
  53839. deprecated="not deprecated">
  53840. <doc>
  53841. <![CDATA[Default constructor for QueueAclsInfo.]]>
  53842. </doc>
  53843. </constructor>
  53844. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  53845. static="false" final="false" visibility="public"
  53846. deprecated="not deprecated">
  53847. <doc>
  53848. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  53849. queue operations array
  53850. @param queueName Name of the job queue
  53851. @param operations queue operations]]>
  53852. </doc>
  53853. </constructor>
  53854. <method name="getQueueName" return="java.lang.String"
  53855. abstract="false" native="false" synchronized="false"
  53856. static="false" final="false" visibility="public"
  53857. deprecated="not deprecated">
  53858. </method>
  53859. <method name="setQueueName"
  53860. abstract="false" native="false" synchronized="false"
  53861. static="false" final="false" visibility="protected"
  53862. deprecated="not deprecated">
  53863. <param name="queueName" type="java.lang.String"/>
  53864. </method>
  53865. <method name="getOperations" return="java.lang.String[]"
  53866. abstract="false" native="false" synchronized="false"
  53867. static="false" final="false" visibility="public"
  53868. deprecated="not deprecated">
  53869. </method>
  53870. <method name="readFields"
  53871. abstract="false" native="false" synchronized="false"
  53872. static="false" final="false" visibility="public"
  53873. deprecated="not deprecated">
  53874. <param name="in" type="java.io.DataInput"/>
  53875. <exception name="IOException" type="java.io.IOException"/>
  53876. </method>
  53877. <method name="write"
  53878. abstract="false" native="false" synchronized="false"
  53879. static="false" final="false" visibility="public"
  53880. deprecated="not deprecated">
  53881. <param name="out" type="java.io.DataOutput"/>
  53882. <exception name="IOException" type="java.io.IOException"/>
  53883. </method>
  53884. <doc>
  53885. <![CDATA[Class to encapsulate Queue ACLs for a particular
  53886. user.]]>
  53887. </doc>
  53888. </class>
  53889. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  53890. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  53891. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  53892. abstract="false"
  53893. static="false" final="false" visibility="public"
  53894. deprecated="not deprecated">
  53895. <constructor name="RawHistoryFileServlet"
  53896. static="false" final="false" visibility="public"
  53897. deprecated="not deprecated">
  53898. </constructor>
  53899. <method name="init"
  53900. abstract="false" native="false" synchronized="false"
  53901. static="false" final="false" visibility="public"
  53902. deprecated="not deprecated">
  53903. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  53904. <exception name="ServletException" type="javax.servlet.ServletException"/>
  53905. </method>
  53906. <method name="doGet"
  53907. abstract="false" native="false" synchronized="false"
  53908. static="false" final="false" visibility="protected"
  53909. deprecated="not deprecated">
  53910. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  53911. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  53912. <exception name="ServletException" type="javax.servlet.ServletException"/>
  53913. <exception name="IOException" type="java.io.IOException"/>
  53914. </method>
  53915. </class>
  53916. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  53917. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  53918. <interface name="RawKeyValueIterator" abstract="true"
  53919. static="false" final="false" visibility="public"
  53920. deprecated="not deprecated">
  53921. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  53922. abstract="false" native="false" synchronized="false"
  53923. static="false" final="false" visibility="public"
  53924. deprecated="not deprecated">
  53925. <exception name="IOException" type="java.io.IOException"/>
  53926. <doc>
  53927. <![CDATA[Gets the current raw key.
  53928. @return Gets the current raw key as a DataInputBuffer
  53929. @throws IOException]]>
  53930. </doc>
  53931. </method>
  53932. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  53933. abstract="false" native="false" synchronized="false"
  53934. static="false" final="false" visibility="public"
  53935. deprecated="not deprecated">
  53936. <exception name="IOException" type="java.io.IOException"/>
  53937. <doc>
  53938. <![CDATA[Gets the current raw value.
  53939. @return Gets the current raw value as a DataInputBuffer
  53940. @throws IOException]]>
  53941. </doc>
  53942. </method>
  53943. <method name="next" return="boolean"
  53944. abstract="false" native="false" synchronized="false"
  53945. static="false" final="false" visibility="public"
  53946. deprecated="not deprecated">
  53947. <exception name="IOException" type="java.io.IOException"/>
  53948. <doc>
  53949. <![CDATA[Sets up the current key and value (for getKey and getValue).
  53950. @return <code>true</code> if there exists a key/value,
  53951. <code>false</code> otherwise.
  53952. @throws IOException]]>
  53953. </doc>
  53954. </method>
  53955. <method name="close"
  53956. abstract="false" native="false" synchronized="false"
  53957. static="false" final="false" visibility="public"
  53958. deprecated="not deprecated">
  53959. <exception name="IOException" type="java.io.IOException"/>
  53960. <doc>
  53961. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  53962. @throws IOException]]>
  53963. </doc>
  53964. </method>
  53965. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  53966. abstract="false" native="false" synchronized="false"
  53967. static="false" final="false" visibility="public"
  53968. deprecated="not deprecated">
  53969. <doc>
  53970. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  53971. indicating the bytes processed by the iterator so far]]>
  53972. </doc>
  53973. </method>
  53974. <doc>
  53975. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  53976. the raw keys and values during sort/merge of intermediate data.]]>
  53977. </doc>
  53978. </interface>
  53979. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  53980. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  53981. <interface name="RecordReader" abstract="true"
  53982. static="false" final="false" visibility="public"
  53983. deprecated="not deprecated">
  53984. <method name="next" return="boolean"
  53985. abstract="false" native="false" synchronized="false"
  53986. static="false" final="false" visibility="public"
  53987. deprecated="not deprecated">
  53988. <param name="key" type="java.lang.Object"/>
  53989. <param name="value" type="java.lang.Object"/>
  53990. <exception name="IOException" type="java.io.IOException"/>
  53991. <doc>
  53992. <![CDATA[Reads the next key/value pair from the input for processing.
  53993. @param key the key to read data into
  53994. @param value the value to read data into
  53995. @return true iff a key/value was read, false if at EOF]]>
  53996. </doc>
  53997. </method>
  53998. <method name="createKey" return="java.lang.Object"
  53999. abstract="false" native="false" synchronized="false"
  54000. static="false" final="false" visibility="public"
  54001. deprecated="not deprecated">
  54002. <doc>
  54003. <![CDATA[Create an object of the appropriate type to be used as a key.
  54004. @return a new key object.]]>
  54005. </doc>
  54006. </method>
  54007. <method name="createValue" return="java.lang.Object"
  54008. abstract="false" native="false" synchronized="false"
  54009. static="false" final="false" visibility="public"
  54010. deprecated="not deprecated">
  54011. <doc>
  54012. <![CDATA[Create an object of the appropriate type to be used as a value.
  54013. @return a new value object.]]>
  54014. </doc>
  54015. </method>
  54016. <method name="getPos" return="long"
  54017. abstract="false" native="false" synchronized="false"
  54018. static="false" final="false" visibility="public"
  54019. deprecated="not deprecated">
  54020. <exception name="IOException" type="java.io.IOException"/>
  54021. <doc>
  54022. <![CDATA[Returns the current position in the input.
  54023. @return the current position in the input.
  54024. @throws IOException]]>
  54025. </doc>
  54026. </method>
  54027. <method name="close"
  54028. abstract="false" native="false" synchronized="false"
  54029. static="false" final="false" visibility="public"
  54030. deprecated="not deprecated">
  54031. <exception name="IOException" type="java.io.IOException"/>
  54032. <doc>
  54033. <![CDATA[Close this {@link InputSplit} to future operations.
  54034. @throws IOException]]>
  54035. </doc>
  54036. </method>
  54037. <method name="getProgress" return="float"
  54038. abstract="false" native="false" synchronized="false"
  54039. static="false" final="false" visibility="public"
  54040. deprecated="not deprecated">
  54041. <exception name="IOException" type="java.io.IOException"/>
  54042. <doc>
  54043. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  54044. has been processed by?
  54045. @return progress from <code>0.0</code> to <code>1.0</code>.
  54046. @throws IOException]]>
  54047. </doc>
  54048. </method>
  54049. <doc>
  54050. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  54051. {@link InputSplit}.
  54052. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  54053. the input, provided by the <code>InputSplit</code>, and presents a
  54054. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  54055. processing. It thus assumes the responsibility of processing record
  54056. boundaries and presenting the tasks with keys and values.</p>
  54057. @see InputSplit
  54058. @see InputFormat]]>
  54059. </doc>
  54060. </interface>
  54061. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  54062. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  54063. <interface name="RecordWriter" abstract="true"
  54064. static="false" final="false" visibility="public"
  54065. deprecated="not deprecated">
  54066. <method name="write"
  54067. abstract="false" native="false" synchronized="false"
  54068. static="false" final="false" visibility="public"
  54069. deprecated="not deprecated">
  54070. <param name="key" type="java.lang.Object"/>
  54071. <param name="value" type="java.lang.Object"/>
  54072. <exception name="IOException" type="java.io.IOException"/>
  54073. <doc>
  54074. <![CDATA[Writes a key/value pair.
  54075. @param key the key to write.
  54076. @param value the value to write.
  54077. @throws IOException]]>
  54078. </doc>
  54079. </method>
  54080. <method name="close"
  54081. abstract="false" native="false" synchronized="false"
  54082. static="false" final="false" visibility="public"
  54083. deprecated="not deprecated">
  54084. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54085. <exception name="IOException" type="java.io.IOException"/>
  54086. <doc>
  54087. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  54088. @param reporter facility to report progress.
  54089. @throws IOException]]>
  54090. </doc>
  54091. </method>
  54092. <doc>
  54093. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  54094. to an output file.
  54095. <p><code>RecordWriter</code> implementations write the job outputs to the
  54096. {@link FileSystem}.
  54097. @see OutputFormat]]>
  54098. </doc>
  54099. </interface>
  54100. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  54101. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  54102. <interface name="Reducer" abstract="true"
  54103. static="false" final="false" visibility="public"
  54104. deprecated="not deprecated">
  54105. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54106. <implements name="org.apache.hadoop.io.Closeable"/>
  54107. <method name="reduce"
  54108. abstract="false" native="false" synchronized="false"
  54109. static="false" final="false" visibility="public"
  54110. deprecated="not deprecated">
  54111. <param name="key" type="java.lang.Object"/>
  54112. <param name="values" type="java.util.Iterator"/>
  54113. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54114. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54115. <exception name="IOException" type="java.io.IOException"/>
  54116. <doc>
  54117. <![CDATA[<i>Reduces</i> values for a given key.
  54118. <p>The framework calls this method for each
  54119. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  54120. Output values must be of the same type as input values. Input keys must
  54121. not be altered. The framework will <b>reuse</b> the key and value objects
  54122. that are passed into the reduce, therefore the application should clone
  54123. the objects they want to keep a copy of. In many cases, all values are
  54124. combined into zero or one value.
  54125. </p>
  54126. <p>Output pairs are collected with calls to
  54127. {@link OutputCollector#collect(Object,Object)}.</p>
  54128. <p>Applications can use the {@link Reporter} provided to report progress
  54129. or just indicate that they are alive. In scenarios where the application
  54130. takes an insignificant amount of time to process individual key/value
  54131. pairs, this is crucial since the framework might assume that the task has
  54132. timed-out and kill that task. The other way of avoiding this is to set
  54133. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  54134. mapred.task.timeout</a> to a high-enough value (or even zero for no
  54135. time-outs).</p>
  54136. @param key the key.
  54137. @param values the list of values to reduce.
  54138. @param output to collect keys and combined values.
  54139. @param reporter facility to report progress.]]>
  54140. </doc>
  54141. </method>
  54142. <doc>
  54143. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  54144. values.
  54145. <p>The number of <code>Reducer</code>s for the job is set by the user via
  54146. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  54147. can access the {@link JobConf} for the job via the
  54148. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  54149. Similarly they can use the {@link Closeable#close()} method for
  54150. de-initialization.</p>
  54151. <p><code>Reducer</code> has 3 primary phases:</p>
  54152. <ol>
  54153. <li>
  54154. <h4 id="Shuffle">Shuffle</h4>
  54155. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  54156. In the phase the framework, for each <code>Reducer</code>, fetches the
  54157. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  54158. </p>
  54159. </li>
  54160. <li>
  54161. <h4 id="Sort">Sort</h4>
  54162. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  54163. (since different <code>Mapper</code>s may have output the same key) in this
  54164. stage.</p>
  54165. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  54166. being fetched they are merged.</p>
  54167. <h5 id="SecondarySort">SecondarySort</h5>
  54168. <p>If equivalence rules for keys while grouping the intermediates are
  54169. different from those for grouping keys before reduction, then one may
  54170. specify a <code>Comparator</code> via
  54171. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  54172. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  54173. control how intermediate keys are grouped, these can be used in conjunction
  54174. to simulate <i>secondary sort on values</i>.</p>
  54175. For example, say that you want to find duplicate web pages and tag them
  54176. all with the url of the "best" known example. You would set up the job
  54177. like:
  54178. <ul>
  54179. <li>Map Input Key: url</li>
  54180. <li>Map Input Value: document</li>
  54181. <li>Map Output Key: document checksum, url pagerank</li>
  54182. <li>Map Output Value: url</li>
  54183. <li>Partitioner: by checksum</li>
  54184. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  54185. <li>OutputValueGroupingComparator: by checksum</li>
  54186. </ul>
  54187. </li>
  54188. <li>
  54189. <h4 id="Reduce">Reduce</h4>
  54190. <p>In this phase the
  54191. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  54192. method is called for each <code>&lt;key, (list of values)></code> pair in
  54193. the grouped inputs.</p>
  54194. <p>The output of the reduce task is typically written to the
  54195. {@link FileSystem} via
  54196. {@link OutputCollector#collect(Object, Object)}.</p>
  54197. </li>
  54198. </ol>
  54199. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  54200. <p>Example:</p>
  54201. <p><blockquote><pre>
  54202. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  54203. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  54204. static enum MyCounters { NUM_RECORDS }
  54205. private String reduceTaskId;
  54206. private int noKeys = 0;
  54207. public void configure(JobConf job) {
  54208. reduceTaskId = job.get("mapred.task.id");
  54209. }
  54210. public void reduce(K key, Iterator&lt;V&gt; values,
  54211. OutputCollector&lt;K, V&gt; output,
  54212. Reporter reporter)
  54213. throws IOException {
  54214. // Process
  54215. int noValues = 0;
  54216. while (values.hasNext()) {
  54217. V value = values.next();
  54218. // Increment the no. of values for this key
  54219. ++noValues;
  54220. // Process the &lt;key, value&gt; pair (assume this takes a while)
  54221. // ...
  54222. // ...
  54223. // Let the framework know that we are alive, and kicking!
  54224. if ((noValues%10) == 0) {
  54225. reporter.progress();
  54226. }
  54227. // Process some more
  54228. // ...
  54229. // ...
  54230. // Output the &lt;key, value&gt;
  54231. output.collect(key, value);
  54232. }
  54233. // Increment the no. of &lt;key, list of values&gt; pairs processed
  54234. ++noKeys;
  54235. // Increment counters
  54236. reporter.incrCounter(NUM_RECORDS, 1);
  54237. // Every 100 keys update application-level status
  54238. if ((noKeys%100) == 0) {
  54239. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  54240. }
  54241. }
  54242. }
  54243. </pre></blockquote></p>
  54244. @see Mapper
  54245. @see Partitioner
  54246. @see Reporter
  54247. @see MapReduceBase]]>
  54248. </doc>
  54249. </interface>
  54250. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  54251. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  54252. <interface name="Reporter" abstract="true"
  54253. static="false" final="false" visibility="public"
  54254. deprecated="not deprecated">
  54255. <implements name="org.apache.hadoop.util.Progressable"/>
  54256. <method name="setStatus"
  54257. abstract="false" native="false" synchronized="false"
  54258. static="false" final="false" visibility="public"
  54259. deprecated="not deprecated">
  54260. <param name="status" type="java.lang.String"/>
  54261. <doc>
  54262. <![CDATA[Set the status description for the task.
  54263. @param status brief description of the current status.]]>
  54264. </doc>
  54265. </method>
  54266. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54267. abstract="false" native="false" synchronized="false"
  54268. static="false" final="false" visibility="public"
  54269. deprecated="not deprecated">
  54270. <param name="name" type="java.lang.Enum"/>
  54271. <doc>
  54272. <![CDATA[Get the {@link Counter} of the given group with the given name.
  54273. @param name counter name
  54274. @return the <code>Counter</code> of the given group/name.]]>
  54275. </doc>
  54276. </method>
  54277. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54278. abstract="false" native="false" synchronized="false"
  54279. static="false" final="false" visibility="public"
  54280. deprecated="not deprecated">
  54281. <param name="group" type="java.lang.String"/>
  54282. <param name="name" type="java.lang.String"/>
  54283. <doc>
  54284. <![CDATA[Get the {@link Counter} of the given group with the given name.
  54285. @param group counter group
  54286. @param name counter name
  54287. @return the <code>Counter</code> of the given group/name.]]>
  54288. </doc>
  54289. </method>
  54290. <method name="incrCounter"
  54291. abstract="false" native="false" synchronized="false"
  54292. static="false" final="false" visibility="public"
  54293. deprecated="not deprecated">
  54294. <param name="key" type="java.lang.Enum"/>
  54295. <param name="amount" type="long"/>
  54296. <doc>
  54297. <![CDATA[Increments the counter identified by the key, which can be of
  54298. any {@link Enum} type, by the specified amount.
  54299. @param key key to identify the counter to be incremented. The key can be
  54300. be any <code>Enum</code>.
  54301. @param amount A non-negative amount by which the counter is to
  54302. be incremented.]]>
  54303. </doc>
  54304. </method>
  54305. <method name="incrCounter"
  54306. abstract="false" native="false" synchronized="false"
  54307. static="false" final="false" visibility="public"
  54308. deprecated="not deprecated">
  54309. <param name="group" type="java.lang.String"/>
  54310. <param name="counter" type="java.lang.String"/>
  54311. <param name="amount" type="long"/>
  54312. <doc>
  54313. <![CDATA[Increments the counter identified by the group and counter name
  54314. by the specified amount.
  54315. @param group name to identify the group of the counter to be incremented.
  54316. @param counter name to identify the counter within the group.
  54317. @param amount A non-negative amount by which the counter is to
  54318. be incremented.]]>
  54319. </doc>
  54320. </method>
  54321. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  54322. abstract="false" native="false" synchronized="false"
  54323. static="false" final="false" visibility="public"
  54324. deprecated="not deprecated">
  54325. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  54326. <doc>
  54327. <![CDATA[Get the {@link InputSplit} object for a map.
  54328. @return the <code>InputSplit</code> that the map is reading from.
  54329. @throws UnsupportedOperationException if called outside a mapper]]>
  54330. </doc>
  54331. </method>
  54332. <method name="getProgress" return="float"
  54333. abstract="false" native="false" synchronized="false"
  54334. static="false" final="false" visibility="public"
  54335. deprecated="not deprecated">
  54336. <doc>
  54337. <![CDATA[Get the progress of the task. Progress is represented as a number between
  54338. 0 and 1 (inclusive).]]>
  54339. </doc>
  54340. </method>
  54341. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  54342. transient="false" volatile="false"
  54343. static="true" final="true" visibility="public"
  54344. deprecated="not deprecated">
  54345. <doc>
  54346. <![CDATA[A constant of Reporter type that does nothing.]]>
  54347. </doc>
  54348. </field>
  54349. <doc>
  54350. <![CDATA[A facility for Map-Reduce applications to report progress and update
  54351. counters, status information etc.
  54352. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  54353. provided to report progress or just indicate that they are alive. In
  54354. scenarios where the application takes an insignificant amount of time to
  54355. process individual key/value pairs, this is crucial since the framework
  54356. might assume that the task has timed-out and kill that task.
  54357. <p>Applications can also update {@link Counters} via the provided
  54358. <code>Reporter</code> .</p>
  54359. @see Progressable
  54360. @see Counters]]>
  54361. </doc>
  54362. </interface>
  54363. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  54364. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  54365. <interface name="RunningJob" abstract="true"
  54366. static="false" final="false" visibility="public"
  54367. deprecated="not deprecated">
  54368. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  54369. abstract="false" native="false" synchronized="false"
  54370. static="false" final="false" visibility="public"
  54371. deprecated="not deprecated">
  54372. <doc>
  54373. <![CDATA[Get the job identifier.
  54374. @return the job identifier.]]>
  54375. </doc>
  54376. </method>
  54377. <method name="getJobID" return="java.lang.String"
  54378. abstract="false" native="false" synchronized="false"
  54379. static="false" final="false" visibility="public"
  54380. deprecated="This method is deprecated and will be removed. Applications should
  54381. rather use {@link #getID()}.">
  54382. <doc>
  54383. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  54384. rather use {@link #getID()}.]]>
  54385. </doc>
  54386. </method>
  54387. <method name="getJobName" return="java.lang.String"
  54388. abstract="false" native="false" synchronized="false"
  54389. static="false" final="false" visibility="public"
  54390. deprecated="not deprecated">
  54391. <doc>
  54392. <![CDATA[Get the name of the job.
  54393. @return the name of the job.]]>
  54394. </doc>
  54395. </method>
  54396. <method name="getJobFile" return="java.lang.String"
  54397. abstract="false" native="false" synchronized="false"
  54398. static="false" final="false" visibility="public"
  54399. deprecated="not deprecated">
  54400. <doc>
  54401. <![CDATA[Get the path of the submitted job configuration.
  54402. @return the path of the submitted job configuration.]]>
  54403. </doc>
  54404. </method>
  54405. <method name="getTrackingURL" return="java.lang.String"
  54406. abstract="false" native="false" synchronized="false"
  54407. static="false" final="false" visibility="public"
  54408. deprecated="not deprecated">
  54409. <doc>
  54410. <![CDATA[Get the URL where some job progress information will be displayed.
  54411. @return the URL where some job progress information will be displayed.]]>
  54412. </doc>
  54413. </method>
  54414. <method name="mapProgress" return="float"
  54415. abstract="false" native="false" synchronized="false"
  54416. static="false" final="false" visibility="public"
  54417. deprecated="not deprecated">
  54418. <exception name="IOException" type="java.io.IOException"/>
  54419. <doc>
  54420. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  54421. and 1.0. When all map tasks have completed, the function returns 1.0.
  54422. @return the progress of the job's map-tasks.
  54423. @throws IOException]]>
  54424. </doc>
  54425. </method>
  54426. <method name="reduceProgress" return="float"
  54427. abstract="false" native="false" synchronized="false"
  54428. static="false" final="false" visibility="public"
  54429. deprecated="not deprecated">
  54430. <exception name="IOException" type="java.io.IOException"/>
  54431. <doc>
  54432. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  54433. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  54434. @return the progress of the job's reduce-tasks.
  54435. @throws IOException]]>
  54436. </doc>
  54437. </method>
  54438. <method name="cleanupProgress" return="float"
  54439. abstract="false" native="false" synchronized="false"
  54440. static="false" final="false" visibility="public"
  54441. deprecated="not deprecated">
  54442. <exception name="IOException" type="java.io.IOException"/>
  54443. <doc>
  54444. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  54445. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  54446. @return the progress of the job's cleanup-tasks.
  54447. @throws IOException]]>
  54448. </doc>
  54449. </method>
  54450. <method name="setupProgress" return="float"
  54451. abstract="false" native="false" synchronized="false"
  54452. static="false" final="false" visibility="public"
  54453. deprecated="not deprecated">
  54454. <exception name="IOException" type="java.io.IOException"/>
  54455. <doc>
  54456. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  54457. and 1.0. When all setup tasks have completed, the function returns 1.0.
  54458. @return the progress of the job's setup-tasks.
  54459. @throws IOException]]>
  54460. </doc>
  54461. </method>
  54462. <method name="isComplete" return="boolean"
  54463. abstract="false" native="false" synchronized="false"
  54464. static="false" final="false" visibility="public"
  54465. deprecated="not deprecated">
  54466. <exception name="IOException" type="java.io.IOException"/>
  54467. <doc>
  54468. <![CDATA[Check if the job is finished or not.
  54469. This is a non-blocking call.
  54470. @return <code>true</code> if the job is complete, else <code>false</code>.
  54471. @throws IOException]]>
  54472. </doc>
  54473. </method>
  54474. <method name="isSuccessful" return="boolean"
  54475. abstract="false" native="false" synchronized="false"
  54476. static="false" final="false" visibility="public"
  54477. deprecated="not deprecated">
  54478. <exception name="IOException" type="java.io.IOException"/>
  54479. <doc>
  54480. <![CDATA[Check if the job completed successfully.
  54481. @return <code>true</code> if the job succeeded, else <code>false</code>.
  54482. @throws IOException]]>
  54483. </doc>
  54484. </method>
  54485. <method name="waitForCompletion"
  54486. abstract="false" native="false" synchronized="false"
  54487. static="false" final="false" visibility="public"
  54488. deprecated="not deprecated">
  54489. <exception name="IOException" type="java.io.IOException"/>
  54490. <doc>
  54491. <![CDATA[Blocks until the job is complete.
  54492. @throws IOException]]>
  54493. </doc>
  54494. </method>
  54495. <method name="getJobState" return="int"
  54496. abstract="false" native="false" synchronized="false"
  54497. static="false" final="false" visibility="public"
  54498. deprecated="not deprecated">
  54499. <exception name="IOException" type="java.io.IOException"/>
  54500. <doc>
  54501. <![CDATA[Returns the current state of the Job.
  54502. {@link JobStatus}
  54503. @throws IOException]]>
  54504. </doc>
  54505. </method>
  54506. <method name="killJob"
  54507. abstract="false" native="false" synchronized="false"
  54508. static="false" final="false" visibility="public"
  54509. deprecated="not deprecated">
  54510. <exception name="IOException" type="java.io.IOException"/>
  54511. <doc>
  54512. <![CDATA[Kill the running job. Blocks until all job tasks have been
  54513. killed as well. If the job is no longer running, it simply returns.
  54514. @throws IOException]]>
  54515. </doc>
  54516. </method>
  54517. <method name="setJobPriority"
  54518. abstract="false" native="false" synchronized="false"
  54519. static="false" final="false" visibility="public"
  54520. deprecated="not deprecated">
  54521. <param name="priority" type="java.lang.String"/>
  54522. <exception name="IOException" type="java.io.IOException"/>
  54523. <doc>
  54524. <![CDATA[Set the priority of a running job.
  54525. @param priority the new priority for the job.
  54526. @throws IOException]]>
  54527. </doc>
  54528. </method>
  54529. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54530. abstract="false" native="false" synchronized="false"
  54531. static="false" final="false" visibility="public"
  54532. deprecated="not deprecated">
  54533. <param name="startFrom" type="int"/>
  54534. <exception name="IOException" type="java.io.IOException"/>
  54535. <doc>
  54536. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  54537. @param startFrom index to start fetching events from
  54538. @return an array of {@link TaskCompletionEvent}s
  54539. @throws IOException]]>
  54540. </doc>
  54541. </method>
  54542. <method name="killTask"
  54543. abstract="false" native="false" synchronized="false"
  54544. static="false" final="false" visibility="public"
  54545. deprecated="not deprecated">
  54546. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54547. <param name="shouldFail" type="boolean"/>
  54548. <exception name="IOException" type="java.io.IOException"/>
  54549. <doc>
  54550. <![CDATA[Kill indicated task attempt.
  54551. @param taskId the id of the task to be terminated.
  54552. @param shouldFail if true the task is failed and added to failed tasks
  54553. list, otherwise it is just killed, w/o affecting
  54554. job failure status.
  54555. @throws IOException]]>
  54556. </doc>
  54557. </method>
  54558. <method name="killTask"
  54559. abstract="false" native="false" synchronized="false"
  54560. static="false" final="false" visibility="public"
  54561. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  54562. <param name="taskId" type="java.lang.String"/>
  54563. <param name="shouldFail" type="boolean"/>
  54564. <exception name="IOException" type="java.io.IOException"/>
  54565. <doc>
  54566. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  54567. </doc>
  54568. </method>
  54569. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  54570. abstract="false" native="false" synchronized="false"
  54571. static="false" final="false" visibility="public"
  54572. deprecated="not deprecated">
  54573. <exception name="IOException" type="java.io.IOException"/>
  54574. <doc>
  54575. <![CDATA[Gets the counters for this job.
  54576. @return the counters for this job.
  54577. @throws IOException]]>
  54578. </doc>
  54579. </method>
  54580. <method name="getFailureInfo" return="java.lang.String"
  54581. abstract="false" native="false" synchronized="false"
  54582. static="false" final="false" visibility="public"
  54583. deprecated="not deprecated">
  54584. <exception name="IOException" type="java.io.IOException"/>
  54585. <doc>
  54586. <![CDATA[Get failure info for the job.
  54587. @return the failure info for the job.
  54588. @throws IOException]]>
  54589. </doc>
  54590. </method>
  54591. <method name="getTaskDiagnostics" return="java.lang.String[]"
  54592. abstract="false" native="false" synchronized="false"
  54593. static="false" final="false" visibility="public"
  54594. deprecated="not deprecated">
  54595. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54596. <exception name="IOException" type="java.io.IOException"/>
  54597. <doc>
  54598. <![CDATA[Gets the diagnostic messages for a given task attempt.
  54599. @param taskid
  54600. @return the list of diagnostic messages for the task
  54601. @throws IOException]]>
  54602. </doc>
  54603. </method>
  54604. <doc>
  54605. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  54606. running Map-Reduce job.
  54607. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  54608. and then query the running-job for details such as name, configuration,
  54609. progress etc.</p>
  54610. @see JobClient]]>
  54611. </doc>
  54612. </interface>
  54613. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  54614. <!-- start class org.apache.hadoop.mapred.SafeModeException -->
  54615. <class name="SafeModeException" extends="java.io.IOException"
  54616. abstract="false"
  54617. static="false" final="false" visibility="public"
  54618. deprecated="not deprecated">
  54619. <constructor name="SafeModeException" type="java.lang.String"
  54620. static="false" final="false" visibility="public"
  54621. deprecated="not deprecated">
  54622. <doc>
  54623. <![CDATA[SafeModeException
  54624. @param adminUser admin who put JobTracker in safe-mode,
  54625. <code>null</code> if it was automatic]]>
  54626. </doc>
  54627. </constructor>
  54628. <doc>
  54629. <![CDATA[This exception is thrown when the JobTracker is in safe mode.]]>
  54630. </doc>
  54631. </class>
  54632. <!-- end class org.apache.hadoop.mapred.SafeModeException -->
  54633. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  54634. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54635. abstract="false"
  54636. static="false" final="false" visibility="public"
  54637. deprecated="not deprecated">
  54638. <constructor name="SequenceFileAsBinaryInputFormat"
  54639. static="false" final="false" visibility="public"
  54640. deprecated="not deprecated">
  54641. </constructor>
  54642. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54643. abstract="false" native="false" synchronized="false"
  54644. static="false" final="false" visibility="public"
  54645. deprecated="not deprecated">
  54646. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54647. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54648. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54649. <exception name="IOException" type="java.io.IOException"/>
  54650. </method>
  54651. <doc>
  54652. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  54653. format.]]>
  54654. </doc>
  54655. </class>
  54656. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  54657. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  54658. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  54659. abstract="false"
  54660. static="true" final="false" visibility="public"
  54661. deprecated="not deprecated">
  54662. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54663. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54664. static="false" final="false" visibility="public"
  54665. deprecated="not deprecated">
  54666. <exception name="IOException" type="java.io.IOException"/>
  54667. </constructor>
  54668. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  54669. abstract="false" native="false" synchronized="false"
  54670. static="false" final="false" visibility="public"
  54671. deprecated="not deprecated">
  54672. </method>
  54673. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  54674. abstract="false" native="false" synchronized="false"
  54675. static="false" final="false" visibility="public"
  54676. deprecated="not deprecated">
  54677. </method>
  54678. <method name="getKeyClassName" return="java.lang.String"
  54679. abstract="false" native="false" synchronized="false"
  54680. static="false" final="false" visibility="public"
  54681. deprecated="not deprecated">
  54682. <doc>
  54683. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  54684. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  54685. </doc>
  54686. </method>
  54687. <method name="getValueClassName" return="java.lang.String"
  54688. abstract="false" native="false" synchronized="false"
  54689. static="false" final="false" visibility="public"
  54690. deprecated="not deprecated">
  54691. <doc>
  54692. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  54693. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  54694. </doc>
  54695. </method>
  54696. <method name="next" return="boolean"
  54697. abstract="false" native="false" synchronized="true"
  54698. static="false" final="false" visibility="public"
  54699. deprecated="not deprecated">
  54700. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  54701. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  54702. <exception name="IOException" type="java.io.IOException"/>
  54703. <doc>
  54704. <![CDATA[Read raw bytes from a SequenceFile.]]>
  54705. </doc>
  54706. </method>
  54707. <method name="getPos" return="long"
  54708. abstract="false" native="false" synchronized="false"
  54709. static="false" final="false" visibility="public"
  54710. deprecated="not deprecated">
  54711. <exception name="IOException" type="java.io.IOException"/>
  54712. </method>
  54713. <method name="close"
  54714. abstract="false" native="false" synchronized="false"
  54715. static="false" final="false" visibility="public"
  54716. deprecated="not deprecated">
  54717. <exception name="IOException" type="java.io.IOException"/>
  54718. </method>
  54719. <method name="getProgress" return="float"
  54720. abstract="false" native="false" synchronized="false"
  54721. static="false" final="false" visibility="public"
  54722. deprecated="not deprecated">
  54723. <exception name="IOException" type="java.io.IOException"/>
  54724. <doc>
  54725. <![CDATA[Return the progress within the input split
  54726. @return 0.0 to 1.0 of the input byte range]]>
  54727. </doc>
  54728. </method>
  54729. <doc>
  54730. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  54731. </doc>
  54732. </class>
  54733. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  54734. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  54735. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  54736. abstract="false"
  54737. static="false" final="false" visibility="public"
  54738. deprecated="not deprecated">
  54739. <constructor name="SequenceFileAsBinaryOutputFormat"
  54740. static="false" final="false" visibility="public"
  54741. deprecated="not deprecated">
  54742. </constructor>
  54743. <method name="setSequenceFileOutputKeyClass"
  54744. abstract="false" native="false" synchronized="false"
  54745. static="true" final="false" visibility="public"
  54746. deprecated="not deprecated">
  54747. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54748. <param name="theClass" type="java.lang.Class"/>
  54749. <doc>
  54750. <![CDATA[Set the key class for the {@link SequenceFile}
  54751. <p>This allows the user to specify the key class to be different
  54752. from the actual class ({@link BytesWritable}) used for writing </p>
  54753. @param conf the {@link JobConf} to modify
  54754. @param theClass the SequenceFile output key class.]]>
  54755. </doc>
  54756. </method>
  54757. <method name="setSequenceFileOutputValueClass"
  54758. abstract="false" native="false" synchronized="false"
  54759. static="true" final="false" visibility="public"
  54760. deprecated="not deprecated">
  54761. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54762. <param name="theClass" type="java.lang.Class"/>
  54763. <doc>
  54764. <![CDATA[Set the value class for the {@link SequenceFile}
  54765. <p>This allows the user to specify the value class to be different
  54766. from the actual class ({@link BytesWritable}) used for writing </p>
  54767. @param conf the {@link JobConf} to modify
  54768. @param theClass the SequenceFile output key class.]]>
  54769. </doc>
  54770. </method>
  54771. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  54772. abstract="false" native="false" synchronized="false"
  54773. static="true" final="false" visibility="public"
  54774. deprecated="not deprecated">
  54775. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54776. <doc>
  54777. <![CDATA[Get the key class for the {@link SequenceFile}
  54778. @return the key class of the {@link SequenceFile}]]>
  54779. </doc>
  54780. </method>
  54781. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  54782. abstract="false" native="false" synchronized="false"
  54783. static="true" final="false" visibility="public"
  54784. deprecated="not deprecated">
  54785. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54786. <doc>
  54787. <![CDATA[Get the value class for the {@link SequenceFile}
  54788. @return the value class of the {@link SequenceFile}]]>
  54789. </doc>
  54790. </method>
  54791. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54792. abstract="false" native="false" synchronized="false"
  54793. static="false" final="false" visibility="public"
  54794. deprecated="not deprecated">
  54795. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54796. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54797. <param name="name" type="java.lang.String"/>
  54798. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54799. <exception name="IOException" type="java.io.IOException"/>
  54800. </method>
  54801. <method name="checkOutputSpecs"
  54802. abstract="false" native="false" synchronized="false"
  54803. static="false" final="false" visibility="public"
  54804. deprecated="not deprecated">
  54805. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54806. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54807. <exception name="IOException" type="java.io.IOException"/>
  54808. </method>
  54809. <doc>
  54810. <![CDATA[An {@link OutputFormat} that writes keys, values to
  54811. {@link SequenceFile}s in binary(raw) format]]>
  54812. </doc>
  54813. </class>
  54814. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  54815. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  54816. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  54817. abstract="false"
  54818. static="true" final="false" visibility="protected"
  54819. deprecated="not deprecated">
  54820. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  54821. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  54822. static="false" final="false" visibility="public"
  54823. deprecated="not deprecated">
  54824. </constructor>
  54825. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  54826. static="false" final="false" visibility="public"
  54827. deprecated="not deprecated">
  54828. </constructor>
  54829. <method name="reset"
  54830. abstract="false" native="false" synchronized="false"
  54831. static="false" final="false" visibility="public"
  54832. deprecated="not deprecated">
  54833. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  54834. </method>
  54835. <method name="writeUncompressedBytes"
  54836. abstract="false" native="false" synchronized="false"
  54837. static="false" final="false" visibility="public"
  54838. deprecated="not deprecated">
  54839. <param name="outStream" type="java.io.DataOutputStream"/>
  54840. <exception name="IOException" type="java.io.IOException"/>
  54841. </method>
  54842. <method name="writeCompressedBytes"
  54843. abstract="false" native="false" synchronized="false"
  54844. static="false" final="false" visibility="public"
  54845. deprecated="not deprecated">
  54846. <param name="outStream" type="java.io.DataOutputStream"/>
  54847. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  54848. <exception name="IOException" type="java.io.IOException"/>
  54849. </method>
  54850. <method name="getSize" return="int"
  54851. abstract="false" native="false" synchronized="false"
  54852. static="false" final="false" visibility="public"
  54853. deprecated="not deprecated">
  54854. </method>
  54855. <doc>
  54856. <![CDATA[Inner class used for appendRaw]]>
  54857. </doc>
  54858. </class>
  54859. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  54860. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  54861. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54862. abstract="false"
  54863. static="false" final="false" visibility="public"
  54864. deprecated="not deprecated">
  54865. <constructor name="SequenceFileAsTextInputFormat"
  54866. static="false" final="false" visibility="public"
  54867. deprecated="not deprecated">
  54868. </constructor>
  54869. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54870. abstract="false" native="false" synchronized="false"
  54871. static="false" final="false" visibility="public"
  54872. deprecated="not deprecated">
  54873. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54874. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54875. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54876. <exception name="IOException" type="java.io.IOException"/>
  54877. </method>
  54878. <doc>
  54879. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  54880. which converts the input keys and values to their String forms by calling toString() method.]]>
  54881. </doc>
  54882. </class>
  54883. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  54884. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  54885. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  54886. abstract="false"
  54887. static="false" final="false" visibility="public"
  54888. deprecated="not deprecated">
  54889. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54890. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54891. static="false" final="false" visibility="public"
  54892. deprecated="not deprecated">
  54893. <exception name="IOException" type="java.io.IOException"/>
  54894. </constructor>
  54895. <method name="createKey" return="org.apache.hadoop.io.Text"
  54896. abstract="false" native="false" synchronized="false"
  54897. static="false" final="false" visibility="public"
  54898. deprecated="not deprecated">
  54899. </method>
  54900. <method name="createValue" return="org.apache.hadoop.io.Text"
  54901. abstract="false" native="false" synchronized="false"
  54902. static="false" final="false" visibility="public"
  54903. deprecated="not deprecated">
  54904. </method>
  54905. <method name="next" return="boolean"
  54906. abstract="false" native="false" synchronized="true"
  54907. static="false" final="false" visibility="public"
  54908. deprecated="not deprecated">
  54909. <param name="key" type="org.apache.hadoop.io.Text"/>
  54910. <param name="value" type="org.apache.hadoop.io.Text"/>
  54911. <exception name="IOException" type="java.io.IOException"/>
  54912. <doc>
  54913. <![CDATA[Read key/value pair in a line.]]>
  54914. </doc>
  54915. </method>
  54916. <method name="getProgress" return="float"
  54917. abstract="false" native="false" synchronized="false"
  54918. static="false" final="false" visibility="public"
  54919. deprecated="not deprecated">
  54920. <exception name="IOException" type="java.io.IOException"/>
  54921. </method>
  54922. <method name="getPos" return="long"
  54923. abstract="false" native="false" synchronized="true"
  54924. static="false" final="false" visibility="public"
  54925. deprecated="not deprecated">
  54926. <exception name="IOException" type="java.io.IOException"/>
  54927. </method>
  54928. <method name="close"
  54929. abstract="false" native="false" synchronized="true"
  54930. static="false" final="false" visibility="public"
  54931. deprecated="not deprecated">
  54932. <exception name="IOException" type="java.io.IOException"/>
  54933. </method>
  54934. <doc>
  54935. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  54936. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  54937. class to TextInputFormat class.]]>
  54938. </doc>
  54939. </class>
  54940. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  54941. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  54942. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54943. abstract="false"
  54944. static="false" final="false" visibility="public"
  54945. deprecated="not deprecated">
  54946. <constructor name="SequenceFileInputFilter"
  54947. static="false" final="false" visibility="public"
  54948. deprecated="not deprecated">
  54949. </constructor>
  54950. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54951. abstract="false" native="false" synchronized="false"
  54952. static="false" final="false" visibility="public"
  54953. deprecated="not deprecated">
  54954. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54955. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54956. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54957. <exception name="IOException" type="java.io.IOException"/>
  54958. <doc>
  54959. <![CDATA[Create a record reader for the given split
  54960. @param split file split
  54961. @param job job configuration
  54962. @param reporter reporter who sends report to task tracker
  54963. @return RecordReader]]>
  54964. </doc>
  54965. </method>
  54966. <method name="setFilterClass"
  54967. abstract="false" native="false" synchronized="false"
  54968. static="true" final="false" visibility="public"
  54969. deprecated="not deprecated">
  54970. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54971. <param name="filterClass" type="java.lang.Class"/>
  54972. <doc>
  54973. <![CDATA[set the filter class
  54974. @param conf application configuration
  54975. @param filterClass filter class]]>
  54976. </doc>
  54977. </method>
  54978. <doc>
  54979. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  54980. The sample is decided by the filter class set by the job.]]>
  54981. </doc>
  54982. </class>
  54983. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  54984. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  54985. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  54986. static="true" final="false" visibility="public"
  54987. deprecated="not deprecated">
  54988. <implements name="org.apache.hadoop.conf.Configurable"/>
  54989. <method name="accept" return="boolean"
  54990. abstract="false" native="false" synchronized="false"
  54991. static="false" final="false" visibility="public"
  54992. deprecated="not deprecated">
  54993. <param name="key" type="java.lang.Object"/>
  54994. <doc>
  54995. <![CDATA[filter function
  54996. Decide if a record should be filtered or not
  54997. @param key record key
  54998. @return true if a record is accepted; return false otherwise]]>
  54999. </doc>
  55000. </method>
  55001. <doc>
  55002. <![CDATA[filter interface]]>
  55003. </doc>
  55004. </interface>
  55005. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  55006. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  55007. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  55008. abstract="true"
  55009. static="true" final="false" visibility="public"
  55010. deprecated="not deprecated">
  55011. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  55012. <constructor name="SequenceFileInputFilter.FilterBase"
  55013. static="false" final="false" visibility="public"
  55014. deprecated="not deprecated">
  55015. </constructor>
  55016. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  55017. abstract="false" native="false" synchronized="false"
  55018. static="false" final="false" visibility="public"
  55019. deprecated="not deprecated">
  55020. </method>
  55021. <doc>
  55022. <![CDATA[base class for Filters]]>
  55023. </doc>
  55024. </class>
  55025. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  55026. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  55027. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55028. abstract="false"
  55029. static="true" final="false" visibility="public"
  55030. deprecated="not deprecated">
  55031. <constructor name="SequenceFileInputFilter.MD5Filter"
  55032. static="false" final="false" visibility="public"
  55033. deprecated="not deprecated">
  55034. </constructor>
  55035. <method name="setFrequency"
  55036. abstract="false" native="false" synchronized="false"
  55037. static="true" final="false" visibility="public"
  55038. deprecated="not deprecated">
  55039. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55040. <param name="frequency" type="int"/>
  55041. <doc>
  55042. <![CDATA[set the filtering frequency in configuration
  55043. @param conf configuration
  55044. @param frequency filtering frequency]]>
  55045. </doc>
  55046. </method>
  55047. <method name="setConf"
  55048. abstract="false" native="false" synchronized="false"
  55049. static="false" final="false" visibility="public"
  55050. deprecated="not deprecated">
  55051. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55052. <doc>
  55053. <![CDATA[configure the filter according to configuration
  55054. @param conf configuration]]>
  55055. </doc>
  55056. </method>
  55057. <method name="accept" return="boolean"
  55058. abstract="false" native="false" synchronized="false"
  55059. static="false" final="false" visibility="public"
  55060. deprecated="not deprecated">
  55061. <param name="key" type="java.lang.Object"/>
  55062. <doc>
  55063. <![CDATA[Filtering method
  55064. If MD5(key) % frequency==0, return true; otherwise return false
  55065. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55066. </doc>
  55067. </method>
  55068. <field name="MD5_LEN" type="int"
  55069. transient="false" volatile="false"
  55070. static="true" final="true" visibility="public"
  55071. deprecated="not deprecated">
  55072. </field>
  55073. <doc>
  55074. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  55075. key against a filtering frequency <i>f</i>. The filtering criteria is
  55076. MD5(key) % f == 0.]]>
  55077. </doc>
  55078. </class>
  55079. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  55080. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  55081. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55082. abstract="false"
  55083. static="true" final="false" visibility="public"
  55084. deprecated="not deprecated">
  55085. <constructor name="SequenceFileInputFilter.PercentFilter"
  55086. static="false" final="false" visibility="public"
  55087. deprecated="not deprecated">
  55088. </constructor>
  55089. <method name="setFrequency"
  55090. abstract="false" native="false" synchronized="false"
  55091. static="true" final="false" visibility="public"
  55092. deprecated="not deprecated">
  55093. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55094. <param name="frequency" type="int"/>
  55095. <doc>
  55096. <![CDATA[set the frequency and stores it in conf
  55097. @param conf configuration
  55098. @param frequency filtering frequencey]]>
  55099. </doc>
  55100. </method>
  55101. <method name="setConf"
  55102. abstract="false" native="false" synchronized="false"
  55103. static="false" final="false" visibility="public"
  55104. deprecated="not deprecated">
  55105. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55106. <doc>
  55107. <![CDATA[configure the filter by checking the configuration
  55108. @param conf configuration]]>
  55109. </doc>
  55110. </method>
  55111. <method name="accept" return="boolean"
  55112. abstract="false" native="false" synchronized="false"
  55113. static="false" final="false" visibility="public"
  55114. deprecated="not deprecated">
  55115. <param name="key" type="java.lang.Object"/>
  55116. <doc>
  55117. <![CDATA[Filtering method
  55118. If record# % frequency==0, return true; otherwise return false
  55119. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55120. </doc>
  55121. </method>
  55122. <doc>
  55123. <![CDATA[This class returns a percentage of records
  55124. The percentage is determined by a filtering frequency <i>f</i> using
  55125. the criteria record# % f == 0.
  55126. For example, if the frequency is 10, one out of 10 records is returned.]]>
  55127. </doc>
  55128. </class>
  55129. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  55130. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  55131. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55132. abstract="false"
  55133. static="true" final="false" visibility="public"
  55134. deprecated="not deprecated">
  55135. <constructor name="SequenceFileInputFilter.RegexFilter"
  55136. static="false" final="false" visibility="public"
  55137. deprecated="not deprecated">
  55138. </constructor>
  55139. <method name="setPattern"
  55140. abstract="false" native="false" synchronized="false"
  55141. static="true" final="false" visibility="public"
  55142. deprecated="not deprecated">
  55143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55144. <param name="regex" type="java.lang.String"/>
  55145. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  55146. <doc>
  55147. <![CDATA[Define the filtering regex and stores it in conf
  55148. @param conf where the regex is set
  55149. @param regex regex used as a filter]]>
  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. </doc>
  55160. </method>
  55161. <method name="accept" return="boolean"
  55162. abstract="false" native="false" synchronized="false"
  55163. static="false" final="false" visibility="public"
  55164. deprecated="not deprecated">
  55165. <param name="key" type="java.lang.Object"/>
  55166. <doc>
  55167. <![CDATA[Filtering method
  55168. If key matches the regex, return true; otherwise return false
  55169. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55170. </doc>
  55171. </method>
  55172. <doc>
  55173. <![CDATA[Records filter by matching key to regex]]>
  55174. </doc>
  55175. </class>
  55176. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  55177. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  55178. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  55179. abstract="false"
  55180. static="false" final="false" visibility="public"
  55181. deprecated="not deprecated">
  55182. <constructor name="SequenceFileInputFormat"
  55183. static="false" final="false" visibility="public"
  55184. deprecated="not deprecated">
  55185. </constructor>
  55186. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  55187. abstract="false" native="false" synchronized="false"
  55188. static="false" final="false" visibility="protected"
  55189. deprecated="not deprecated">
  55190. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55191. <exception name="IOException" type="java.io.IOException"/>
  55192. </method>
  55193. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  55194. abstract="false" native="false" synchronized="false"
  55195. static="false" final="false" visibility="public"
  55196. deprecated="not deprecated">
  55197. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55198. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55199. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55200. <exception name="IOException" type="java.io.IOException"/>
  55201. </method>
  55202. <doc>
  55203. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  55204. </doc>
  55205. </class>
  55206. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  55207. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  55208. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  55209. abstract="false"
  55210. static="false" final="false" visibility="public"
  55211. deprecated="not deprecated">
  55212. <constructor name="SequenceFileOutputFormat"
  55213. static="false" final="false" visibility="public"
  55214. deprecated="not deprecated">
  55215. </constructor>
  55216. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  55217. abstract="false" native="false" synchronized="false"
  55218. static="false" final="false" visibility="public"
  55219. deprecated="not deprecated">
  55220. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  55221. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55222. <param name="name" type="java.lang.String"/>
  55223. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  55224. <exception name="IOException" type="java.io.IOException"/>
  55225. </method>
  55226. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  55227. abstract="false" native="false" synchronized="false"
  55228. static="true" final="false" visibility="public"
  55229. deprecated="not deprecated">
  55230. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55231. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  55232. <exception name="IOException" type="java.io.IOException"/>
  55233. <doc>
  55234. <![CDATA[Open the output generated by this format.]]>
  55235. </doc>
  55236. </method>
  55237. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  55238. abstract="false" native="false" synchronized="false"
  55239. static="true" final="false" visibility="public"
  55240. deprecated="not deprecated">
  55241. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55242. <doc>
  55243. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  55244. @param conf the {@link JobConf}
  55245. @return the {@link CompressionType} for the output {@link SequenceFile},
  55246. defaulting to {@link CompressionType#RECORD}]]>
  55247. </doc>
  55248. </method>
  55249. <method name="setOutputCompressionType"
  55250. abstract="false" native="false" synchronized="false"
  55251. static="true" final="false" visibility="public"
  55252. deprecated="not deprecated">
  55253. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55254. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  55255. <doc>
  55256. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  55257. @param conf the {@link JobConf} to modify
  55258. @param style the {@link CompressionType} for the output
  55259. {@link SequenceFile}]]>
  55260. </doc>
  55261. </method>
  55262. <doc>
  55263. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  55264. </doc>
  55265. </class>
  55266. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  55267. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  55268. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  55269. abstract="false"
  55270. static="false" final="false" visibility="public"
  55271. deprecated="not deprecated">
  55272. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  55273. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  55274. static="false" final="false" visibility="public"
  55275. deprecated="not deprecated">
  55276. <exception name="IOException" type="java.io.IOException"/>
  55277. </constructor>
  55278. <method name="getKeyClass" return="java.lang.Class"
  55279. abstract="false" native="false" synchronized="false"
  55280. static="false" final="false" visibility="public"
  55281. deprecated="not deprecated">
  55282. <doc>
  55283. <![CDATA[The class of key that must be passed to {@link
  55284. #next(Object, Object)}..]]>
  55285. </doc>
  55286. </method>
  55287. <method name="getValueClass" return="java.lang.Class"
  55288. abstract="false" native="false" synchronized="false"
  55289. static="false" final="false" visibility="public"
  55290. deprecated="not deprecated">
  55291. <doc>
  55292. <![CDATA[The class of value that must be passed to {@link
  55293. #next(Object, Object)}..]]>
  55294. </doc>
  55295. </method>
  55296. <method name="createKey" return="java.lang.Object"
  55297. abstract="false" native="false" synchronized="false"
  55298. static="false" final="false" visibility="public"
  55299. deprecated="not deprecated">
  55300. </method>
  55301. <method name="createValue" return="java.lang.Object"
  55302. abstract="false" native="false" synchronized="false"
  55303. static="false" final="false" visibility="public"
  55304. deprecated="not deprecated">
  55305. </method>
  55306. <method name="next" return="boolean"
  55307. abstract="false" native="false" synchronized="true"
  55308. static="false" final="false" visibility="public"
  55309. deprecated="not deprecated">
  55310. <param name="key" type="java.lang.Object"/>
  55311. <param name="value" type="java.lang.Object"/>
  55312. <exception name="IOException" type="java.io.IOException"/>
  55313. </method>
  55314. <method name="next" return="boolean"
  55315. abstract="false" native="false" synchronized="true"
  55316. static="false" final="false" visibility="protected"
  55317. deprecated="not deprecated">
  55318. <param name="key" type="java.lang.Object"/>
  55319. <exception name="IOException" type="java.io.IOException"/>
  55320. </method>
  55321. <method name="getCurrentValue"
  55322. abstract="false" native="false" synchronized="true"
  55323. static="false" final="false" visibility="protected"
  55324. deprecated="not deprecated">
  55325. <param name="value" type="java.lang.Object"/>
  55326. <exception name="IOException" type="java.io.IOException"/>
  55327. </method>
  55328. <method name="getProgress" return="float"
  55329. abstract="false" native="false" synchronized="false"
  55330. static="false" final="false" visibility="public"
  55331. deprecated="not deprecated">
  55332. <exception name="IOException" type="java.io.IOException"/>
  55333. <doc>
  55334. <![CDATA[Return the progress within the input split
  55335. @return 0.0 to 1.0 of the input byte range]]>
  55336. </doc>
  55337. </method>
  55338. <method name="getPos" return="long"
  55339. abstract="false" native="false" synchronized="true"
  55340. static="false" final="false" visibility="public"
  55341. deprecated="not deprecated">
  55342. <exception name="IOException" type="java.io.IOException"/>
  55343. </method>
  55344. <method name="seek"
  55345. abstract="false" native="false" synchronized="true"
  55346. static="false" final="false" visibility="protected"
  55347. deprecated="not deprecated">
  55348. <param name="pos" type="long"/>
  55349. <exception name="IOException" type="java.io.IOException"/>
  55350. </method>
  55351. <method name="close"
  55352. abstract="false" native="false" synchronized="true"
  55353. static="false" final="false" visibility="public"
  55354. deprecated="not deprecated">
  55355. <exception name="IOException" type="java.io.IOException"/>
  55356. </method>
  55357. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  55358. transient="false" volatile="false"
  55359. static="false" final="false" visibility="protected"
  55360. deprecated="not deprecated">
  55361. </field>
  55362. <doc>
  55363. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  55364. </doc>
  55365. </class>
  55366. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  55367. <!-- start class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  55368. <class name="ShuffleExceptionTracker" extends="java.lang.Object"
  55369. abstract="false"
  55370. static="false" final="false" visibility="public"
  55371. deprecated="not deprecated">
  55372. <method name="getNumRequests" return="int"
  55373. abstract="false" native="false" synchronized="false"
  55374. static="false" final="false" visibility="public"
  55375. deprecated="not deprecated">
  55376. <doc>
  55377. <![CDATA[Gets the number of requests we are tracking
  55378. @return number of requests]]>
  55379. </doc>
  55380. </method>
  55381. <method name="getPercentExceptions" return="float"
  55382. abstract="false" native="false" synchronized="true"
  55383. static="false" final="false" visibility="public"
  55384. deprecated="not deprecated">
  55385. <doc>
  55386. <![CDATA[Gets the percent of the requests that had exceptions occur.
  55387. @return percent failures as float]]>
  55388. </doc>
  55389. </method>
  55390. <method name="success"
  55391. abstract="false" native="false" synchronized="true"
  55392. static="false" final="false" visibility="public"
  55393. deprecated="not deprecated">
  55394. <doc>
  55395. <![CDATA[Mark the request as success.]]>
  55396. </doc>
  55397. </method>
  55398. <method name="exception"
  55399. abstract="false" native="false" synchronized="true"
  55400. static="false" final="false" visibility="public"
  55401. deprecated="not deprecated">
  55402. <doc>
  55403. <![CDATA[Mark the request as an exception occurred.]]>
  55404. </doc>
  55405. </method>
  55406. <method name="checkException" return="boolean"
  55407. abstract="false" native="false" synchronized="false"
  55408. static="false" final="false" visibility="public"
  55409. deprecated="not deprecated">
  55410. <param name="ie" type="java.io.IOException"/>
  55411. <doc>
  55412. <![CDATA[Parse the exception to see if it matches the regular expression you
  55413. configured. If both msgRegex and StackRegex are set then make sure both
  55414. match, otherwise only one has to match. Abort if the limit is hit.
  55415. @param ie - the shuffle exception that occurred
  55416. @return true if the exception matches, false otherwise]]>
  55417. </doc>
  55418. </method>
  55419. <method name="doAbort"
  55420. abstract="false" native="false" synchronized="false"
  55421. static="false" final="false" visibility="protected"
  55422. deprecated="not deprecated">
  55423. </method>
  55424. <field name="LOG" type="org.apache.commons.logging.Log"
  55425. transient="false" volatile="false"
  55426. static="true" final="true" visibility="public"
  55427. deprecated="not deprecated">
  55428. </field>
  55429. <doc>
  55430. <![CDATA[This class is used to track shuffle exceptions. It contains routines
  55431. to check an exception that occurred while fetching the Map output to see if it
  55432. matches what was configured. It also provides functions to keep track of
  55433. the number of exceptions that occurred and if a limit is set, it will
  55434. abort the TT. The limit is a percent of exceptions of the last X number of
  55435. requests.]]>
  55436. </doc>
  55437. </class>
  55438. <!-- end class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  55439. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  55440. <class name="SkipBadRecords" extends="java.lang.Object"
  55441. abstract="false"
  55442. static="false" final="false" visibility="public"
  55443. deprecated="not deprecated">
  55444. <constructor name="SkipBadRecords"
  55445. static="false" final="false" visibility="public"
  55446. deprecated="not deprecated">
  55447. </constructor>
  55448. <method name="getAttemptsToStartSkipping" return="int"
  55449. abstract="false" native="false" synchronized="false"
  55450. static="true" final="false" visibility="public"
  55451. deprecated="not deprecated">
  55452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55453. <doc>
  55454. <![CDATA[Get the number of Task attempts AFTER which skip mode
  55455. will be kicked off. When skip mode is kicked off, the
  55456. tasks reports the range of records which it will process
  55457. next to the TaskTracker. So that on failures, TT knows which
  55458. ones are possibly the bad records. On further executions,
  55459. those are skipped.
  55460. Default value is 2.
  55461. @param conf the configuration
  55462. @return attemptsToStartSkipping no of task attempts]]>
  55463. </doc>
  55464. </method>
  55465. <method name="setAttemptsToStartSkipping"
  55466. abstract="false" native="false" synchronized="false"
  55467. static="true" final="false" visibility="public"
  55468. deprecated="not deprecated">
  55469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55470. <param name="attemptsToStartSkipping" type="int"/>
  55471. <doc>
  55472. <![CDATA[Set the number of Task attempts AFTER which skip mode
  55473. will be kicked off. When skip mode is kicked off, the
  55474. tasks reports the range of records which it will process
  55475. next to the TaskTracker. So that on failures, TT knows which
  55476. ones are possibly the bad records. On further executions,
  55477. those are skipped.
  55478. Default value is 2.
  55479. @param conf the configuration
  55480. @param attemptsToStartSkipping no of task attempts]]>
  55481. </doc>
  55482. </method>
  55483. <method name="getAutoIncrMapperProcCount" return="boolean"
  55484. abstract="false" native="false" synchronized="false"
  55485. static="true" final="false" visibility="public"
  55486. deprecated="not deprecated">
  55487. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55488. <doc>
  55489. <![CDATA[Get the flag which if set to true,
  55490. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  55491. by MapRunner after invoking the map function. This value must be set to
  55492. false for applications which process the records asynchronously
  55493. or buffer the input records. For example streaming.
  55494. In such cases applications should increment this counter on their own.
  55495. Default value is true.
  55496. @param conf the configuration
  55497. @return <code>true</code> if auto increment
  55498. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  55499. <code>false</code> otherwise.]]>
  55500. </doc>
  55501. </method>
  55502. <method name="setAutoIncrMapperProcCount"
  55503. abstract="false" native="false" synchronized="false"
  55504. static="true" final="false" visibility="public"
  55505. deprecated="not deprecated">
  55506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55507. <param name="autoIncr" type="boolean"/>
  55508. <doc>
  55509. <![CDATA[Set the flag which if set to true,
  55510. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  55511. by MapRunner after invoking the map function. This value must be set to
  55512. false for applications which process the records asynchronously
  55513. or buffer the input records. For example streaming.
  55514. In such cases applications should increment this counter on their own.
  55515. Default value is true.
  55516. @param conf the configuration
  55517. @param autoIncr whether to auto increment
  55518. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  55519. </doc>
  55520. </method>
  55521. <method name="getAutoIncrReducerProcCount" return="boolean"
  55522. abstract="false" native="false" synchronized="false"
  55523. static="true" final="false" visibility="public"
  55524. deprecated="not deprecated">
  55525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55526. <doc>
  55527. <![CDATA[Get the flag which if set to true,
  55528. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  55529. by framework after invoking the reduce function. This value must be set to
  55530. false for applications which process the records asynchronously
  55531. or buffer the input records. For example streaming.
  55532. In such cases applications should increment this counter on their own.
  55533. Default value is true.
  55534. @param conf the configuration
  55535. @return <code>true</code> if auto increment
  55536. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  55537. <code>false</code> otherwise.]]>
  55538. </doc>
  55539. </method>
  55540. <method name="setAutoIncrReducerProcCount"
  55541. abstract="false" native="false" synchronized="false"
  55542. static="true" final="false" visibility="public"
  55543. deprecated="not deprecated">
  55544. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55545. <param name="autoIncr" type="boolean"/>
  55546. <doc>
  55547. <![CDATA[Set the flag which if set to true,
  55548. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  55549. by framework after invoking the reduce function. This value must be set to
  55550. false for applications which process the records asynchronously
  55551. or buffer the input records. For example streaming.
  55552. In such cases applications should increment this counter on their own.
  55553. Default value is true.
  55554. @param conf the configuration
  55555. @param autoIncr whether to auto increment
  55556. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  55557. </doc>
  55558. </method>
  55559. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  55560. abstract="false" native="false" synchronized="false"
  55561. static="true" final="false" visibility="public"
  55562. deprecated="not deprecated">
  55563. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55564. <doc>
  55565. <![CDATA[Get the directory to which skipped records are written. By default it is
  55566. the sub directory of the output _logs directory.
  55567. User can stop writing skipped records by setting the value null.
  55568. @param conf the configuration.
  55569. @return path skip output directory. Null is returned if this is not set
  55570. and output directory is also not set.]]>
  55571. </doc>
  55572. </method>
  55573. <method name="setSkipOutputPath"
  55574. abstract="false" native="false" synchronized="false"
  55575. static="true" final="false" visibility="public"
  55576. deprecated="not deprecated">
  55577. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55578. <param name="path" type="org.apache.hadoop.fs.Path"/>
  55579. <doc>
  55580. <![CDATA[Set the directory to which skipped records are written. By default it is
  55581. the sub directory of the output _logs directory.
  55582. User can stop writing skipped records by setting the value null.
  55583. @param conf the configuration.
  55584. @param path skip output directory path]]>
  55585. </doc>
  55586. </method>
  55587. <method name="getMapperMaxSkipRecords" return="long"
  55588. abstract="false" native="false" synchronized="false"
  55589. static="true" final="false" visibility="public"
  55590. deprecated="not deprecated">
  55591. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55592. <doc>
  55593. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  55594. bad record in mapper. The number includes the bad record as well.
  55595. To turn the feature of detection/skipping of bad records off, set the
  55596. value to 0.
  55597. The framework tries to narrow down the skipped range by retrying
  55598. until this threshold is met OR all attempts get exhausted for this task.
  55599. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55600. narrow down. Whatever records(depends on application) get skipped are
  55601. acceptable.
  55602. Default value is 0.
  55603. @param conf the configuration
  55604. @return maxSkipRecs acceptable skip records.]]>
  55605. </doc>
  55606. </method>
  55607. <method name="setMapperMaxSkipRecords"
  55608. abstract="false" native="false" synchronized="false"
  55609. static="true" final="false" visibility="public"
  55610. deprecated="not deprecated">
  55611. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55612. <param name="maxSkipRecs" type="long"/>
  55613. <doc>
  55614. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  55615. bad record in mapper. The number includes the bad record as well.
  55616. To turn the feature of detection/skipping of bad records off, set the
  55617. value to 0.
  55618. The framework tries to narrow down the skipped range by retrying
  55619. until this threshold is met OR all attempts get exhausted for this task.
  55620. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55621. narrow down. Whatever records(depends on application) get skipped are
  55622. acceptable.
  55623. Default value is 0.
  55624. @param conf the configuration
  55625. @param maxSkipRecs acceptable skip records.]]>
  55626. </doc>
  55627. </method>
  55628. <method name="getReducerMaxSkipGroups" return="long"
  55629. abstract="false" native="false" synchronized="false"
  55630. static="true" final="false" visibility="public"
  55631. deprecated="not deprecated">
  55632. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55633. <doc>
  55634. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  55635. bad group in reducer. The number includes the bad group as well.
  55636. To turn the feature of detection/skipping of bad groups off, set the
  55637. value to 0.
  55638. The framework tries to narrow down the skipped range by retrying
  55639. until this threshold is met OR all attempts get exhausted for this task.
  55640. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55641. narrow down. Whatever groups(depends on application) get skipped are
  55642. acceptable.
  55643. Default value is 0.
  55644. @param conf the configuration
  55645. @return maxSkipGrps acceptable skip groups.]]>
  55646. </doc>
  55647. </method>
  55648. <method name="setReducerMaxSkipGroups"
  55649. abstract="false" native="false" synchronized="false"
  55650. static="true" final="false" visibility="public"
  55651. deprecated="not deprecated">
  55652. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55653. <param name="maxSkipGrps" type="long"/>
  55654. <doc>
  55655. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  55656. bad group in reducer. The number includes the bad group as well.
  55657. To turn the feature of detection/skipping of bad groups off, set the
  55658. value to 0.
  55659. The framework tries to narrow down the skipped range by retrying
  55660. until this threshold is met OR all attempts get exhausted for this task.
  55661. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55662. narrow down. Whatever groups(depends on application) get skipped are
  55663. acceptable.
  55664. Default value is 0.
  55665. @param conf the configuration
  55666. @param maxSkipGrps acceptable skip groups.]]>
  55667. </doc>
  55668. </method>
  55669. <field name="COUNTER_GROUP" type="java.lang.String"
  55670. transient="false" volatile="false"
  55671. static="true" final="true" visibility="public"
  55672. deprecated="not deprecated">
  55673. <doc>
  55674. <![CDATA[Special counters which are written by the application and are
  55675. used by the framework for detecting bad records. For detecting bad records
  55676. these counters must be incremented by the application.]]>
  55677. </doc>
  55678. </field>
  55679. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  55680. transient="false" volatile="false"
  55681. static="true" final="true" visibility="public"
  55682. deprecated="not deprecated">
  55683. <doc>
  55684. <![CDATA[Number of processed map records.
  55685. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  55686. </doc>
  55687. </field>
  55688. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  55689. transient="false" volatile="false"
  55690. static="true" final="true" visibility="public"
  55691. deprecated="not deprecated">
  55692. <doc>
  55693. <![CDATA[Number of processed reduce groups.
  55694. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  55695. </doc>
  55696. </field>
  55697. <doc>
  55698. <![CDATA[Utility class for skip bad records functionality. It contains various
  55699. settings related to skipping of bad records.
  55700. <p>Hadoop provides an optional mode of execution in which the bad records
  55701. are detected and skipped in further attempts.
  55702. <p>This feature can be used when map/reduce tasks crashes deterministically on
  55703. certain input. This happens due to bugs in the map/reduce function. The usual
  55704. course would be to fix these bugs. But sometimes this is not possible;
  55705. perhaps the bug is in third party libraries for which the source code is
  55706. not available. Due to this, the task never reaches to completion even with
  55707. multiple attempts and complete data for that task is lost.</p>
  55708. <p>With this feature, only a small portion of data is lost surrounding
  55709. the bad record, which may be acceptable for some user applications.
  55710. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  55711. <p>The skipping mode gets kicked off after certain no of failures
  55712. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  55713. <p>In the skipping mode, the map/reduce task maintains the record range which
  55714. is getting processed at all times. Before giving the input to the
  55715. map/reduce function, it sends this record range to the Task tracker.
  55716. If task crashes, the Task tracker knows which one was the last reported
  55717. range. On further attempts that range get skipped.</p>]]>
  55718. </doc>
  55719. </class>
  55720. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  55721. <!-- start class org.apache.hadoop.mapred.Task -->
  55722. <class name="Task" extends="java.lang.Object"
  55723. abstract="true"
  55724. static="false" final="false" visibility="public"
  55725. deprecated="not deprecated">
  55726. <implements name="org.apache.hadoop.io.Writable"/>
  55727. <implements name="org.apache.hadoop.conf.Configurable"/>
  55728. <constructor name="Task"
  55729. static="false" final="false" visibility="public"
  55730. deprecated="not deprecated">
  55731. </constructor>
  55732. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  55733. static="false" final="false" visibility="public"
  55734. deprecated="not deprecated">
  55735. </constructor>
  55736. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  55737. abstract="false" native="false" synchronized="false"
  55738. static="true" final="false" visibility="protected"
  55739. deprecated="not deprecated">
  55740. <param name="uriScheme" type="java.lang.String"/>
  55741. <doc>
  55742. <![CDATA[Counters to measure the usage of the different file systems.
  55743. Always return the String array with two elements. First one is the name of
  55744. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  55745. </doc>
  55746. </method>
  55747. <method name="setJobFile"
  55748. abstract="false" native="false" synchronized="false"
  55749. static="false" final="false" visibility="public"
  55750. deprecated="not deprecated">
  55751. <param name="jobFile" type="java.lang.String"/>
  55752. </method>
  55753. <method name="getJobFile" return="java.lang.String"
  55754. abstract="false" native="false" synchronized="false"
  55755. static="false" final="false" visibility="public"
  55756. deprecated="not deprecated">
  55757. </method>
  55758. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  55759. abstract="false" native="false" synchronized="false"
  55760. static="false" final="false" visibility="public"
  55761. deprecated="not deprecated">
  55762. </method>
  55763. <method name="getNumSlotsRequired" return="int"
  55764. abstract="false" native="false" synchronized="false"
  55765. static="false" final="false" visibility="public"
  55766. deprecated="not deprecated">
  55767. </method>
  55768. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55769. abstract="false" native="false" synchronized="false"
  55770. static="false" final="false" visibility="public"
  55771. deprecated="not deprecated">
  55772. <doc>
  55773. <![CDATA[Get the job name for this task.
  55774. @return the job name]]>
  55775. </doc>
  55776. </method>
  55777. <method name="setJobTokenSecret"
  55778. abstract="false" native="false" synchronized="false"
  55779. static="false" final="false" visibility="public"
  55780. deprecated="not deprecated">
  55781. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  55782. <doc>
  55783. <![CDATA[Set the job token secret
  55784. @param tokenSecret the secret]]>
  55785. </doc>
  55786. </method>
  55787. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  55788. abstract="false" native="false" synchronized="false"
  55789. static="false" final="false" visibility="public"
  55790. deprecated="not deprecated">
  55791. <doc>
  55792. <![CDATA[Get the job token secret
  55793. @return the token secret]]>
  55794. </doc>
  55795. </method>
  55796. <method name="setJvmContext"
  55797. abstract="false" native="false" synchronized="false"
  55798. static="false" final="false" visibility="public"
  55799. deprecated="not deprecated">
  55800. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  55801. <doc>
  55802. <![CDATA[Set the task JvmContext
  55803. @param jvmContext]]>
  55804. </doc>
  55805. </method>
  55806. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  55807. abstract="false" native="false" synchronized="false"
  55808. static="false" final="false" visibility="public"
  55809. deprecated="not deprecated">
  55810. <doc>
  55811. <![CDATA[Gets the task JvmContext
  55812. @return the jvm context]]>
  55813. </doc>
  55814. </method>
  55815. <method name="getPartition" return="int"
  55816. abstract="false" native="false" synchronized="false"
  55817. static="false" final="false" visibility="public"
  55818. deprecated="not deprecated">
  55819. <doc>
  55820. <![CDATA[Get the index of this task within the job.
  55821. @return the integer part of the task id]]>
  55822. </doc>
  55823. </method>
  55824. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  55825. abstract="false" native="false" synchronized="true"
  55826. static="false" final="false" visibility="public"
  55827. deprecated="not deprecated">
  55828. <doc>
  55829. <![CDATA[Return current phase of the task.
  55830. needs to be synchronized as communication thread sends the phase every second
  55831. @return the curent phase of the task]]>
  55832. </doc>
  55833. </method>
  55834. <method name="setPhase"
  55835. abstract="false" native="false" synchronized="true"
  55836. static="false" final="false" visibility="protected"
  55837. deprecated="not deprecated">
  55838. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  55839. <doc>
  55840. <![CDATA[Set current phase of the task.
  55841. @param phase task phase]]>
  55842. </doc>
  55843. </method>
  55844. <method name="toWriteSkipRecs" return="boolean"
  55845. abstract="false" native="false" synchronized="false"
  55846. static="false" final="false" visibility="protected"
  55847. deprecated="not deprecated">
  55848. <doc>
  55849. <![CDATA[Get whether to write skip records.]]>
  55850. </doc>
  55851. </method>
  55852. <method name="setWriteSkipRecs"
  55853. abstract="false" native="false" synchronized="false"
  55854. static="false" final="false" visibility="protected"
  55855. deprecated="not deprecated">
  55856. <param name="writeSkipRecs" type="boolean"/>
  55857. <doc>
  55858. <![CDATA[Set whether to write skip records.]]>
  55859. </doc>
  55860. </method>
  55861. <method name="reportFatalError"
  55862. abstract="false" native="false" synchronized="false"
  55863. static="false" final="false" visibility="protected"
  55864. deprecated="not deprecated">
  55865. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55866. <param name="throwable" type="java.lang.Throwable"/>
  55867. <param name="logMsg" type="java.lang.String"/>
  55868. <doc>
  55869. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  55870. </doc>
  55871. </method>
  55872. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  55873. abstract="false" native="false" synchronized="false"
  55874. static="false" final="false" visibility="public"
  55875. deprecated="not deprecated">
  55876. <doc>
  55877. <![CDATA[Get skipRanges.]]>
  55878. </doc>
  55879. </method>
  55880. <method name="setSkipRanges"
  55881. abstract="false" native="false" synchronized="false"
  55882. static="false" final="false" visibility="public"
  55883. deprecated="not deprecated">
  55884. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  55885. <doc>
  55886. <![CDATA[Set skipRanges.]]>
  55887. </doc>
  55888. </method>
  55889. <method name="isSkipping" return="boolean"
  55890. abstract="false" native="false" synchronized="false"
  55891. static="false" final="false" visibility="public"
  55892. deprecated="not deprecated">
  55893. <doc>
  55894. <![CDATA[Is Task in skipping mode.]]>
  55895. </doc>
  55896. </method>
  55897. <method name="setSkipping"
  55898. abstract="false" native="false" synchronized="false"
  55899. static="false" final="false" visibility="public"
  55900. deprecated="not deprecated">
  55901. <param name="skipping" type="boolean"/>
  55902. <doc>
  55903. <![CDATA[Sets whether to run Task in skipping mode.
  55904. @param skipping]]>
  55905. </doc>
  55906. </method>
  55907. <method name="getUser" return="java.lang.String"
  55908. abstract="false" native="false" synchronized="false"
  55909. static="false" final="false" visibility="public"
  55910. deprecated="not deprecated">
  55911. <doc>
  55912. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  55913. user name even before it's JobConf is localized. So we explicitly serialize
  55914. the user name.
  55915. @return user]]>
  55916. </doc>
  55917. </method>
  55918. <method name="write"
  55919. abstract="false" native="false" synchronized="false"
  55920. static="false" final="false" visibility="public"
  55921. deprecated="not deprecated">
  55922. <param name="out" type="java.io.DataOutput"/>
  55923. <exception name="IOException" type="java.io.IOException"/>
  55924. </method>
  55925. <method name="readFields"
  55926. abstract="false" native="false" synchronized="false"
  55927. static="false" final="false" visibility="public"
  55928. deprecated="not deprecated">
  55929. <param name="in" type="java.io.DataInput"/>
  55930. <exception name="IOException" type="java.io.IOException"/>
  55931. </method>
  55932. <method name="toString" return="java.lang.String"
  55933. abstract="false" native="false" synchronized="false"
  55934. static="false" final="false" visibility="public"
  55935. deprecated="not deprecated">
  55936. </method>
  55937. <method name="localizeConfiguration"
  55938. abstract="false" native="false" synchronized="false"
  55939. static="false" final="false" visibility="public"
  55940. deprecated="not deprecated">
  55941. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55942. <exception name="IOException" type="java.io.IOException"/>
  55943. <doc>
  55944. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  55945. </doc>
  55946. </method>
  55947. <method name="run"
  55948. abstract="true" native="false" synchronized="false"
  55949. static="false" final="false" visibility="public"
  55950. deprecated="not deprecated">
  55951. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55952. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55953. <exception name="IOException" type="java.io.IOException"/>
  55954. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  55955. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55956. <doc>
  55957. <![CDATA[Run this task as a part of the named job. This method is executed in the
  55958. child process and is what invokes user-supplied map, reduce, etc. methods.
  55959. @param umbilical for progress reports]]>
  55960. </doc>
  55961. </method>
  55962. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  55963. abstract="true" native="false" synchronized="false"
  55964. static="false" final="false" visibility="public"
  55965. deprecated="not deprecated">
  55966. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  55967. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  55968. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  55969. <exception name="IOException" type="java.io.IOException"/>
  55970. <doc>
  55971. <![CDATA[Return an approprate thread runner for this task.
  55972. @param tip TODO]]>
  55973. </doc>
  55974. </method>
  55975. <method name="isMapTask" return="boolean"
  55976. abstract="true" native="false" synchronized="false"
  55977. static="false" final="false" visibility="public"
  55978. deprecated="not deprecated">
  55979. </method>
  55980. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  55981. abstract="false" native="false" synchronized="false"
  55982. static="false" final="false" visibility="public"
  55983. deprecated="not deprecated">
  55984. </method>
  55985. <method name="initialize"
  55986. abstract="false" native="false" synchronized="false"
  55987. static="false" final="false" visibility="public"
  55988. deprecated="not deprecated">
  55989. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55990. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  55991. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55992. <param name="useNewApi" type="boolean"/>
  55993. <exception name="IOException" type="java.io.IOException"/>
  55994. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  55995. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55996. </method>
  55997. <method name="reportNextRecordRange"
  55998. abstract="false" native="false" synchronized="false"
  55999. static="false" final="false" visibility="protected"
  56000. deprecated="not deprecated">
  56001. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56002. <param name="nextRecIndex" type="long"/>
  56003. <exception name="IOException" type="java.io.IOException"/>
  56004. <doc>
  56005. <![CDATA[Reports the next executing record range to TaskTracker.
  56006. @param umbilical
  56007. @param nextRecIndex the record index which would be fed next.
  56008. @throws IOException]]>
  56009. </doc>
  56010. </method>
  56011. <method name="done"
  56012. abstract="false" native="false" synchronized="false"
  56013. static="false" final="false" visibility="public"
  56014. deprecated="not deprecated">
  56015. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56016. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56017. <exception name="IOException" type="java.io.IOException"/>
  56018. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56019. </method>
  56020. <method name="statusUpdate"
  56021. abstract="false" native="false" synchronized="false"
  56022. static="false" final="false" visibility="protected"
  56023. deprecated="not deprecated">
  56024. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56025. <exception name="IOException" type="java.io.IOException"/>
  56026. </method>
  56027. <method name="runTaskCleanupTask"
  56028. abstract="false" native="false" synchronized="false"
  56029. static="false" final="false" visibility="protected"
  56030. deprecated="not deprecated">
  56031. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56032. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56033. <exception name="IOException" type="java.io.IOException"/>
  56034. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56035. </method>
  56036. <method name="runJobCleanupTask"
  56037. abstract="false" native="false" synchronized="false"
  56038. static="false" final="false" visibility="protected"
  56039. deprecated="not deprecated">
  56040. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56041. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56042. <exception name="IOException" type="java.io.IOException"/>
  56043. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56044. </method>
  56045. <method name="supportIsolationRunner" return="boolean"
  56046. abstract="false" native="false" synchronized="false"
  56047. static="false" final="false" visibility="protected"
  56048. deprecated="not deprecated">
  56049. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56050. </method>
  56051. <method name="runJobSetupTask"
  56052. abstract="false" native="false" synchronized="false"
  56053. static="false" final="false" visibility="protected"
  56054. deprecated="not deprecated">
  56055. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56056. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56057. <exception name="IOException" type="java.io.IOException"/>
  56058. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56059. </method>
  56060. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  56061. abstract="false" native="false" synchronized="false"
  56062. static="true" final="false" visibility="protected"
  56063. deprecated="not deprecated">
  56064. <param name="path" type="org.apache.hadoop.fs.Path"/>
  56065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56066. <exception name="IOException" type="java.io.IOException"/>
  56067. <doc>
  56068. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  56069. with path.
  56070. @param path
  56071. the path.
  56072. @return a Statistics instance, or null if none is found for the scheme.]]>
  56073. </doc>
  56074. </method>
  56075. <method name="setConf"
  56076. abstract="false" native="false" synchronized="false"
  56077. static="false" final="false" visibility="public"
  56078. deprecated="not deprecated">
  56079. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56080. </method>
  56081. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56082. abstract="false" native="false" synchronized="false"
  56083. static="false" final="false" visibility="public"
  56084. deprecated="not deprecated">
  56085. </method>
  56086. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  56087. abstract="false" native="false" synchronized="false"
  56088. static="true" final="false" visibility="protected"
  56089. deprecated="not deprecated">
  56090. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  56091. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  56092. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  56093. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  56094. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  56095. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  56096. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  56097. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  56098. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  56099. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  56100. <param name="keyClass" type="java.lang.Class"/>
  56101. <param name="valueClass" type="java.lang.Class"/>
  56102. <exception name="IOException" type="java.io.IOException"/>
  56103. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  56104. </method>
  56105. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  56106. transient="false" volatile="false"
  56107. static="true" final="true" visibility="public"
  56108. deprecated="not deprecated">
  56109. </field>
  56110. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  56111. transient="false" volatile="false"
  56112. static="true" final="true" visibility="public"
  56113. deprecated="not deprecated">
  56114. </field>
  56115. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  56116. transient="false" volatile="false"
  56117. static="true" final="true" visibility="protected"
  56118. deprecated="not deprecated">
  56119. <doc>
  56120. <![CDATA[Name of the FileSystem counters' group]]>
  56121. </doc>
  56122. </field>
  56123. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  56124. transient="false" volatile="false"
  56125. static="false" final="false" visibility="protected"
  56126. deprecated="not deprecated">
  56127. </field>
  56128. <field name="jobCleanup" type="boolean"
  56129. transient="false" volatile="false"
  56130. static="false" final="false" visibility="protected"
  56131. deprecated="not deprecated">
  56132. </field>
  56133. <field name="jobSetup" type="boolean"
  56134. transient="false" volatile="false"
  56135. static="false" final="false" visibility="protected"
  56136. deprecated="not deprecated">
  56137. </field>
  56138. <field name="taskCleanup" type="boolean"
  56139. transient="false" volatile="false"
  56140. static="false" final="false" visibility="protected"
  56141. deprecated="not deprecated">
  56142. </field>
  56143. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  56144. transient="false" volatile="false"
  56145. static="false" final="false" visibility="protected"
  56146. deprecated="not deprecated">
  56147. </field>
  56148. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  56149. transient="false" volatile="false"
  56150. static="false" final="false" visibility="protected"
  56151. deprecated="not deprecated">
  56152. </field>
  56153. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  56154. transient="false" volatile="false"
  56155. static="false" final="false" visibility="protected"
  56156. deprecated="not deprecated">
  56157. </field>
  56158. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  56159. transient="false" volatile="false"
  56160. static="false" final="false" visibility="protected"
  56161. deprecated="not deprecated">
  56162. </field>
  56163. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  56164. transient="false" volatile="false"
  56165. static="false" final="false" visibility="protected"
  56166. deprecated="not deprecated">
  56167. </field>
  56168. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  56169. transient="false" volatile="false"
  56170. static="false" final="false" visibility="protected"
  56171. deprecated="not deprecated">
  56172. </field>
  56173. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  56174. transient="false" volatile="false"
  56175. static="false" final="false" visibility="protected"
  56176. deprecated="not deprecated">
  56177. </field>
  56178. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  56179. transient="false" volatile="false"
  56180. static="false" final="true" visibility="protected"
  56181. deprecated="not deprecated">
  56182. </field>
  56183. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  56184. transient="false" volatile="false"
  56185. static="false" final="false" visibility="protected"
  56186. deprecated="not deprecated">
  56187. </field>
  56188. <field name="tokenSecret" type="javax.crypto.SecretKey"
  56189. transient="false" volatile="false"
  56190. static="false" final="false" visibility="protected"
  56191. deprecated="not deprecated">
  56192. </field>
  56193. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  56194. transient="false" volatile="false"
  56195. static="false" final="false" visibility="protected"
  56196. deprecated="not deprecated">
  56197. </field>
  56198. <field name="PROGRESS_INTERVAL" type="int"
  56199. transient="false" volatile="false"
  56200. static="true" final="true" visibility="public"
  56201. deprecated="not deprecated">
  56202. <doc>
  56203. <![CDATA[The number of milliseconds between progress reports.]]>
  56204. </doc>
  56205. </field>
  56206. <doc>
  56207. <![CDATA[Base class for tasks.
  56208. This is NOT a public interface.]]>
  56209. </doc>
  56210. </class>
  56211. <!-- end class org.apache.hadoop.mapred.Task -->
  56212. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  56213. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  56214. abstract="false"
  56215. static="true" final="false" visibility="protected"
  56216. deprecated="not deprecated">
  56217. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  56218. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  56219. static="false" final="false" visibility="public"
  56220. deprecated="not deprecated">
  56221. </constructor>
  56222. <method name="setWriter"
  56223. abstract="false" native="false" synchronized="true"
  56224. static="false" final="false" visibility="public"
  56225. deprecated="not deprecated">
  56226. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  56227. </method>
  56228. <method name="collect"
  56229. abstract="false" native="false" synchronized="true"
  56230. static="false" final="false" visibility="public"
  56231. deprecated="not deprecated">
  56232. <param name="key" type="java.lang.Object"/>
  56233. <param name="value" type="java.lang.Object"/>
  56234. <exception name="IOException" type="java.io.IOException"/>
  56235. </method>
  56236. <doc>
  56237. <![CDATA[OutputCollector for the combiner.]]>
  56238. </doc>
  56239. </class>
  56240. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  56241. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  56242. <class name="Task.CombinerRunner" extends="java.lang.Object"
  56243. abstract="true"
  56244. static="true" final="false" visibility="protected"
  56245. deprecated="not deprecated">
  56246. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  56247. transient="false" volatile="false"
  56248. static="false" final="true" visibility="protected"
  56249. deprecated="not deprecated">
  56250. </field>
  56251. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  56252. transient="false" volatile="false"
  56253. static="false" final="true" visibility="protected"
  56254. deprecated="not deprecated">
  56255. </field>
  56256. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  56257. transient="false" volatile="false"
  56258. static="false" final="true" visibility="protected"
  56259. deprecated="not deprecated">
  56260. </field>
  56261. </class>
  56262. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  56263. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  56264. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  56265. abstract="false"
  56266. static="true" final="false" visibility="protected"
  56267. deprecated="not deprecated">
  56268. <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"
  56269. static="false" final="false" visibility="public"
  56270. deprecated="not deprecated">
  56271. <exception name="IOException" type="java.io.IOException"/>
  56272. </constructor>
  56273. <method name="next" return="java.lang.Object"
  56274. abstract="false" native="false" synchronized="false"
  56275. static="false" final="false" visibility="public"
  56276. deprecated="not deprecated">
  56277. </method>
  56278. </class>
  56279. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  56280. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  56281. <class name="Task.Counter" extends="java.lang.Enum"
  56282. abstract="false"
  56283. static="true" final="true" visibility="public"
  56284. deprecated="not deprecated">
  56285. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  56286. abstract="false" native="false" synchronized="false"
  56287. static="true" final="false" visibility="public"
  56288. deprecated="not deprecated">
  56289. </method>
  56290. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  56291. abstract="false" native="false" synchronized="false"
  56292. static="true" final="false" visibility="public"
  56293. deprecated="not deprecated">
  56294. <param name="name" type="java.lang.String"/>
  56295. </method>
  56296. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56297. transient="false" volatile="false"
  56298. static="true" final="true" visibility="public"
  56299. deprecated="not deprecated">
  56300. </field>
  56301. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56302. transient="false" volatile="false"
  56303. static="true" final="true" visibility="public"
  56304. deprecated="not deprecated">
  56305. </field>
  56306. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56307. transient="false" volatile="false"
  56308. static="true" final="true" visibility="public"
  56309. deprecated="not deprecated">
  56310. </field>
  56311. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56312. transient="false" volatile="false"
  56313. static="true" final="true" visibility="public"
  56314. deprecated="not deprecated">
  56315. </field>
  56316. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56317. transient="false" volatile="false"
  56318. static="true" final="true" visibility="public"
  56319. deprecated="not deprecated">
  56320. </field>
  56321. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56322. transient="false" volatile="false"
  56323. static="true" final="true" visibility="public"
  56324. deprecated="not deprecated">
  56325. </field>
  56326. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56327. transient="false" volatile="false"
  56328. static="true" final="true" visibility="public"
  56329. deprecated="not deprecated">
  56330. </field>
  56331. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56332. transient="false" volatile="false"
  56333. static="true" final="true" visibility="public"
  56334. deprecated="not deprecated">
  56335. </field>
  56336. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  56337. transient="false" volatile="false"
  56338. static="true" final="true" visibility="public"
  56339. deprecated="not deprecated">
  56340. </field>
  56341. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56342. transient="false" volatile="false"
  56343. static="true" final="true" visibility="public"
  56344. deprecated="not deprecated">
  56345. </field>
  56346. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56347. transient="false" volatile="false"
  56348. static="true" final="true" visibility="public"
  56349. deprecated="not deprecated">
  56350. </field>
  56351. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56352. transient="false" volatile="false"
  56353. static="true" final="true" visibility="public"
  56354. deprecated="not deprecated">
  56355. </field>
  56356. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  56357. transient="false" volatile="false"
  56358. static="true" final="true" visibility="public"
  56359. deprecated="not deprecated">
  56360. </field>
  56361. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56362. transient="false" volatile="false"
  56363. static="true" final="true" visibility="public"
  56364. deprecated="not deprecated">
  56365. </field>
  56366. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56367. transient="false" volatile="false"
  56368. static="true" final="true" visibility="public"
  56369. deprecated="not deprecated">
  56370. </field>
  56371. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56372. transient="false" volatile="false"
  56373. static="true" final="true" visibility="public"
  56374. deprecated="not deprecated">
  56375. </field>
  56376. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  56377. transient="false" volatile="false"
  56378. static="true" final="true" visibility="public"
  56379. deprecated="not deprecated">
  56380. </field>
  56381. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56382. transient="false" volatile="false"
  56383. static="true" final="true" visibility="public"
  56384. deprecated="not deprecated">
  56385. </field>
  56386. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56387. transient="false" volatile="false"
  56388. static="true" final="true" visibility="public"
  56389. deprecated="not deprecated">
  56390. </field>
  56391. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56392. transient="false" volatile="false"
  56393. static="true" final="true" visibility="public"
  56394. deprecated="not deprecated">
  56395. </field>
  56396. </class>
  56397. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  56398. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  56399. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  56400. abstract="false"
  56401. static="true" final="false" visibility="protected"
  56402. deprecated="not deprecated">
  56403. </class>
  56404. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  56405. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  56406. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  56407. abstract="false"
  56408. static="true" final="false" visibility="protected"
  56409. deprecated="not deprecated">
  56410. <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"
  56411. static="false" final="false" visibility="protected"
  56412. deprecated="not deprecated">
  56413. </constructor>
  56414. <method name="combine"
  56415. abstract="false" native="false" synchronized="false"
  56416. static="false" final="false" visibility="protected"
  56417. deprecated="not deprecated">
  56418. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  56419. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  56420. <exception name="IOException" type="java.io.IOException"/>
  56421. </method>
  56422. </class>
  56423. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  56424. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  56425. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  56426. abstract="false"
  56427. static="false" final="false" visibility="protected"
  56428. deprecated="not deprecated">
  56429. <implements name="java.lang.Runnable"/>
  56430. <implements name="org.apache.hadoop.mapred.Reporter"/>
  56431. <method name="setStatus"
  56432. abstract="false" native="false" synchronized="false"
  56433. static="false" final="false" visibility="public"
  56434. deprecated="not deprecated">
  56435. <param name="status" type="java.lang.String"/>
  56436. </method>
  56437. <method name="setProgress"
  56438. abstract="false" native="false" synchronized="false"
  56439. static="false" final="false" visibility="public"
  56440. deprecated="not deprecated">
  56441. <param name="progress" type="float"/>
  56442. </method>
  56443. <method name="getProgress" return="float"
  56444. abstract="false" native="false" synchronized="false"
  56445. static="false" final="false" visibility="public"
  56446. deprecated="not deprecated">
  56447. </method>
  56448. <method name="progress"
  56449. abstract="false" native="false" synchronized="false"
  56450. static="false" final="false" visibility="public"
  56451. deprecated="not deprecated">
  56452. </method>
  56453. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  56454. abstract="false" native="false" synchronized="false"
  56455. static="false" final="false" visibility="public"
  56456. deprecated="not deprecated">
  56457. <param name="group" type="java.lang.String"/>
  56458. <param name="name" type="java.lang.String"/>
  56459. </method>
  56460. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  56461. abstract="false" native="false" synchronized="false"
  56462. static="false" final="false" visibility="public"
  56463. deprecated="not deprecated">
  56464. <param name="name" type="java.lang.Enum"/>
  56465. </method>
  56466. <method name="incrCounter"
  56467. abstract="false" native="false" synchronized="false"
  56468. static="false" final="false" visibility="public"
  56469. deprecated="not deprecated">
  56470. <param name="key" type="java.lang.Enum"/>
  56471. <param name="amount" type="long"/>
  56472. </method>
  56473. <method name="incrCounter"
  56474. abstract="false" native="false" synchronized="false"
  56475. static="false" final="false" visibility="public"
  56476. deprecated="not deprecated">
  56477. <param name="group" type="java.lang.String"/>
  56478. <param name="counter" type="java.lang.String"/>
  56479. <param name="amount" type="long"/>
  56480. </method>
  56481. <method name="setInputSplit"
  56482. abstract="false" native="false" synchronized="false"
  56483. static="false" final="false" visibility="public"
  56484. deprecated="not deprecated">
  56485. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56486. </method>
  56487. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  56488. abstract="false" native="false" synchronized="false"
  56489. static="false" final="false" visibility="public"
  56490. deprecated="not deprecated">
  56491. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  56492. </method>
  56493. <method name="run"
  56494. abstract="false" native="false" synchronized="false"
  56495. static="false" final="false" visibility="public"
  56496. deprecated="not deprecated">
  56497. <doc>
  56498. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  56499. It sends progress updates if progress has been made or if the task needs to
  56500. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  56501. </doc>
  56502. </method>
  56503. <method name="startCommunicationThread"
  56504. abstract="false" native="false" synchronized="false"
  56505. static="false" final="false" visibility="public"
  56506. deprecated="not deprecated">
  56507. </method>
  56508. <method name="stopCommunicationThread"
  56509. abstract="false" native="false" synchronized="false"
  56510. static="false" final="false" visibility="public"
  56511. deprecated="not deprecated">
  56512. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56513. </method>
  56514. </class>
  56515. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  56516. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  56517. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  56518. abstract="false"
  56519. static="false" final="false" visibility="public"
  56520. deprecated="not deprecated">
  56521. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  56522. abstract="false" native="false" synchronized="false"
  56523. static="false" final="false" visibility="public"
  56524. deprecated="not deprecated">
  56525. <doc>
  56526. <![CDATA[Get the taskAttemptID.
  56527. @return TaskAttemptID]]>
  56528. </doc>
  56529. </method>
  56530. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  56531. abstract="false" native="false" synchronized="false"
  56532. static="false" final="false" visibility="public"
  56533. deprecated="not deprecated">
  56534. </method>
  56535. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  56536. abstract="false" native="false" synchronized="false"
  56537. static="false" final="false" visibility="public"
  56538. deprecated="not deprecated">
  56539. </method>
  56540. <method name="progress"
  56541. abstract="false" native="false" synchronized="false"
  56542. static="false" final="false" visibility="public"
  56543. deprecated="not deprecated">
  56544. </method>
  56545. </class>
  56546. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  56547. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  56548. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  56549. abstract="false"
  56550. static="false" final="false" visibility="public"
  56551. deprecated="not deprecated">
  56552. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  56553. static="false" final="false" visibility="public"
  56554. deprecated="not deprecated">
  56555. <doc>
  56556. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  56557. @param taskId TaskID that this task belongs to
  56558. @param id the task attempt number]]>
  56559. </doc>
  56560. </constructor>
  56561. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  56562. static="false" final="false" visibility="public"
  56563. deprecated="not deprecated">
  56564. <doc>
  56565. <![CDATA[Constructs a TaskId object from given parts.
  56566. @param jtIdentifier jobTracker identifier
  56567. @param jobId job number
  56568. @param isMap whether the tip is a map
  56569. @param taskId taskId number
  56570. @param id the task attempt number]]>
  56571. </doc>
  56572. </constructor>
  56573. <constructor name="TaskAttemptID"
  56574. static="false" final="false" visibility="public"
  56575. deprecated="not deprecated">
  56576. </constructor>
  56577. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  56578. abstract="false" native="false" synchronized="false"
  56579. static="true" final="false" visibility="public"
  56580. deprecated="not deprecated">
  56581. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  56582. <doc>
  56583. <![CDATA[Downgrade a new TaskAttemptID to an old one
  56584. @param old the new id
  56585. @return either old or a new TaskAttemptID constructed to match old]]>
  56586. </doc>
  56587. </method>
  56588. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  56589. abstract="false" native="false" synchronized="false"
  56590. static="false" final="false" visibility="public"
  56591. deprecated="not deprecated">
  56592. </method>
  56593. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  56594. abstract="false" native="false" synchronized="false"
  56595. static="false" final="false" visibility="public"
  56596. deprecated="not deprecated">
  56597. </method>
  56598. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  56599. abstract="false" native="false" synchronized="false"
  56600. static="true" final="false" visibility="public"
  56601. deprecated="not deprecated">
  56602. <param name="in" type="java.io.DataInput"/>
  56603. <exception name="IOException" type="java.io.IOException"/>
  56604. </method>
  56605. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  56606. abstract="false" native="false" synchronized="false"
  56607. static="true" final="false" visibility="public"
  56608. deprecated="not deprecated">
  56609. <param name="str" type="java.lang.String"/>
  56610. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  56611. <doc>
  56612. <![CDATA[Construct a TaskAttemptID object from given string
  56613. @return constructed TaskAttemptID object or null if the given String is null
  56614. @throws IllegalArgumentException if the given string is malformed]]>
  56615. </doc>
  56616. </method>
  56617. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  56618. abstract="false" native="false" synchronized="false"
  56619. static="true" final="false" visibility="public"
  56620. deprecated="not deprecated">
  56621. <param name="jtIdentifier" type="java.lang.String"/>
  56622. <param name="jobId" type="java.lang.Integer"/>
  56623. <param name="isMap" type="java.lang.Boolean"/>
  56624. <param name="taskId" type="java.lang.Integer"/>
  56625. <param name="attemptId" type="java.lang.Integer"/>
  56626. <doc>
  56627. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  56628. be given null, in which case that part of the regex will be generic.
  56629. For example to obtain a regex matching <i>all task attempt IDs</i>
  56630. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  56631. map task</i>, we would use :
  56632. <pre>
  56633. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  56634. </pre>
  56635. which will return :
  56636. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  56637. @param jtIdentifier jobTracker identifier, or null
  56638. @param jobId job number, or null
  56639. @param isMap whether the tip is a map, or null
  56640. @param taskId taskId number, or null
  56641. @param attemptId the task attempt number, or null
  56642. @return a regex pattern matching TaskAttemptIDs]]>
  56643. </doc>
  56644. </method>
  56645. <doc>
  56646. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  56647. a task attempt. Each task attempt is one particular instance of a Map or
  56648. Reduce Task identified by its TaskID.
  56649. TaskAttemptID consists of 2 parts. First part is the
  56650. {@link TaskID}, that this TaskAttemptID belongs to.
  56651. Second part is the task attempt number. <br>
  56652. An example TaskAttemptID is :
  56653. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  56654. zeroth task attempt for the fifth map task in the third job
  56655. running at the jobtracker started at <code>200707121733</code>.
  56656. <p>
  56657. Applications should never construct or parse TaskAttemptID strings
  56658. , but rather use appropriate constructors or {@link #forName(String)}
  56659. method.
  56660. @see JobID
  56661. @see TaskID]]>
  56662. </doc>
  56663. </class>
  56664. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  56665. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  56666. <class name="TaskCompletionEvent" extends="java.lang.Object"
  56667. abstract="false"
  56668. static="false" final="false" visibility="public"
  56669. deprecated="not deprecated">
  56670. <implements name="org.apache.hadoop.io.Writable"/>
  56671. <constructor name="TaskCompletionEvent"
  56672. static="false" final="false" visibility="public"
  56673. deprecated="not deprecated">
  56674. <doc>
  56675. <![CDATA[Default constructor for Writable.]]>
  56676. </doc>
  56677. </constructor>
  56678. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  56679. static="false" final="false" visibility="public"
  56680. deprecated="not deprecated">
  56681. <doc>
  56682. <![CDATA[Constructor. eventId should be created externally and incremented
  56683. per event for each job.
  56684. @param eventId event id, event id should be unique and assigned in
  56685. incrementally, starting from 0.
  56686. @param taskId task id
  56687. @param status task's status
  56688. @param taskTrackerHttp task tracker's host:port for http.]]>
  56689. </doc>
  56690. </constructor>
  56691. <method name="getEventId" return="int"
  56692. abstract="false" native="false" synchronized="false"
  56693. static="false" final="false" visibility="public"
  56694. deprecated="not deprecated">
  56695. <doc>
  56696. <![CDATA[Returns event Id.
  56697. @return event id]]>
  56698. </doc>
  56699. </method>
  56700. <method name="getTaskId" return="java.lang.String"
  56701. abstract="false" native="false" synchronized="false"
  56702. static="false" final="false" visibility="public"
  56703. deprecated="use {@link #getTaskAttemptId()} instead.">
  56704. <doc>
  56705. <![CDATA[Returns task id.
  56706. @return task id
  56707. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  56708. </doc>
  56709. </method>
  56710. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  56711. abstract="false" native="false" synchronized="false"
  56712. static="false" final="false" visibility="public"
  56713. deprecated="not deprecated">
  56714. <doc>
  56715. <![CDATA[Returns task id.
  56716. @return task id]]>
  56717. </doc>
  56718. </method>
  56719. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56720. abstract="false" native="false" synchronized="false"
  56721. static="false" final="false" visibility="public"
  56722. deprecated="not deprecated">
  56723. <doc>
  56724. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  56725. @return task tracker status]]>
  56726. </doc>
  56727. </method>
  56728. <method name="getTaskTrackerHttp" return="java.lang.String"
  56729. abstract="false" native="false" synchronized="false"
  56730. static="false" final="false" visibility="public"
  56731. deprecated="not deprecated">
  56732. <doc>
  56733. <![CDATA[http location of the tasktracker where this task ran.
  56734. @return http location of tasktracker user logs]]>
  56735. </doc>
  56736. </method>
  56737. <method name="getTaskRunTime" return="int"
  56738. abstract="false" native="false" synchronized="false"
  56739. static="false" final="false" visibility="public"
  56740. deprecated="not deprecated">
  56741. <doc>
  56742. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  56743. </doc>
  56744. </method>
  56745. <method name="setTaskRunTime"
  56746. abstract="false" native="false" synchronized="false"
  56747. static="false" final="false" visibility="public"
  56748. deprecated="not deprecated">
  56749. <param name="taskCompletionTime" type="int"/>
  56750. <doc>
  56751. <![CDATA[Set the task completion time
  56752. @param taskCompletionTime time (in millisec) the task took to complete]]>
  56753. </doc>
  56754. </method>
  56755. <method name="setEventId"
  56756. abstract="false" native="false" synchronized="false"
  56757. static="false" final="false" visibility="public"
  56758. deprecated="not deprecated">
  56759. <param name="eventId" type="int"/>
  56760. <doc>
  56761. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  56762. @param eventId]]>
  56763. </doc>
  56764. </method>
  56765. <method name="setTaskId"
  56766. abstract="false" native="false" synchronized="false"
  56767. static="false" final="false" visibility="public"
  56768. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  56769. <param name="taskId" type="java.lang.String"/>
  56770. <doc>
  56771. <![CDATA[Sets task id.
  56772. @param taskId
  56773. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  56774. </doc>
  56775. </method>
  56776. <method name="setTaskID"
  56777. abstract="false" native="false" synchronized="false"
  56778. static="false" final="false" visibility="public"
  56779. deprecated="not deprecated">
  56780. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56781. <doc>
  56782. <![CDATA[Sets task id.
  56783. @param taskId]]>
  56784. </doc>
  56785. </method>
  56786. <method name="setTaskStatus"
  56787. abstract="false" native="false" synchronized="false"
  56788. static="false" final="false" visibility="public"
  56789. deprecated="not deprecated">
  56790. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  56791. <doc>
  56792. <![CDATA[Set task status.
  56793. @param status]]>
  56794. </doc>
  56795. </method>
  56796. <method name="setTaskTrackerHttp"
  56797. abstract="false" native="false" synchronized="false"
  56798. static="false" final="false" visibility="public"
  56799. deprecated="not deprecated">
  56800. <param name="taskTrackerHttp" type="java.lang.String"/>
  56801. <doc>
  56802. <![CDATA[Set task tracker http location.
  56803. @param taskTrackerHttp]]>
  56804. </doc>
  56805. </method>
  56806. <method name="toString" return="java.lang.String"
  56807. abstract="false" native="false" synchronized="false"
  56808. static="false" final="false" visibility="public"
  56809. deprecated="not deprecated">
  56810. </method>
  56811. <method name="equals" return="boolean"
  56812. abstract="false" native="false" synchronized="false"
  56813. static="false" final="false" visibility="public"
  56814. deprecated="not deprecated">
  56815. <param name="o" type="java.lang.Object"/>
  56816. </method>
  56817. <method name="hashCode" return="int"
  56818. abstract="false" native="false" synchronized="false"
  56819. static="false" final="false" visibility="public"
  56820. deprecated="not deprecated">
  56821. </method>
  56822. <method name="isMapTask" return="boolean"
  56823. abstract="false" native="false" synchronized="false"
  56824. static="false" final="false" visibility="public"
  56825. deprecated="not deprecated">
  56826. </method>
  56827. <method name="idWithinJob" return="int"
  56828. abstract="false" native="false" synchronized="false"
  56829. static="false" final="false" visibility="public"
  56830. deprecated="not deprecated">
  56831. </method>
  56832. <method name="write"
  56833. abstract="false" native="false" synchronized="false"
  56834. static="false" final="false" visibility="public"
  56835. deprecated="not deprecated">
  56836. <param name="out" type="java.io.DataOutput"/>
  56837. <exception name="IOException" type="java.io.IOException"/>
  56838. </method>
  56839. <method name="readFields"
  56840. abstract="false" native="false" synchronized="false"
  56841. static="false" final="false" visibility="public"
  56842. deprecated="not deprecated">
  56843. <param name="in" type="java.io.DataInput"/>
  56844. <exception name="IOException" type="java.io.IOException"/>
  56845. </method>
  56846. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  56847. transient="false" volatile="false"
  56848. static="true" final="true" visibility="public"
  56849. deprecated="not deprecated">
  56850. </field>
  56851. <doc>
  56852. <![CDATA[This is used to track task completion events on
  56853. job tracker.]]>
  56854. </doc>
  56855. </class>
  56856. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  56857. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  56858. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  56859. abstract="false"
  56860. static="true" final="true" visibility="public"
  56861. deprecated="not deprecated">
  56862. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  56863. abstract="false" native="false" synchronized="false"
  56864. static="true" final="false" visibility="public"
  56865. deprecated="not deprecated">
  56866. </method>
  56867. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56868. abstract="false" native="false" synchronized="false"
  56869. static="true" final="false" visibility="public"
  56870. deprecated="not deprecated">
  56871. <param name="name" type="java.lang.String"/>
  56872. </method>
  56873. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56874. transient="false" volatile="false"
  56875. static="true" final="true" visibility="public"
  56876. deprecated="not deprecated">
  56877. </field>
  56878. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56879. transient="false" volatile="false"
  56880. static="true" final="true" visibility="public"
  56881. deprecated="not deprecated">
  56882. </field>
  56883. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56884. transient="false" volatile="false"
  56885. static="true" final="true" visibility="public"
  56886. deprecated="not deprecated">
  56887. </field>
  56888. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56889. transient="false" volatile="false"
  56890. static="true" final="true" visibility="public"
  56891. deprecated="not deprecated">
  56892. </field>
  56893. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56894. transient="false" volatile="false"
  56895. static="true" final="true" visibility="public"
  56896. deprecated="not deprecated">
  56897. </field>
  56898. </class>
  56899. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  56900. <!-- start class org.apache.hadoop.mapred.TaskController -->
  56901. <class name="TaskController" extends="java.lang.Object"
  56902. abstract="true"
  56903. static="false" final="false" visibility="public"
  56904. deprecated="not deprecated">
  56905. <implements name="org.apache.hadoop.conf.Configurable"/>
  56906. <constructor name="TaskController"
  56907. static="false" final="false" visibility="public"
  56908. deprecated="not deprecated">
  56909. </constructor>
  56910. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56911. abstract="false" native="false" synchronized="false"
  56912. static="false" final="false" visibility="public"
  56913. deprecated="not deprecated">
  56914. </method>
  56915. <method name="getLocalDirs" return="java.lang.String[]"
  56916. abstract="false" native="false" synchronized="false"
  56917. static="false" final="false" visibility="public"
  56918. deprecated="not deprecated">
  56919. </method>
  56920. <method name="setConf"
  56921. abstract="false" native="false" synchronized="false"
  56922. static="false" final="false" visibility="public"
  56923. deprecated="not deprecated">
  56924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56925. </method>
  56926. <method name="setup"
  56927. abstract="true" native="false" synchronized="false"
  56928. static="false" final="false" visibility="public"
  56929. deprecated="not deprecated">
  56930. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  56931. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  56932. <exception name="IOException" type="java.io.IOException"/>
  56933. <doc>
  56934. <![CDATA[Does initialization and setup.
  56935. @param allocator the local dir allocator to use
  56936. @param localStorage local storage to obtain dirs from]]>
  56937. </doc>
  56938. </method>
  56939. <method name="initializeJob"
  56940. abstract="true" native="false" synchronized="false"
  56941. static="false" final="false" visibility="public"
  56942. deprecated="not deprecated">
  56943. <param name="user" type="java.lang.String"/>
  56944. <param name="jobid" type="java.lang.String"/>
  56945. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  56946. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  56947. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56948. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  56949. <exception name="IOException" type="java.io.IOException"/>
  56950. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56951. <doc>
  56952. <![CDATA[Create all of the directories necessary for the job to start and download
  56953. all of the job and private distributed cache files.
  56954. Creates both the user directories and the job log directory.
  56955. @param user the user name
  56956. @param jobid the job
  56957. @param credentials a filename containing the job secrets
  56958. @param jobConf the path to the localized configuration file
  56959. @param taskTracker the connection the task tracker
  56960. @param ttAddr the tasktracker's RPC address
  56961. @throws IOException
  56962. @throws InterruptedException]]>
  56963. </doc>
  56964. </method>
  56965. <method name="launchTask" return="int"
  56966. abstract="true" native="false" synchronized="false"
  56967. static="false" final="false" visibility="public"
  56968. deprecated="not deprecated">
  56969. <param name="user" type="java.lang.String"/>
  56970. <param name="jobId" type="java.lang.String"/>
  56971. <param name="attemptId" type="java.lang.String"/>
  56972. <param name="setup" type="java.util.List"/>
  56973. <param name="jvmArguments" type="java.util.List"/>
  56974. <param name="currentWorkDirectory" type="java.io.File"/>
  56975. <param name="stdout" type="java.lang.String"/>
  56976. <param name="stderr" type="java.lang.String"/>
  56977. <exception name="IOException" type="java.io.IOException"/>
  56978. <doc>
  56979. <![CDATA[Create all of the directories for the task and launches the child jvm.
  56980. @param user the user name
  56981. @param jobId the jobId in question
  56982. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  56983. @param setup list of shell commands to execute before the jvm
  56984. @param jvmArguments list of jvm arguments
  56985. @param currentWorkDirectory the full path of the cwd for the task
  56986. @param stdout the file to redirect stdout to
  56987. @param stderr the file to redirect stderr to
  56988. @return the exit code for the task
  56989. @throws IOException]]>
  56990. </doc>
  56991. </method>
  56992. <method name="signalTask"
  56993. abstract="true" native="false" synchronized="false"
  56994. static="false" final="false" visibility="public"
  56995. deprecated="not deprecated">
  56996. <param name="user" type="java.lang.String"/>
  56997. <param name="taskPid" type="int"/>
  56998. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  56999. <exception name="IOException" type="java.io.IOException"/>
  57000. <doc>
  57001. <![CDATA[Send a signal to a task pid as the user.
  57002. @param user the user name
  57003. @param taskPid the pid of the task
  57004. @param signal the id of the signal to send]]>
  57005. </doc>
  57006. </method>
  57007. <method name="deleteAsUser"
  57008. abstract="true" native="false" synchronized="false"
  57009. static="false" final="false" visibility="public"
  57010. deprecated="not deprecated">
  57011. <param name="user" type="java.lang.String"/>
  57012. <param name="subDir" type="java.lang.String"/>
  57013. <exception name="IOException" type="java.io.IOException"/>
  57014. <doc>
  57015. <![CDATA[Delete the user's files under all of the task tracker root directories.
  57016. @param user the user name
  57017. @param subDir the path relative to the user's subdirectory under
  57018. the task tracker root directories.
  57019. @throws IOException]]>
  57020. </doc>
  57021. </method>
  57022. <method name="createLogDir"
  57023. abstract="true" native="false" synchronized="false"
  57024. static="false" final="false" visibility="public"
  57025. deprecated="not deprecated">
  57026. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57027. <param name="isCleanup" type="boolean"/>
  57028. <exception name="IOException" type="java.io.IOException"/>
  57029. <doc>
  57030. <![CDATA[Creates task log dir
  57031. @param taskID ID of the task
  57032. @param isCleanup If the task is cleanup task or not
  57033. @throws IOException]]>
  57034. </doc>
  57035. </method>
  57036. <method name="deleteLogAsUser"
  57037. abstract="true" native="false" synchronized="false"
  57038. static="false" final="false" visibility="public"
  57039. deprecated="not deprecated">
  57040. <param name="user" type="java.lang.String"/>
  57041. <param name="subDir" type="java.lang.String"/>
  57042. <exception name="IOException" type="java.io.IOException"/>
  57043. <doc>
  57044. <![CDATA[Delete the user's files under the userlogs directory.
  57045. @param user the user to work as
  57046. @param subDir the path under the userlogs directory.
  57047. @throws IOException]]>
  57048. </doc>
  57049. </method>
  57050. <method name="truncateLogsAsUser"
  57051. abstract="true" native="false" synchronized="false"
  57052. static="false" final="false" visibility="public"
  57053. deprecated="not deprecated">
  57054. <param name="user" type="java.lang.String"/>
  57055. <param name="allAttempts" type="java.util.List"/>
  57056. <exception name="IOException" type="java.io.IOException"/>
  57057. <doc>
  57058. <![CDATA[Run the passed command as the user
  57059. @param user
  57060. @param allAttempts the list of attempts that the JVM ran
  57061. @throws IOException]]>
  57062. </doc>
  57063. </method>
  57064. <method name="getRunAsUser" return="java.lang.String"
  57065. abstract="false" native="false" synchronized="false"
  57066. static="false" final="false" visibility="public"
  57067. deprecated="not deprecated">
  57068. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57069. <doc>
  57070. <![CDATA[Returns the local unix user that a given job will run as.]]>
  57071. </doc>
  57072. </method>
  57073. <method name="writeCommand" return="java.lang.String"
  57074. abstract="false" native="false" synchronized="false"
  57075. static="true" final="false" visibility="protected"
  57076. deprecated="not deprecated">
  57077. <param name="cmdLine" type="java.lang.String"/>
  57078. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  57079. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  57080. <exception name="IOException" type="java.io.IOException"/>
  57081. </method>
  57082. <method name="logOutput"
  57083. abstract="false" native="false" synchronized="false"
  57084. static="false" final="false" visibility="protected"
  57085. deprecated="not deprecated">
  57086. <param name="output" type="java.lang.String"/>
  57087. </method>
  57088. <field name="LOG" type="org.apache.commons.logging.Log"
  57089. transient="false" volatile="false"
  57090. static="true" final="true" visibility="public"
  57091. deprecated="not deprecated">
  57092. </field>
  57093. <field name="COMMAND_FILE" type="java.lang.String"
  57094. transient="false" volatile="false"
  57095. static="true" final="true" visibility="protected"
  57096. deprecated="not deprecated">
  57097. </field>
  57098. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  57099. transient="false" volatile="false"
  57100. static="false" final="false" visibility="protected"
  57101. deprecated="not deprecated">
  57102. </field>
  57103. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  57104. transient="false" volatile="false"
  57105. static="false" final="false" visibility="protected"
  57106. deprecated="not deprecated">
  57107. </field>
  57108. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  57109. transient="false" volatile="false"
  57110. static="true" final="true" visibility="public"
  57111. deprecated="not deprecated">
  57112. </field>
  57113. <doc>
  57114. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  57115. also the launching and killing of task JVMs.
  57116. This class defines the API for initializing, finalizing and cleaning
  57117. up of tasks, as also the launching and killing task JVMs.
  57118. Subclasses of this class will implement the logic required for
  57119. performing the actual actions.
  57120. <br/>
  57121. NOTE: This class is internal only class and not intended for users!!]]>
  57122. </doc>
  57123. </class>
  57124. <!-- end class org.apache.hadoop.mapred.TaskController -->
  57125. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  57126. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  57127. abstract="false"
  57128. static="false" final="false" visibility="public"
  57129. deprecated="not deprecated">
  57130. <constructor name="TaskGraphServlet"
  57131. static="false" final="false" visibility="public"
  57132. deprecated="not deprecated">
  57133. </constructor>
  57134. <method name="doGet"
  57135. abstract="false" native="false" synchronized="false"
  57136. static="false" final="false" visibility="public"
  57137. deprecated="not deprecated">
  57138. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57139. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57140. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57141. <exception name="IOException" type="java.io.IOException"/>
  57142. </method>
  57143. <field name="width" type="int"
  57144. transient="false" volatile="false"
  57145. static="true" final="true" visibility="public"
  57146. deprecated="not deprecated">
  57147. <doc>
  57148. <![CDATA[height of the graph w/o margins]]>
  57149. </doc>
  57150. </field>
  57151. <field name="height" type="int"
  57152. transient="false" volatile="false"
  57153. static="true" final="true" visibility="public"
  57154. deprecated="not deprecated">
  57155. <doc>
  57156. <![CDATA[height of the graph w/o margins]]>
  57157. </doc>
  57158. </field>
  57159. <field name="ymargin" type="int"
  57160. transient="false" volatile="false"
  57161. static="true" final="true" visibility="public"
  57162. deprecated="not deprecated">
  57163. <doc>
  57164. <![CDATA[margin space on y axis]]>
  57165. </doc>
  57166. </field>
  57167. <field name="xmargin" type="int"
  57168. transient="false" volatile="false"
  57169. static="true" final="true" visibility="public"
  57170. deprecated="not deprecated">
  57171. <doc>
  57172. <![CDATA[margin space on x axis]]>
  57173. </doc>
  57174. </field>
  57175. <doc>
  57176. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  57177. statuses]]>
  57178. </doc>
  57179. </class>
  57180. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  57181. <!-- start class org.apache.hadoop.mapred.TaskID -->
  57182. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  57183. abstract="false"
  57184. static="false" final="false" visibility="public"
  57185. deprecated="not deprecated">
  57186. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  57187. static="false" final="false" visibility="public"
  57188. deprecated="not deprecated">
  57189. <doc>
  57190. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  57191. @param jobId JobID that this tip belongs to
  57192. @param isMap whether the tip is a map
  57193. @param id the tip number]]>
  57194. </doc>
  57195. </constructor>
  57196. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  57197. static="false" final="false" visibility="public"
  57198. deprecated="not deprecated">
  57199. <doc>
  57200. <![CDATA[Constructs a TaskInProgressId object from given parts.
  57201. @param jtIdentifier jobTracker identifier
  57202. @param jobId job number
  57203. @param isMap whether the tip is a map
  57204. @param id the tip number]]>
  57205. </doc>
  57206. </constructor>
  57207. <constructor name="TaskID"
  57208. static="false" final="false" visibility="public"
  57209. deprecated="not deprecated">
  57210. </constructor>
  57211. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  57212. abstract="false" native="false" synchronized="false"
  57213. static="true" final="false" visibility="public"
  57214. deprecated="not deprecated">
  57215. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  57216. <doc>
  57217. <![CDATA[Downgrade a new TaskID to an old one
  57218. @param old a new or old TaskID
  57219. @return either old or a new TaskID build to match old]]>
  57220. </doc>
  57221. </method>
  57222. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  57223. abstract="false" native="false" synchronized="false"
  57224. static="true" final="false" visibility="public"
  57225. deprecated="not deprecated">
  57226. <param name="in" type="java.io.DataInput"/>
  57227. <exception name="IOException" type="java.io.IOException"/>
  57228. </method>
  57229. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57230. abstract="false" native="false" synchronized="false"
  57231. static="false" final="false" visibility="public"
  57232. deprecated="not deprecated">
  57233. </method>
  57234. <method name="getTaskIDsPattern" return="java.lang.String"
  57235. abstract="false" native="false" synchronized="false"
  57236. static="true" final="false" visibility="public"
  57237. deprecated="not deprecated">
  57238. <param name="jtIdentifier" type="java.lang.String"/>
  57239. <param name="jobId" type="java.lang.Integer"/>
  57240. <param name="isMap" type="java.lang.Boolean"/>
  57241. <param name="taskId" type="java.lang.Integer"/>
  57242. <doc>
  57243. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  57244. be given null, in which case that part of the regex will be generic.
  57245. For example to obtain a regex matching <i>the first map task</i>
  57246. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  57247. <pre>
  57248. TaskID.getTaskIDsPattern(null, null, true, 1);
  57249. </pre>
  57250. which will return :
  57251. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  57252. @param jtIdentifier jobTracker identifier, or null
  57253. @param jobId job number, or null
  57254. @param isMap whether the tip is a map, or null
  57255. @param taskId taskId number, or null
  57256. @return a regex pattern matching TaskIDs]]>
  57257. </doc>
  57258. </method>
  57259. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  57260. abstract="false" native="false" synchronized="false"
  57261. static="true" final="false" visibility="public"
  57262. deprecated="not deprecated">
  57263. <param name="str" type="java.lang.String"/>
  57264. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  57265. </method>
  57266. <doc>
  57267. <![CDATA[TaskID represents the immutable and unique identifier for
  57268. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  57269. execute the Map or Reduce Task, each of which are uniquely indentified by
  57270. their TaskAttemptID.
  57271. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  57272. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  57273. representing whether the task is a map task or a reduce task.
  57274. And the third part is the task number. <br>
  57275. An example TaskID is :
  57276. <code>task_200707121733_0003_m_000005</code> , which represents the
  57277. fifth map task in the third job running at the jobtracker
  57278. started at <code>200707121733</code>.
  57279. <p>
  57280. Applications should never construct or parse TaskID strings
  57281. , but rather use appropriate constructors or {@link #forName(String)}
  57282. method.
  57283. @see JobID
  57284. @see TaskAttemptID]]>
  57285. </doc>
  57286. </class>
  57287. <!-- end class org.apache.hadoop.mapred.TaskID -->
  57288. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  57289. <class name="TaskLog" extends="java.lang.Object"
  57290. abstract="false"
  57291. static="false" final="false" visibility="public"
  57292. deprecated="not deprecated">
  57293. <constructor name="TaskLog"
  57294. static="false" final="false" visibility="public"
  57295. deprecated="not deprecated">
  57296. </constructor>
  57297. <method name="createTaskAttemptLogDir"
  57298. abstract="false" native="false" synchronized="false"
  57299. static="true" final="false" visibility="public"
  57300. deprecated="not deprecated">
  57301. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57302. <param name="isCleanup" type="boolean"/>
  57303. <param name="localDirs" type="java.lang.String[]"/>
  57304. <exception name="IOException" type="java.io.IOException"/>
  57305. <doc>
  57306. <![CDATA[Create log directory for the given attempt. This involves creating the
  57307. following and setting proper permissions for the new directories
  57308. <br>{hadoop.log.dir}/userlogs/<jobid>
  57309. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  57310. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  57311. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  57312. @param taskID attempt-id for which log dir is to be created
  57313. @param isCleanup Is this attempt a cleanup attempt ?
  57314. @param localDirs mapred local directories
  57315. @throws IOException]]>
  57316. </doc>
  57317. </method>
  57318. <method name="getTaskAttemptLogDir" return="java.lang.String"
  57319. abstract="false" native="false" synchronized="false"
  57320. static="true" final="false" visibility="public"
  57321. deprecated="not deprecated">
  57322. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57323. <param name="cleanupSuffix" type="java.lang.String"/>
  57324. <param name="localDirs" type="java.lang.String[]"/>
  57325. <exception name="IOException" type="java.io.IOException"/>
  57326. <doc>
  57327. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  57328. selected mapred local directory.
  57329. @param taskID attempt-id for which log dir path is needed
  57330. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  57331. @param localDirs mapred local directories
  57332. @return target task attempt log directory
  57333. @throws IOException]]>
  57334. </doc>
  57335. </method>
  57336. <method name="getTaskLogFile" return="java.io.File"
  57337. abstract="false" native="false" synchronized="false"
  57338. static="true" final="false" visibility="public"
  57339. deprecated="not deprecated">
  57340. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57341. <param name="isCleanup" type="boolean"/>
  57342. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  57343. </method>
  57344. <method name="getBaseLogDir" return="java.lang.String"
  57345. abstract="false" native="false" synchronized="false"
  57346. static="true" final="false" visibility="public"
  57347. deprecated="not deprecated">
  57348. </method>
  57349. <method name="syncLogs"
  57350. abstract="false" native="false" synchronized="true"
  57351. static="true" final="false" visibility="public"
  57352. deprecated="not deprecated">
  57353. <param name="logLocation" type="java.lang.String"/>
  57354. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57355. <param name="isCleanup" type="boolean"/>
  57356. <param name="segmented" type="boolean"/>
  57357. <exception name="IOException" type="java.io.IOException"/>
  57358. </method>
  57359. <method name="getTaskLogLength" return="long"
  57360. abstract="false" native="false" synchronized="false"
  57361. static="true" final="false" visibility="public"
  57362. deprecated="not deprecated">
  57363. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57364. <doc>
  57365. <![CDATA[Get the desired maximum length of task's logs.
  57366. @param conf the job to look in
  57367. @return the number of bytes to cap the log files at]]>
  57368. </doc>
  57369. </method>
  57370. <method name="captureOutAndError" return="java.util.List"
  57371. abstract="false" native="false" synchronized="false"
  57372. static="true" final="false" visibility="public"
  57373. deprecated="not deprecated">
  57374. <param name="cmd" type="java.util.List"/>
  57375. <param name="stdoutFilename" type="java.io.File"/>
  57376. <param name="stderrFilename" type="java.io.File"/>
  57377. <param name="tailLength" type="long"/>
  57378. <exception name="IOException" type="java.io.IOException"/>
  57379. <doc>
  57380. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57381. If the tailLength is 0, the entire output will be saved.
  57382. @param cmd The command and the arguments that should be run
  57383. @param stdoutFilename The filename that stdout should be saved to
  57384. @param stderrFilename The filename that stderr should be saved to
  57385. @param tailLength The length of the tail to be saved.
  57386. @return the modified command that should be run]]>
  57387. </doc>
  57388. </method>
  57389. <method name="captureOutAndError" return="java.util.List"
  57390. abstract="false" native="false" synchronized="false"
  57391. static="true" final="false" visibility="public"
  57392. deprecated="not deprecated">
  57393. <param name="setup" type="java.util.List"/>
  57394. <param name="cmd" type="java.util.List"/>
  57395. <param name="stdoutFilename" type="java.io.File"/>
  57396. <param name="stderrFilename" type="java.io.File"/>
  57397. <param name="tailLength" type="long"/>
  57398. <exception name="IOException" type="java.io.IOException"/>
  57399. <doc>
  57400. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57401. Setup commands such as setting memory limit can be passed which
  57402. will be executed before exec.
  57403. If the tailLength is 0, the entire output will be saved.
  57404. @param setup The setup commands for the execed process.
  57405. @param cmd The command and the arguments that should be run
  57406. @param stdoutFilename The filename that stdout should be saved to
  57407. @param stderrFilename The filename that stderr should be saved to
  57408. @param tailLength The length of the tail to be saved.
  57409. @return the modified command that should be run]]>
  57410. </doc>
  57411. </method>
  57412. <method name="captureOutAndError" return="java.util.List"
  57413. abstract="false" native="false" synchronized="false"
  57414. static="true" final="false" visibility="public"
  57415. deprecated="pidFiles are no more used. Instead pid is exported to
  57416. env variable JVM_PID.">
  57417. <param name="setup" type="java.util.List"/>
  57418. <param name="cmd" type="java.util.List"/>
  57419. <param name="stdoutFilename" type="java.io.File"/>
  57420. <param name="stderrFilename" type="java.io.File"/>
  57421. <param name="tailLength" type="long"/>
  57422. <param name="pidFileName" type="java.lang.String"/>
  57423. <exception name="IOException" type="java.io.IOException"/>
  57424. <doc>
  57425. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57426. Setup commands such as setting memory limit can be passed which
  57427. will be executed before exec.
  57428. If the tailLength is 0, the entire output will be saved.
  57429. @param setup The setup commands for the execed process.
  57430. @param cmd The command and the arguments that should be run
  57431. @param stdoutFilename The filename that stdout should be saved to
  57432. @param stderrFilename The filename that stderr should be saved to
  57433. @param tailLength The length of the tail to be saved.
  57434. @deprecated pidFiles are no more used. Instead pid is exported to
  57435. env variable JVM_PID.
  57436. @return the modified command that should be run]]>
  57437. </doc>
  57438. </method>
  57439. <method name="captureOutAndError" return="java.util.List"
  57440. abstract="false" native="false" synchronized="false"
  57441. static="true" final="false" visibility="public"
  57442. deprecated="pidFiles are no more used. Instead pid is exported to
  57443. env variable JVM_PID.">
  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. <param name="useSetsid" type="boolean"/>
  57450. <param name="pidFileName" type="java.lang.String"/>
  57451. <exception name="IOException" type="java.io.IOException"/>
  57452. <doc>
  57453. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57454. Setup commands such as setting memory limit can be passed which
  57455. will be executed before exec.
  57456. If the tailLength is 0, the entire output will be saved.
  57457. @param setup The setup commands for the execed process.
  57458. @param cmd The command and the arguments that should be run
  57459. @param stdoutFilename The filename that stdout should be saved to
  57460. @param stderrFilename The filename that stderr should be saved to
  57461. @param tailLength The length of the tail to be saved.
  57462. @param useSetsid Should setsid be used in the command or not.
  57463. @deprecated pidFiles are no more used. Instead pid is exported to
  57464. env variable JVM_PID.
  57465. @return the modified command that should be run]]>
  57466. </doc>
  57467. </method>
  57468. <method name="captureOutAndError" return="java.util.List"
  57469. abstract="false" native="false" synchronized="false"
  57470. static="true" final="false" visibility="public"
  57471. deprecated="not deprecated">
  57472. <param name="setup" type="java.util.List"/>
  57473. <param name="cmd" type="java.util.List"/>
  57474. <param name="stdoutFilename" type="java.io.File"/>
  57475. <param name="stderrFilename" type="java.io.File"/>
  57476. <param name="tailLength" type="long"/>
  57477. <param name="useSetsid" type="boolean"/>
  57478. <exception name="IOException" type="java.io.IOException"/>
  57479. <doc>
  57480. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57481. Setup commands such as setting memory limit can be passed which
  57482. will be executed before exec.
  57483. If the tailLength is 0, the entire output will be saved.
  57484. @param setup The setup commands for the execed process.
  57485. @param cmd The command and the arguments that should be run
  57486. @param stdoutFilename The filename that stdout should be saved to
  57487. @param stderrFilename The filename that stderr should be saved to
  57488. @param tailLength The length of the tail to be saved.
  57489. @param useSetsid Should setsid be used in the command or not.
  57490. @return the modified command that should be run]]>
  57491. </doc>
  57492. </method>
  57493. <method name="addCommand" return="java.lang.String"
  57494. abstract="false" native="false" synchronized="false"
  57495. static="true" final="false" visibility="public"
  57496. deprecated="not deprecated">
  57497. <param name="cmd" type="java.util.List"/>
  57498. <param name="isExecutable" type="boolean"/>
  57499. <exception name="IOException" type="java.io.IOException"/>
  57500. <doc>
  57501. <![CDATA[Add quotes to each of the command strings and
  57502. return as a single string
  57503. @param cmd The command to be quoted
  57504. @param isExecutable makes shell path if the first
  57505. argument is executable
  57506. @return returns The quoted string.
  57507. @throws IOException]]>
  57508. </doc>
  57509. </method>
  57510. <method name="captureDebugOut" return="java.util.List"
  57511. abstract="false" native="false" synchronized="false"
  57512. static="true" final="false" visibility="public"
  57513. deprecated="not deprecated">
  57514. <param name="cmd" type="java.util.List"/>
  57515. <param name="debugoutFilename" type="java.io.File"/>
  57516. <exception name="IOException" type="java.io.IOException"/>
  57517. <doc>
  57518. <![CDATA[Wrap a command in a shell to capture debug script's
  57519. stdout and stderr to debugout.
  57520. @param cmd The command and the arguments that should be run
  57521. @param debugoutFilename The filename that stdout and stderr
  57522. should be saved to.
  57523. @return the modified command that should be run
  57524. @throws IOException]]>
  57525. </doc>
  57526. </method>
  57527. <method name="getUserLogDir" return="java.io.File"
  57528. abstract="false" native="false" synchronized="false"
  57529. static="true" final="false" visibility="public"
  57530. deprecated="not deprecated">
  57531. </method>
  57532. <method name="getJobDir" return="java.io.File"
  57533. abstract="false" native="false" synchronized="false"
  57534. static="true" final="false" visibility="public"
  57535. deprecated="not deprecated">
  57536. <param name="jobid" type="java.lang.String"/>
  57537. <doc>
  57538. <![CDATA[Get the user log directory for the job jobid.
  57539. @param jobid string representation of the jobid
  57540. @return user log directory for the job]]>
  57541. </doc>
  57542. </method>
  57543. <method name="getJobDir" return="java.io.File"
  57544. abstract="false" native="false" synchronized="false"
  57545. static="true" final="false" visibility="public"
  57546. deprecated="not deprecated">
  57547. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57548. <doc>
  57549. <![CDATA[Get the user log directory for the job jobid.
  57550. @param jobid the jobid object
  57551. @return user log directory for the job]]>
  57552. </doc>
  57553. </method>
  57554. <doc>
  57555. <![CDATA[A simple logger to handle the task-specific user logs.
  57556. This class uses the system property <code>hadoop.log.dir</code>.
  57557. This class is for Map/Reduce internal use only.]]>
  57558. </doc>
  57559. </class>
  57560. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  57561. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  57562. <class name="TaskLog.LogName" extends="java.lang.Enum"
  57563. abstract="false"
  57564. static="true" final="true" visibility="public"
  57565. deprecated="not deprecated">
  57566. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  57567. abstract="false" native="false" synchronized="false"
  57568. static="true" final="false" visibility="public"
  57569. deprecated="not deprecated">
  57570. </method>
  57571. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  57572. abstract="false" native="false" synchronized="false"
  57573. static="true" final="false" visibility="public"
  57574. deprecated="not deprecated">
  57575. <param name="name" type="java.lang.String"/>
  57576. </method>
  57577. <method name="toString" return="java.lang.String"
  57578. abstract="false" native="false" synchronized="false"
  57579. static="false" final="false" visibility="public"
  57580. deprecated="not deprecated">
  57581. </method>
  57582. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57583. transient="false" volatile="false"
  57584. static="true" final="true" visibility="public"
  57585. deprecated="not deprecated">
  57586. <doc>
  57587. <![CDATA[Log on the stdout of the task.]]>
  57588. </doc>
  57589. </field>
  57590. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57591. transient="false" volatile="false"
  57592. static="true" final="true" visibility="public"
  57593. deprecated="not deprecated">
  57594. <doc>
  57595. <![CDATA[Log on the stderr of the task.]]>
  57596. </doc>
  57597. </field>
  57598. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57599. transient="false" volatile="false"
  57600. static="true" final="true" visibility="public"
  57601. deprecated="not deprecated">
  57602. <doc>
  57603. <![CDATA[Log on the map-reduce system logs of the task.]]>
  57604. </doc>
  57605. </field>
  57606. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57607. transient="false" volatile="false"
  57608. static="true" final="true" visibility="public"
  57609. deprecated="not deprecated">
  57610. <doc>
  57611. <![CDATA[The java profiler information.]]>
  57612. </doc>
  57613. </field>
  57614. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57615. transient="false" volatile="false"
  57616. static="true" final="true" visibility="public"
  57617. deprecated="not deprecated">
  57618. <doc>
  57619. <![CDATA[Log the debug script's stdout]]>
  57620. </doc>
  57621. </field>
  57622. <doc>
  57623. <![CDATA[The filter for userlogs.]]>
  57624. </doc>
  57625. </class>
  57626. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  57627. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  57628. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  57629. abstract="false"
  57630. static="false" final="false" visibility="public"
  57631. deprecated="not deprecated">
  57632. <constructor name="TaskLogAppender"
  57633. static="false" final="false" visibility="public"
  57634. deprecated="not deprecated">
  57635. </constructor>
  57636. <method name="activateOptions"
  57637. abstract="false" native="false" synchronized="false"
  57638. static="false" final="false" visibility="public"
  57639. deprecated="not deprecated">
  57640. </method>
  57641. <method name="append"
  57642. abstract="false" native="false" synchronized="false"
  57643. static="false" final="false" visibility="public"
  57644. deprecated="not deprecated">
  57645. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  57646. </method>
  57647. <method name="flush"
  57648. abstract="false" native="false" synchronized="false"
  57649. static="false" final="false" visibility="public"
  57650. deprecated="not deprecated">
  57651. </method>
  57652. <method name="close"
  57653. abstract="false" native="false" synchronized="true"
  57654. static="false" final="false" visibility="public"
  57655. deprecated="not deprecated">
  57656. </method>
  57657. <method name="getTaskId" return="java.lang.String"
  57658. abstract="false" native="false" synchronized="false"
  57659. static="false" final="false" visibility="public"
  57660. deprecated="not deprecated">
  57661. <doc>
  57662. <![CDATA[Getter/Setter methods for log4j.]]>
  57663. </doc>
  57664. </method>
  57665. <method name="setTaskId"
  57666. abstract="false" native="false" synchronized="false"
  57667. static="false" final="false" visibility="public"
  57668. deprecated="not deprecated">
  57669. <param name="taskId" type="java.lang.String"/>
  57670. </method>
  57671. <method name="getTotalLogFileSize" return="long"
  57672. abstract="false" native="false" synchronized="false"
  57673. static="false" final="false" visibility="public"
  57674. deprecated="not deprecated">
  57675. </method>
  57676. <method name="setTotalLogFileSize"
  57677. abstract="false" native="false" synchronized="false"
  57678. static="false" final="false" visibility="public"
  57679. deprecated="not deprecated">
  57680. <param name="logSize" type="long"/>
  57681. </method>
  57682. <method name="setIsCleanup"
  57683. abstract="false" native="false" synchronized="false"
  57684. static="false" final="false" visibility="public"
  57685. deprecated="not deprecated">
  57686. <param name="isCleanup" type="boolean"/>
  57687. <doc>
  57688. <![CDATA[Set whether the task is a cleanup attempt or not.
  57689. @param isCleanup
  57690. true if the task is cleanup attempt, false otherwise.]]>
  57691. </doc>
  57692. </method>
  57693. <method name="getIsCleanup" return="boolean"
  57694. abstract="false" native="false" synchronized="false"
  57695. static="false" final="false" visibility="public"
  57696. deprecated="not deprecated">
  57697. <doc>
  57698. <![CDATA[Get whether task is cleanup attempt or not.
  57699. @return true if the task is cleanup attempt, false otherwise.]]>
  57700. </doc>
  57701. </method>
  57702. <doc>
  57703. <![CDATA[A simple log4j-appender for the task child's
  57704. map-reduce system logs.]]>
  57705. </doc>
  57706. </class>
  57707. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  57708. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  57709. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  57710. abstract="false"
  57711. static="false" final="false" visibility="public"
  57712. deprecated="not deprecated">
  57713. <constructor name="TaskLogServlet"
  57714. static="false" final="false" visibility="public"
  57715. deprecated="not deprecated">
  57716. </constructor>
  57717. <method name="getTaskLogUrl" return="java.lang.String"
  57718. abstract="false" native="false" synchronized="false"
  57719. static="true" final="false" visibility="public"
  57720. deprecated="not deprecated">
  57721. <param name="taskTrackerHostName" type="java.lang.String"/>
  57722. <param name="httpPort" type="java.lang.String"/>
  57723. <param name="taskAttemptID" type="java.lang.String"/>
  57724. <doc>
  57725. <![CDATA[Construct the taskLogUrl
  57726. @param taskTrackerHostName
  57727. @param httpPort
  57728. @param taskAttemptID
  57729. @return the taskLogUrl]]>
  57730. </doc>
  57731. </method>
  57732. <method name="doGet"
  57733. abstract="false" native="false" synchronized="false"
  57734. static="false" final="false" visibility="public"
  57735. deprecated="not deprecated">
  57736. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57737. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57738. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57739. <exception name="IOException" type="java.io.IOException"/>
  57740. <doc>
  57741. <![CDATA[Get the logs via http.]]>
  57742. </doc>
  57743. </method>
  57744. <doc>
  57745. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  57746. </doc>
  57747. </class>
  57748. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  57749. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  57750. <class name="TaskLogsTruncater" extends="java.lang.Object"
  57751. abstract="false"
  57752. static="false" final="false" visibility="public"
  57753. deprecated="not deprecated">
  57754. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  57755. static="false" final="false" visibility="public"
  57756. deprecated="not deprecated">
  57757. </constructor>
  57758. <method name="shouldTruncateLogs" return="boolean"
  57759. abstract="false" native="false" synchronized="false"
  57760. static="false" final="false" visibility="public"
  57761. deprecated="not deprecated">
  57762. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  57763. <exception name="IOException" type="java.io.IOException"/>
  57764. <doc>
  57765. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  57766. particular JVM
  57767. @param lInfo
  57768. @return is truncation required?
  57769. @throws IOException]]>
  57770. </doc>
  57771. </method>
  57772. <method name="truncateLogs"
  57773. abstract="false" native="false" synchronized="false"
  57774. static="false" final="false" visibility="public"
  57775. deprecated="not deprecated">
  57776. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  57777. <doc>
  57778. <![CDATA[Process the removed task's logs. This involves truncating them to
  57779. retainSize.]]>
  57780. </doc>
  57781. </method>
  57782. <method name="main"
  57783. abstract="false" native="false" synchronized="false"
  57784. static="true" final="false" visibility="public"
  57785. deprecated="not deprecated">
  57786. <param name="args" type="java.lang.String[]"/>
  57787. <exception name="IOException" type="java.io.IOException"/>
  57788. </method>
  57789. <doc>
  57790. <![CDATA[The class for truncating the user logs.
  57791. Should be used only by {@link UserLogManager}.]]>
  57792. </doc>
  57793. </class>
  57794. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  57795. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  57796. <class name="TaskReport" extends="java.lang.Object"
  57797. abstract="false"
  57798. static="false" final="false" visibility="public"
  57799. deprecated="not deprecated">
  57800. <implements name="org.apache.hadoop.io.Writable"/>
  57801. <constructor name="TaskReport"
  57802. static="false" final="false" visibility="public"
  57803. deprecated="not deprecated">
  57804. </constructor>
  57805. <method name="getTaskId" return="java.lang.String"
  57806. abstract="false" native="false" synchronized="false"
  57807. static="false" final="false" visibility="public"
  57808. deprecated="use {@link #getTaskID()} instead">
  57809. <doc>
  57810. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  57811. </doc>
  57812. </method>
  57813. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  57814. abstract="false" native="false" synchronized="false"
  57815. static="false" final="false" visibility="public"
  57816. deprecated="not deprecated">
  57817. <doc>
  57818. <![CDATA[The id of the task.]]>
  57819. </doc>
  57820. </method>
  57821. <method name="getProgress" return="float"
  57822. abstract="false" native="false" synchronized="false"
  57823. static="false" final="false" visibility="public"
  57824. deprecated="not deprecated">
  57825. <doc>
  57826. <![CDATA[The amount completed, between zero and one.]]>
  57827. </doc>
  57828. </method>
  57829. <method name="getState" return="java.lang.String"
  57830. abstract="false" native="false" synchronized="false"
  57831. static="false" final="false" visibility="public"
  57832. deprecated="not deprecated">
  57833. <doc>
  57834. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  57835. </doc>
  57836. </method>
  57837. <method name="getDiagnostics" return="java.lang.String[]"
  57838. abstract="false" native="false" synchronized="false"
  57839. static="false" final="false" visibility="public"
  57840. deprecated="not deprecated">
  57841. <doc>
  57842. <![CDATA[A list of error messages.]]>
  57843. </doc>
  57844. </method>
  57845. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  57846. abstract="false" native="false" synchronized="false"
  57847. static="false" final="false" visibility="public"
  57848. deprecated="not deprecated">
  57849. <doc>
  57850. <![CDATA[A table of counters.]]>
  57851. </doc>
  57852. </method>
  57853. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  57854. abstract="false" native="false" synchronized="false"
  57855. static="false" final="false" visibility="public"
  57856. deprecated="not deprecated">
  57857. <doc>
  57858. <![CDATA[The current status]]>
  57859. </doc>
  57860. </method>
  57861. <method name="getFinishTime" return="long"
  57862. abstract="false" native="false" synchronized="false"
  57863. static="false" final="false" visibility="public"
  57864. deprecated="not deprecated">
  57865. <doc>
  57866. <![CDATA[Get finish time of task.
  57867. @return 0, if finish time was not set else returns finish time.]]>
  57868. </doc>
  57869. </method>
  57870. <method name="getStartTime" return="long"
  57871. abstract="false" native="false" synchronized="false"
  57872. static="false" final="false" visibility="public"
  57873. deprecated="not deprecated">
  57874. <doc>
  57875. <![CDATA[Get start time of task.
  57876. @return 0 if start time was not set, else start time.]]>
  57877. </doc>
  57878. </method>
  57879. <method name="setSuccessfulAttempt"
  57880. abstract="false" native="false" synchronized="false"
  57881. static="false" final="false" visibility="public"
  57882. deprecated="not deprecated">
  57883. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57884. <doc>
  57885. <![CDATA[set successful attempt ID of the task.]]>
  57886. </doc>
  57887. </method>
  57888. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  57889. abstract="false" native="false" synchronized="false"
  57890. static="false" final="false" visibility="public"
  57891. deprecated="not deprecated">
  57892. <doc>
  57893. <![CDATA[Get the attempt ID that took this task to completion]]>
  57894. </doc>
  57895. </method>
  57896. <method name="setRunningTaskAttempts"
  57897. abstract="false" native="false" synchronized="false"
  57898. static="false" final="false" visibility="public"
  57899. deprecated="not deprecated">
  57900. <param name="runningAttempts" type="java.util.Collection"/>
  57901. <doc>
  57902. <![CDATA[set running attempt(s) of the task.]]>
  57903. </doc>
  57904. </method>
  57905. <method name="getRunningTaskAttempts" return="java.util.Collection"
  57906. abstract="false" native="false" synchronized="false"
  57907. static="false" final="false" visibility="public"
  57908. deprecated="not deprecated">
  57909. <doc>
  57910. <![CDATA[Get the running task attempt IDs for this task]]>
  57911. </doc>
  57912. </method>
  57913. <method name="equals" return="boolean"
  57914. abstract="false" native="false" synchronized="false"
  57915. static="false" final="false" visibility="public"
  57916. deprecated="not deprecated">
  57917. <param name="o" type="java.lang.Object"/>
  57918. </method>
  57919. <method name="hashCode" return="int"
  57920. abstract="false" native="false" synchronized="false"
  57921. static="false" final="false" visibility="public"
  57922. deprecated="not deprecated">
  57923. </method>
  57924. <method name="write"
  57925. abstract="false" native="false" synchronized="false"
  57926. static="false" final="false" visibility="public"
  57927. deprecated="not deprecated">
  57928. <param name="out" type="java.io.DataOutput"/>
  57929. <exception name="IOException" type="java.io.IOException"/>
  57930. </method>
  57931. <method name="readFields"
  57932. abstract="false" native="false" synchronized="false"
  57933. static="false" final="false" visibility="public"
  57934. deprecated="not deprecated">
  57935. <param name="in" type="java.io.DataInput"/>
  57936. <exception name="IOException" type="java.io.IOException"/>
  57937. </method>
  57938. <doc>
  57939. <![CDATA[A report on the state of a task.]]>
  57940. </doc>
  57941. </class>
  57942. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  57943. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  57944. <class name="TaskStatus" extends="java.lang.Object"
  57945. abstract="true"
  57946. static="false" final="false" visibility="public"
  57947. deprecated="not deprecated">
  57948. <implements name="org.apache.hadoop.io.Writable"/>
  57949. <implements name="java.lang.Cloneable"/>
  57950. <constructor name="TaskStatus"
  57951. static="false" final="false" visibility="public"
  57952. deprecated="not deprecated">
  57953. </constructor>
  57954. <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"
  57955. static="false" final="false" visibility="public"
  57956. deprecated="not deprecated">
  57957. </constructor>
  57958. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  57959. abstract="false" native="false" synchronized="false"
  57960. static="false" final="false" visibility="public"
  57961. deprecated="not deprecated">
  57962. </method>
  57963. <method name="getIsMap" return="boolean"
  57964. abstract="true" native="false" synchronized="false"
  57965. static="false" final="false" visibility="public"
  57966. deprecated="not deprecated">
  57967. </method>
  57968. <method name="getNumSlots" return="int"
  57969. abstract="false" native="false" synchronized="false"
  57970. static="false" final="false" visibility="public"
  57971. deprecated="not deprecated">
  57972. </method>
  57973. <method name="getProgress" return="float"
  57974. abstract="false" native="false" synchronized="false"
  57975. static="false" final="false" visibility="public"
  57976. deprecated="not deprecated">
  57977. </method>
  57978. <method name="setProgress"
  57979. abstract="false" native="false" synchronized="false"
  57980. static="false" final="false" visibility="public"
  57981. deprecated="not deprecated">
  57982. <param name="progress" type="float"/>
  57983. </method>
  57984. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  57985. abstract="false" native="false" synchronized="false"
  57986. static="false" final="false" visibility="public"
  57987. deprecated="not deprecated">
  57988. </method>
  57989. <method name="getTaskTracker" return="java.lang.String"
  57990. abstract="false" native="false" synchronized="false"
  57991. static="false" final="false" visibility="public"
  57992. deprecated="not deprecated">
  57993. </method>
  57994. <method name="setTaskTracker"
  57995. abstract="false" native="false" synchronized="false"
  57996. static="false" final="false" visibility="public"
  57997. deprecated="not deprecated">
  57998. <param name="tracker" type="java.lang.String"/>
  57999. </method>
  58000. <method name="setRunState"
  58001. abstract="false" native="false" synchronized="false"
  58002. static="false" final="false" visibility="public"
  58003. deprecated="not deprecated">
  58004. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  58005. </method>
  58006. <method name="getDiagnosticInfo" return="java.lang.String"
  58007. abstract="false" native="false" synchronized="false"
  58008. static="false" final="false" visibility="public"
  58009. deprecated="not deprecated">
  58010. </method>
  58011. <method name="setDiagnosticInfo"
  58012. abstract="false" native="false" synchronized="false"
  58013. static="false" final="false" visibility="public"
  58014. deprecated="not deprecated">
  58015. <param name="info" type="java.lang.String"/>
  58016. </method>
  58017. <method name="getStateString" return="java.lang.String"
  58018. abstract="false" native="false" synchronized="false"
  58019. static="false" final="false" visibility="public"
  58020. deprecated="not deprecated">
  58021. </method>
  58022. <method name="setStateString"
  58023. abstract="false" native="false" synchronized="false"
  58024. static="false" final="false" visibility="public"
  58025. deprecated="not deprecated">
  58026. <param name="stateString" type="java.lang.String"/>
  58027. </method>
  58028. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  58029. abstract="false" native="false" synchronized="false"
  58030. static="false" final="false" visibility="public"
  58031. deprecated="not deprecated">
  58032. <doc>
  58033. <![CDATA[Get the next record range which is going to be processed by Task.
  58034. @return nextRecordRange]]>
  58035. </doc>
  58036. </method>
  58037. <method name="setNextRecordRange"
  58038. abstract="false" native="false" synchronized="false"
  58039. static="false" final="false" visibility="public"
  58040. deprecated="not deprecated">
  58041. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  58042. <doc>
  58043. <![CDATA[Set the next record range which is going to be processed by Task.
  58044. @param nextRecordRange]]>
  58045. </doc>
  58046. </method>
  58047. <method name="getFinishTime" return="long"
  58048. abstract="false" native="false" synchronized="false"
  58049. static="false" final="false" visibility="public"
  58050. deprecated="not deprecated">
  58051. <doc>
  58052. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  58053. are not set before, these are set to finishTime. It takes care of
  58054. the case when shuffle, sort and finish are completed with in the
  58055. heartbeat interval and are not reported separately. if task state is
  58056. TaskStatus.FAILED then finish time represents when the task failed.
  58057. @return finish time of the task.]]>
  58058. </doc>
  58059. </method>
  58060. <method name="getShuffleFinishTime" return="long"
  58061. abstract="false" native="false" synchronized="false"
  58062. static="false" final="false" visibility="public"
  58063. deprecated="not deprecated">
  58064. <doc>
  58065. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  58066. not set due to shuffle/sort/finish phases ending within same
  58067. heartbeat interval, it is set to finish time of next phase i.e. sort
  58068. or task finish when these are set.
  58069. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  58070. it returns approximate shuffle finish time.]]>
  58071. </doc>
  58072. </method>
  58073. <method name="getSortFinishTime" return="long"
  58074. abstract="false" native="false" synchronized="false"
  58075. static="false" final="false" visibility="public"
  58076. deprecated="not deprecated">
  58077. <doc>
  58078. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  58079. due to sort and reduce phase finishing in same heartebat interval, it is
  58080. set to finish time, when finish time is set.
  58081. @return 0 if sort finish time and finish time are not set, else returns sort
  58082. finish time if that is set, else it returns finish time.]]>
  58083. </doc>
  58084. </method>
  58085. <method name="getStartTime" return="long"
  58086. abstract="false" native="false" synchronized="false"
  58087. static="false" final="false" visibility="public"
  58088. deprecated="not deprecated">
  58089. <doc>
  58090. <![CDATA[Get start time of the task.
  58091. @return 0 is start time is not set, else returns start time.]]>
  58092. </doc>
  58093. </method>
  58094. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  58095. abstract="false" native="false" synchronized="false"
  58096. static="false" final="false" visibility="public"
  58097. deprecated="not deprecated">
  58098. <doc>
  58099. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  58100. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  58101. @return .]]>
  58102. </doc>
  58103. </method>
  58104. <method name="getIncludeCounters" return="boolean"
  58105. abstract="false" native="false" synchronized="false"
  58106. static="false" final="false" visibility="public"
  58107. deprecated="not deprecated">
  58108. </method>
  58109. <method name="setIncludeCounters"
  58110. abstract="false" native="false" synchronized="false"
  58111. static="false" final="false" visibility="public"
  58112. deprecated="not deprecated">
  58113. <param name="send" type="boolean"/>
  58114. </method>
  58115. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  58116. abstract="false" native="false" synchronized="false"
  58117. static="false" final="false" visibility="public"
  58118. deprecated="not deprecated">
  58119. <doc>
  58120. <![CDATA[Get task's counters.]]>
  58121. </doc>
  58122. </method>
  58123. <method name="setCounters"
  58124. abstract="false" native="false" synchronized="false"
  58125. static="false" final="false" visibility="public"
  58126. deprecated="not deprecated">
  58127. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  58128. <doc>
  58129. <![CDATA[Set the task's counters.
  58130. @param counters]]>
  58131. </doc>
  58132. </method>
  58133. <method name="getOutputSize" return="long"
  58134. abstract="false" native="false" synchronized="false"
  58135. static="false" final="false" visibility="public"
  58136. deprecated="not deprecated">
  58137. <doc>
  58138. <![CDATA[Returns the number of bytes of output from this map.]]>
  58139. </doc>
  58140. </method>
  58141. <method name="getFetchFailedMaps" return="java.util.List"
  58142. abstract="false" native="false" synchronized="false"
  58143. static="false" final="false" visibility="public"
  58144. deprecated="not deprecated">
  58145. <doc>
  58146. <![CDATA[Get the list of maps from which output-fetches failed.
  58147. @return the list of maps from which output-fetches failed.]]>
  58148. </doc>
  58149. </method>
  58150. <method name="clone" return="java.lang.Object"
  58151. abstract="false" native="false" synchronized="false"
  58152. static="false" final="false" visibility="public"
  58153. deprecated="not deprecated">
  58154. </method>
  58155. <method name="write"
  58156. abstract="false" native="false" synchronized="false"
  58157. static="false" final="false" visibility="public"
  58158. deprecated="not deprecated">
  58159. <param name="out" type="java.io.DataOutput"/>
  58160. <exception name="IOException" type="java.io.IOException"/>
  58161. </method>
  58162. <method name="readFields"
  58163. abstract="false" native="false" synchronized="false"
  58164. static="false" final="false" visibility="public"
  58165. deprecated="not deprecated">
  58166. <param name="in" type="java.io.DataInput"/>
  58167. <exception name="IOException" type="java.io.IOException"/>
  58168. </method>
  58169. <doc>
  58170. <![CDATA[Describes the current status of a task. This is
  58171. not intended to be a comprehensive piece of data.]]>
  58172. </doc>
  58173. </class>
  58174. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  58175. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  58176. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  58177. abstract="false"
  58178. static="true" final="true" visibility="public"
  58179. deprecated="not deprecated">
  58180. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  58181. abstract="false" native="false" synchronized="false"
  58182. static="true" final="false" visibility="public"
  58183. deprecated="not deprecated">
  58184. </method>
  58185. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  58186. abstract="false" native="false" synchronized="false"
  58187. static="true" final="false" visibility="public"
  58188. deprecated="not deprecated">
  58189. <param name="name" type="java.lang.String"/>
  58190. </method>
  58191. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58192. transient="false" volatile="false"
  58193. static="true" final="true" visibility="public"
  58194. deprecated="not deprecated">
  58195. </field>
  58196. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58197. transient="false" volatile="false"
  58198. static="true" final="true" visibility="public"
  58199. deprecated="not deprecated">
  58200. </field>
  58201. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58202. transient="false" volatile="false"
  58203. static="true" final="true" visibility="public"
  58204. deprecated="not deprecated">
  58205. </field>
  58206. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58207. transient="false" volatile="false"
  58208. static="true" final="true" visibility="public"
  58209. deprecated="not deprecated">
  58210. </field>
  58211. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58212. transient="false" volatile="false"
  58213. static="true" final="true" visibility="public"
  58214. deprecated="not deprecated">
  58215. </field>
  58216. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58217. transient="false" volatile="false"
  58218. static="true" final="true" visibility="public"
  58219. deprecated="not deprecated">
  58220. </field>
  58221. </class>
  58222. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  58223. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  58224. <class name="TaskStatus.State" extends="java.lang.Enum"
  58225. abstract="false"
  58226. static="true" final="true" visibility="public"
  58227. deprecated="not deprecated">
  58228. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  58229. abstract="false" native="false" synchronized="false"
  58230. static="true" final="false" visibility="public"
  58231. deprecated="not deprecated">
  58232. </method>
  58233. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  58234. abstract="false" native="false" synchronized="false"
  58235. static="true" final="false" visibility="public"
  58236. deprecated="not deprecated">
  58237. <param name="name" type="java.lang.String"/>
  58238. </method>
  58239. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  58240. transient="false" volatile="false"
  58241. static="true" final="true" visibility="public"
  58242. deprecated="not deprecated">
  58243. </field>
  58244. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58245. transient="false" volatile="false"
  58246. static="true" final="true" visibility="public"
  58247. deprecated="not deprecated">
  58248. </field>
  58249. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58250. transient="false" volatile="false"
  58251. static="true" final="true" visibility="public"
  58252. deprecated="not deprecated">
  58253. </field>
  58254. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58255. transient="false" volatile="false"
  58256. static="true" final="true" visibility="public"
  58257. deprecated="not deprecated">
  58258. </field>
  58259. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58260. transient="false" volatile="false"
  58261. static="true" final="true" visibility="public"
  58262. deprecated="not deprecated">
  58263. </field>
  58264. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  58265. transient="false" volatile="false"
  58266. static="true" final="true" visibility="public"
  58267. deprecated="not deprecated">
  58268. </field>
  58269. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  58270. transient="false" volatile="false"
  58271. static="true" final="true" visibility="public"
  58272. deprecated="not deprecated">
  58273. </field>
  58274. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  58275. transient="false" volatile="false"
  58276. static="true" final="true" visibility="public"
  58277. deprecated="not deprecated">
  58278. </field>
  58279. </class>
  58280. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  58281. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  58282. <class name="TaskTracker" extends="java.lang.Object"
  58283. abstract="false"
  58284. static="false" final="false" visibility="public"
  58285. deprecated="not deprecated">
  58286. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  58287. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  58288. <implements name="java.lang.Runnable"/>
  58289. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  58290. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  58291. static="false" final="false" visibility="public"
  58292. deprecated="not deprecated">
  58293. <exception name="IOException" type="java.io.IOException"/>
  58294. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58295. <doc>
  58296. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  58297. </doc>
  58298. </constructor>
  58299. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  58300. abstract="false" native="false" synchronized="false"
  58301. static="false" final="false" visibility="public"
  58302. deprecated="not deprecated">
  58303. </method>
  58304. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  58305. abstract="false" native="false" synchronized="false"
  58306. static="false" final="false" visibility="public"
  58307. deprecated="not deprecated">
  58308. </method>
  58309. <method name="getUserDir" return="java.lang.String"
  58310. abstract="false" native="false" synchronized="false"
  58311. static="true" final="false" visibility="public"
  58312. deprecated="not deprecated">
  58313. <param name="user" type="java.lang.String"/>
  58314. </method>
  58315. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  58316. abstract="false" native="false" synchronized="false"
  58317. static="true" final="false" visibility="public"
  58318. deprecated="not deprecated">
  58319. <param name="user" type="java.lang.String"/>
  58320. </method>
  58321. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  58322. abstract="false" native="false" synchronized="false"
  58323. static="true" final="false" visibility="public"
  58324. deprecated="not deprecated">
  58325. </method>
  58326. <method name="getJobCacheSubdir" return="java.lang.String"
  58327. abstract="false" native="false" synchronized="false"
  58328. static="true" final="false" visibility="public"
  58329. deprecated="not deprecated">
  58330. <param name="user" type="java.lang.String"/>
  58331. </method>
  58332. <method name="getLocalJobDir" return="java.lang.String"
  58333. abstract="false" native="false" synchronized="false"
  58334. static="true" final="false" visibility="public"
  58335. deprecated="not deprecated">
  58336. <param name="user" type="java.lang.String"/>
  58337. <param name="jobid" type="java.lang.String"/>
  58338. </method>
  58339. <method name="getJobJarFile" return="java.lang.String"
  58340. abstract="false" native="false" synchronized="false"
  58341. static="true" final="false" visibility="public"
  58342. deprecated="not deprecated">
  58343. <param name="user" type="java.lang.String"/>
  58344. <param name="jobid" type="java.lang.String"/>
  58345. </method>
  58346. <method name="getLocalTaskDir" return="java.lang.String"
  58347. abstract="false" native="false" synchronized="false"
  58348. static="true" final="false" visibility="public"
  58349. deprecated="not deprecated">
  58350. <param name="user" type="java.lang.String"/>
  58351. <param name="jobid" type="java.lang.String"/>
  58352. <param name="taskid" type="java.lang.String"/>
  58353. </method>
  58354. <method name="getLocalTaskDir" return="java.lang.String"
  58355. abstract="false" native="false" synchronized="false"
  58356. static="true" final="false" visibility="public"
  58357. deprecated="not deprecated">
  58358. <param name="user" type="java.lang.String"/>
  58359. <param name="jobid" type="java.lang.String"/>
  58360. <param name="taskid" type="java.lang.String"/>
  58361. <param name="isCleanupAttempt" type="boolean"/>
  58362. </method>
  58363. <method name="getProtocolVersion" return="long"
  58364. abstract="false" native="false" synchronized="false"
  58365. static="false" final="false" visibility="public"
  58366. deprecated="not deprecated">
  58367. <param name="protocol" type="java.lang.String"/>
  58368. <param name="clientVersion" type="long"/>
  58369. <exception name="IOException" type="java.io.IOException"/>
  58370. </method>
  58371. <method name="cleanupStorage"
  58372. abstract="false" native="false" synchronized="false"
  58373. static="false" final="false" visibility="public"
  58374. deprecated="not deprecated">
  58375. <exception name="IOException" type="java.io.IOException"/>
  58376. <doc>
  58377. <![CDATA[Removes all contents of temporary storage. Called upon
  58378. startup, to remove any leftovers from previous run.]]>
  58379. </doc>
  58380. </method>
  58381. <method name="launchTaskForJob"
  58382. abstract="false" native="false" synchronized="false"
  58383. static="false" final="false" visibility="protected"
  58384. deprecated="not deprecated">
  58385. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  58386. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  58387. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  58388. <exception name="IOException" type="java.io.IOException"/>
  58389. </method>
  58390. <method name="shutdown"
  58391. abstract="false" native="false" synchronized="true"
  58392. static="false" final="false" visibility="public"
  58393. deprecated="not deprecated">
  58394. <exception name="IOException" type="java.io.IOException"/>
  58395. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58396. </method>
  58397. <method name="close"
  58398. abstract="false" native="false" synchronized="true"
  58399. static="false" final="false" visibility="public"
  58400. deprecated="not deprecated">
  58401. <exception name="IOException" type="java.io.IOException"/>
  58402. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58403. <doc>
  58404. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  58405. any running tasks or threads, and cleanup disk space. A new TaskTracker
  58406. within the same process space might be restarted, so everything must be
  58407. clean.
  58408. @throws InterruptedException]]>
  58409. </doc>
  58410. </method>
  58411. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  58412. abstract="false" native="false" synchronized="false"
  58413. static="false" final="false" visibility="public"
  58414. deprecated="not deprecated">
  58415. <doc>
  58416. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  58417. for locating remote files.]]>
  58418. </doc>
  58419. </method>
  58420. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  58421. abstract="false" native="false" synchronized="true"
  58422. static="false" final="false" visibility="public"
  58423. deprecated="not deprecated">
  58424. <doc>
  58425. <![CDATA[Return the port at which the tasktracker bound to]]>
  58426. </doc>
  58427. </method>
  58428. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  58429. abstract="false" native="false" synchronized="false"
  58430. static="false" final="false" visibility="public"
  58431. deprecated="not deprecated">
  58432. </method>
  58433. <method name="run"
  58434. abstract="false" native="false" synchronized="false"
  58435. static="false" final="false" visibility="public"
  58436. deprecated="not deprecated">
  58437. <doc>
  58438. <![CDATA[The server retry loop.
  58439. This while-loop attempts to connect to the JobTracker. It only
  58440. loops when the old TaskTracker has gone bad (its state is
  58441. stale somehow) and we need to reinitialize everything.]]>
  58442. </doc>
  58443. </method>
  58444. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  58445. abstract="false" native="false" synchronized="true"
  58446. static="false" final="false" visibility="public"
  58447. deprecated="not deprecated">
  58448. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  58449. <exception name="IOException" type="java.io.IOException"/>
  58450. <doc>
  58451. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  58452. </doc>
  58453. </method>
  58454. <method name="statusUpdate" return="boolean"
  58455. abstract="false" native="false" synchronized="true"
  58456. static="false" final="false" visibility="public"
  58457. deprecated="not deprecated">
  58458. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58459. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  58460. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58461. <exception name="IOException" type="java.io.IOException"/>
  58462. <doc>
  58463. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  58464. </doc>
  58465. </method>
  58466. <method name="reportDiagnosticInfo"
  58467. abstract="false" native="false" synchronized="true"
  58468. static="false" final="false" visibility="public"
  58469. deprecated="not deprecated">
  58470. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58471. <param name="info" type="java.lang.String"/>
  58472. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58473. <exception name="IOException" type="java.io.IOException"/>
  58474. <doc>
  58475. <![CDATA[Called when the task dies before completion, and we want to report back
  58476. diagnostic info]]>
  58477. </doc>
  58478. </method>
  58479. <method name="reportNextRecordRange"
  58480. abstract="false" native="false" synchronized="true"
  58481. static="false" final="false" visibility="public"
  58482. deprecated="not deprecated">
  58483. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58484. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  58485. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58486. <exception name="IOException" type="java.io.IOException"/>
  58487. </method>
  58488. <method name="ping" return="boolean"
  58489. abstract="false" native="false" synchronized="true"
  58490. static="false" final="false" visibility="public"
  58491. deprecated="not deprecated">
  58492. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58493. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58494. <exception name="IOException" type="java.io.IOException"/>
  58495. <doc>
  58496. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  58497. </doc>
  58498. </method>
  58499. <method name="commitPending"
  58500. abstract="false" native="false" synchronized="true"
  58501. static="false" final="false" visibility="public"
  58502. deprecated="not deprecated">
  58503. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58504. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  58505. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58506. <exception name="IOException" type="java.io.IOException"/>
  58507. <doc>
  58508. <![CDATA[Task is reporting that it is in commit_pending
  58509. and it is waiting for the commit Response]]>
  58510. </doc>
  58511. </method>
  58512. <method name="canCommit" return="boolean"
  58513. abstract="false" native="false" synchronized="true"
  58514. static="false" final="false" visibility="public"
  58515. deprecated="not deprecated">
  58516. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58517. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58518. <exception name="IOException" type="java.io.IOException"/>
  58519. <doc>
  58520. <![CDATA[Child checking whether it can commit]]>
  58521. </doc>
  58522. </method>
  58523. <method name="done"
  58524. abstract="false" native="false" synchronized="true"
  58525. static="false" final="false" visibility="public"
  58526. deprecated="not deprecated">
  58527. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58528. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58529. <exception name="IOException" type="java.io.IOException"/>
  58530. <doc>
  58531. <![CDATA[The task is done.]]>
  58532. </doc>
  58533. </method>
  58534. <method name="shuffleError"
  58535. abstract="false" native="false" synchronized="true"
  58536. static="false" final="false" visibility="public"
  58537. deprecated="not deprecated">
  58538. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58539. <param name="message" type="java.lang.String"/>
  58540. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58541. <exception name="IOException" type="java.io.IOException"/>
  58542. <doc>
  58543. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  58544. </doc>
  58545. </method>
  58546. <method name="fsError"
  58547. abstract="false" native="false" synchronized="true"
  58548. static="false" final="false" visibility="public"
  58549. deprecated="not deprecated">
  58550. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58551. <param name="message" type="java.lang.String"/>
  58552. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58553. <exception name="IOException" type="java.io.IOException"/>
  58554. <doc>
  58555. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  58556. </doc>
  58557. </method>
  58558. <method name="fatalError"
  58559. abstract="false" native="false" synchronized="true"
  58560. static="false" final="false" visibility="public"
  58561. deprecated="not deprecated">
  58562. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58563. <param name="msg" type="java.lang.String"/>
  58564. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58565. <exception name="IOException" type="java.io.IOException"/>
  58566. <doc>
  58567. <![CDATA[A child task had a fatal error. Kill the task.]]>
  58568. </doc>
  58569. </method>
  58570. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  58571. abstract="false" native="false" synchronized="true"
  58572. static="false" final="false" visibility="public"
  58573. deprecated="not deprecated">
  58574. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  58575. <param name="fromEventId" type="int"/>
  58576. <param name="maxLocs" type="int"/>
  58577. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58578. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58579. <exception name="IOException" type="java.io.IOException"/>
  58580. </method>
  58581. <method name="mapOutputLost"
  58582. abstract="false" native="false" synchronized="true"
  58583. static="false" final="false" visibility="public"
  58584. deprecated="not deprecated">
  58585. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58586. <param name="errorMsg" type="java.lang.String"/>
  58587. <exception name="IOException" type="java.io.IOException"/>
  58588. <doc>
  58589. <![CDATA[A completed map task's output has been lost.]]>
  58590. </doc>
  58591. </method>
  58592. <method name="isIdle" return="boolean"
  58593. abstract="false" native="false" synchronized="true"
  58594. static="false" final="false" visibility="public"
  58595. deprecated="not deprecated">
  58596. <doc>
  58597. <![CDATA[Is this task tracker idle?
  58598. @return has this task tracker finished all its assigned tasks?]]>
  58599. </doc>
  58600. </method>
  58601. <method name="isIdleAndClean" return="boolean"
  58602. abstract="false" native="false" synchronized="true"
  58603. static="false" final="false" visibility="public"
  58604. deprecated="not deprecated">
  58605. <doc>
  58606. <![CDATA[Is this task tracker idle and clean?
  58607. @return has this task tracker finished and cleaned up all of its tasks?]]>
  58608. </doc>
  58609. </method>
  58610. <method name="main"
  58611. abstract="false" native="false" synchronized="false"
  58612. static="true" final="false" visibility="public"
  58613. deprecated="not deprecated">
  58614. <param name="argv" type="java.lang.String[]"/>
  58615. <exception name="Exception" type="java.lang.Exception"/>
  58616. <doc>
  58617. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  58618. </doc>
  58619. </method>
  58620. <method name="isTaskMemoryManagerEnabled" return="boolean"
  58621. abstract="false" native="false" synchronized="false"
  58622. static="false" final="false" visibility="public"
  58623. deprecated="not deprecated">
  58624. <doc>
  58625. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  58626. @return true if enabled, false otherwise.]]>
  58627. </doc>
  58628. </method>
  58629. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  58630. abstract="false" native="false" synchronized="false"
  58631. static="false" final="false" visibility="public"
  58632. deprecated="not deprecated">
  58633. </method>
  58634. <method name="getHostname" return="java.lang.String"
  58635. abstract="false" native="false" synchronized="false"
  58636. static="false" final="false" visibility="public"
  58637. deprecated="not deprecated">
  58638. </method>
  58639. <method name="getVersion" return="java.lang.String"
  58640. abstract="false" native="false" synchronized="false"
  58641. static="false" final="false" visibility="public"
  58642. deprecated="not deprecated">
  58643. </method>
  58644. <method name="getConfigVersion" return="java.lang.String"
  58645. abstract="false" native="false" synchronized="false"
  58646. static="false" final="false" visibility="public"
  58647. deprecated="not deprecated">
  58648. </method>
  58649. <method name="getJobTrackerUrl" return="java.lang.String"
  58650. abstract="false" native="false" synchronized="false"
  58651. static="false" final="false" visibility="public"
  58652. deprecated="not deprecated">
  58653. </method>
  58654. <method name="getRpcPort" return="int"
  58655. abstract="false" native="false" synchronized="false"
  58656. static="false" final="false" visibility="public"
  58657. deprecated="not deprecated">
  58658. </method>
  58659. <method name="getHttpPort" return="int"
  58660. abstract="false" native="false" synchronized="false"
  58661. static="false" final="false" visibility="public"
  58662. deprecated="not deprecated">
  58663. </method>
  58664. <method name="isHealthy" return="boolean"
  58665. abstract="false" native="false" synchronized="false"
  58666. static="false" final="false" visibility="public"
  58667. deprecated="not deprecated">
  58668. </method>
  58669. <method name="getTasksInfoJson" return="java.lang.String"
  58670. abstract="false" native="false" synchronized="false"
  58671. static="false" final="false" visibility="public"
  58672. deprecated="not deprecated">
  58673. </method>
  58674. <method name="updatePrivateDistributedCacheSizes"
  58675. abstract="false" native="false" synchronized="false"
  58676. static="false" final="false" visibility="public"
  58677. deprecated="not deprecated">
  58678. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  58679. <param name="sizes" type="long[]"/>
  58680. <exception name="IOException" type="java.io.IOException"/>
  58681. </method>
  58682. <field name="LOG" type="org.apache.commons.logging.Log"
  58683. transient="false" volatile="false"
  58684. static="true" final="true" visibility="public"
  58685. deprecated="not deprecated">
  58686. </field>
  58687. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  58688. transient="false" volatile="false"
  58689. static="true" final="true" visibility="public"
  58690. deprecated="not deprecated">
  58691. </field>
  58692. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  58693. transient="false" volatile="false"
  58694. static="true" final="true" visibility="public"
  58695. deprecated="not deprecated">
  58696. </field>
  58697. <field name="SUBDIR" type="java.lang.String"
  58698. transient="false" volatile="false"
  58699. static="true" final="true" visibility="public"
  58700. deprecated="not deprecated">
  58701. </field>
  58702. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  58703. transient="false" volatile="false"
  58704. static="true" final="true" visibility="public"
  58705. deprecated="not deprecated">
  58706. </field>
  58707. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  58708. transient="false" volatile="false"
  58709. static="true" final="true" visibility="public"
  58710. deprecated="not deprecated">
  58711. </field>
  58712. <field name="TT_USER_NAME" type="java.lang.String"
  58713. transient="false" volatile="false"
  58714. static="true" final="true" visibility="public"
  58715. deprecated="not deprecated">
  58716. </field>
  58717. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  58718. transient="false" volatile="false"
  58719. static="true" final="true" visibility="public"
  58720. deprecated="not deprecated">
  58721. </field>
  58722. <doc>
  58723. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  58724. in a networked environment. It contacts the JobTracker
  58725. for Task assignments and reporting results.]]>
  58726. </doc>
  58727. </class>
  58728. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  58729. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  58730. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  58731. abstract="false"
  58732. static="true" final="false" visibility="public"
  58733. deprecated="not deprecated">
  58734. <constructor name="TaskTracker.MapOutputServlet"
  58735. static="false" final="false" visibility="public"
  58736. deprecated="not deprecated">
  58737. </constructor>
  58738. <method name="doGet"
  58739. abstract="false" native="false" synchronized="false"
  58740. static="false" final="false" visibility="public"
  58741. deprecated="not deprecated">
  58742. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58743. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  58744. <exception name="ServletException" type="javax.servlet.ServletException"/>
  58745. <exception name="IOException" type="java.io.IOException"/>
  58746. </method>
  58747. <doc>
  58748. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  58749. to other nodes.]]>
  58750. </doc>
  58751. </class>
  58752. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  58753. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  58754. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  58755. abstract="false"
  58756. static="false" final="false" visibility="public"
  58757. deprecated="not deprecated">
  58758. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  58759. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  58760. static="false" final="false" visibility="public"
  58761. deprecated="not deprecated">
  58762. </constructor>
  58763. <method name="getMetrics"
  58764. abstract="false" native="false" synchronized="false"
  58765. static="false" final="false" visibility="public"
  58766. deprecated="not deprecated">
  58767. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  58768. <param name="all" type="boolean"/>
  58769. </method>
  58770. <method name="completeTask"
  58771. abstract="false" native="false" synchronized="false"
  58772. static="false" final="false" visibility="public"
  58773. deprecated="not deprecated">
  58774. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58775. </method>
  58776. <method name="timedoutTask"
  58777. abstract="false" native="false" synchronized="false"
  58778. static="false" final="false" visibility="public"
  58779. deprecated="not deprecated">
  58780. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58781. </method>
  58782. <method name="taskFailedPing"
  58783. abstract="false" native="false" synchronized="false"
  58784. static="false" final="false" visibility="public"
  58785. deprecated="not deprecated">
  58786. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58787. </method>
  58788. <doc>
  58789. <![CDATA[Instrumentation for metrics v2]]>
  58790. </doc>
  58791. </class>
  58792. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  58793. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  58794. <interface name="TaskTrackerMXBean" abstract="true"
  58795. static="false" final="false" visibility="public"
  58796. deprecated="not deprecated">
  58797. <method name="getHostname" return="java.lang.String"
  58798. abstract="false" native="false" synchronized="false"
  58799. static="false" final="false" visibility="public"
  58800. deprecated="not deprecated">
  58801. <doc>
  58802. <![CDATA[@return the hostname of the tasktracker]]>
  58803. </doc>
  58804. </method>
  58805. <method name="getVersion" return="java.lang.String"
  58806. abstract="false" native="false" synchronized="false"
  58807. static="false" final="false" visibility="public"
  58808. deprecated="not deprecated">
  58809. <doc>
  58810. <![CDATA[@return the version of the code base]]>
  58811. </doc>
  58812. </method>
  58813. <method name="getConfigVersion" return="java.lang.String"
  58814. abstract="false" native="false" synchronized="false"
  58815. static="false" final="false" visibility="public"
  58816. deprecated="not deprecated">
  58817. <doc>
  58818. <![CDATA[@return the config version (from a config properties)]]>
  58819. </doc>
  58820. </method>
  58821. <method name="getJobTrackerUrl" return="java.lang.String"
  58822. abstract="false" native="false" synchronized="false"
  58823. static="false" final="false" visibility="public"
  58824. deprecated="not deprecated">
  58825. <doc>
  58826. <![CDATA[@return the URL of the jobtracker]]>
  58827. </doc>
  58828. </method>
  58829. <method name="getRpcPort" return="int"
  58830. abstract="false" native="false" synchronized="false"
  58831. static="false" final="false" visibility="public"
  58832. deprecated="not deprecated">
  58833. <doc>
  58834. <![CDATA[@return the RPC port of the tasktracker]]>
  58835. </doc>
  58836. </method>
  58837. <method name="getHttpPort" return="int"
  58838. abstract="false" native="false" synchronized="false"
  58839. static="false" final="false" visibility="public"
  58840. deprecated="not deprecated">
  58841. <doc>
  58842. <![CDATA[@return the HTTP port of the tasktracker]]>
  58843. </doc>
  58844. </method>
  58845. <method name="isHealthy" return="boolean"
  58846. abstract="false" native="false" synchronized="false"
  58847. static="false" final="false" visibility="public"
  58848. deprecated="not deprecated">
  58849. <doc>
  58850. <![CDATA[@return the health status of the tasktracker]]>
  58851. </doc>
  58852. </method>
  58853. <method name="getTasksInfoJson" return="java.lang.String"
  58854. abstract="false" native="false" synchronized="false"
  58855. static="false" final="false" visibility="public"
  58856. deprecated="not deprecated">
  58857. <doc>
  58858. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  58859. </doc>
  58860. </method>
  58861. <doc>
  58862. <![CDATA[MXBean interface for TaskTracker]]>
  58863. </doc>
  58864. </interface>
  58865. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  58866. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  58867. <class name="TaskTrackerStatus" extends="java.lang.Object"
  58868. abstract="false"
  58869. static="false" final="false" visibility="public"
  58870. deprecated="not deprecated">
  58871. <implements name="org.apache.hadoop.io.Writable"/>
  58872. <constructor name="TaskTrackerStatus"
  58873. static="false" final="false" visibility="public"
  58874. deprecated="not deprecated">
  58875. </constructor>
  58876. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int, int"
  58877. static="false" final="false" visibility="public"
  58878. deprecated="not deprecated">
  58879. </constructor>
  58880. <method name="getTrackerName" return="java.lang.String"
  58881. abstract="false" native="false" synchronized="false"
  58882. static="false" final="false" visibility="public"
  58883. deprecated="not deprecated">
  58884. </method>
  58885. <method name="getHost" return="java.lang.String"
  58886. abstract="false" native="false" synchronized="false"
  58887. static="false" final="false" visibility="public"
  58888. deprecated="not deprecated">
  58889. </method>
  58890. <method name="getHttpPort" return="int"
  58891. abstract="false" native="false" synchronized="false"
  58892. static="false" final="false" visibility="public"
  58893. deprecated="not deprecated">
  58894. <doc>
  58895. <![CDATA[Get the port that this task tracker is serving http requests on.
  58896. @return the http port]]>
  58897. </doc>
  58898. </method>
  58899. <method name="getTaskFailures" return="int"
  58900. abstract="false" native="false" synchronized="false"
  58901. static="false" final="false" visibility="public"
  58902. deprecated="not deprecated">
  58903. <doc>
  58904. <![CDATA[Get the number of tasks that have failed on this tracker.
  58905. @return The number of failed tasks]]>
  58906. </doc>
  58907. </method>
  58908. <method name="getDirFailures" return="int"
  58909. abstract="false" native="false" synchronized="false"
  58910. static="false" final="false" visibility="public"
  58911. deprecated="not deprecated">
  58912. <doc>
  58913. <![CDATA[Get the number of local directories that have failed on this tracker.
  58914. @return The number of failed local directories]]>
  58915. </doc>
  58916. </method>
  58917. <method name="getTaskReports" return="java.util.List"
  58918. abstract="false" native="false" synchronized="false"
  58919. static="false" final="false" visibility="public"
  58920. deprecated="not deprecated">
  58921. <doc>
  58922. <![CDATA[Get the current tasks at the TaskTracker.
  58923. Tasks are tracked by a {@link TaskStatus} object.
  58924. @return a list of {@link TaskStatus} representing
  58925. the current tasks at the TaskTracker.]]>
  58926. </doc>
  58927. </method>
  58928. <method name="countMapTasks" return="int"
  58929. abstract="false" native="false" synchronized="false"
  58930. static="false" final="false" visibility="public"
  58931. deprecated="not deprecated">
  58932. <doc>
  58933. <![CDATA[Get the number of running map tasks.
  58934. @return the number of running map tasks]]>
  58935. </doc>
  58936. </method>
  58937. <method name="countOccupiedMapSlots" return="int"
  58938. abstract="false" native="false" synchronized="false"
  58939. static="false" final="false" visibility="public"
  58940. deprecated="not deprecated">
  58941. <doc>
  58942. <![CDATA[Get the number of occupied map slots.
  58943. @return the number of occupied map slots]]>
  58944. </doc>
  58945. </method>
  58946. <method name="getAvailableMapSlots" return="int"
  58947. abstract="false" native="false" synchronized="false"
  58948. static="false" final="false" visibility="public"
  58949. deprecated="not deprecated">
  58950. <doc>
  58951. <![CDATA[Get available map slots.
  58952. @return available map slots]]>
  58953. </doc>
  58954. </method>
  58955. <method name="countReduceTasks" return="int"
  58956. abstract="false" native="false" synchronized="false"
  58957. static="false" final="false" visibility="public"
  58958. deprecated="not deprecated">
  58959. <doc>
  58960. <![CDATA[Get the number of running reduce tasks.
  58961. @return the number of running reduce tasks]]>
  58962. </doc>
  58963. </method>
  58964. <method name="countOccupiedReduceSlots" return="int"
  58965. abstract="false" native="false" synchronized="false"
  58966. static="false" final="false" visibility="public"
  58967. deprecated="not deprecated">
  58968. <doc>
  58969. <![CDATA[Get the number of occupied reduce slots.
  58970. @return the number of occupied reduce slots]]>
  58971. </doc>
  58972. </method>
  58973. <method name="getAvailableReduceSlots" return="int"
  58974. abstract="false" native="false" synchronized="false"
  58975. static="false" final="false" visibility="public"
  58976. deprecated="not deprecated">
  58977. <doc>
  58978. <![CDATA[Get available reduce slots.
  58979. @return available reduce slots]]>
  58980. </doc>
  58981. </method>
  58982. <method name="getLastSeen" return="long"
  58983. abstract="false" native="false" synchronized="false"
  58984. static="false" final="false" visibility="public"
  58985. deprecated="not deprecated">
  58986. </method>
  58987. <method name="setLastSeen"
  58988. abstract="false" native="false" synchronized="false"
  58989. static="false" final="false" visibility="public"
  58990. deprecated="not deprecated">
  58991. <param name="lastSeen" type="long"/>
  58992. </method>
  58993. <method name="getMaxMapSlots" return="int"
  58994. abstract="false" native="false" synchronized="false"
  58995. static="false" final="false" visibility="public"
  58996. deprecated="not deprecated">
  58997. <doc>
  58998. <![CDATA[Get the maximum map slots for this node.
  58999. @return the maximum map slots for this node]]>
  59000. </doc>
  59001. </method>
  59002. <method name="getMaxReduceSlots" return="int"
  59003. abstract="false" native="false" synchronized="false"
  59004. static="false" final="false" visibility="public"
  59005. deprecated="not deprecated">
  59006. <doc>
  59007. <![CDATA[Get the maximum reduce slots for this node.
  59008. @return the maximum reduce slots for this node]]>
  59009. </doc>
  59010. </method>
  59011. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  59012. abstract="false" native="false" synchronized="false"
  59013. static="false" final="false" visibility="public"
  59014. deprecated="not deprecated">
  59015. <doc>
  59016. <![CDATA[Returns health status of the task tracker.
  59017. @return health status of Task Tracker]]>
  59018. </doc>
  59019. </method>
  59020. <method name="write"
  59021. abstract="false" native="false" synchronized="false"
  59022. static="false" final="false" visibility="public"
  59023. deprecated="not deprecated">
  59024. <param name="out" type="java.io.DataOutput"/>
  59025. <exception name="IOException" type="java.io.IOException"/>
  59026. </method>
  59027. <method name="readFields"
  59028. abstract="false" native="false" synchronized="false"
  59029. static="false" final="false" visibility="public"
  59030. deprecated="not deprecated">
  59031. <param name="in" type="java.io.DataInput"/>
  59032. <exception name="IOException" type="java.io.IOException"/>
  59033. </method>
  59034. <field name="LOG" type="org.apache.commons.logging.Log"
  59035. transient="false" volatile="false"
  59036. static="true" final="true" visibility="public"
  59037. deprecated="not deprecated">
  59038. </field>
  59039. <field name="UNAVAILABLE" type="int"
  59040. transient="false" volatile="false"
  59041. static="true" final="true" visibility="public"
  59042. deprecated="not deprecated">
  59043. </field>
  59044. <doc>
  59045. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  59046. info on a TaskTracker. The JobTracker maintains a set
  59047. of the most recent TaskTrackerStatus objects for each
  59048. unique TaskTracker it knows about.
  59049. This is NOT a public interface!]]>
  59050. </doc>
  59051. </class>
  59052. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  59053. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  59054. <interface name="TaskUmbilicalProtocol" abstract="true"
  59055. static="false" final="false" visibility="public"
  59056. deprecated="not deprecated">
  59057. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  59058. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  59059. abstract="false" native="false" synchronized="false"
  59060. static="false" final="false" visibility="public"
  59061. deprecated="not deprecated">
  59062. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  59063. <exception name="IOException" type="java.io.IOException"/>
  59064. <doc>
  59065. <![CDATA[Called when a child task process starts, to get its task.
  59066. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  59067. launched it
  59068. @return Task object
  59069. @throws IOException]]>
  59070. </doc>
  59071. </method>
  59072. <method name="statusUpdate" return="boolean"
  59073. abstract="false" native="false" synchronized="false"
  59074. static="false" final="false" visibility="public"
  59075. deprecated="not deprecated">
  59076. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59077. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59078. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59079. <exception name="IOException" type="java.io.IOException"/>
  59080. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59081. <doc>
  59082. <![CDATA[Report child's progress to parent.
  59083. @param taskId task-id of the child
  59084. @param taskStatus status of the child
  59085. @param jvmContext context the jvmContext running the task.
  59086. @throws IOException
  59087. @throws InterruptedException
  59088. @return True if the task is known]]>
  59089. </doc>
  59090. </method>
  59091. <method name="reportDiagnosticInfo"
  59092. abstract="false" native="false" synchronized="false"
  59093. static="false" final="false" visibility="public"
  59094. deprecated="not deprecated">
  59095. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59096. <param name="trace" type="java.lang.String"/>
  59097. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59098. <exception name="IOException" type="java.io.IOException"/>
  59099. <doc>
  59100. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  59101. such messages are held in the job tracker.
  59102. @param taskid the id of the task involved
  59103. @param trace the text to report
  59104. @param jvmContext context the jvmContext running the task.]]>
  59105. </doc>
  59106. </method>
  59107. <method name="reportNextRecordRange"
  59108. abstract="false" native="false" synchronized="false"
  59109. static="false" final="false" visibility="public"
  59110. deprecated="not deprecated">
  59111. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59112. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59113. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59114. <exception name="IOException" type="java.io.IOException"/>
  59115. <doc>
  59116. <![CDATA[Report the record range which is going to process next by the Task.
  59117. @param taskid the id of the task involved
  59118. @param range the range of record sequence nos
  59119. @param jvmContext context the jvmContext running the task.
  59120. @throws IOException]]>
  59121. </doc>
  59122. </method>
  59123. <method name="ping" 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="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59129. <exception name="IOException" type="java.io.IOException"/>
  59130. <doc>
  59131. <![CDATA[Periodically called by child to check if parent is still alive.
  59132. @param taskid the id of the task involved
  59133. @param jvmContext context the jvmContext running the task.
  59134. @return True if the task is known]]>
  59135. </doc>
  59136. </method>
  59137. <method name="done"
  59138. abstract="false" native="false" synchronized="false"
  59139. static="false" final="false" visibility="public"
  59140. deprecated="not deprecated">
  59141. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59142. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59143. <exception name="IOException" type="java.io.IOException"/>
  59144. <doc>
  59145. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  59146. the task process exits without calling this.
  59147. @param taskid task's id
  59148. @param jvmContext context the jvmContext running the task.]]>
  59149. </doc>
  59150. </method>
  59151. <method name="commitPending"
  59152. abstract="false" native="false" synchronized="false"
  59153. static="false" final="false" visibility="public"
  59154. deprecated="not deprecated">
  59155. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59156. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59157. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59158. <exception name="IOException" type="java.io.IOException"/>
  59159. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59160. <doc>
  59161. <![CDATA[Report that the task is complete, but its commit is pending.
  59162. @param taskId task's id
  59163. @param taskStatus status of the child
  59164. @param jvmContext context the jvmContext running the task.
  59165. @throws IOException]]>
  59166. </doc>
  59167. </method>
  59168. <method name="canCommit" return="boolean"
  59169. abstract="false" native="false" synchronized="false"
  59170. static="false" final="false" visibility="public"
  59171. deprecated="not deprecated">
  59172. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59173. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59174. <exception name="IOException" type="java.io.IOException"/>
  59175. <doc>
  59176. <![CDATA[Polling to know whether the task can go-ahead with commit
  59177. @param taskid
  59178. @param jvmContext context the jvmContext running the task.
  59179. @return true/false
  59180. @throws IOException]]>
  59181. </doc>
  59182. </method>
  59183. <method name="shuffleError"
  59184. abstract="false" native="false" synchronized="false"
  59185. static="false" final="false" visibility="public"
  59186. deprecated="not deprecated">
  59187. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59188. <param name="message" type="java.lang.String"/>
  59189. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59190. <exception name="IOException" type="java.io.IOException"/>
  59191. <doc>
  59192. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  59193. </doc>
  59194. </method>
  59195. <method name="fsError"
  59196. abstract="false" native="false" synchronized="false"
  59197. static="false" final="false" visibility="public"
  59198. deprecated="not deprecated">
  59199. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59200. <param name="message" type="java.lang.String"/>
  59201. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59202. <exception name="IOException" type="java.io.IOException"/>
  59203. <doc>
  59204. <![CDATA[Report that the task encounted a local filesystem error.]]>
  59205. </doc>
  59206. </method>
  59207. <method name="fatalError"
  59208. abstract="false" native="false" synchronized="false"
  59209. static="false" final="false" visibility="public"
  59210. deprecated="not deprecated">
  59211. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59212. <param name="message" type="java.lang.String"/>
  59213. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59214. <exception name="IOException" type="java.io.IOException"/>
  59215. <doc>
  59216. <![CDATA[Report that the task encounted a fatal error.]]>
  59217. </doc>
  59218. </method>
  59219. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  59220. abstract="false" native="false" synchronized="false"
  59221. static="false" final="false" visibility="public"
  59222. deprecated="not deprecated">
  59223. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  59224. <param name="fromIndex" type="int"/>
  59225. <param name="maxLocs" type="int"/>
  59226. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59227. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59228. <exception name="IOException" type="java.io.IOException"/>
  59229. <doc>
  59230. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  59231. Returns an update centered around the map-task-completion-events.
  59232. The update also piggybacks the information whether the events copy at the
  59233. task-tracker has changed or not. This will trigger some action at the
  59234. child-process.
  59235. @param jobId the reducer job id
  59236. @param fromIndex the index starting from which the locations should be
  59237. fetched
  59238. @param maxLocs the max number of locations to fetch
  59239. @param id The attempt id of the task that is trying to communicate
  59240. @return A {@link MapTaskCompletionEventsUpdate}]]>
  59241. </doc>
  59242. </method>
  59243. <method name="updatePrivateDistributedCacheSizes"
  59244. abstract="false" native="false" synchronized="false"
  59245. static="false" final="false" visibility="public"
  59246. deprecated="not deprecated">
  59247. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  59248. <param name="sizes" type="long[]"/>
  59249. <exception name="IOException" type="java.io.IOException"/>
  59250. <doc>
  59251. <![CDATA[The job initializer needs to report the sizes of the archive
  59252. objects and directories in the private distributed cache.
  59253. @param jobId the job to update
  59254. @param sizes the array of sizes that were computed
  59255. @throws IOException]]>
  59256. </doc>
  59257. </method>
  59258. <field name="versionID" type="long"
  59259. transient="false" volatile="false"
  59260. static="true" final="true" visibility="public"
  59261. deprecated="not deprecated">
  59262. <doc>
  59263. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  59264. Changed version to 3 to have progress() return a boolean
  59265. Changed the version to 4, since we have replaced
  59266. TaskUmbilicalProtocol.progress(String, float, String,
  59267. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  59268. with statusUpdate(String, TaskStatus)
  59269. Version 5 changed counters representation for HADOOP-2248
  59270. Version 6 changes the TaskStatus representation for HADOOP-2208
  59271. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  59272. or not the task's output needs to be promoted.
  59273. Version 8 changes {job|tip|task}id's to use their corresponding
  59274. objects rather than strings.
  59275. Version 9 changes the counter representation for HADOOP-1915
  59276. Version 10 changed the TaskStatus format and added reportNextRecordRange
  59277. for HADOOP-153
  59278. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  59279. Version 12 getMapCompletionEvents() now also indicates if the events are
  59280. stale or not. Hence the return type is a class that
  59281. encapsulates the events and whether to reset events index.
  59282. Version 13 changed the getTask method signature for HADOOP-249
  59283. Version 14 changed the getTask method signature for HADOOP-4232
  59284. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  59285. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  59286. Version 17 Change in signature of getTask() for HADOOP-5488
  59287. Version 18 Added fatalError for child to communicate fatal errors to TT
  59288. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  59289. </doc>
  59290. </field>
  59291. <doc>
  59292. <![CDATA[Protocol that task child process uses to contact its parent process. The
  59293. parent is a daemon which which polls the central master for a new map or
  59294. reduce task and runs it as a child process. All communication between child
  59295. and parent is via this protocol.]]>
  59296. </doc>
  59297. </interface>
  59298. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  59299. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  59300. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  59301. abstract="false"
  59302. static="false" final="false" visibility="public"
  59303. deprecated="not deprecated">
  59304. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  59305. <constructor name="TextInputFormat"
  59306. static="false" final="false" visibility="public"
  59307. deprecated="not deprecated">
  59308. </constructor>
  59309. <method name="configure"
  59310. abstract="false" native="false" synchronized="false"
  59311. static="false" final="false" visibility="public"
  59312. deprecated="not deprecated">
  59313. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  59314. </method>
  59315. <method name="isSplitable" return="boolean"
  59316. abstract="false" native="false" synchronized="false"
  59317. static="false" final="false" visibility="protected"
  59318. deprecated="not deprecated">
  59319. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  59320. <param name="file" type="org.apache.hadoop.fs.Path"/>
  59321. </method>
  59322. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  59323. abstract="false" native="false" synchronized="false"
  59324. static="false" final="false" visibility="public"
  59325. deprecated="not deprecated">
  59326. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  59327. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59328. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59329. <exception name="IOException" type="java.io.IOException"/>
  59330. </method>
  59331. <doc>
  59332. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  59333. Either linefeed or carriage-return are used to signal end of line. Keys are
  59334. the position in the file, and values are the line of text..]]>
  59335. </doc>
  59336. </class>
  59337. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  59338. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  59339. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  59340. abstract="false"
  59341. static="false" final="false" visibility="public"
  59342. deprecated="not deprecated">
  59343. <constructor name="TextOutputFormat"
  59344. static="false" final="false" visibility="public"
  59345. deprecated="not deprecated">
  59346. </constructor>
  59347. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  59348. abstract="false" native="false" synchronized="false"
  59349. static="false" final="false" visibility="public"
  59350. deprecated="not deprecated">
  59351. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  59352. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59353. <param name="name" type="java.lang.String"/>
  59354. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  59355. <exception name="IOException" type="java.io.IOException"/>
  59356. </method>
  59357. <doc>
  59358. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  59359. </doc>
  59360. </class>
  59361. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  59362. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  59363. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  59364. abstract="false"
  59365. static="true" final="false" visibility="protected"
  59366. deprecated="not deprecated">
  59367. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  59368. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  59369. static="false" final="false" visibility="public"
  59370. deprecated="not deprecated">
  59371. </constructor>
  59372. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  59373. static="false" final="false" visibility="public"
  59374. deprecated="not deprecated">
  59375. </constructor>
  59376. <method name="write"
  59377. abstract="false" native="false" synchronized="true"
  59378. static="false" final="false" visibility="public"
  59379. deprecated="not deprecated">
  59380. <param name="key" type="java.lang.Object"/>
  59381. <param name="value" type="java.lang.Object"/>
  59382. <exception name="IOException" type="java.io.IOException"/>
  59383. </method>
  59384. <method name="close"
  59385. abstract="false" native="false" synchronized="true"
  59386. static="false" final="false" visibility="public"
  59387. deprecated="not deprecated">
  59388. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59389. <exception name="IOException" type="java.io.IOException"/>
  59390. </method>
  59391. <field name="out" type="java.io.DataOutputStream"
  59392. transient="false" volatile="false"
  59393. static="false" final="false" visibility="protected"
  59394. deprecated="not deprecated">
  59395. </field>
  59396. </class>
  59397. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  59398. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  59399. <class name="TIPStatus" extends="java.lang.Enum"
  59400. abstract="false"
  59401. static="false" final="true" visibility="public"
  59402. deprecated="not deprecated">
  59403. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  59404. abstract="false" native="false" synchronized="false"
  59405. static="true" final="false" visibility="public"
  59406. deprecated="not deprecated">
  59407. </method>
  59408. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  59409. abstract="false" native="false" synchronized="false"
  59410. static="true" final="false" visibility="public"
  59411. deprecated="not deprecated">
  59412. <param name="name" type="java.lang.String"/>
  59413. </method>
  59414. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  59415. transient="false" volatile="false"
  59416. static="true" final="true" visibility="public"
  59417. deprecated="not deprecated">
  59418. </field>
  59419. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  59420. transient="false" volatile="false"
  59421. static="true" final="true" visibility="public"
  59422. deprecated="not deprecated">
  59423. </field>
  59424. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  59425. transient="false" volatile="false"
  59426. static="true" final="true" visibility="public"
  59427. deprecated="not deprecated">
  59428. </field>
  59429. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  59430. transient="false" volatile="false"
  59431. static="true" final="true" visibility="public"
  59432. deprecated="not deprecated">
  59433. </field>
  59434. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  59435. transient="false" volatile="false"
  59436. static="true" final="true" visibility="public"
  59437. deprecated="not deprecated">
  59438. </field>
  59439. <doc>
  59440. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  59441. </doc>
  59442. </class>
  59443. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  59444. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  59445. <class name="UserLogCleaner" extends="java.lang.Thread"
  59446. abstract="false"
  59447. static="false" final="false" visibility="public"
  59448. deprecated="not deprecated">
  59449. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  59450. static="false" final="false" visibility="public"
  59451. deprecated="not deprecated">
  59452. <exception name="IOException" type="java.io.IOException"/>
  59453. </constructor>
  59454. <method name="run"
  59455. abstract="false" native="false" synchronized="false"
  59456. static="false" final="false" visibility="public"
  59457. deprecated="not deprecated">
  59458. </method>
  59459. <method name="deleteJobLogs"
  59460. abstract="false" native="false" synchronized="false"
  59461. static="false" final="false" visibility="public"
  59462. deprecated="not deprecated">
  59463. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59464. <exception name="IOException" type="java.io.IOException"/>
  59465. </method>
  59466. <method name="addOldUserLogsForDeletion"
  59467. abstract="false" native="false" synchronized="false"
  59468. static="false" final="false" visibility="public"
  59469. deprecated="not deprecated">
  59470. <param name="loc" type="java.io.File"/>
  59471. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59472. <exception name="IOException" type="java.io.IOException"/>
  59473. <doc>
  59474. <![CDATA[Adds the job log directories for deletion with default retain hours.
  59475. Deletes all other directories, if any.
  59476. @param loc location of log directory
  59477. @param conf
  59478. @throws IOException]]>
  59479. </doc>
  59480. </method>
  59481. <method name="clearOldUserLogs"
  59482. abstract="false" native="false" synchronized="false"
  59483. static="false" final="false" visibility="public"
  59484. deprecated="not deprecated">
  59485. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59486. <exception name="IOException" type="java.io.IOException"/>
  59487. <doc>
  59488. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  59489. reinit/restart of the TaskTracker.
  59490. @param conf
  59491. @throws IOException]]>
  59492. </doc>
  59493. </method>
  59494. <method name="markJobLogsForDeletion"
  59495. abstract="false" native="false" synchronized="false"
  59496. static="false" final="false" visibility="public"
  59497. deprecated="not deprecated">
  59498. <param name="jobCompletionTime" type="long"/>
  59499. <param name="retainHours" type="int"/>
  59500. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59501. <doc>
  59502. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  59503. retain hours.
  59504. @param jobCompletionTime
  59505. job completion time in millis
  59506. @param retainHours
  59507. the user-log retain hours for the job
  59508. @param jobid
  59509. JobID for which user logs should be deleted]]>
  59510. </doc>
  59511. </method>
  59512. <method name="unmarkJobFromLogDeletion"
  59513. abstract="false" native="false" synchronized="false"
  59514. static="false" final="false" visibility="public"
  59515. deprecated="not deprecated">
  59516. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59517. <doc>
  59518. <![CDATA[Remove job from user log deletion.
  59519. @param jobid]]>
  59520. </doc>
  59521. </method>
  59522. <doc>
  59523. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  59524. </doc>
  59525. </class>
  59526. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  59527. <!-- start class org.apache.hadoop.mapred.Utils -->
  59528. <class name="Utils" extends="java.lang.Object"
  59529. abstract="false"
  59530. static="false" final="false" visibility="public"
  59531. deprecated="not deprecated">
  59532. <constructor name="Utils"
  59533. static="false" final="false" visibility="public"
  59534. deprecated="not deprecated">
  59535. </constructor>
  59536. <doc>
  59537. <![CDATA[A utility class. It provides
  59538. - file-util
  59539. - A path filter utility to filter out output/part files in the output dir]]>
  59540. </doc>
  59541. </class>
  59542. <!-- end class org.apache.hadoop.mapred.Utils -->
  59543. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  59544. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  59545. abstract="false"
  59546. static="true" final="false" visibility="public"
  59547. deprecated="not deprecated">
  59548. <constructor name="Utils.OutputFileUtils"
  59549. static="false" final="false" visibility="public"
  59550. deprecated="not deprecated">
  59551. </constructor>
  59552. </class>
  59553. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  59554. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  59555. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  59556. abstract="false"
  59557. static="true" final="false" visibility="public"
  59558. deprecated="not deprecated">
  59559. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  59560. static="false" final="false" visibility="public"
  59561. deprecated="not deprecated">
  59562. </constructor>
  59563. <method name="accept" return="boolean"
  59564. abstract="false" native="false" synchronized="false"
  59565. static="false" final="false" visibility="public"
  59566. deprecated="not deprecated">
  59567. <param name="path" type="org.apache.hadoop.fs.Path"/>
  59568. </method>
  59569. <doc>
  59570. <![CDATA[This class filters output(part) files from the given directory
  59571. It does not accept files with filenames _logs and _SUCCESS.
  59572. This can be used to list paths of output directory as follows:
  59573. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  59574. new OutputFilesFilter()));]]>
  59575. </doc>
  59576. </class>
  59577. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  59578. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  59579. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  59580. abstract="false"
  59581. static="true" final="false" visibility="public"
  59582. deprecated="not deprecated">
  59583. <implements name="org.apache.hadoop.fs.PathFilter"/>
  59584. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  59585. static="false" final="false" visibility="public"
  59586. deprecated="not deprecated">
  59587. </constructor>
  59588. <method name="accept" return="boolean"
  59589. abstract="false" native="false" synchronized="false"
  59590. static="false" final="false" visibility="public"
  59591. deprecated="not deprecated">
  59592. <param name="path" type="org.apache.hadoop.fs.Path"/>
  59593. </method>
  59594. <doc>
  59595. <![CDATA[This class filters log files from directory given
  59596. It doesnt accept paths having _logs.
  59597. This can be used to list paths of output directory as follows:
  59598. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  59599. new OutputLogFilter()));]]>
  59600. </doc>
  59601. </class>
  59602. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  59603. </package>
  59604. <package name="org.apache.hadoop.mapred.jobcontrol">
  59605. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  59606. <class name="Job" extends="java.lang.Object"
  59607. abstract="false"
  59608. static="false" final="false" visibility="public"
  59609. deprecated="not deprecated">
  59610. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  59611. static="false" final="false" visibility="public"
  59612. deprecated="not deprecated">
  59613. <exception name="IOException" type="java.io.IOException"/>
  59614. <doc>
  59615. <![CDATA[Construct a job.
  59616. @param jobConf a mapred job configuration representing a job to be executed.
  59617. @param dependingJobs an array of jobs the current job depends on]]>
  59618. </doc>
  59619. </constructor>
  59620. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  59621. static="false" final="false" visibility="public"
  59622. deprecated="not deprecated">
  59623. <exception name="IOException" type="java.io.IOException"/>
  59624. <doc>
  59625. <![CDATA[Construct a job.
  59626. @param jobConf mapred job configuration representing a job to be executed.
  59627. @throws IOException]]>
  59628. </doc>
  59629. </constructor>
  59630. <method name="toString" return="java.lang.String"
  59631. abstract="false" native="false" synchronized="false"
  59632. static="false" final="false" visibility="public"
  59633. deprecated="not deprecated">
  59634. </method>
  59635. <method name="getJobName" return="java.lang.String"
  59636. abstract="false" native="false" synchronized="false"
  59637. static="false" final="false" visibility="public"
  59638. deprecated="not deprecated">
  59639. <doc>
  59640. <![CDATA[@return the job name of this job]]>
  59641. </doc>
  59642. </method>
  59643. <method name="setJobName"
  59644. abstract="false" native="false" synchronized="false"
  59645. static="false" final="false" visibility="public"
  59646. deprecated="not deprecated">
  59647. <param name="jobName" type="java.lang.String"/>
  59648. <doc>
  59649. <![CDATA[Set the job name for this job.
  59650. @param jobName the job name]]>
  59651. </doc>
  59652. </method>
  59653. <method name="getJobID" return="java.lang.String"
  59654. abstract="false" native="false" synchronized="false"
  59655. static="false" final="false" visibility="public"
  59656. deprecated="not deprecated">
  59657. <doc>
  59658. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  59659. </doc>
  59660. </method>
  59661. <method name="setJobID"
  59662. abstract="false" native="false" synchronized="false"
  59663. static="false" final="false" visibility="public"
  59664. deprecated="not deprecated">
  59665. <param name="id" type="java.lang.String"/>
  59666. <doc>
  59667. <![CDATA[Set the job ID for this job.
  59668. @param id the job ID]]>
  59669. </doc>
  59670. </method>
  59671. <method name="getMapredJobID" return="java.lang.String"
  59672. abstract="false" native="false" synchronized="false"
  59673. static="false" final="false" visibility="public"
  59674. deprecated="use {@link #getAssignedJobID()} instead">
  59675. <doc>
  59676. <![CDATA[@return the mapred ID of this job
  59677. @deprecated use {@link #getAssignedJobID()} instead]]>
  59678. </doc>
  59679. </method>
  59680. <method name="setMapredJobID"
  59681. abstract="false" native="false" synchronized="false"
  59682. static="false" final="false" visibility="public"
  59683. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  59684. <param name="mapredJobID" type="java.lang.String"/>
  59685. <doc>
  59686. <![CDATA[Set the mapred ID for this job.
  59687. @param mapredJobID the mapred job ID for this job.
  59688. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  59689. </doc>
  59690. </method>
  59691. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  59692. abstract="false" native="false" synchronized="false"
  59693. static="false" final="false" visibility="public"
  59694. deprecated="not deprecated">
  59695. <doc>
  59696. <![CDATA[@return the mapred ID of this job as assigned by the
  59697. mapred framework.]]>
  59698. </doc>
  59699. </method>
  59700. <method name="setAssignedJobID"
  59701. abstract="false" native="false" synchronized="false"
  59702. static="false" final="false" visibility="public"
  59703. deprecated="not deprecated">
  59704. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  59705. <doc>
  59706. <![CDATA[Set the mapred ID for this job as assigned by the
  59707. mapred framework.
  59708. @param mapredJobID the mapred job ID for this job.]]>
  59709. </doc>
  59710. </method>
  59711. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  59712. abstract="false" native="false" synchronized="false"
  59713. static="false" final="false" visibility="public"
  59714. deprecated="not deprecated">
  59715. <doc>
  59716. <![CDATA[@return the mapred job conf of this job]]>
  59717. </doc>
  59718. </method>
  59719. <method name="setJobConf"
  59720. abstract="false" native="false" synchronized="false"
  59721. static="false" final="false" visibility="public"
  59722. deprecated="not deprecated">
  59723. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  59724. <doc>
  59725. <![CDATA[Set the mapred job conf for this job.
  59726. @param jobConf the mapred job conf for this job.]]>
  59727. </doc>
  59728. </method>
  59729. <method name="getState" return="int"
  59730. abstract="false" native="false" synchronized="true"
  59731. static="false" final="false" visibility="public"
  59732. deprecated="not deprecated">
  59733. <doc>
  59734. <![CDATA[@return the state of this job]]>
  59735. </doc>
  59736. </method>
  59737. <method name="setState"
  59738. abstract="false" native="false" synchronized="true"
  59739. static="false" final="false" visibility="protected"
  59740. deprecated="not deprecated">
  59741. <param name="state" type="int"/>
  59742. <doc>
  59743. <![CDATA[Set the state for this job.
  59744. @param state the new state for this job.]]>
  59745. </doc>
  59746. </method>
  59747. <method name="getMessage" return="java.lang.String"
  59748. abstract="false" native="false" synchronized="false"
  59749. static="false" final="false" visibility="public"
  59750. deprecated="not deprecated">
  59751. <doc>
  59752. <![CDATA[@return the message of this job]]>
  59753. </doc>
  59754. </method>
  59755. <method name="setMessage"
  59756. abstract="false" native="false" synchronized="false"
  59757. static="false" final="false" visibility="public"
  59758. deprecated="not deprecated">
  59759. <param name="message" type="java.lang.String"/>
  59760. <doc>
  59761. <![CDATA[Set the message for this job.
  59762. @param message the message for this job.]]>
  59763. </doc>
  59764. </method>
  59765. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  59766. abstract="false" native="false" synchronized="false"
  59767. static="false" final="false" visibility="public"
  59768. deprecated="not deprecated">
  59769. <doc>
  59770. <![CDATA[@return the job client of this job]]>
  59771. </doc>
  59772. </method>
  59773. <method name="getDependingJobs" return="java.util.ArrayList"
  59774. abstract="false" native="false" synchronized="false"
  59775. static="false" final="false" visibility="public"
  59776. deprecated="not deprecated">
  59777. <doc>
  59778. <![CDATA[@return the depending jobs of this job]]>
  59779. </doc>
  59780. </method>
  59781. <method name="addDependingJob" return="boolean"
  59782. abstract="false" native="false" synchronized="true"
  59783. static="false" final="false" visibility="public"
  59784. deprecated="not deprecated">
  59785. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  59786. <doc>
  59787. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  59788. is waiting to run, not during or afterwards.
  59789. @param dependingJob Job that this Job depends on.
  59790. @return <tt>true</tt> if the Job was added.]]>
  59791. </doc>
  59792. </method>
  59793. <method name="isCompleted" return="boolean"
  59794. abstract="false" native="false" synchronized="false"
  59795. static="false" final="false" visibility="public"
  59796. deprecated="not deprecated">
  59797. <doc>
  59798. <![CDATA[@return true if this job is in a complete state]]>
  59799. </doc>
  59800. </method>
  59801. <method name="isReady" return="boolean"
  59802. abstract="false" native="false" synchronized="false"
  59803. static="false" final="false" visibility="public"
  59804. deprecated="not deprecated">
  59805. <doc>
  59806. <![CDATA[@return true if this job is in READY state]]>
  59807. </doc>
  59808. </method>
  59809. <method name="submit"
  59810. abstract="false" native="false" synchronized="true"
  59811. static="false" final="false" visibility="protected"
  59812. deprecated="not deprecated">
  59813. <doc>
  59814. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  59815. is successful, FAILED otherwise.]]>
  59816. </doc>
  59817. </method>
  59818. <field name="SUCCESS" type="int"
  59819. transient="false" volatile="false"
  59820. static="true" final="true" visibility="public"
  59821. deprecated="not deprecated">
  59822. </field>
  59823. <field name="WAITING" type="int"
  59824. transient="false" volatile="false"
  59825. static="true" final="true" visibility="public"
  59826. deprecated="not deprecated">
  59827. </field>
  59828. <field name="RUNNING" type="int"
  59829. transient="false" volatile="false"
  59830. static="true" final="true" visibility="public"
  59831. deprecated="not deprecated">
  59832. </field>
  59833. <field name="READY" type="int"
  59834. transient="false" volatile="false"
  59835. static="true" final="true" visibility="public"
  59836. deprecated="not deprecated">
  59837. </field>
  59838. <field name="FAILED" type="int"
  59839. transient="false" volatile="false"
  59840. static="true" final="true" visibility="public"
  59841. deprecated="not deprecated">
  59842. </field>
  59843. <field name="DEPENDENT_FAILED" type="int"
  59844. transient="false" volatile="false"
  59845. static="true" final="true" visibility="public"
  59846. deprecated="not deprecated">
  59847. </field>
  59848. <doc>
  59849. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  59850. the states of the depending jobs and updates the state of this job.
  59851. A job starts in the WAITING state. If it does not have any depending jobs, or
  59852. all of the depending jobs are in SUCCESS state, then the job state will become
  59853. READY. If any depending jobs fail, the job will fail too.
  59854. When in READY state, the job can be submitted to Hadoop for execution, with
  59855. the state changing into RUNNING state. From RUNNING state, the job can get into
  59856. SUCCESS or FAILED state, depending the status of the job execution.]]>
  59857. </doc>
  59858. </class>
  59859. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  59860. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  59861. <class name="JobControl" extends="java.lang.Object"
  59862. abstract="false"
  59863. static="false" final="false" visibility="public"
  59864. deprecated="not deprecated">
  59865. <implements name="java.lang.Runnable"/>
  59866. <constructor name="JobControl" type="java.lang.String"
  59867. static="false" final="false" visibility="public"
  59868. deprecated="not deprecated">
  59869. <doc>
  59870. <![CDATA[Construct a job control for a group of jobs.
  59871. @param groupName a name identifying this group]]>
  59872. </doc>
  59873. </constructor>
  59874. <method name="getWaitingJobs" return="java.util.ArrayList"
  59875. abstract="false" native="false" synchronized="false"
  59876. static="false" final="false" visibility="public"
  59877. deprecated="not deprecated">
  59878. <doc>
  59879. <![CDATA[@return the jobs in the waiting state]]>
  59880. </doc>
  59881. </method>
  59882. <method name="getRunningJobs" return="java.util.ArrayList"
  59883. abstract="false" native="false" synchronized="false"
  59884. static="false" final="false" visibility="public"
  59885. deprecated="not deprecated">
  59886. <doc>
  59887. <![CDATA[@return the jobs in the running state]]>
  59888. </doc>
  59889. </method>
  59890. <method name="getReadyJobs" return="java.util.ArrayList"
  59891. abstract="false" native="false" synchronized="false"
  59892. static="false" final="false" visibility="public"
  59893. deprecated="not deprecated">
  59894. <doc>
  59895. <![CDATA[@return the jobs in the ready state]]>
  59896. </doc>
  59897. </method>
  59898. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  59899. abstract="false" native="false" synchronized="false"
  59900. static="false" final="false" visibility="public"
  59901. deprecated="not deprecated">
  59902. <doc>
  59903. <![CDATA[@return the jobs in the success state]]>
  59904. </doc>
  59905. </method>
  59906. <method name="getFailedJobs" return="java.util.ArrayList"
  59907. abstract="false" native="false" synchronized="false"
  59908. static="false" final="false" visibility="public"
  59909. deprecated="not deprecated">
  59910. </method>
  59911. <method name="addJob" return="java.lang.String"
  59912. abstract="false" native="false" synchronized="true"
  59913. static="false" final="false" visibility="public"
  59914. deprecated="not deprecated">
  59915. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  59916. <doc>
  59917. <![CDATA[Add a new job.
  59918. @param aJob the new job]]>
  59919. </doc>
  59920. </method>
  59921. <method name="addJobs"
  59922. abstract="false" native="false" synchronized="false"
  59923. static="false" final="false" visibility="public"
  59924. deprecated="not deprecated">
  59925. <param name="jobs" type="java.util.Collection"/>
  59926. <doc>
  59927. <![CDATA[Add a collection of jobs
  59928. @param jobs]]>
  59929. </doc>
  59930. </method>
  59931. <method name="getState" return="int"
  59932. abstract="false" native="false" synchronized="false"
  59933. static="false" final="false" visibility="public"
  59934. deprecated="not deprecated">
  59935. <doc>
  59936. <![CDATA[@return the thread state]]>
  59937. </doc>
  59938. </method>
  59939. <method name="stop"
  59940. abstract="false" native="false" synchronized="false"
  59941. static="false" final="false" visibility="public"
  59942. deprecated="not deprecated">
  59943. <doc>
  59944. <![CDATA[set the thread state to STOPPING so that the
  59945. thread will stop when it wakes up.]]>
  59946. </doc>
  59947. </method>
  59948. <method name="suspend"
  59949. abstract="false" native="false" synchronized="false"
  59950. static="false" final="false" visibility="public"
  59951. deprecated="not deprecated">
  59952. <doc>
  59953. <![CDATA[suspend the running thread]]>
  59954. </doc>
  59955. </method>
  59956. <method name="resume"
  59957. abstract="false" native="false" synchronized="false"
  59958. static="false" final="false" visibility="public"
  59959. deprecated="not deprecated">
  59960. <doc>
  59961. <![CDATA[resume the suspended thread]]>
  59962. </doc>
  59963. </method>
  59964. <method name="allFinished" return="boolean"
  59965. abstract="false" native="false" synchronized="true"
  59966. static="false" final="false" visibility="public"
  59967. deprecated="not deprecated">
  59968. </method>
  59969. <method name="run"
  59970. abstract="false" native="false" synchronized="false"
  59971. static="false" final="false" visibility="public"
  59972. deprecated="not deprecated">
  59973. <doc>
  59974. <![CDATA[The main loop for the thread.
  59975. The loop does the following:
  59976. Check the states of the running jobs
  59977. Update the states of waiting jobs
  59978. Submit the jobs in ready state]]>
  59979. </doc>
  59980. </method>
  59981. <doc>
  59982. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  59983. the states of the jobs by placing them into different tables according to their
  59984. states.
  59985. This class provides APIs for the client app to add a job to the group and to get
  59986. the jobs in the group in different states. When a
  59987. job is added, an ID unique to the group is assigned to the job.
  59988. This class has a thread that submits jobs when they become ready, monitors the
  59989. states of the running jobs, and updates the states of jobs based on the state changes
  59990. of their depending jobs states. The class provides APIs for suspending/resuming
  59991. the thread,and for stopping the thread.]]>
  59992. </doc>
  59993. </class>
  59994. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  59995. </package>
  59996. <package name="org.apache.hadoop.mapred.join">
  59997. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  59998. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  59999. abstract="false"
  60000. static="false" final="false" visibility="public"
  60001. deprecated="not deprecated">
  60002. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60003. <constructor name="ArrayListBackedIterator"
  60004. static="false" final="false" visibility="public"
  60005. deprecated="not deprecated">
  60006. </constructor>
  60007. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  60008. static="false" final="false" visibility="public"
  60009. deprecated="not deprecated">
  60010. </constructor>
  60011. <method name="hasNext" return="boolean"
  60012. abstract="false" native="false" synchronized="false"
  60013. static="false" final="false" visibility="public"
  60014. deprecated="not deprecated">
  60015. </method>
  60016. <method name="next" return="boolean"
  60017. abstract="false" native="false" synchronized="false"
  60018. static="false" final="false" visibility="public"
  60019. deprecated="not deprecated">
  60020. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60021. <exception name="IOException" type="java.io.IOException"/>
  60022. </method>
  60023. <method name="replay" return="boolean"
  60024. abstract="false" native="false" synchronized="false"
  60025. static="false" final="false" visibility="public"
  60026. deprecated="not deprecated">
  60027. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60028. <exception name="IOException" type="java.io.IOException"/>
  60029. </method>
  60030. <method name="reset"
  60031. abstract="false" native="false" synchronized="false"
  60032. static="false" final="false" visibility="public"
  60033. deprecated="not deprecated">
  60034. </method>
  60035. <method name="add"
  60036. abstract="false" native="false" synchronized="false"
  60037. static="false" final="false" visibility="public"
  60038. deprecated="not deprecated">
  60039. <param name="item" type="org.apache.hadoop.io.Writable"/>
  60040. <exception name="IOException" type="java.io.IOException"/>
  60041. </method>
  60042. <method name="close"
  60043. abstract="false" native="false" synchronized="false"
  60044. static="false" final="false" visibility="public"
  60045. deprecated="not deprecated">
  60046. <exception name="IOException" type="java.io.IOException"/>
  60047. </method>
  60048. <method name="clear"
  60049. abstract="false" native="false" synchronized="false"
  60050. static="false" final="false" visibility="public"
  60051. deprecated="not deprecated">
  60052. </method>
  60053. <doc>
  60054. <![CDATA[This class provides an implementation of ResetableIterator. The
  60055. implementation uses an {@link java.util.ArrayList} to store elements
  60056. added to it, replaying them as requested.
  60057. Prefer {@link StreamBackedIterator}.]]>
  60058. </doc>
  60059. </class>
  60060. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  60061. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  60062. <interface name="ComposableInputFormat" abstract="true"
  60063. static="false" final="false" visibility="public"
  60064. deprecated="not deprecated">
  60065. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  60066. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  60067. abstract="false" native="false" synchronized="false"
  60068. static="false" final="false" visibility="public"
  60069. deprecated="not deprecated">
  60070. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60071. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60072. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60073. <exception name="IOException" type="java.io.IOException"/>
  60074. </method>
  60075. <doc>
  60076. <![CDATA[Refinement of InputFormat requiring implementors to provide
  60077. ComposableRecordReader instead of RecordReader.]]>
  60078. </doc>
  60079. </interface>
  60080. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  60081. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  60082. <interface name="ComposableRecordReader" abstract="true"
  60083. static="false" final="false" visibility="public"
  60084. deprecated="not deprecated">
  60085. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  60086. <implements name="java.lang.Comparable"/>
  60087. <method name="id" return="int"
  60088. abstract="false" native="false" synchronized="false"
  60089. static="false" final="false" visibility="public"
  60090. deprecated="not deprecated">
  60091. <doc>
  60092. <![CDATA[Return the position in the collector this class occupies.]]>
  60093. </doc>
  60094. </method>
  60095. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60096. abstract="false" native="false" synchronized="false"
  60097. static="false" final="false" visibility="public"
  60098. deprecated="not deprecated">
  60099. <doc>
  60100. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  60101. </doc>
  60102. </method>
  60103. <method name="key"
  60104. abstract="false" native="false" synchronized="false"
  60105. static="false" final="false" visibility="public"
  60106. deprecated="not deprecated">
  60107. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60108. <exception name="IOException" type="java.io.IOException"/>
  60109. <doc>
  60110. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  60111. </doc>
  60112. </method>
  60113. <method name="hasNext" return="boolean"
  60114. abstract="false" native="false" synchronized="false"
  60115. static="false" final="false" visibility="public"
  60116. deprecated="not deprecated">
  60117. <doc>
  60118. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  60119. a call to next(K,V) will succeed.]]>
  60120. </doc>
  60121. </method>
  60122. <method name="skip"
  60123. abstract="false" native="false" synchronized="false"
  60124. static="false" final="false" visibility="public"
  60125. deprecated="not deprecated">
  60126. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60127. <exception name="IOException" type="java.io.IOException"/>
  60128. <doc>
  60129. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  60130. </doc>
  60131. </method>
  60132. <method name="accept"
  60133. abstract="false" native="false" synchronized="false"
  60134. static="false" final="false" visibility="public"
  60135. deprecated="not deprecated">
  60136. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60137. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60138. <exception name="IOException" type="java.io.IOException"/>
  60139. <doc>
  60140. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  60141. them with the JoinCollector provided.]]>
  60142. </doc>
  60143. </method>
  60144. <doc>
  60145. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  60146. </doc>
  60147. </interface>
  60148. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  60149. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  60150. <class name="CompositeInputFormat" extends="java.lang.Object"
  60151. abstract="false"
  60152. static="false" final="false" visibility="public"
  60153. deprecated="not deprecated">
  60154. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  60155. <constructor name="CompositeInputFormat"
  60156. static="false" final="false" visibility="public"
  60157. deprecated="not deprecated">
  60158. </constructor>
  60159. <method name="setFormat"
  60160. abstract="false" native="false" synchronized="false"
  60161. static="false" final="false" visibility="public"
  60162. deprecated="not deprecated">
  60163. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60164. <exception name="IOException" type="java.io.IOException"/>
  60165. <doc>
  60166. <![CDATA[Interpret a given string as a composite expression.
  60167. {@code
  60168. func ::= <ident>([<func>,]*<func>)
  60169. func ::= tbl(<class>,"<path>")
  60170. class ::= @see java.lang.Class#forName(java.lang.String)
  60171. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  60172. }
  60173. Reads expression from the <tt>mapred.join.expr</tt> property and
  60174. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  60175. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  60176. InputFormat class listed.
  60177. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  60178. </doc>
  60179. </method>
  60180. <method name="addDefaults"
  60181. abstract="false" native="false" synchronized="false"
  60182. static="false" final="false" visibility="protected"
  60183. deprecated="not deprecated">
  60184. <doc>
  60185. <![CDATA[Adds the default set of identifiers to the parser.]]>
  60186. </doc>
  60187. </method>
  60188. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60189. abstract="false" native="false" synchronized="false"
  60190. static="false" final="false" visibility="public"
  60191. deprecated="not deprecated">
  60192. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60193. <param name="numSplits" type="int"/>
  60194. <exception name="IOException" type="java.io.IOException"/>
  60195. <doc>
  60196. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  60197. ith split from each child to the ith composite split.]]>
  60198. </doc>
  60199. </method>
  60200. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  60201. abstract="false" native="false" synchronized="false"
  60202. static="false" final="false" visibility="public"
  60203. deprecated="not deprecated">
  60204. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60205. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60206. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60207. <exception name="IOException" type="java.io.IOException"/>
  60208. <doc>
  60209. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  60210. as defined in the init expression.
  60211. The outermost join need only be composable, not necessarily a composite.
  60212. Mandating TupleWritable isn't strictly correct.]]>
  60213. </doc>
  60214. </method>
  60215. <method name="compose" return="java.lang.String"
  60216. abstract="false" native="false" synchronized="false"
  60217. static="true" final="false" visibility="public"
  60218. deprecated="not deprecated">
  60219. <param name="inf" type="java.lang.Class"/>
  60220. <param name="path" type="java.lang.String"/>
  60221. <doc>
  60222. <![CDATA[Convenience method for constructing composite formats.
  60223. Given InputFormat class (inf), path (p) return:
  60224. {@code tbl(<inf>, <p>) }]]>
  60225. </doc>
  60226. </method>
  60227. <method name="compose" return="java.lang.String"
  60228. abstract="false" native="false" synchronized="false"
  60229. static="true" final="false" visibility="public"
  60230. deprecated="not deprecated">
  60231. <param name="op" type="java.lang.String"/>
  60232. <param name="inf" type="java.lang.Class"/>
  60233. <param name="path" type="java.lang.String[]"/>
  60234. <doc>
  60235. <![CDATA[Convenience method for constructing composite formats.
  60236. Given operation (op), Object class (inf), set of paths (p) return:
  60237. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  60238. </doc>
  60239. </method>
  60240. <method name="compose" return="java.lang.String"
  60241. abstract="false" native="false" synchronized="false"
  60242. static="true" final="false" visibility="public"
  60243. deprecated="not deprecated">
  60244. <param name="op" type="java.lang.String"/>
  60245. <param name="inf" type="java.lang.Class"/>
  60246. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  60247. <doc>
  60248. <![CDATA[Convenience method for constructing composite formats.
  60249. Given operation (op), Object class (inf), set of paths (p) return:
  60250. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  60251. </doc>
  60252. </method>
  60253. <doc>
  60254. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  60255. and partitioned the same way.
  60256. @see #setFormat
  60257. A user may define new join types by setting the property
  60258. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  60259. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  60260. ComposableRecordReader.
  60261. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  60262. in the join.
  60263. @see JoinRecordReader
  60264. @see MultiFilterRecordReader]]>
  60265. </doc>
  60266. </class>
  60267. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  60268. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  60269. <class name="CompositeInputSplit" extends="java.lang.Object"
  60270. abstract="false"
  60271. static="false" final="false" visibility="public"
  60272. deprecated="not deprecated">
  60273. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60274. <constructor name="CompositeInputSplit"
  60275. static="false" final="false" visibility="public"
  60276. deprecated="not deprecated">
  60277. </constructor>
  60278. <constructor name="CompositeInputSplit" type="int"
  60279. static="false" final="false" visibility="public"
  60280. deprecated="not deprecated">
  60281. </constructor>
  60282. <method name="add"
  60283. abstract="false" native="false" synchronized="false"
  60284. static="false" final="false" visibility="public"
  60285. deprecated="not deprecated">
  60286. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  60287. <exception name="IOException" type="java.io.IOException"/>
  60288. <doc>
  60289. <![CDATA[Add an InputSplit to this collection.
  60290. @throws IOException If capacity was not specified during construction
  60291. or if capacity has been reached.]]>
  60292. </doc>
  60293. </method>
  60294. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  60295. abstract="false" native="false" synchronized="false"
  60296. static="false" final="false" visibility="public"
  60297. deprecated="not deprecated">
  60298. <param name="i" type="int"/>
  60299. <doc>
  60300. <![CDATA[Get ith child InputSplit.]]>
  60301. </doc>
  60302. </method>
  60303. <method name="getLength" return="long"
  60304. abstract="false" native="false" synchronized="false"
  60305. static="false" final="false" visibility="public"
  60306. deprecated="not deprecated">
  60307. <exception name="IOException" type="java.io.IOException"/>
  60308. <doc>
  60309. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  60310. </doc>
  60311. </method>
  60312. <method name="getLength" return="long"
  60313. abstract="false" native="false" synchronized="false"
  60314. static="false" final="false" visibility="public"
  60315. deprecated="not deprecated">
  60316. <param name="i" type="int"/>
  60317. <exception name="IOException" type="java.io.IOException"/>
  60318. <doc>
  60319. <![CDATA[Get the length of ith child InputSplit.]]>
  60320. </doc>
  60321. </method>
  60322. <method name="getLocations" return="java.lang.String[]"
  60323. abstract="false" native="false" synchronized="false"
  60324. static="false" final="false" visibility="public"
  60325. deprecated="not deprecated">
  60326. <exception name="IOException" type="java.io.IOException"/>
  60327. <doc>
  60328. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  60329. </doc>
  60330. </method>
  60331. <method name="getLocation" return="java.lang.String[]"
  60332. abstract="false" native="false" synchronized="false"
  60333. static="false" final="false" visibility="public"
  60334. deprecated="not deprecated">
  60335. <param name="i" type="int"/>
  60336. <exception name="IOException" type="java.io.IOException"/>
  60337. <doc>
  60338. <![CDATA[getLocations from ith InputSplit.]]>
  60339. </doc>
  60340. </method>
  60341. <method name="write"
  60342. abstract="false" native="false" synchronized="false"
  60343. static="false" final="false" visibility="public"
  60344. deprecated="not deprecated">
  60345. <param name="out" type="java.io.DataOutput"/>
  60346. <exception name="IOException" type="java.io.IOException"/>
  60347. <doc>
  60348. <![CDATA[Write splits in the following format.
  60349. {@code
  60350. <count><class1><class2>...<classn><split1><split2>...<splitn>
  60351. }]]>
  60352. </doc>
  60353. </method>
  60354. <method name="readFields"
  60355. abstract="false" native="false" synchronized="false"
  60356. static="false" final="false" visibility="public"
  60357. deprecated="not deprecated">
  60358. <param name="in" type="java.io.DataInput"/>
  60359. <exception name="IOException" type="java.io.IOException"/>
  60360. <doc>
  60361. <![CDATA[{@inheritDoc}
  60362. @throws IOException If the child InputSplit cannot be read, typically
  60363. for faliing access checks.]]>
  60364. </doc>
  60365. </method>
  60366. <doc>
  60367. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  60368. into this collection must have a public default constructor.]]>
  60369. </doc>
  60370. </class>
  60371. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  60372. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  60373. <class name="CompositeRecordReader" extends="java.lang.Object"
  60374. abstract="true"
  60375. static="false" final="false" visibility="public"
  60376. deprecated="not deprecated">
  60377. <implements name="org.apache.hadoop.conf.Configurable"/>
  60378. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  60379. static="false" final="false" visibility="public"
  60380. deprecated="not deprecated">
  60381. <exception name="IOException" type="java.io.IOException"/>
  60382. <doc>
  60383. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  60384. <tt>id</tt> in the parent reader.
  60385. The id of a root CompositeRecordReader is -1 by convention, but relying
  60386. on this is not recommended.]]>
  60387. </doc>
  60388. </constructor>
  60389. <method name="combine" return="boolean"
  60390. abstract="true" native="false" synchronized="false"
  60391. static="false" final="false" visibility="protected"
  60392. deprecated="not deprecated">
  60393. <param name="srcs" type="java.lang.Object[]"/>
  60394. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60395. </method>
  60396. <method name="id" return="int"
  60397. abstract="false" native="false" synchronized="false"
  60398. static="false" final="false" visibility="public"
  60399. deprecated="not deprecated">
  60400. <doc>
  60401. <![CDATA[Return the position in the collector this class occupies.]]>
  60402. </doc>
  60403. </method>
  60404. <method name="setConf"
  60405. abstract="false" native="false" synchronized="false"
  60406. static="false" final="false" visibility="public"
  60407. deprecated="not deprecated">
  60408. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60409. <doc>
  60410. <![CDATA[{@inheritDoc}]]>
  60411. </doc>
  60412. </method>
  60413. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  60414. abstract="false" native="false" synchronized="false"
  60415. static="false" final="false" visibility="public"
  60416. deprecated="not deprecated">
  60417. <doc>
  60418. <![CDATA[{@inheritDoc}]]>
  60419. </doc>
  60420. </method>
  60421. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  60422. abstract="false" native="false" synchronized="false"
  60423. static="false" final="false" visibility="protected"
  60424. deprecated="not deprecated">
  60425. <doc>
  60426. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  60427. </doc>
  60428. </method>
  60429. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  60430. abstract="false" native="false" synchronized="false"
  60431. static="false" final="false" visibility="protected"
  60432. deprecated="not deprecated">
  60433. <doc>
  60434. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  60435. composite.]]>
  60436. </doc>
  60437. </method>
  60438. <method name="add"
  60439. abstract="false" native="false" synchronized="false"
  60440. static="false" final="false" visibility="public"
  60441. deprecated="not deprecated">
  60442. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60443. <exception name="IOException" type="java.io.IOException"/>
  60444. <doc>
  60445. <![CDATA[Add a RecordReader to this collection.
  60446. The id() of a RecordReader determines where in the Tuple its
  60447. entry will appear. Adding RecordReaders with the same id has
  60448. undefined behavior.]]>
  60449. </doc>
  60450. </method>
  60451. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60452. abstract="false" native="false" synchronized="false"
  60453. static="false" final="false" visibility="public"
  60454. deprecated="not deprecated">
  60455. <doc>
  60456. <![CDATA[Return the key for the current join or the value at the top of the
  60457. RecordReader heap.]]>
  60458. </doc>
  60459. </method>
  60460. <method name="key"
  60461. abstract="false" native="false" synchronized="false"
  60462. static="false" final="false" visibility="public"
  60463. deprecated="not deprecated">
  60464. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60465. <exception name="IOException" type="java.io.IOException"/>
  60466. <doc>
  60467. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  60468. </doc>
  60469. </method>
  60470. <method name="hasNext" return="boolean"
  60471. abstract="false" native="false" synchronized="false"
  60472. static="false" final="false" visibility="public"
  60473. deprecated="not deprecated">
  60474. <doc>
  60475. <![CDATA[Return true if it is possible that this could emit more values.]]>
  60476. </doc>
  60477. </method>
  60478. <method name="skip"
  60479. abstract="false" native="false" synchronized="false"
  60480. static="false" final="false" visibility="public"
  60481. deprecated="not deprecated">
  60482. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60483. <exception name="IOException" type="java.io.IOException"/>
  60484. <doc>
  60485. <![CDATA[Pass skip key to child RRs.]]>
  60486. </doc>
  60487. </method>
  60488. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60489. abstract="true" native="false" synchronized="false"
  60490. static="false" final="false" visibility="protected"
  60491. deprecated="not deprecated">
  60492. <doc>
  60493. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  60494. ultimately emitted from this join.]]>
  60495. </doc>
  60496. </method>
  60497. <method name="accept"
  60498. abstract="false" native="false" synchronized="false"
  60499. static="false" final="false" visibility="public"
  60500. deprecated="not deprecated">
  60501. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60502. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60503. <exception name="IOException" type="java.io.IOException"/>
  60504. <doc>
  60505. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  60506. iterator over values it may emit.]]>
  60507. </doc>
  60508. </method>
  60509. <method name="fillJoinCollector"
  60510. abstract="false" native="false" synchronized="false"
  60511. static="false" final="false" visibility="protected"
  60512. deprecated="not deprecated">
  60513. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  60514. <exception name="IOException" type="java.io.IOException"/>
  60515. <doc>
  60516. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  60517. at that position in the JoinCollector.]]>
  60518. </doc>
  60519. </method>
  60520. <method name="compareTo" return="int"
  60521. abstract="false" native="false" synchronized="false"
  60522. static="false" final="false" visibility="public"
  60523. deprecated="not deprecated">
  60524. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60525. <doc>
  60526. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  60527. with that of another).]]>
  60528. </doc>
  60529. </method>
  60530. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  60531. abstract="false" native="false" synchronized="false"
  60532. static="false" final="false" visibility="public"
  60533. deprecated="not deprecated">
  60534. <doc>
  60535. <![CDATA[Create a new key value common to all child RRs.
  60536. @throws ClassCastException if key classes differ.]]>
  60537. </doc>
  60538. </method>
  60539. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  60540. abstract="false" native="false" synchronized="false"
  60541. static="false" final="false" visibility="protected"
  60542. deprecated="not deprecated">
  60543. <doc>
  60544. <![CDATA[Create a value to be used internally for joins.]]>
  60545. </doc>
  60546. </method>
  60547. <method name="getPos" return="long"
  60548. abstract="false" native="false" synchronized="false"
  60549. static="false" final="false" visibility="public"
  60550. deprecated="not deprecated">
  60551. <exception name="IOException" type="java.io.IOException"/>
  60552. <doc>
  60553. <![CDATA[Unsupported (returns zero in all cases).]]>
  60554. </doc>
  60555. </method>
  60556. <method name="close"
  60557. abstract="false" native="false" synchronized="false"
  60558. static="false" final="false" visibility="public"
  60559. deprecated="not deprecated">
  60560. <exception name="IOException" type="java.io.IOException"/>
  60561. <doc>
  60562. <![CDATA[Close all child RRs.]]>
  60563. </doc>
  60564. </method>
  60565. <method name="getProgress" return="float"
  60566. abstract="false" native="false" synchronized="false"
  60567. static="false" final="false" visibility="public"
  60568. deprecated="not deprecated">
  60569. <exception name="IOException" type="java.io.IOException"/>
  60570. <doc>
  60571. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  60572. </doc>
  60573. </method>
  60574. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  60575. transient="false" volatile="false"
  60576. static="false" final="true" visibility="protected"
  60577. deprecated="not deprecated">
  60578. </field>
  60579. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  60580. transient="false" volatile="false"
  60581. static="false" final="true" visibility="protected"
  60582. deprecated="not deprecated">
  60583. </field>
  60584. <doc>
  60585. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  60586. type and partitioning.]]>
  60587. </doc>
  60588. </class>
  60589. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  60590. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  60591. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  60592. abstract="false"
  60593. static="false" final="false" visibility="public"
  60594. deprecated="not deprecated">
  60595. <method name="combine" return="boolean"
  60596. abstract="false" native="false" synchronized="false"
  60597. static="false" final="false" visibility="protected"
  60598. deprecated="not deprecated">
  60599. <param name="srcs" type="java.lang.Object[]"/>
  60600. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60601. <doc>
  60602. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  60603. </doc>
  60604. </method>
  60605. <doc>
  60606. <![CDATA[Full inner join.]]>
  60607. </doc>
  60608. </class>
  60609. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  60610. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  60611. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  60612. abstract="true"
  60613. static="false" final="false" visibility="public"
  60614. deprecated="not deprecated">
  60615. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60616. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  60617. static="false" final="false" visibility="public"
  60618. deprecated="not deprecated">
  60619. <exception name="IOException" type="java.io.IOException"/>
  60620. </constructor>
  60621. <method name="next" return="boolean"
  60622. abstract="false" native="false" synchronized="false"
  60623. static="false" final="false" visibility="public"
  60624. deprecated="not deprecated">
  60625. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60626. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60627. <exception name="IOException" type="java.io.IOException"/>
  60628. <doc>
  60629. <![CDATA[Emit the next set of key, value pairs as defined by the child
  60630. RecordReaders and operation associated with this composite RR.]]>
  60631. </doc>
  60632. </method>
  60633. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  60634. abstract="false" native="false" synchronized="false"
  60635. static="false" final="false" visibility="public"
  60636. deprecated="not deprecated">
  60637. <doc>
  60638. <![CDATA[{@inheritDoc}]]>
  60639. </doc>
  60640. </method>
  60641. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60642. abstract="false" native="false" synchronized="false"
  60643. static="false" final="false" visibility="protected"
  60644. deprecated="not deprecated">
  60645. <doc>
  60646. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  60647. </doc>
  60648. </method>
  60649. <doc>
  60650. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  60651. </doc>
  60652. </class>
  60653. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  60654. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  60655. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  60656. abstract="false"
  60657. static="false" final="false" visibility="protected"
  60658. deprecated="not deprecated">
  60659. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60660. <constructor name="JoinRecordReader.JoinDelegationIterator"
  60661. static="false" final="false" visibility="protected"
  60662. deprecated="not deprecated">
  60663. </constructor>
  60664. <method name="hasNext" return="boolean"
  60665. abstract="false" native="false" synchronized="false"
  60666. static="false" final="false" visibility="public"
  60667. deprecated="not deprecated">
  60668. </method>
  60669. <method name="next" return="boolean"
  60670. abstract="false" native="false" synchronized="false"
  60671. static="false" final="false" visibility="public"
  60672. deprecated="not deprecated">
  60673. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60674. <exception name="IOException" type="java.io.IOException"/>
  60675. </method>
  60676. <method name="replay" return="boolean"
  60677. abstract="false" native="false" synchronized="false"
  60678. static="false" final="false" visibility="public"
  60679. deprecated="not deprecated">
  60680. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60681. <exception name="IOException" type="java.io.IOException"/>
  60682. </method>
  60683. <method name="reset"
  60684. abstract="false" native="false" synchronized="false"
  60685. static="false" final="false" visibility="public"
  60686. deprecated="not deprecated">
  60687. </method>
  60688. <method name="add"
  60689. abstract="false" native="false" synchronized="false"
  60690. static="false" final="false" visibility="public"
  60691. deprecated="not deprecated">
  60692. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60693. <exception name="IOException" type="java.io.IOException"/>
  60694. </method>
  60695. <method name="close"
  60696. abstract="false" native="false" synchronized="false"
  60697. static="false" final="false" visibility="public"
  60698. deprecated="not deprecated">
  60699. <exception name="IOException" type="java.io.IOException"/>
  60700. </method>
  60701. <method name="clear"
  60702. abstract="false" native="false" synchronized="false"
  60703. static="false" final="false" visibility="public"
  60704. deprecated="not deprecated">
  60705. </method>
  60706. <doc>
  60707. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  60708. provide an iterator proxy wrapping its operation.]]>
  60709. </doc>
  60710. </class>
  60711. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  60712. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  60713. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  60714. abstract="true"
  60715. static="false" final="false" visibility="public"
  60716. deprecated="not deprecated">
  60717. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60718. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  60719. static="false" final="false" visibility="public"
  60720. deprecated="not deprecated">
  60721. <exception name="IOException" type="java.io.IOException"/>
  60722. </constructor>
  60723. <method name="emit" return="org.apache.hadoop.io.Writable"
  60724. abstract="true" native="false" synchronized="false"
  60725. static="false" final="false" visibility="protected"
  60726. deprecated="not deprecated">
  60727. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60728. <exception name="IOException" type="java.io.IOException"/>
  60729. <doc>
  60730. <![CDATA[For each tuple emitted, return a value (typically one of the values
  60731. in the tuple).
  60732. Modifying the Writables in the tuple is permitted and unlikely to affect
  60733. join behavior in most cases, but it is not recommended. It's safer to
  60734. clone first.]]>
  60735. </doc>
  60736. </method>
  60737. <method name="combine" return="boolean"
  60738. abstract="false" native="false" synchronized="false"
  60739. static="false" final="false" visibility="protected"
  60740. deprecated="not deprecated">
  60741. <param name="srcs" type="java.lang.Object[]"/>
  60742. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60743. <doc>
  60744. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  60745. collector (the outer join of child RRs).]]>
  60746. </doc>
  60747. </method>
  60748. <method name="next" return="boolean"
  60749. abstract="false" native="false" synchronized="false"
  60750. static="false" final="false" visibility="public"
  60751. deprecated="not deprecated">
  60752. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60753. <param name="value" type="org.apache.hadoop.io.Writable"/>
  60754. <exception name="IOException" type="java.io.IOException"/>
  60755. <doc>
  60756. <![CDATA[{@inheritDoc}]]>
  60757. </doc>
  60758. </method>
  60759. <method name="createValue" return="org.apache.hadoop.io.Writable"
  60760. abstract="false" native="false" synchronized="false"
  60761. static="false" final="false" visibility="public"
  60762. deprecated="not deprecated">
  60763. <doc>
  60764. <![CDATA[{@inheritDoc}]]>
  60765. </doc>
  60766. </method>
  60767. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60768. abstract="false" native="false" synchronized="false"
  60769. static="false" final="false" visibility="protected"
  60770. deprecated="not deprecated">
  60771. <doc>
  60772. <![CDATA[Return an iterator returning a single value from the tuple.
  60773. @see MultiFilterDelegationIterator]]>
  60774. </doc>
  60775. </method>
  60776. <doc>
  60777. <![CDATA[Base class for Composite join returning values derived from multiple
  60778. sources, but generally not tuples.]]>
  60779. </doc>
  60780. </class>
  60781. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  60782. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  60783. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  60784. abstract="false"
  60785. static="false" final="false" visibility="protected"
  60786. deprecated="not deprecated">
  60787. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60788. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  60789. static="false" final="false" visibility="protected"
  60790. deprecated="not deprecated">
  60791. </constructor>
  60792. <method name="hasNext" return="boolean"
  60793. abstract="false" native="false" synchronized="false"
  60794. static="false" final="false" visibility="public"
  60795. deprecated="not deprecated">
  60796. </method>
  60797. <method name="next" return="boolean"
  60798. abstract="false" native="false" synchronized="false"
  60799. static="false" final="false" visibility="public"
  60800. deprecated="not deprecated">
  60801. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60802. <exception name="IOException" type="java.io.IOException"/>
  60803. </method>
  60804. <method name="replay" return="boolean"
  60805. abstract="false" native="false" synchronized="false"
  60806. static="false" final="false" visibility="public"
  60807. deprecated="not deprecated">
  60808. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60809. <exception name="IOException" type="java.io.IOException"/>
  60810. </method>
  60811. <method name="reset"
  60812. abstract="false" native="false" synchronized="false"
  60813. static="false" final="false" visibility="public"
  60814. deprecated="not deprecated">
  60815. </method>
  60816. <method name="add"
  60817. abstract="false" native="false" synchronized="false"
  60818. static="false" final="false" visibility="public"
  60819. deprecated="not deprecated">
  60820. <param name="item" type="org.apache.hadoop.io.Writable"/>
  60821. <exception name="IOException" type="java.io.IOException"/>
  60822. </method>
  60823. <method name="close"
  60824. abstract="false" native="false" synchronized="false"
  60825. static="false" final="false" visibility="public"
  60826. deprecated="not deprecated">
  60827. <exception name="IOException" type="java.io.IOException"/>
  60828. </method>
  60829. <method name="clear"
  60830. abstract="false" native="false" synchronized="false"
  60831. static="false" final="false" visibility="public"
  60832. deprecated="not deprecated">
  60833. </method>
  60834. <doc>
  60835. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  60836. </doc>
  60837. </class>
  60838. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  60839. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  60840. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  60841. abstract="false"
  60842. static="false" final="false" visibility="public"
  60843. deprecated="not deprecated">
  60844. <method name="combine" return="boolean"
  60845. abstract="false" native="false" synchronized="false"
  60846. static="false" final="false" visibility="protected"
  60847. deprecated="not deprecated">
  60848. <param name="srcs" type="java.lang.Object[]"/>
  60849. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60850. <doc>
  60851. <![CDATA[Emit everything from the collector.]]>
  60852. </doc>
  60853. </method>
  60854. <doc>
  60855. <![CDATA[Full outer join.]]>
  60856. </doc>
  60857. </class>
  60858. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  60859. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  60860. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  60861. abstract="false"
  60862. static="false" final="false" visibility="public"
  60863. deprecated="not deprecated">
  60864. <method name="emit" return="org.apache.hadoop.io.Writable"
  60865. abstract="false" native="false" synchronized="false"
  60866. static="false" final="false" visibility="protected"
  60867. deprecated="not deprecated">
  60868. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60869. <doc>
  60870. <![CDATA[Emit the value with the highest position in the tuple.]]>
  60871. </doc>
  60872. </method>
  60873. <method name="fillJoinCollector"
  60874. abstract="false" native="false" synchronized="false"
  60875. static="false" final="false" visibility="protected"
  60876. deprecated="not deprecated">
  60877. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  60878. <exception name="IOException" type="java.io.IOException"/>
  60879. <doc>
  60880. <![CDATA[Instead of filling the JoinCollector with iterators from all
  60881. data sources, fill only the rightmost for this key.
  60882. This not only saves space by discarding the other sources, but
  60883. it also emits the number of key-value pairs in the preferred
  60884. RecordReader instead of repeating that stream n times, where
  60885. n is the cardinality of the cross product of the discarded
  60886. streams for the given key.]]>
  60887. </doc>
  60888. </method>
  60889. <doc>
  60890. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  60891. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  60892. from S3 over S2, and values from S2 over S1 for all keys
  60893. emitted from all sources.]]>
  60894. </doc>
  60895. </class>
  60896. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  60897. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  60898. <class name="Parser" extends="java.lang.Object"
  60899. abstract="false"
  60900. static="false" final="false" visibility="public"
  60901. deprecated="not deprecated">
  60902. <constructor name="Parser"
  60903. static="false" final="false" visibility="public"
  60904. deprecated="not deprecated">
  60905. </constructor>
  60906. <doc>
  60907. <![CDATA[Very simple shift-reduce parser for join expressions.
  60908. This should be sufficient for the user extension permitted now, but ought to
  60909. be replaced with a parser generator if more complex grammars are supported.
  60910. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  60911. of formals requires a different internal node type, which is responsible for
  60912. interpreting the list of tokens it receives. This is sufficient for the
  60913. current grammar, but it has several annoying properties that might inhibit
  60914. extension. In particular, parenthesis are always function calls; an
  60915. algebraic or filter grammar would not only require a node type, but must
  60916. also work around the internals of this parser.
  60917. For most other cases, adding classes to the hierarchy- particularly by
  60918. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  60919. straightforward. One need only override the relevant method(s) (usually only
  60920. {@link CompositeRecordReader#combine}) and include a property to map its
  60921. value to an identifier in the parser.]]>
  60922. </doc>
  60923. </class>
  60924. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  60925. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  60926. <class name="Parser.Node" extends="java.lang.Object"
  60927. abstract="true"
  60928. static="true" final="false" visibility="public"
  60929. deprecated="not deprecated">
  60930. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  60931. <constructor name="Parser.Node" type="java.lang.String"
  60932. static="false" final="false" visibility="protected"
  60933. deprecated="not deprecated">
  60934. </constructor>
  60935. <method name="addIdentifier"
  60936. abstract="false" native="false" synchronized="false"
  60937. static="true" final="false" visibility="protected"
  60938. deprecated="not deprecated">
  60939. <param name="ident" type="java.lang.String"/>
  60940. <param name="mcstrSig" type="java.lang.Class[]"/>
  60941. <param name="nodetype" type="java.lang.Class"/>
  60942. <param name="cl" type="java.lang.Class"/>
  60943. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  60944. <doc>
  60945. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  60946. tree and to the ComposableRecordReader to be created, including the
  60947. formals required to invoke the constructor.
  60948. The nodetype and constructor signature should be filled in from the
  60949. child node.]]>
  60950. </doc>
  60951. </method>
  60952. <method name="setID"
  60953. abstract="false" native="false" synchronized="false"
  60954. static="false" final="false" visibility="protected"
  60955. deprecated="not deprecated">
  60956. <param name="id" type="int"/>
  60957. </method>
  60958. <method name="setKeyComparator"
  60959. abstract="false" native="false" synchronized="false"
  60960. static="false" final="false" visibility="protected"
  60961. deprecated="not deprecated">
  60962. <param name="cmpcl" type="java.lang.Class"/>
  60963. </method>
  60964. <field name="rrCstrMap" type="java.util.Map"
  60965. transient="false" volatile="false"
  60966. static="true" final="true" visibility="protected"
  60967. deprecated="not deprecated">
  60968. </field>
  60969. <field name="id" type="int"
  60970. transient="false" volatile="false"
  60971. static="false" final="false" visibility="protected"
  60972. deprecated="not deprecated">
  60973. </field>
  60974. <field name="ident" type="java.lang.String"
  60975. transient="false" volatile="false"
  60976. static="false" final="false" visibility="protected"
  60977. deprecated="not deprecated">
  60978. </field>
  60979. <field name="cmpcl" type="java.lang.Class"
  60980. transient="false" volatile="false"
  60981. static="false" final="false" visibility="protected"
  60982. deprecated="not deprecated">
  60983. </field>
  60984. </class>
  60985. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  60986. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  60987. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  60988. abstract="false"
  60989. static="true" final="false" visibility="public"
  60990. deprecated="not deprecated">
  60991. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  60992. abstract="false" native="false" synchronized="false"
  60993. static="false" final="false" visibility="public"
  60994. deprecated="not deprecated">
  60995. </method>
  60996. </class>
  60997. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  60998. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  60999. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  61000. abstract="false"
  61001. static="true" final="false" visibility="public"
  61002. deprecated="not deprecated">
  61003. <constructor name="Parser.NumToken" type="double"
  61004. static="false" final="false" visibility="public"
  61005. deprecated="not deprecated">
  61006. </constructor>
  61007. <method name="getNum" return="double"
  61008. abstract="false" native="false" synchronized="false"
  61009. static="false" final="false" visibility="public"
  61010. deprecated="not deprecated">
  61011. </method>
  61012. </class>
  61013. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  61014. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  61015. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  61016. abstract="false"
  61017. static="true" final="false" visibility="public"
  61018. deprecated="not deprecated">
  61019. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  61020. static="false" final="false" visibility="public"
  61021. deprecated="not deprecated">
  61022. </constructor>
  61023. <method name="getStr" return="java.lang.String"
  61024. abstract="false" native="false" synchronized="false"
  61025. static="false" final="false" visibility="public"
  61026. deprecated="not deprecated">
  61027. </method>
  61028. </class>
  61029. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  61030. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  61031. <class name="Parser.Token" extends="java.lang.Object"
  61032. abstract="false"
  61033. static="true" final="false" visibility="public"
  61034. deprecated="not deprecated">
  61035. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  61036. abstract="false" native="false" synchronized="false"
  61037. static="false" final="false" visibility="public"
  61038. deprecated="not deprecated">
  61039. </method>
  61040. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  61041. abstract="false" native="false" synchronized="false"
  61042. static="false" final="false" visibility="public"
  61043. deprecated="not deprecated">
  61044. <exception name="IOException" type="java.io.IOException"/>
  61045. </method>
  61046. <method name="getNum" return="double"
  61047. abstract="false" native="false" synchronized="false"
  61048. static="false" final="false" visibility="public"
  61049. deprecated="not deprecated">
  61050. <exception name="IOException" type="java.io.IOException"/>
  61051. </method>
  61052. <method name="getStr" return="java.lang.String"
  61053. abstract="false" native="false" synchronized="false"
  61054. static="false" final="false" visibility="public"
  61055. deprecated="not deprecated">
  61056. <exception name="IOException" type="java.io.IOException"/>
  61057. </method>
  61058. <doc>
  61059. <![CDATA[Tagged-union type for tokens from the join expression.
  61060. @see Parser.TType]]>
  61061. </doc>
  61062. </class>
  61063. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  61064. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  61065. <class name="Parser.TType" extends="java.lang.Enum"
  61066. abstract="false"
  61067. static="true" final="true" visibility="public"
  61068. deprecated="not deprecated">
  61069. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  61070. abstract="false" native="false" synchronized="false"
  61071. static="true" final="false" visibility="public"
  61072. deprecated="not deprecated">
  61073. </method>
  61074. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  61075. abstract="false" native="false" synchronized="false"
  61076. static="true" final="false" visibility="public"
  61077. deprecated="not deprecated">
  61078. <param name="name" type="java.lang.String"/>
  61079. </method>
  61080. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  61081. transient="false" volatile="false"
  61082. static="true" final="true" visibility="public"
  61083. deprecated="not deprecated">
  61084. </field>
  61085. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  61086. transient="false" volatile="false"
  61087. static="true" final="true" visibility="public"
  61088. deprecated="not deprecated">
  61089. </field>
  61090. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  61091. transient="false" volatile="false"
  61092. static="true" final="true" visibility="public"
  61093. deprecated="not deprecated">
  61094. </field>
  61095. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  61096. transient="false" volatile="false"
  61097. static="true" final="true" visibility="public"
  61098. deprecated="not deprecated">
  61099. </field>
  61100. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  61101. transient="false" volatile="false"
  61102. static="true" final="true" visibility="public"
  61103. deprecated="not deprecated">
  61104. </field>
  61105. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  61106. transient="false" volatile="false"
  61107. static="true" final="true" visibility="public"
  61108. deprecated="not deprecated">
  61109. </field>
  61110. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  61111. transient="false" volatile="false"
  61112. static="true" final="true" visibility="public"
  61113. deprecated="not deprecated">
  61114. </field>
  61115. </class>
  61116. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  61117. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  61118. <interface name="ResetableIterator" abstract="true"
  61119. static="false" final="false" visibility="public"
  61120. deprecated="not deprecated">
  61121. <method name="hasNext" return="boolean"
  61122. abstract="false" native="false" synchronized="false"
  61123. static="false" final="false" visibility="public"
  61124. deprecated="not deprecated">
  61125. <doc>
  61126. <![CDATA[True if a call to next may return a value. This is permitted false
  61127. positives, but not false negatives.]]>
  61128. </doc>
  61129. </method>
  61130. <method name="next" return="boolean"
  61131. abstract="false" native="false" synchronized="false"
  61132. static="false" final="false" visibility="public"
  61133. deprecated="not deprecated">
  61134. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61135. <exception name="IOException" type="java.io.IOException"/>
  61136. <doc>
  61137. <![CDATA[Assign next value to actual.
  61138. It is required that elements added to a ResetableIterator be returned in
  61139. the same order after a call to {@link #reset} (FIFO).
  61140. Note that a call to this may fail for nested joins (i.e. more elements
  61141. available, but none satisfying the constraints of the join)]]>
  61142. </doc>
  61143. </method>
  61144. <method name="replay" return="boolean"
  61145. abstract="false" native="false" synchronized="false"
  61146. static="false" final="false" visibility="public"
  61147. deprecated="not deprecated">
  61148. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61149. <exception name="IOException" type="java.io.IOException"/>
  61150. <doc>
  61151. <![CDATA[Assign last value returned to actual.]]>
  61152. </doc>
  61153. </method>
  61154. <method name="reset"
  61155. abstract="false" native="false" synchronized="false"
  61156. static="false" final="false" visibility="public"
  61157. deprecated="not deprecated">
  61158. <doc>
  61159. <![CDATA[Set iterator to return to the start of its range. Must be called after
  61160. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  61161. </doc>
  61162. </method>
  61163. <method name="add"
  61164. abstract="false" native="false" synchronized="false"
  61165. static="false" final="false" visibility="public"
  61166. deprecated="not deprecated">
  61167. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61168. <exception name="IOException" type="java.io.IOException"/>
  61169. <doc>
  61170. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  61171. </doc>
  61172. </method>
  61173. <method name="close"
  61174. abstract="false" native="false" synchronized="false"
  61175. static="false" final="false" visibility="public"
  61176. deprecated="not deprecated">
  61177. <exception name="IOException" type="java.io.IOException"/>
  61178. <doc>
  61179. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  61180. after calling close has undefined behavior.]]>
  61181. </doc>
  61182. </method>
  61183. <method name="clear"
  61184. abstract="false" native="false" synchronized="false"
  61185. static="false" final="false" visibility="public"
  61186. deprecated="not deprecated">
  61187. <doc>
  61188. <![CDATA[Close datasources, but do not release internal resources. Calling this
  61189. method should permit the object to be reused with a different datasource.]]>
  61190. </doc>
  61191. </method>
  61192. <doc>
  61193. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  61194. added to it directly.
  61195. Note that this does not extend {@link java.util.Iterator}.]]>
  61196. </doc>
  61197. </interface>
  61198. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  61199. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  61200. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  61201. abstract="false"
  61202. static="true" final="false" visibility="public"
  61203. deprecated="not deprecated">
  61204. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61205. <constructor name="ResetableIterator.EMPTY"
  61206. static="false" final="false" visibility="public"
  61207. deprecated="not deprecated">
  61208. </constructor>
  61209. <method name="hasNext" return="boolean"
  61210. abstract="false" native="false" synchronized="false"
  61211. static="false" final="false" visibility="public"
  61212. deprecated="not deprecated">
  61213. </method>
  61214. <method name="reset"
  61215. abstract="false" native="false" synchronized="false"
  61216. static="false" final="false" visibility="public"
  61217. deprecated="not deprecated">
  61218. </method>
  61219. <method name="close"
  61220. abstract="false" native="false" synchronized="false"
  61221. static="false" final="false" visibility="public"
  61222. deprecated="not deprecated">
  61223. <exception name="IOException" type="java.io.IOException"/>
  61224. </method>
  61225. <method name="clear"
  61226. abstract="false" native="false" synchronized="false"
  61227. static="false" final="false" visibility="public"
  61228. deprecated="not deprecated">
  61229. </method>
  61230. <method name="next" return="boolean"
  61231. abstract="false" native="false" synchronized="false"
  61232. static="false" final="false" visibility="public"
  61233. deprecated="not deprecated">
  61234. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61235. <exception name="IOException" type="java.io.IOException"/>
  61236. </method>
  61237. <method name="replay" return="boolean"
  61238. abstract="false" native="false" synchronized="false"
  61239. static="false" final="false" visibility="public"
  61240. deprecated="not deprecated">
  61241. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61242. <exception name="IOException" type="java.io.IOException"/>
  61243. </method>
  61244. <method name="add"
  61245. abstract="false" native="false" synchronized="false"
  61246. static="false" final="false" visibility="public"
  61247. deprecated="not deprecated">
  61248. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61249. <exception name="IOException" type="java.io.IOException"/>
  61250. </method>
  61251. </class>
  61252. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  61253. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  61254. <class name="StreamBackedIterator" extends="java.lang.Object"
  61255. abstract="false"
  61256. static="false" final="false" visibility="public"
  61257. deprecated="not deprecated">
  61258. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61259. <constructor name="StreamBackedIterator"
  61260. static="false" final="false" visibility="public"
  61261. deprecated="not deprecated">
  61262. </constructor>
  61263. <method name="hasNext" return="boolean"
  61264. abstract="false" native="false" synchronized="false"
  61265. static="false" final="false" visibility="public"
  61266. deprecated="not deprecated">
  61267. </method>
  61268. <method name="next" return="boolean"
  61269. abstract="false" native="false" synchronized="false"
  61270. static="false" final="false" visibility="public"
  61271. deprecated="not deprecated">
  61272. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61273. <exception name="IOException" type="java.io.IOException"/>
  61274. </method>
  61275. <method name="replay" return="boolean"
  61276. abstract="false" native="false" synchronized="false"
  61277. static="false" final="false" visibility="public"
  61278. deprecated="not deprecated">
  61279. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61280. <exception name="IOException" type="java.io.IOException"/>
  61281. </method>
  61282. <method name="reset"
  61283. abstract="false" native="false" synchronized="false"
  61284. static="false" final="false" visibility="public"
  61285. deprecated="not deprecated">
  61286. </method>
  61287. <method name="add"
  61288. abstract="false" native="false" synchronized="false"
  61289. static="false" final="false" visibility="public"
  61290. deprecated="not deprecated">
  61291. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61292. <exception name="IOException" type="java.io.IOException"/>
  61293. </method>
  61294. <method name="close"
  61295. abstract="false" native="false" synchronized="false"
  61296. static="false" final="false" visibility="public"
  61297. deprecated="not deprecated">
  61298. <exception name="IOException" type="java.io.IOException"/>
  61299. </method>
  61300. <method name="clear"
  61301. abstract="false" native="false" synchronized="false"
  61302. static="false" final="false" visibility="public"
  61303. deprecated="not deprecated">
  61304. </method>
  61305. <doc>
  61306. <![CDATA[This class provides an implementation of ResetableIterator. This
  61307. implementation uses a byte array to store elements added to it.]]>
  61308. </doc>
  61309. </class>
  61310. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  61311. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  61312. <class name="TupleWritable" extends="java.lang.Object"
  61313. abstract="false"
  61314. static="false" final="false" visibility="public"
  61315. deprecated="not deprecated">
  61316. <implements name="org.apache.hadoop.io.Writable"/>
  61317. <implements name="java.lang.Iterable"/>
  61318. <constructor name="TupleWritable"
  61319. static="false" final="false" visibility="public"
  61320. deprecated="not deprecated">
  61321. <doc>
  61322. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  61323. </doc>
  61324. </constructor>
  61325. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  61326. static="false" final="false" visibility="public"
  61327. deprecated="not deprecated">
  61328. <doc>
  61329. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  61330. &quot;written&quot; values.]]>
  61331. </doc>
  61332. </constructor>
  61333. <method name="has" return="boolean"
  61334. abstract="false" native="false" synchronized="false"
  61335. static="false" final="false" visibility="public"
  61336. deprecated="not deprecated">
  61337. <param name="i" type="int"/>
  61338. <doc>
  61339. <![CDATA[Return true if tuple has an element at the position provided.]]>
  61340. </doc>
  61341. </method>
  61342. <method name="get" return="org.apache.hadoop.io.Writable"
  61343. abstract="false" native="false" synchronized="false"
  61344. static="false" final="false" visibility="public"
  61345. deprecated="not deprecated">
  61346. <param name="i" type="int"/>
  61347. <doc>
  61348. <![CDATA[Get ith Writable from Tuple.]]>
  61349. </doc>
  61350. </method>
  61351. <method name="size" return="int"
  61352. abstract="false" native="false" synchronized="false"
  61353. static="false" final="false" visibility="public"
  61354. deprecated="not deprecated">
  61355. <doc>
  61356. <![CDATA[The number of children in this Tuple.]]>
  61357. </doc>
  61358. </method>
  61359. <method name="equals" return="boolean"
  61360. abstract="false" native="false" synchronized="false"
  61361. static="false" final="false" visibility="public"
  61362. deprecated="not deprecated">
  61363. <param name="other" type="java.lang.Object"/>
  61364. <doc>
  61365. <![CDATA[{@inheritDoc}]]>
  61366. </doc>
  61367. </method>
  61368. <method name="hashCode" return="int"
  61369. abstract="false" native="false" synchronized="false"
  61370. static="false" final="false" visibility="public"
  61371. deprecated="not deprecated">
  61372. </method>
  61373. <method name="iterator" return="java.util.Iterator"
  61374. abstract="false" native="false" synchronized="false"
  61375. static="false" final="false" visibility="public"
  61376. deprecated="not deprecated">
  61377. <doc>
  61378. <![CDATA[Return an iterator over the elements in this tuple.
  61379. Note that this doesn't flatten the tuple; one may receive tuples
  61380. from this iterator.]]>
  61381. </doc>
  61382. </method>
  61383. <method name="toString" return="java.lang.String"
  61384. abstract="false" native="false" synchronized="false"
  61385. static="false" final="false" visibility="public"
  61386. deprecated="not deprecated">
  61387. <doc>
  61388. <![CDATA[Convert Tuple to String as in the following.
  61389. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  61390. </doc>
  61391. </method>
  61392. <method name="write"
  61393. abstract="false" native="false" synchronized="false"
  61394. static="false" final="false" visibility="public"
  61395. deprecated="not deprecated">
  61396. <param name="out" type="java.io.DataOutput"/>
  61397. <exception name="IOException" type="java.io.IOException"/>
  61398. <doc>
  61399. <![CDATA[Writes each Writable to <code>out</code>.
  61400. TupleWritable format:
  61401. {@code
  61402. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  61403. }]]>
  61404. </doc>
  61405. </method>
  61406. <method name="readFields"
  61407. abstract="false" native="false" synchronized="false"
  61408. static="false" final="false" visibility="public"
  61409. deprecated="not deprecated">
  61410. <param name="in" type="java.io.DataInput"/>
  61411. <exception name="IOException" type="java.io.IOException"/>
  61412. <doc>
  61413. <![CDATA[{@inheritDoc}]]>
  61414. </doc>
  61415. </method>
  61416. <doc>
  61417. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  61418. This is *not* a general-purpose tuple type. In almost all cases, users are
  61419. encouraged to implement their own serializable types, which can perform
  61420. better validation and provide more efficient encodings than this class is
  61421. capable. TupleWritable relies on the join framework for type safety and
  61422. assumes its instances will rarely be persisted, assumptions not only
  61423. incompatible with, but contrary to the general case.
  61424. @see org.apache.hadoop.io.Writable]]>
  61425. </doc>
  61426. </class>
  61427. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  61428. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  61429. <class name="WrappedRecordReader" extends="java.lang.Object"
  61430. abstract="false"
  61431. static="false" final="false" visibility="public"
  61432. deprecated="not deprecated">
  61433. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61434. <method name="id" return="int"
  61435. abstract="false" native="false" synchronized="false"
  61436. static="false" final="false" visibility="public"
  61437. deprecated="not deprecated">
  61438. <doc>
  61439. <![CDATA[{@inheritDoc}]]>
  61440. </doc>
  61441. </method>
  61442. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61443. abstract="false" native="false" synchronized="false"
  61444. static="false" final="false" visibility="public"
  61445. deprecated="not deprecated">
  61446. <doc>
  61447. <![CDATA[Return the key at the head of this RR.]]>
  61448. </doc>
  61449. </method>
  61450. <method name="key"
  61451. abstract="false" native="false" synchronized="false"
  61452. static="false" final="false" visibility="public"
  61453. deprecated="not deprecated">
  61454. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  61455. <exception name="IOException" type="java.io.IOException"/>
  61456. <doc>
  61457. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  61458. </doc>
  61459. </method>
  61460. <method name="hasNext" return="boolean"
  61461. abstract="false" native="false" synchronized="false"
  61462. static="false" final="false" visibility="public"
  61463. deprecated="not deprecated">
  61464. <doc>
  61465. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  61466. is exhausted.]]>
  61467. </doc>
  61468. </method>
  61469. <method name="skip"
  61470. abstract="false" native="false" synchronized="false"
  61471. static="false" final="false" visibility="public"
  61472. deprecated="not deprecated">
  61473. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61474. <exception name="IOException" type="java.io.IOException"/>
  61475. <doc>
  61476. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  61477. </doc>
  61478. </method>
  61479. <method name="next" return="boolean"
  61480. abstract="false" native="false" synchronized="false"
  61481. static="false" final="false" visibility="protected"
  61482. deprecated="not deprecated">
  61483. <exception name="IOException" type="java.io.IOException"/>
  61484. <doc>
  61485. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  61486. the RR and this are exhausted.]]>
  61487. </doc>
  61488. </method>
  61489. <method name="accept"
  61490. abstract="false" native="false" synchronized="false"
  61491. static="false" final="false" visibility="public"
  61492. deprecated="not deprecated">
  61493. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61494. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61495. <exception name="IOException" type="java.io.IOException"/>
  61496. <doc>
  61497. <![CDATA[Add an iterator to the collector at the position occupied by this
  61498. RecordReader over the values in this stream paired with the key
  61499. provided (ie register a stream of values from this source matching K
  61500. with a collector).]]>
  61501. </doc>
  61502. </method>
  61503. <method name="next" return="boolean"
  61504. abstract="false" native="false" synchronized="false"
  61505. static="false" final="false" visibility="public"
  61506. deprecated="not deprecated">
  61507. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61508. <param name="value" type="org.apache.hadoop.io.Writable"/>
  61509. <exception name="IOException" type="java.io.IOException"/>
  61510. <doc>
  61511. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  61512. get next key-value pair from proxied RR.]]>
  61513. </doc>
  61514. </method>
  61515. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  61516. abstract="false" native="false" synchronized="false"
  61517. static="false" final="false" visibility="public"
  61518. deprecated="not deprecated">
  61519. <doc>
  61520. <![CDATA[Request new key from proxied RR.]]>
  61521. </doc>
  61522. </method>
  61523. <method name="createValue" return="org.apache.hadoop.io.Writable"
  61524. abstract="false" native="false" synchronized="false"
  61525. static="false" final="false" visibility="public"
  61526. deprecated="not deprecated">
  61527. <doc>
  61528. <![CDATA[Request new value from proxied RR.]]>
  61529. </doc>
  61530. </method>
  61531. <method name="getProgress" return="float"
  61532. abstract="false" native="false" synchronized="false"
  61533. static="false" final="false" visibility="public"
  61534. deprecated="not deprecated">
  61535. <exception name="IOException" type="java.io.IOException"/>
  61536. <doc>
  61537. <![CDATA[Request progress from proxied RR.]]>
  61538. </doc>
  61539. </method>
  61540. <method name="getPos" return="long"
  61541. abstract="false" native="false" synchronized="false"
  61542. static="false" final="false" visibility="public"
  61543. deprecated="not deprecated">
  61544. <exception name="IOException" type="java.io.IOException"/>
  61545. <doc>
  61546. <![CDATA[Request position from proxied RR.]]>
  61547. </doc>
  61548. </method>
  61549. <method name="close"
  61550. abstract="false" native="false" synchronized="false"
  61551. static="false" final="false" visibility="public"
  61552. deprecated="not deprecated">
  61553. <exception name="IOException" type="java.io.IOException"/>
  61554. <doc>
  61555. <![CDATA[Forward close request to proxied RR.]]>
  61556. </doc>
  61557. </method>
  61558. <method name="compareTo" return="int"
  61559. abstract="false" native="false" synchronized="false"
  61560. static="false" final="false" visibility="public"
  61561. deprecated="not deprecated">
  61562. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61563. <doc>
  61564. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  61565. with that of another).]]>
  61566. </doc>
  61567. </method>
  61568. <method name="equals" return="boolean"
  61569. abstract="false" native="false" synchronized="false"
  61570. static="false" final="false" visibility="public"
  61571. deprecated="not deprecated">
  61572. <param name="other" type="java.lang.Object"/>
  61573. <doc>
  61574. <![CDATA[Return true iff compareTo(other) retn true.]]>
  61575. </doc>
  61576. </method>
  61577. <method name="hashCode" return="int"
  61578. abstract="false" native="false" synchronized="false"
  61579. static="false" final="false" visibility="public"
  61580. deprecated="not deprecated">
  61581. </method>
  61582. <doc>
  61583. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  61584. This class keeps track of the &quot;head&quot; key-value pair for the
  61585. provided RecordReader and keeps a store of values matching a key when
  61586. this source is participating in a join.]]>
  61587. </doc>
  61588. </class>
  61589. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  61590. </package>
  61591. <package name="org.apache.hadoop.mapred.lib">
  61592. <!-- start class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  61593. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner"
  61594. abstract="false"
  61595. static="false" final="false" visibility="public"
  61596. deprecated="not deprecated">
  61597. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61598. <constructor name="BinaryPartitioner"
  61599. static="false" final="false" visibility="public"
  61600. deprecated="not deprecated">
  61601. </constructor>
  61602. <method name="configure"
  61603. abstract="false" native="false" synchronized="false"
  61604. static="false" final="false" visibility="public"
  61605. deprecated="not deprecated">
  61606. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61607. </method>
  61608. <doc>
  61609. <![CDATA[Partition {@link BinaryComparable} keys using a configurable part of
  61610. the bytes array returned by {@link BinaryComparable#getBytes()}.
  61611. @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner]]>
  61612. </doc>
  61613. </class>
  61614. <!-- end class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  61615. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  61616. <class name="ChainMapper" extends="java.lang.Object"
  61617. abstract="false"
  61618. static="false" final="false" visibility="public"
  61619. deprecated="not deprecated">
  61620. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61621. <constructor name="ChainMapper"
  61622. static="false" final="false" visibility="public"
  61623. deprecated="not deprecated">
  61624. <doc>
  61625. <![CDATA[Constructor.]]>
  61626. </doc>
  61627. </constructor>
  61628. <method name="addMapper"
  61629. abstract="false" native="false" synchronized="false"
  61630. static="true" final="false" visibility="public"
  61631. deprecated="not deprecated">
  61632. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61633. <param name="klass" type="java.lang.Class"/>
  61634. <param name="inputKeyClass" type="java.lang.Class"/>
  61635. <param name="inputValueClass" type="java.lang.Class"/>
  61636. <param name="outputKeyClass" type="java.lang.Class"/>
  61637. <param name="outputValueClass" type="java.lang.Class"/>
  61638. <param name="byValue" type="boolean"/>
  61639. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  61640. <doc>
  61641. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  61642. <p/>
  61643. It has to be specified how key and values are passed from one element of
  61644. the chain to the next, by value or by reference. If a Mapper leverages the
  61645. assumed semantics that the key and values are not modified by the collector
  61646. 'by value' must be used. If the Mapper does not expect this semantics, as
  61647. an optimization to avoid serialization and deserialization 'by reference'
  61648. can be used.
  61649. <p/>
  61650. For the added Mapper the configuration given for it,
  61651. <code>mapperConf</code>, have precedence over the job's JobConf. This
  61652. precedence is in effect when the task is running.
  61653. <p/>
  61654. IMPORTANT: There is no need to specify the output key/value classes for the
  61655. ChainMapper, this is done by the addMapper for the last mapper in the chain
  61656. <p/>
  61657. @param job job's JobConf to add the Mapper class.
  61658. @param klass the Mapper class to add.
  61659. @param inputKeyClass mapper input key class.
  61660. @param inputValueClass mapper input value class.
  61661. @param outputKeyClass mapper output key class.
  61662. @param outputValueClass mapper output value class.
  61663. @param byValue indicates if key/values should be passed by value
  61664. to the next Mapper in the chain, if any.
  61665. @param mapperConf a JobConf with the configuration for the Mapper
  61666. class. It is recommended to use a JobConf without default values using the
  61667. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61668. </doc>
  61669. </method>
  61670. <method name="configure"
  61671. abstract="false" native="false" synchronized="false"
  61672. static="false" final="false" visibility="public"
  61673. deprecated="not deprecated">
  61674. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61675. <doc>
  61676. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  61677. <p/>
  61678. If this method is overriden <code>super.configure(...)</code> should be
  61679. invoked at the beginning of the overwriter method.]]>
  61680. </doc>
  61681. </method>
  61682. <method name="map"
  61683. abstract="false" native="false" synchronized="false"
  61684. static="false" final="false" visibility="public"
  61685. deprecated="not deprecated">
  61686. <param name="key" type="java.lang.Object"/>
  61687. <param name="value" type="java.lang.Object"/>
  61688. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61689. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61690. <exception name="IOException" type="java.io.IOException"/>
  61691. <doc>
  61692. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  61693. </doc>
  61694. </method>
  61695. <method name="close"
  61696. abstract="false" native="false" synchronized="false"
  61697. static="false" final="false" visibility="public"
  61698. deprecated="not deprecated">
  61699. <exception name="IOException" type="java.io.IOException"/>
  61700. <doc>
  61701. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  61702. <p/>
  61703. If this method is overriden <code>super.close()</code> should be
  61704. invoked at the end of the overwriter method.]]>
  61705. </doc>
  61706. </method>
  61707. <doc>
  61708. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  61709. Map task.
  61710. <p/>
  61711. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  61712. the first becomes the input of the second, and so on until the last Mapper,
  61713. the output of the last Mapper will be written to the task's output.
  61714. <p/>
  61715. The key functionality of this feature is that the Mappers in the chain do not
  61716. need to be aware that they are executed in a chain. This enables having
  61717. reusable specialized Mappers that can be combined to perform composite
  61718. operations within a single task.
  61719. <p/>
  61720. Special care has to be taken when creating chains that the key/values output
  61721. by a Mapper are valid for the following Mapper in the chain. It is assumed
  61722. all Mappers and the Reduce in the chain use maching output and input key and
  61723. value classes as no conversion is done by the chaining code.
  61724. <p/>
  61725. Using the ChainMapper and the ChainReducer classes is possible to compose
  61726. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  61727. immediate benefit of this pattern is a dramatic reduction in disk IO.
  61728. <p/>
  61729. IMPORTANT: There is no need to specify the output key/value classes for the
  61730. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  61731. <p/>
  61732. ChainMapper usage pattern:
  61733. <p/>
  61734. <pre>
  61735. ...
  61736. conf.setJobName("chain");
  61737. conf.setInputFormat(TextInputFormat.class);
  61738. conf.setOutputFormat(TextOutputFormat.class);
  61739. <p/>
  61740. JobConf mapAConf = new JobConf(false);
  61741. ...
  61742. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  61743. Text.class, Text.class, true, mapAConf);
  61744. <p/>
  61745. JobConf mapBConf = new JobConf(false);
  61746. ...
  61747. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  61748. LongWritable.class, Text.class, false, mapBConf);
  61749. <p/>
  61750. JobConf reduceConf = new JobConf(false);
  61751. ...
  61752. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  61753. Text.class, Text.class, true, reduceConf);
  61754. <p/>
  61755. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  61756. LongWritable.class, Text.class, false, null);
  61757. <p/>
  61758. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  61759. LongWritable.class, LongWritable.class, true, null);
  61760. <p/>
  61761. FileInputFormat.setInputPaths(conf, inDir);
  61762. FileOutputFormat.setOutputPath(conf, outDir);
  61763. ...
  61764. <p/>
  61765. JobClient jc = new JobClient(conf);
  61766. RunningJob job = jc.submitJob(conf);
  61767. ...
  61768. </pre>]]>
  61769. </doc>
  61770. </class>
  61771. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  61772. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  61773. <class name="ChainReducer" extends="java.lang.Object"
  61774. abstract="false"
  61775. static="false" final="false" visibility="public"
  61776. deprecated="not deprecated">
  61777. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61778. <constructor name="ChainReducer"
  61779. static="false" final="false" visibility="public"
  61780. deprecated="not deprecated">
  61781. <doc>
  61782. <![CDATA[Constructor.]]>
  61783. </doc>
  61784. </constructor>
  61785. <method name="setReducer"
  61786. abstract="false" native="false" synchronized="false"
  61787. static="true" final="false" visibility="public"
  61788. deprecated="not deprecated">
  61789. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61790. <param name="klass" type="java.lang.Class"/>
  61791. <param name="inputKeyClass" type="java.lang.Class"/>
  61792. <param name="inputValueClass" type="java.lang.Class"/>
  61793. <param name="outputKeyClass" type="java.lang.Class"/>
  61794. <param name="outputValueClass" type="java.lang.Class"/>
  61795. <param name="byValue" type="boolean"/>
  61796. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  61797. <doc>
  61798. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  61799. <p/>
  61800. It has to be specified how key and values are passed from one element of
  61801. the chain to the next, by value or by reference. If a Reducer leverages the
  61802. assumed semantics that the key and values are not modified by the collector
  61803. 'by value' must be used. If the Reducer does not expect this semantics, as
  61804. an optimization to avoid serialization and deserialization 'by reference'
  61805. can be used.
  61806. <p/>
  61807. For the added Reducer the configuration given for it,
  61808. <code>reducerConf</code>, have precedence over the job's JobConf. This
  61809. precedence is in effect when the task is running.
  61810. <p/>
  61811. IMPORTANT: There is no need to specify the output key/value classes for the
  61812. ChainReducer, this is done by the setReducer or the addMapper for the last
  61813. element in the chain.
  61814. @param job job's JobConf to add the Reducer class.
  61815. @param klass the Reducer class to add.
  61816. @param inputKeyClass reducer input key class.
  61817. @param inputValueClass reducer input value class.
  61818. @param outputKeyClass reducer output key class.
  61819. @param outputValueClass reducer output value class.
  61820. @param byValue indicates if key/values should be passed by value
  61821. to the next Mapper in the chain, if any.
  61822. @param reducerConf a JobConf with the configuration for the Reducer
  61823. class. It is recommended to use a JobConf without default values using the
  61824. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61825. </doc>
  61826. </method>
  61827. <method name="addMapper"
  61828. abstract="false" native="false" synchronized="false"
  61829. static="true" final="false" visibility="public"
  61830. deprecated="not deprecated">
  61831. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61832. <param name="klass" type="java.lang.Class"/>
  61833. <param name="inputKeyClass" type="java.lang.Class"/>
  61834. <param name="inputValueClass" type="java.lang.Class"/>
  61835. <param name="outputKeyClass" type="java.lang.Class"/>
  61836. <param name="outputValueClass" type="java.lang.Class"/>
  61837. <param name="byValue" type="boolean"/>
  61838. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  61839. <doc>
  61840. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  61841. <p/>
  61842. It has to be specified how key and values are passed from one element of
  61843. the chain to the next, by value or by reference. If a Mapper leverages the
  61844. assumed semantics that the key and values are not modified by the collector
  61845. 'by value' must be used. If the Mapper does not expect this semantics, as
  61846. an optimization to avoid serialization and deserialization 'by reference'
  61847. can be used.
  61848. <p/>
  61849. For the added Mapper the configuration given for it,
  61850. <code>mapperConf</code>, have precedence over the job's JobConf. This
  61851. precedence is in effect when the task is running.
  61852. <p/>
  61853. IMPORTANT: There is no need to specify the output key/value classes for the
  61854. ChainMapper, this is done by the addMapper for the last mapper in the chain
  61855. .
  61856. @param job chain job's JobConf to add the Mapper class.
  61857. @param klass the Mapper class to add.
  61858. @param inputKeyClass mapper input key class.
  61859. @param inputValueClass mapper input value class.
  61860. @param outputKeyClass mapper output key class.
  61861. @param outputValueClass mapper output value class.
  61862. @param byValue indicates if key/values should be passed by value
  61863. to the next Mapper in the chain, if any.
  61864. @param mapperConf a JobConf with the configuration for the Mapper
  61865. class. It is recommended to use a JobConf without default values using the
  61866. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61867. </doc>
  61868. </method>
  61869. <method name="configure"
  61870. abstract="false" native="false" synchronized="false"
  61871. static="false" final="false" visibility="public"
  61872. deprecated="not deprecated">
  61873. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61874. <doc>
  61875. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  61876. <p/>
  61877. If this method is overriden <code>super.configure(...)</code> should be
  61878. invoked at the beginning of the overwriter method.]]>
  61879. </doc>
  61880. </method>
  61881. <method name="reduce"
  61882. abstract="false" native="false" synchronized="false"
  61883. static="false" final="false" visibility="public"
  61884. deprecated="not deprecated">
  61885. <param name="key" type="java.lang.Object"/>
  61886. <param name="values" type="java.util.Iterator"/>
  61887. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61888. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61889. <exception name="IOException" type="java.io.IOException"/>
  61890. <doc>
  61891. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  61892. <code>map(...) </code> methods of the Mappers in the chain.]]>
  61893. </doc>
  61894. </method>
  61895. <method name="close"
  61896. abstract="false" native="false" synchronized="false"
  61897. static="false" final="false" visibility="public"
  61898. deprecated="not deprecated">
  61899. <exception name="IOException" type="java.io.IOException"/>
  61900. <doc>
  61901. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  61902. <p/>
  61903. If this method is overriden <code>super.close()</code> should be
  61904. invoked at the end of the overwriter method.]]>
  61905. </doc>
  61906. </method>
  61907. <doc>
  61908. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  61909. Reducer within the Reducer task.
  61910. <p/>
  61911. For each record output by the Reducer, the Mapper classes are invoked in a
  61912. chained (or piped) fashion, the output of the first becomes the input of the
  61913. second, and so on until the last Mapper, the output of the last Mapper will
  61914. be written to the task's output.
  61915. <p/>
  61916. The key functionality of this feature is that the Mappers in the chain do not
  61917. need to be aware that they are executed after the Reducer or in a chain.
  61918. This enables having reusable specialized Mappers that can be combined to
  61919. perform composite operations within a single task.
  61920. <p/>
  61921. Special care has to be taken when creating chains that the key/values output
  61922. by a Mapper are valid for the following Mapper in the chain. It is assumed
  61923. all Mappers and the Reduce in the chain use maching output and input key and
  61924. value classes as no conversion is done by the chaining code.
  61925. <p/>
  61926. Using the ChainMapper and the ChainReducer classes is possible to compose
  61927. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  61928. immediate benefit of this pattern is a dramatic reduction in disk IO.
  61929. <p/>
  61930. IMPORTANT: There is no need to specify the output key/value classes for the
  61931. ChainReducer, this is done by the setReducer or the addMapper for the last
  61932. element in the chain.
  61933. <p/>
  61934. ChainReducer usage pattern:
  61935. <p/>
  61936. <pre>
  61937. ...
  61938. conf.setJobName("chain");
  61939. conf.setInputFormat(TextInputFormat.class);
  61940. conf.setOutputFormat(TextOutputFormat.class);
  61941. <p/>
  61942. JobConf mapAConf = new JobConf(false);
  61943. ...
  61944. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  61945. Text.class, Text.class, true, mapAConf);
  61946. <p/>
  61947. JobConf mapBConf = new JobConf(false);
  61948. ...
  61949. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  61950. LongWritable.class, Text.class, false, mapBConf);
  61951. <p/>
  61952. JobConf reduceConf = new JobConf(false);
  61953. ...
  61954. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  61955. Text.class, Text.class, true, reduceConf);
  61956. <p/>
  61957. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  61958. LongWritable.class, Text.class, false, null);
  61959. <p/>
  61960. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  61961. LongWritable.class, LongWritable.class, true, null);
  61962. <p/>
  61963. FileInputFormat.setInputPaths(conf, inDir);
  61964. FileOutputFormat.setOutputPath(conf, outDir);
  61965. ...
  61966. <p/>
  61967. JobClient jc = new JobClient(conf);
  61968. RunningJob job = jc.submitJob(conf);
  61969. ...
  61970. </pre>]]>
  61971. </doc>
  61972. </class>
  61973. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  61974. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  61975. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  61976. abstract="true"
  61977. static="false" final="false" visibility="public"
  61978. deprecated="not deprecated">
  61979. <constructor name="CombineFileInputFormat"
  61980. static="false" final="false" visibility="public"
  61981. deprecated="not deprecated">
  61982. <doc>
  61983. <![CDATA[default constructor]]>
  61984. </doc>
  61985. </constructor>
  61986. <method name="setMaxSplitSize"
  61987. abstract="false" native="false" synchronized="false"
  61988. static="false" final="false" visibility="protected"
  61989. deprecated="not deprecated">
  61990. <param name="maxSplitSize" type="long"/>
  61991. <doc>
  61992. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  61993. approximately equal to the specified size.]]>
  61994. </doc>
  61995. </method>
  61996. <method name="setMinSplitSizeNode"
  61997. abstract="false" native="false" synchronized="false"
  61998. static="false" final="false" visibility="protected"
  61999. deprecated="not deprecated">
  62000. <param name="minSplitSizeNode" type="long"/>
  62001. <doc>
  62002. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  62003. This applies to data that is left over after combining data on a single
  62004. node into splits that are of maximum size specified by maxSplitSize.
  62005. This leftover data will be combined into its own split if its size
  62006. exceeds minSplitSizeNode.]]>
  62007. </doc>
  62008. </method>
  62009. <method name="setMinSplitSizeRack"
  62010. abstract="false" native="false" synchronized="false"
  62011. static="false" final="false" visibility="protected"
  62012. deprecated="not deprecated">
  62013. <param name="minSplitSizeRack" type="long"/>
  62014. <doc>
  62015. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  62016. This applies to data that is left over after combining data on a single
  62017. rack into splits that are of maximum size specified by maxSplitSize.
  62018. This leftover data will be combined into its own split if its size
  62019. exceeds minSplitSizeRack.]]>
  62020. </doc>
  62021. </method>
  62022. <method name="createPool"
  62023. abstract="false" native="false" synchronized="false"
  62024. static="false" final="false" visibility="protected"
  62025. deprecated="not deprecated">
  62026. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62027. <param name="filters" type="java.util.List"/>
  62028. <doc>
  62029. <![CDATA[Create a new pool and add the filters to it.
  62030. A split cannot have files from different pools.]]>
  62031. </doc>
  62032. </method>
  62033. <method name="createPool"
  62034. abstract="false" native="false" synchronized="false"
  62035. static="false" final="false" visibility="protected"
  62036. deprecated="not deprecated">
  62037. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62038. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  62039. <doc>
  62040. <![CDATA[Create a new pool and add the filters to it.
  62041. A pathname can satisfy any one of the specified filters.
  62042. A split cannot have files from different pools.]]>
  62043. </doc>
  62044. </method>
  62045. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62046. abstract="false" native="false" synchronized="false"
  62047. static="false" final="false" visibility="public"
  62048. deprecated="not deprecated">
  62049. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62050. <param name="numSplits" type="int"/>
  62051. <exception name="IOException" type="java.io.IOException"/>
  62052. </method>
  62053. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62054. abstract="true" native="false" synchronized="false"
  62055. static="false" final="false" visibility="public"
  62056. deprecated="not deprecated">
  62057. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  62058. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62059. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62060. <exception name="IOException" type="java.io.IOException"/>
  62061. <doc>
  62062. <![CDATA[This is not implemented yet.]]>
  62063. </doc>
  62064. </method>
  62065. <doc>
  62066. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  62067. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  62068. Splits are constructed from the files under the input paths.
  62069. A split cannot have files from different pools.
  62070. Each split returned may contain blocks from different files.
  62071. If a maxSplitSize is specified, then blocks on the same node are
  62072. combined to form a single split. Blocks that are left over are
  62073. then combined with other blocks in the same rack.
  62074. If maxSplitSize is not specified, then blocks from the same rack
  62075. are combined in a single split; no attempt is made to create
  62076. node-local splits.
  62077. If the maxSplitSize is equal to the block size, then this class
  62078. is similar to the default spliting behaviour in Hadoop: each
  62079. block is a locally processed split.
  62080. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  62081. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  62082. @see CombineFileSplit]]>
  62083. </doc>
  62084. </class>
  62085. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  62086. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  62087. <class name="CombineFileRecordReader" extends="java.lang.Object"
  62088. abstract="false"
  62089. static="false" final="false" visibility="public"
  62090. deprecated="not deprecated">
  62091. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  62092. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  62093. static="false" final="false" visibility="public"
  62094. deprecated="not deprecated">
  62095. <exception name="IOException" type="java.io.IOException"/>
  62096. <doc>
  62097. <![CDATA[A generic RecordReader that can hand out different recordReaders
  62098. for each chunk in the CombineFileSplit.]]>
  62099. </doc>
  62100. </constructor>
  62101. <method name="next" return="boolean"
  62102. abstract="false" native="false" synchronized="false"
  62103. static="false" final="false" visibility="public"
  62104. deprecated="not deprecated">
  62105. <param name="key" type="java.lang.Object"/>
  62106. <param name="value" type="java.lang.Object"/>
  62107. <exception name="IOException" type="java.io.IOException"/>
  62108. </method>
  62109. <method name="createKey" return="java.lang.Object"
  62110. abstract="false" native="false" synchronized="false"
  62111. static="false" final="false" visibility="public"
  62112. deprecated="not deprecated">
  62113. </method>
  62114. <method name="createValue" return="java.lang.Object"
  62115. abstract="false" native="false" synchronized="false"
  62116. static="false" final="false" visibility="public"
  62117. deprecated="not deprecated">
  62118. </method>
  62119. <method name="getPos" return="long"
  62120. abstract="false" native="false" synchronized="false"
  62121. static="false" final="false" visibility="public"
  62122. deprecated="not deprecated">
  62123. <exception name="IOException" type="java.io.IOException"/>
  62124. <doc>
  62125. <![CDATA[return the amount of data processed]]>
  62126. </doc>
  62127. </method>
  62128. <method name="close"
  62129. abstract="false" native="false" synchronized="false"
  62130. static="false" final="false" visibility="public"
  62131. deprecated="not deprecated">
  62132. <exception name="IOException" type="java.io.IOException"/>
  62133. </method>
  62134. <method name="getProgress" return="float"
  62135. abstract="false" native="false" synchronized="false"
  62136. static="false" final="false" visibility="public"
  62137. deprecated="not deprecated">
  62138. <exception name="IOException" type="java.io.IOException"/>
  62139. <doc>
  62140. <![CDATA[return progress based on the amount of data processed so far.]]>
  62141. </doc>
  62142. </method>
  62143. <method name="initNextRecordReader" return="boolean"
  62144. abstract="false" native="false" synchronized="false"
  62145. static="false" final="false" visibility="protected"
  62146. deprecated="not deprecated">
  62147. <exception name="IOException" type="java.io.IOException"/>
  62148. <doc>
  62149. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  62150. </doc>
  62151. </method>
  62152. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  62153. transient="false" volatile="false"
  62154. static="false" final="false" visibility="protected"
  62155. deprecated="not deprecated">
  62156. </field>
  62157. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  62158. transient="false" volatile="false"
  62159. static="false" final="false" visibility="protected"
  62160. deprecated="not deprecated">
  62161. </field>
  62162. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  62163. transient="false" volatile="false"
  62164. static="false" final="false" visibility="protected"
  62165. deprecated="not deprecated">
  62166. </field>
  62167. <field name="rrClass" type="java.lang.Class"
  62168. transient="false" volatile="false"
  62169. static="false" final="false" visibility="protected"
  62170. deprecated="not deprecated">
  62171. </field>
  62172. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  62173. transient="false" volatile="false"
  62174. static="false" final="false" visibility="protected"
  62175. deprecated="not deprecated">
  62176. </field>
  62177. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  62178. transient="false" volatile="false"
  62179. static="false" final="false" visibility="protected"
  62180. deprecated="not deprecated">
  62181. </field>
  62182. <field name="idx" type="int"
  62183. transient="false" volatile="false"
  62184. static="false" final="false" visibility="protected"
  62185. deprecated="not deprecated">
  62186. </field>
  62187. <field name="progress" type="long"
  62188. transient="false" volatile="false"
  62189. static="false" final="false" visibility="protected"
  62190. deprecated="not deprecated">
  62191. </field>
  62192. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  62193. transient="false" volatile="false"
  62194. static="false" final="false" visibility="protected"
  62195. deprecated="not deprecated">
  62196. </field>
  62197. <doc>
  62198. <![CDATA[A generic RecordReader that can hand out different recordReaders
  62199. for each chunk in a {@link CombineFileSplit}.
  62200. A CombineFileSplit can combine data chunks from multiple files.
  62201. This class allows using different RecordReaders for processing
  62202. these data chunks from different files.
  62203. @see CombineFileSplit]]>
  62204. </doc>
  62205. </class>
  62206. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  62207. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  62208. <class name="CombineFileSplit" extends="java.lang.Object"
  62209. abstract="false"
  62210. static="false" final="false" visibility="public"
  62211. deprecated="not deprecated">
  62212. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  62213. <constructor name="CombineFileSplit"
  62214. static="false" final="false" visibility="public"
  62215. deprecated="not deprecated">
  62216. <doc>
  62217. <![CDATA[default constructor]]>
  62218. </doc>
  62219. </constructor>
  62220. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  62221. static="false" final="false" visibility="public"
  62222. deprecated="not deprecated">
  62223. </constructor>
  62224. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  62225. static="false" final="false" visibility="public"
  62226. deprecated="not deprecated">
  62227. </constructor>
  62228. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  62229. static="false" final="false" visibility="public"
  62230. deprecated="not deprecated">
  62231. <exception name="IOException" type="java.io.IOException"/>
  62232. <doc>
  62233. <![CDATA[Copy constructor]]>
  62234. </doc>
  62235. </constructor>
  62236. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  62237. abstract="false" native="false" synchronized="false"
  62238. static="false" final="false" visibility="public"
  62239. deprecated="not deprecated">
  62240. </method>
  62241. <method name="getLength" return="long"
  62242. abstract="false" native="false" synchronized="false"
  62243. static="false" final="false" visibility="public"
  62244. deprecated="not deprecated">
  62245. </method>
  62246. <method name="getStartOffsets" return="long[]"
  62247. abstract="false" native="false" synchronized="false"
  62248. static="false" final="false" visibility="public"
  62249. deprecated="not deprecated">
  62250. <doc>
  62251. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  62252. </doc>
  62253. </method>
  62254. <method name="getLengths" return="long[]"
  62255. abstract="false" native="false" synchronized="false"
  62256. static="false" final="false" visibility="public"
  62257. deprecated="not deprecated">
  62258. <doc>
  62259. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  62260. </doc>
  62261. </method>
  62262. <method name="getOffset" return="long"
  62263. abstract="false" native="false" synchronized="false"
  62264. static="false" final="false" visibility="public"
  62265. deprecated="not deprecated">
  62266. <param name="i" type="int"/>
  62267. <doc>
  62268. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  62269. </doc>
  62270. </method>
  62271. <method name="getLength" return="long"
  62272. abstract="false" native="false" synchronized="false"
  62273. static="false" final="false" visibility="public"
  62274. deprecated="not deprecated">
  62275. <param name="i" type="int"/>
  62276. <doc>
  62277. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  62278. </doc>
  62279. </method>
  62280. <method name="getNumPaths" return="int"
  62281. abstract="false" native="false" synchronized="false"
  62282. static="false" final="false" visibility="public"
  62283. deprecated="not deprecated">
  62284. <doc>
  62285. <![CDATA[Returns the number of Paths in the split]]>
  62286. </doc>
  62287. </method>
  62288. <method name="getPath" return="org.apache.hadoop.fs.Path"
  62289. abstract="false" native="false" synchronized="false"
  62290. static="false" final="false" visibility="public"
  62291. deprecated="not deprecated">
  62292. <param name="i" type="int"/>
  62293. <doc>
  62294. <![CDATA[Returns the i<sup>th</sup> Path]]>
  62295. </doc>
  62296. </method>
  62297. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  62298. abstract="false" native="false" synchronized="false"
  62299. static="false" final="false" visibility="public"
  62300. deprecated="not deprecated">
  62301. <doc>
  62302. <![CDATA[Returns all the Paths in the split]]>
  62303. </doc>
  62304. </method>
  62305. <method name="getLocations" return="java.lang.String[]"
  62306. abstract="false" native="false" synchronized="false"
  62307. static="false" final="false" visibility="public"
  62308. deprecated="not deprecated">
  62309. <exception name="IOException" type="java.io.IOException"/>
  62310. <doc>
  62311. <![CDATA[Returns all the Paths where this input-split resides]]>
  62312. </doc>
  62313. </method>
  62314. <method name="readFields"
  62315. abstract="false" native="false" synchronized="false"
  62316. static="false" final="false" visibility="public"
  62317. deprecated="not deprecated">
  62318. <param name="in" type="java.io.DataInput"/>
  62319. <exception name="IOException" type="java.io.IOException"/>
  62320. </method>
  62321. <method name="write"
  62322. abstract="false" native="false" synchronized="false"
  62323. static="false" final="false" visibility="public"
  62324. deprecated="not deprecated">
  62325. <param name="out" type="java.io.DataOutput"/>
  62326. <exception name="IOException" type="java.io.IOException"/>
  62327. </method>
  62328. <method name="toString" return="java.lang.String"
  62329. abstract="false" native="false" synchronized="false"
  62330. static="false" final="false" visibility="public"
  62331. deprecated="not deprecated">
  62332. </method>
  62333. <doc>
  62334. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  62335. CombineFileSplit * class does not represent a split of a file, but a split of input files
  62336. into smaller sets. A split may contain blocks from different file but all
  62337. the blocks in the same split are probably local to some rack <br>
  62338. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  62339. with reading one record per file.
  62340. @see org.apache.hadoop.mapred.FileSplit
  62341. @see CombineFileInputFormat]]>
  62342. </doc>
  62343. </class>
  62344. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  62345. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  62346. <class name="DelegatingInputFormat" extends="java.lang.Object"
  62347. abstract="false"
  62348. static="false" final="false" visibility="public"
  62349. deprecated="not deprecated">
  62350. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  62351. <constructor name="DelegatingInputFormat"
  62352. static="false" final="false" visibility="public"
  62353. deprecated="not deprecated">
  62354. </constructor>
  62355. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62356. abstract="false" native="false" synchronized="false"
  62357. static="false" final="false" visibility="public"
  62358. deprecated="not deprecated">
  62359. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62360. <param name="numSplits" type="int"/>
  62361. <exception name="IOException" type="java.io.IOException"/>
  62362. </method>
  62363. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62364. abstract="false" native="false" synchronized="false"
  62365. static="false" final="false" visibility="public"
  62366. deprecated="not deprecated">
  62367. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  62368. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62369. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62370. <exception name="IOException" type="java.io.IOException"/>
  62371. </method>
  62372. <doc>
  62373. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  62374. InputFormats.
  62375. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  62376. </doc>
  62377. </class>
  62378. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  62379. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  62380. <class name="DelegatingMapper" extends="java.lang.Object"
  62381. abstract="false"
  62382. static="false" final="false" visibility="public"
  62383. deprecated="not deprecated">
  62384. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62385. <constructor name="DelegatingMapper"
  62386. static="false" final="false" visibility="public"
  62387. deprecated="not deprecated">
  62388. </constructor>
  62389. <method name="map"
  62390. abstract="false" native="false" synchronized="false"
  62391. static="false" final="false" visibility="public"
  62392. deprecated="not deprecated">
  62393. <param name="key" type="java.lang.Object"/>
  62394. <param name="value" type="java.lang.Object"/>
  62395. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  62396. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62397. <exception name="IOException" type="java.io.IOException"/>
  62398. </method>
  62399. <method name="configure"
  62400. abstract="false" native="false" synchronized="false"
  62401. static="false" final="false" visibility="public"
  62402. deprecated="not deprecated">
  62403. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62404. </method>
  62405. <method name="close"
  62406. abstract="false" native="false" synchronized="false"
  62407. static="false" final="false" visibility="public"
  62408. deprecated="not deprecated">
  62409. <exception name="IOException" type="java.io.IOException"/>
  62410. </method>
  62411. <doc>
  62412. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  62413. mappers.
  62414. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  62415. </doc>
  62416. </class>
  62417. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  62418. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  62419. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  62420. abstract="false"
  62421. static="false" final="false" visibility="public"
  62422. deprecated="not deprecated">
  62423. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62424. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62425. <constructor name="FieldSelectionMapReduce"
  62426. static="false" final="false" visibility="public"
  62427. deprecated="not deprecated">
  62428. </constructor>
  62429. <method name="map"
  62430. abstract="false" native="false" synchronized="false"
  62431. static="false" final="false" visibility="public"
  62432. deprecated="not deprecated">
  62433. <param name="key" type="java.lang.Object"/>
  62434. <param name="val" type="java.lang.Object"/>
  62435. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62436. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62437. <exception name="IOException" type="java.io.IOException"/>
  62438. <doc>
  62439. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  62440. </doc>
  62441. </method>
  62442. <method name="configure"
  62443. abstract="false" native="false" synchronized="false"
  62444. static="false" final="false" visibility="public"
  62445. deprecated="not deprecated">
  62446. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62447. </method>
  62448. <method name="close"
  62449. abstract="false" native="false" synchronized="false"
  62450. static="false" final="false" visibility="public"
  62451. deprecated="not deprecated">
  62452. <exception name="IOException" type="java.io.IOException"/>
  62453. </method>
  62454. <method name="reduce"
  62455. abstract="false" native="false" synchronized="false"
  62456. static="false" final="false" visibility="public"
  62457. deprecated="not deprecated">
  62458. <param name="key" type="org.apache.hadoop.io.Text"/>
  62459. <param name="values" type="java.util.Iterator"/>
  62460. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62461. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62462. <exception name="IOException" type="java.io.IOException"/>
  62463. </method>
  62464. <field name="LOG" type="org.apache.commons.logging.Log"
  62465. transient="false" volatile="false"
  62466. static="true" final="true" visibility="public"
  62467. deprecated="not deprecated">
  62468. </field>
  62469. <doc>
  62470. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  62471. field selections in a manner similar to unix cut. The input data is treated
  62472. as fields separated by a user specified separator (the default value is
  62473. "\t"). The user can specify a list of fields that form the map output keys,
  62474. and a list of fields that form the map output values. If the inputformat is
  62475. TextInputFormat, the mapper will ignore the key to the map function. and the
  62476. fields are from the value only. Otherwise, the fields are the union of those
  62477. from the key and those from the value.
  62478. The field separator is under attribute "mapred.data.field.separator"
  62479. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  62480. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  62481. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  62482. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  62483. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  62484. the fields starting from field 3. The open range field spec applies value fields only.
  62485. They have no effect on the key fields.
  62486. 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,
  62487. and use fields 6,5,1,2,3,7 and above for values.
  62488. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  62489. The reducer extracts output key/value pairs in a similar manner, except that
  62490. the key is never ignored.]]>
  62491. </doc>
  62492. </class>
  62493. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  62494. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  62495. <class name="HashPartitioner" extends="java.lang.Object"
  62496. abstract="false"
  62497. static="false" final="false" visibility="public"
  62498. deprecated="not deprecated">
  62499. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62500. <constructor name="HashPartitioner"
  62501. static="false" final="false" visibility="public"
  62502. deprecated="not deprecated">
  62503. </constructor>
  62504. <method name="configure"
  62505. abstract="false" native="false" synchronized="false"
  62506. static="false" final="false" visibility="public"
  62507. deprecated="not deprecated">
  62508. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62509. </method>
  62510. <method name="getPartition" return="int"
  62511. abstract="false" native="false" synchronized="false"
  62512. static="false" final="false" visibility="public"
  62513. deprecated="not deprecated">
  62514. <param name="key" type="java.lang.Object"/>
  62515. <param name="value" type="java.lang.Object"/>
  62516. <param name="numReduceTasks" type="int"/>
  62517. <doc>
  62518. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  62519. </doc>
  62520. </method>
  62521. <doc>
  62522. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  62523. </doc>
  62524. </class>
  62525. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  62526. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  62527. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62528. abstract="false"
  62529. static="false" final="false" visibility="public"
  62530. deprecated="not deprecated">
  62531. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62532. <constructor name="IdentityMapper"
  62533. static="false" final="false" visibility="public"
  62534. deprecated="not deprecated">
  62535. </constructor>
  62536. <method name="map"
  62537. abstract="false" native="false" synchronized="false"
  62538. static="false" final="false" visibility="public"
  62539. deprecated="not deprecated">
  62540. <param name="key" type="java.lang.Object"/>
  62541. <param name="val" type="java.lang.Object"/>
  62542. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62543. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62544. <exception name="IOException" type="java.io.IOException"/>
  62545. <doc>
  62546. <![CDATA[The identify function. Input key/value pair is written directly to
  62547. output.]]>
  62548. </doc>
  62549. </method>
  62550. <doc>
  62551. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  62552. </doc>
  62553. </class>
  62554. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  62555. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  62556. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  62557. abstract="false"
  62558. static="false" final="false" visibility="public"
  62559. deprecated="not deprecated">
  62560. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62561. <constructor name="IdentityReducer"
  62562. static="false" final="false" visibility="public"
  62563. deprecated="not deprecated">
  62564. </constructor>
  62565. <method name="reduce"
  62566. abstract="false" native="false" synchronized="false"
  62567. static="false" final="false" visibility="public"
  62568. deprecated="not deprecated">
  62569. <param name="key" type="java.lang.Object"/>
  62570. <param name="values" type="java.util.Iterator"/>
  62571. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62572. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62573. <exception name="IOException" type="java.io.IOException"/>
  62574. <doc>
  62575. <![CDATA[Writes all keys and values directly to output.]]>
  62576. </doc>
  62577. </method>
  62578. <doc>
  62579. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  62580. </doc>
  62581. </class>
  62582. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  62583. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  62584. <class name="InputSampler" extends="java.lang.Object"
  62585. abstract="false"
  62586. static="false" final="false" visibility="public"
  62587. deprecated="not deprecated">
  62588. <implements name="org.apache.hadoop.util.Tool"/>
  62589. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  62590. static="false" final="false" visibility="public"
  62591. deprecated="not deprecated">
  62592. </constructor>
  62593. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  62594. abstract="false" native="false" synchronized="false"
  62595. static="false" final="false" visibility="public"
  62596. deprecated="not deprecated">
  62597. </method>
  62598. <method name="setConf"
  62599. abstract="false" native="false" synchronized="false"
  62600. static="false" final="false" visibility="public"
  62601. deprecated="not deprecated">
  62602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  62603. </method>
  62604. <method name="writePartitionFile"
  62605. abstract="false" native="false" synchronized="false"
  62606. static="true" final="false" visibility="public"
  62607. deprecated="not deprecated">
  62608. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62609. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62610. <exception name="IOException" type="java.io.IOException"/>
  62611. <doc>
  62612. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  62613. Queries the sampler for a sample keyset, sorts by the output key
  62614. comparator, selects the keys for each rank, and writes to the destination
  62615. returned from {@link
  62616. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  62617. </doc>
  62618. </method>
  62619. <method name="run" return="int"
  62620. abstract="false" native="false" synchronized="false"
  62621. static="false" final="false" visibility="public"
  62622. deprecated="not deprecated">
  62623. <param name="args" type="java.lang.String[]"/>
  62624. <exception name="Exception" type="java.lang.Exception"/>
  62625. <doc>
  62626. <![CDATA[Driver for InputSampler from the command line.
  62627. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  62628. </doc>
  62629. </method>
  62630. <method name="main"
  62631. abstract="false" native="false" synchronized="false"
  62632. static="true" final="false" visibility="public"
  62633. deprecated="not deprecated">
  62634. <param name="args" type="java.lang.String[]"/>
  62635. <exception name="Exception" type="java.lang.Exception"/>
  62636. </method>
  62637. <doc>
  62638. <![CDATA[Utility for collecting samples and writing a partition file for
  62639. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  62640. </doc>
  62641. </class>
  62642. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  62643. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  62644. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  62645. abstract="false"
  62646. static="true" final="false" visibility="public"
  62647. deprecated="not deprecated">
  62648. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62649. <constructor name="InputSampler.IntervalSampler" type="double"
  62650. static="false" final="false" visibility="public"
  62651. deprecated="not deprecated">
  62652. <doc>
  62653. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  62654. @param freq The frequency with which records will be emitted.]]>
  62655. </doc>
  62656. </constructor>
  62657. <constructor name="InputSampler.IntervalSampler" type="double, int"
  62658. static="false" final="false" visibility="public"
  62659. deprecated="not deprecated">
  62660. <doc>
  62661. <![CDATA[Create a new IntervalSampler.
  62662. @param freq The frequency with which records will be emitted.
  62663. @param maxSplitsSampled The maximum number of splits to examine.
  62664. @see #getSample]]>
  62665. </doc>
  62666. </constructor>
  62667. <method name="getSample" return="java.lang.Object[]"
  62668. abstract="false" native="false" synchronized="false"
  62669. static="false" final="false" visibility="public"
  62670. deprecated="not deprecated">
  62671. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62672. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62673. <exception name="IOException" type="java.io.IOException"/>
  62674. <doc>
  62675. <![CDATA[For each split sampled, emit when the ratio of the number of records
  62676. retained to the total record count is less than the specified
  62677. frequency.]]>
  62678. </doc>
  62679. </method>
  62680. <doc>
  62681. <![CDATA[Sample from s splits at regular intervals.
  62682. Useful for sorted data.]]>
  62683. </doc>
  62684. </class>
  62685. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  62686. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  62687. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  62688. abstract="false"
  62689. static="true" final="false" visibility="public"
  62690. deprecated="not deprecated">
  62691. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62692. <constructor name="InputSampler.RandomSampler" type="double, int"
  62693. static="false" final="false" visibility="public"
  62694. deprecated="not deprecated">
  62695. <doc>
  62696. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  62697. This will read every split at the client, which is very expensive.
  62698. @param freq Probability with which a key will be chosen.
  62699. @param numSamples Total number of samples to obtain from all selected
  62700. splits.]]>
  62701. </doc>
  62702. </constructor>
  62703. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  62704. static="false" final="false" visibility="public"
  62705. deprecated="not deprecated">
  62706. <doc>
  62707. <![CDATA[Create a new RandomSampler.
  62708. @param freq Probability with which a key will be chosen.
  62709. @param numSamples Total number of samples to obtain from all selected
  62710. splits.
  62711. @param maxSplitsSampled The maximum number of splits to examine.]]>
  62712. </doc>
  62713. </constructor>
  62714. <method name="getSample" return="java.lang.Object[]"
  62715. abstract="false" native="false" synchronized="false"
  62716. static="false" final="false" visibility="public"
  62717. deprecated="not deprecated">
  62718. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62719. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62720. <exception name="IOException" type="java.io.IOException"/>
  62721. <doc>
  62722. <![CDATA[Randomize the split order, then take the specified number of keys from
  62723. each split sampled, where each key is selected with the specified
  62724. probability and possibly replaced by a subsequently selected key when
  62725. the quota of keys from that split is satisfied.]]>
  62726. </doc>
  62727. </method>
  62728. <doc>
  62729. <![CDATA[Sample from random points in the input.
  62730. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  62731. each split.]]>
  62732. </doc>
  62733. </class>
  62734. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  62735. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  62736. <interface name="InputSampler.Sampler" abstract="true"
  62737. static="true" final="false" visibility="public"
  62738. deprecated="not deprecated">
  62739. <method name="getSample" return="java.lang.Object[]"
  62740. abstract="false" native="false" synchronized="false"
  62741. static="false" final="false" visibility="public"
  62742. deprecated="not deprecated">
  62743. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62744. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62745. <exception name="IOException" type="java.io.IOException"/>
  62746. <doc>
  62747. <![CDATA[For a given job, collect and return a subset of the keys from the
  62748. input data.]]>
  62749. </doc>
  62750. </method>
  62751. <doc>
  62752. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  62753. </doc>
  62754. </interface>
  62755. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  62756. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  62757. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  62758. abstract="false"
  62759. static="true" final="false" visibility="public"
  62760. deprecated="not deprecated">
  62761. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62762. <constructor name="InputSampler.SplitSampler" type="int"
  62763. static="false" final="false" visibility="public"
  62764. deprecated="not deprecated">
  62765. <doc>
  62766. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  62767. Takes the first numSamples / numSplits records from each split.
  62768. @param numSamples Total number of samples to obtain from all selected
  62769. splits.]]>
  62770. </doc>
  62771. </constructor>
  62772. <constructor name="InputSampler.SplitSampler" type="int, int"
  62773. static="false" final="false" visibility="public"
  62774. deprecated="not deprecated">
  62775. <doc>
  62776. <![CDATA[Create a new SplitSampler.
  62777. @param numSamples Total number of samples to obtain from all selected
  62778. splits.
  62779. @param maxSplitsSampled The maximum number of splits to examine.]]>
  62780. </doc>
  62781. </constructor>
  62782. <method name="getSample" return="java.lang.Object[]"
  62783. abstract="false" native="false" synchronized="false"
  62784. static="false" final="false" visibility="public"
  62785. deprecated="not deprecated">
  62786. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62787. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62788. <exception name="IOException" type="java.io.IOException"/>
  62789. <doc>
  62790. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  62791. </doc>
  62792. </method>
  62793. <doc>
  62794. <![CDATA[Samples the first n records from s splits.
  62795. Inexpensive way to sample random data.]]>
  62796. </doc>
  62797. </class>
  62798. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  62799. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  62800. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62801. abstract="false"
  62802. static="false" final="false" visibility="public"
  62803. deprecated="not deprecated">
  62804. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62805. <constructor name="InverseMapper"
  62806. static="false" final="false" visibility="public"
  62807. deprecated="not deprecated">
  62808. </constructor>
  62809. <method name="map"
  62810. abstract="false" native="false" synchronized="false"
  62811. static="false" final="false" visibility="public"
  62812. deprecated="not deprecated">
  62813. <param name="key" type="java.lang.Object"/>
  62814. <param name="value" type="java.lang.Object"/>
  62815. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62816. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62817. <exception name="IOException" type="java.io.IOException"/>
  62818. <doc>
  62819. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  62820. </doc>
  62821. </method>
  62822. <doc>
  62823. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  62824. </doc>
  62825. </class>
  62826. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  62827. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  62828. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  62829. abstract="false"
  62830. static="false" final="false" visibility="public"
  62831. deprecated="not deprecated">
  62832. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  62833. <constructor name="KeyFieldBasedComparator"
  62834. static="false" final="false" visibility="public"
  62835. deprecated="not deprecated">
  62836. </constructor>
  62837. <method name="configure"
  62838. abstract="false" native="false" synchronized="false"
  62839. static="false" final="false" visibility="public"
  62840. deprecated="not deprecated">
  62841. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62842. </method>
  62843. <method name="compare" return="int"
  62844. abstract="false" native="false" synchronized="false"
  62845. static="false" final="false" visibility="public"
  62846. deprecated="not deprecated">
  62847. <param name="b1" type="byte[]"/>
  62848. <param name="s1" type="int"/>
  62849. <param name="l1" type="int"/>
  62850. <param name="b2" type="byte[]"/>
  62851. <param name="s2" type="int"/>
  62852. <param name="l2" type="int"/>
  62853. </method>
  62854. <doc>
  62855. <![CDATA[This comparator implementation provides a subset of the features provided
  62856. by the Unix/GNU Sort. In particular, the supported features are:
  62857. -n, (Sort numerically)
  62858. -r, (Reverse the result of comparison)
  62859. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  62860. of the field to use, and c is the number of the first character from the
  62861. beginning of the field. Fields and character posns are numbered starting
  62862. with 1; a character position of zero in pos2 indicates the field's last
  62863. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  62864. of the field); if omitted from pos2, it defaults to 0 (the end of the
  62865. field). opts are ordering options (any of 'nr' as described above).
  62866. We assume that the fields in the key are separated by
  62867. map.output.key.field.separator.]]>
  62868. </doc>
  62869. </class>
  62870. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  62871. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  62872. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  62873. abstract="false"
  62874. static="false" final="false" visibility="public"
  62875. deprecated="not deprecated">
  62876. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62877. <constructor name="KeyFieldBasedPartitioner"
  62878. static="false" final="false" visibility="public"
  62879. deprecated="not deprecated">
  62880. </constructor>
  62881. <method name="configure"
  62882. abstract="false" native="false" synchronized="false"
  62883. static="false" final="false" visibility="public"
  62884. deprecated="not deprecated">
  62885. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62886. </method>
  62887. <method name="getPartition" return="int"
  62888. abstract="false" native="false" synchronized="false"
  62889. static="false" final="false" visibility="public"
  62890. deprecated="not deprecated">
  62891. <param name="key" type="java.lang.Object"/>
  62892. <param name="value" type="java.lang.Object"/>
  62893. <param name="numReduceTasks" type="int"/>
  62894. </method>
  62895. <method name="hashCode" return="int"
  62896. abstract="false" native="false" synchronized="false"
  62897. static="false" final="false" visibility="protected"
  62898. deprecated="not deprecated">
  62899. <param name="b" type="byte[]"/>
  62900. <param name="start" type="int"/>
  62901. <param name="end" type="int"/>
  62902. <param name="currentHash" type="int"/>
  62903. </method>
  62904. <method name="getPartition" return="int"
  62905. abstract="false" native="false" synchronized="false"
  62906. static="false" final="false" visibility="protected"
  62907. deprecated="not deprecated">
  62908. <param name="hash" type="int"/>
  62909. <param name="numReduceTasks" type="int"/>
  62910. </method>
  62911. <doc>
  62912. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  62913. {@link KeyFieldBasedComparator}.
  62914. The key specification supported is of the form -k pos1[,pos2], where,
  62915. pos is of the form f[.c][opts], where f is the number
  62916. of the key field to use, and c is the number of the first character from
  62917. the beginning of the field. Fields and character posns are numbered
  62918. starting with 1; a character position of zero in pos2 indicates the
  62919. field's last character. If '.c' is omitted from pos1, it defaults to 1
  62920. (the beginning of the field); if omitted from pos2, it defaults to 0
  62921. (the end of the field).]]>
  62922. </doc>
  62923. </class>
  62924. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  62925. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  62926. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  62927. abstract="false"
  62928. static="false" final="false" visibility="public"
  62929. deprecated="not deprecated">
  62930. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62931. <constructor name="LongSumReducer"
  62932. static="false" final="false" visibility="public"
  62933. deprecated="not deprecated">
  62934. </constructor>
  62935. <method name="reduce"
  62936. abstract="false" native="false" synchronized="false"
  62937. static="false" final="false" visibility="public"
  62938. deprecated="not deprecated">
  62939. <param name="key" type="java.lang.Object"/>
  62940. <param name="values" type="java.util.Iterator"/>
  62941. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62942. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62943. <exception name="IOException" type="java.io.IOException"/>
  62944. </method>
  62945. <doc>
  62946. <![CDATA[A {@link Reducer} that sums long values.]]>
  62947. </doc>
  62948. </class>
  62949. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  62950. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  62951. <class name="MultipleInputs" extends="java.lang.Object"
  62952. abstract="false"
  62953. static="false" final="false" visibility="public"
  62954. deprecated="not deprecated">
  62955. <constructor name="MultipleInputs"
  62956. static="false" final="false" visibility="public"
  62957. deprecated="not deprecated">
  62958. </constructor>
  62959. <method name="addInputPath"
  62960. abstract="false" native="false" synchronized="false"
  62961. static="true" final="false" visibility="public"
  62962. deprecated="not deprecated">
  62963. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62964. <param name="path" type="org.apache.hadoop.fs.Path"/>
  62965. <param name="inputFormatClass" type="java.lang.Class"/>
  62966. <doc>
  62967. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  62968. inputs for the map-reduce job.
  62969. @param conf The configuration of the job
  62970. @param path {@link Path} to be added to the list of inputs for the job
  62971. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  62972. </doc>
  62973. </method>
  62974. <method name="addInputPath"
  62975. abstract="false" native="false" synchronized="false"
  62976. static="true" final="false" visibility="public"
  62977. deprecated="not deprecated">
  62978. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62979. <param name="path" type="org.apache.hadoop.fs.Path"/>
  62980. <param name="inputFormatClass" type="java.lang.Class"/>
  62981. <param name="mapperClass" type="java.lang.Class"/>
  62982. <doc>
  62983. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  62984. {@link Mapper} to the list of inputs for the map-reduce job.
  62985. @param conf The configuration of the job
  62986. @param path {@link Path} to be added to the list of inputs for the job
  62987. @param inputFormatClass {@link InputFormat} class to use for this path
  62988. @param mapperClass {@link Mapper} class to use for this path]]>
  62989. </doc>
  62990. </method>
  62991. <doc>
  62992. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  62993. a different {@link InputFormat} and {@link Mapper} for each path]]>
  62994. </doc>
  62995. </class>
  62996. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  62997. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  62998. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  62999. abstract="true"
  63000. static="false" final="false" visibility="public"
  63001. deprecated="not deprecated">
  63002. <constructor name="MultipleOutputFormat"
  63003. static="false" final="false" visibility="public"
  63004. deprecated="not deprecated">
  63005. </constructor>
  63006. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63007. abstract="false" native="false" synchronized="false"
  63008. static="false" final="false" visibility="public"
  63009. deprecated="not deprecated">
  63010. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63011. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63012. <param name="name" type="java.lang.String"/>
  63013. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63014. <exception name="IOException" type="java.io.IOException"/>
  63015. <doc>
  63016. <![CDATA[Create a composite record writer that can write key/value data to different
  63017. output files
  63018. @param fs
  63019. the file system to use
  63020. @param job
  63021. the job conf for the job
  63022. @param name
  63023. the leaf file name for the output file (such as part-00000")
  63024. @param arg3
  63025. a progressable for reporting progress.
  63026. @return a composite record writer
  63027. @throws IOException]]>
  63028. </doc>
  63029. </method>
  63030. <method name="generateLeafFileName" return="java.lang.String"
  63031. abstract="false" native="false" synchronized="false"
  63032. static="false" final="false" visibility="protected"
  63033. deprecated="not deprecated">
  63034. <param name="name" type="java.lang.String"/>
  63035. <doc>
  63036. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  63037. not change the leaf file name (such as part-00000)
  63038. @param name
  63039. the leaf file name for the output file
  63040. @return the given leaf file name]]>
  63041. </doc>
  63042. </method>
  63043. <method name="generateFileNameForKeyValue" return="java.lang.String"
  63044. abstract="false" native="false" synchronized="false"
  63045. static="false" final="false" visibility="protected"
  63046. deprecated="not deprecated">
  63047. <param name="key" type="java.lang.Object"/>
  63048. <param name="value" type="java.lang.Object"/>
  63049. <param name="name" type="java.lang.String"/>
  63050. <doc>
  63051. <![CDATA[Generate the file output file name based on the given key and the leaf file
  63052. name. The default behavior is that the file name does not depend on the
  63053. key.
  63054. @param key
  63055. the key of the output data
  63056. @param name
  63057. the leaf file name
  63058. @return generated file name]]>
  63059. </doc>
  63060. </method>
  63061. <method name="generateActualKey" return="java.lang.Object"
  63062. abstract="false" native="false" synchronized="false"
  63063. static="false" final="false" visibility="protected"
  63064. deprecated="not deprecated">
  63065. <param name="key" type="java.lang.Object"/>
  63066. <param name="value" type="java.lang.Object"/>
  63067. <doc>
  63068. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  63069. the actual key is equal to the given key
  63070. @param key
  63071. the key of the output data
  63072. @param value
  63073. the value of the output data
  63074. @return the actual key derived from the given key/value]]>
  63075. </doc>
  63076. </method>
  63077. <method name="generateActualValue" return="java.lang.Object"
  63078. abstract="false" native="false" synchronized="false"
  63079. static="false" final="false" visibility="protected"
  63080. deprecated="not deprecated">
  63081. <param name="key" type="java.lang.Object"/>
  63082. <param name="value" type="java.lang.Object"/>
  63083. <doc>
  63084. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  63085. the actual value is equal to the given value
  63086. @param key
  63087. the key of the output data
  63088. @param value
  63089. the value of the output data
  63090. @return the actual value derived from the given key/value]]>
  63091. </doc>
  63092. </method>
  63093. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  63094. abstract="false" native="false" synchronized="false"
  63095. static="false" final="false" visibility="protected"
  63096. deprecated="not deprecated">
  63097. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63098. <param name="name" type="java.lang.String"/>
  63099. <doc>
  63100. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  63101. the map input file does not exists (i.e. this is not for a map only job),
  63102. the given name is returned unchanged. If the config value for
  63103. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  63104. name is returned unchanged. Otherwise, return a file name consisting of the
  63105. N trailing legs of the input file name where N is the config value for
  63106. "num.of.trailing.legs.to.use".
  63107. @param job
  63108. the job config
  63109. @param name
  63110. the output file name
  63111. @return the outfile name based on a given anme and the input file name.]]>
  63112. </doc>
  63113. </method>
  63114. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63115. abstract="true" native="false" synchronized="false"
  63116. static="false" final="false" visibility="protected"
  63117. deprecated="not deprecated">
  63118. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63119. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63120. <param name="name" type="java.lang.String"/>
  63121. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63122. <exception name="IOException" type="java.io.IOException"/>
  63123. <doc>
  63124. <![CDATA[@param fs
  63125. the file system to use
  63126. @param job
  63127. a job conf object
  63128. @param name
  63129. the name of the file over which a record writer object will be
  63130. constructed
  63131. @param arg3
  63132. a progressable object
  63133. @return A RecordWriter object over the given file
  63134. @throws IOException]]>
  63135. </doc>
  63136. </method>
  63137. <doc>
  63138. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  63139. output data to different output files. There are three basic use cases for
  63140. this class.
  63141. Case one: This class is used for a map reduce job with at least one reducer.
  63142. The reducer wants to write data to different files depending on the actual
  63143. keys. It is assumed that a key (or value) encodes the actual key (value)
  63144. and the desired location for the actual key (value).
  63145. Case two: This class is used for a map only job. The job wants to use an
  63146. output file name that is either a part of the input file name of the input
  63147. data, or some derivation of it.
  63148. Case three: This class is used for a map only job. The job wants to use an
  63149. output file name that depends on both the keys and the input file name,]]>
  63150. </doc>
  63151. </class>
  63152. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  63153. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  63154. <class name="MultipleOutputs" extends="java.lang.Object"
  63155. abstract="false"
  63156. static="false" final="false" visibility="public"
  63157. deprecated="not deprecated">
  63158. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  63159. static="false" final="false" visibility="public"
  63160. deprecated="not deprecated">
  63161. <doc>
  63162. <![CDATA[Creates and initializes multiple named outputs support, it should be
  63163. instantiated in the Mapper/Reducer configure method.
  63164. @param job the job configuration object]]>
  63165. </doc>
  63166. </constructor>
  63167. <method name="getNamedOutputsList" return="java.util.List"
  63168. abstract="false" native="false" synchronized="false"
  63169. static="true" final="false" visibility="public"
  63170. deprecated="not deprecated">
  63171. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63172. <doc>
  63173. <![CDATA[Returns list of channel names.
  63174. @param conf job conf
  63175. @return List of channel Names]]>
  63176. </doc>
  63177. </method>
  63178. <method name="isMultiNamedOutput" return="boolean"
  63179. abstract="false" native="false" synchronized="false"
  63180. static="true" final="false" visibility="public"
  63181. deprecated="not deprecated">
  63182. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63183. <param name="namedOutput" type="java.lang.String"/>
  63184. <doc>
  63185. <![CDATA[Returns if a named output is multiple.
  63186. @param conf job conf
  63187. @param namedOutput named output
  63188. @return <code>true</code> if the name output is multi, <code>false</code>
  63189. if it is single. If the name output is not defined it returns
  63190. <code>false</code>]]>
  63191. </doc>
  63192. </method>
  63193. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  63194. abstract="false" native="false" synchronized="false"
  63195. static="true" final="false" visibility="public"
  63196. deprecated="not deprecated">
  63197. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63198. <param name="namedOutput" type="java.lang.String"/>
  63199. <doc>
  63200. <![CDATA[Returns the named output OutputFormat.
  63201. @param conf job conf
  63202. @param namedOutput named output
  63203. @return namedOutput OutputFormat]]>
  63204. </doc>
  63205. </method>
  63206. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  63207. abstract="false" native="false" synchronized="false"
  63208. static="true" final="false" visibility="public"
  63209. deprecated="not deprecated">
  63210. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63211. <param name="namedOutput" type="java.lang.String"/>
  63212. <doc>
  63213. <![CDATA[Returns the key class for a named output.
  63214. @param conf job conf
  63215. @param namedOutput named output
  63216. @return class for the named output key]]>
  63217. </doc>
  63218. </method>
  63219. <method name="getNamedOutputValueClass" return="java.lang.Class"
  63220. abstract="false" native="false" synchronized="false"
  63221. static="true" final="false" visibility="public"
  63222. deprecated="not deprecated">
  63223. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63224. <param name="namedOutput" type="java.lang.String"/>
  63225. <doc>
  63226. <![CDATA[Returns the value class for a named output.
  63227. @param conf job conf
  63228. @param namedOutput named output
  63229. @return class of named output value]]>
  63230. </doc>
  63231. </method>
  63232. <method name="addNamedOutput"
  63233. abstract="false" native="false" synchronized="false"
  63234. static="true" final="false" visibility="public"
  63235. deprecated="not deprecated">
  63236. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63237. <param name="namedOutput" type="java.lang.String"/>
  63238. <param name="outputFormatClass" type="java.lang.Class"/>
  63239. <param name="keyClass" type="java.lang.Class"/>
  63240. <param name="valueClass" type="java.lang.Class"/>
  63241. <doc>
  63242. <![CDATA[Adds a named output for the job.
  63243. <p/>
  63244. @param conf job conf to add the named output
  63245. @param namedOutput named output name, it has to be a word, letters
  63246. and numbers only, cannot be the word 'part' as
  63247. that is reserved for the
  63248. default output.
  63249. @param outputFormatClass OutputFormat class.
  63250. @param keyClass key class
  63251. @param valueClass value class]]>
  63252. </doc>
  63253. </method>
  63254. <method name="addMultiNamedOutput"
  63255. abstract="false" native="false" synchronized="false"
  63256. static="true" final="false" visibility="public"
  63257. deprecated="not deprecated">
  63258. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63259. <param name="namedOutput" type="java.lang.String"/>
  63260. <param name="outputFormatClass" type="java.lang.Class"/>
  63261. <param name="keyClass" type="java.lang.Class"/>
  63262. <param name="valueClass" type="java.lang.Class"/>
  63263. <doc>
  63264. <![CDATA[Adds a multi named output for the job.
  63265. <p/>
  63266. @param conf job conf to add the named output
  63267. @param namedOutput named output name, it has to be a word, letters
  63268. and numbers only, cannot be the word 'part' as
  63269. that is reserved for the
  63270. default output.
  63271. @param outputFormatClass OutputFormat class.
  63272. @param keyClass key class
  63273. @param valueClass value class]]>
  63274. </doc>
  63275. </method>
  63276. <method name="setCountersEnabled"
  63277. abstract="false" native="false" synchronized="false"
  63278. static="true" final="false" visibility="public"
  63279. deprecated="not deprecated">
  63280. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63281. <param name="enabled" type="boolean"/>
  63282. <doc>
  63283. <![CDATA[Enables or disables counters for the named outputs.
  63284. <p/>
  63285. By default these counters are disabled.
  63286. <p/>
  63287. MultipleOutputs supports counters, by default the are disabled.
  63288. The counters group is the {@link MultipleOutputs} class name.
  63289. </p>
  63290. The names of the counters are the same as the named outputs. For multi
  63291. named outputs the name of the counter is the concatenation of the named
  63292. output, and underscore '_' and the multiname.
  63293. @param conf job conf to enableadd the named output.
  63294. @param enabled indicates if the counters will be enabled or not.]]>
  63295. </doc>
  63296. </method>
  63297. <method name="getCountersEnabled" return="boolean"
  63298. abstract="false" native="false" synchronized="false"
  63299. static="true" final="false" visibility="public"
  63300. deprecated="not deprecated">
  63301. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63302. <doc>
  63303. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  63304. <p/>
  63305. By default these counters are disabled.
  63306. <p/>
  63307. MultipleOutputs supports counters, by default the are disabled.
  63308. The counters group is the {@link MultipleOutputs} class name.
  63309. </p>
  63310. The names of the counters are the same as the named outputs. For multi
  63311. named outputs the name of the counter is the concatenation of the named
  63312. output, and underscore '_' and the multiname.
  63313. @param conf job conf to enableadd the named output.
  63314. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  63315. </doc>
  63316. </method>
  63317. <method name="getNamedOutputs" return="java.util.Iterator"
  63318. abstract="false" native="false" synchronized="false"
  63319. static="false" final="false" visibility="public"
  63320. deprecated="not deprecated">
  63321. <doc>
  63322. <![CDATA[Returns iterator with the defined name outputs.
  63323. @return iterator with the defined named outputs]]>
  63324. </doc>
  63325. </method>
  63326. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  63327. abstract="false" native="false" synchronized="false"
  63328. static="false" final="false" visibility="public"
  63329. deprecated="not deprecated">
  63330. <param name="namedOutput" type="java.lang.String"/>
  63331. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63332. <exception name="IOException" type="java.io.IOException"/>
  63333. <doc>
  63334. <![CDATA[Gets the output collector for a named output.
  63335. <p/>
  63336. @param namedOutput the named output name
  63337. @param reporter the reporter
  63338. @return the output collector for the given named output
  63339. @throws IOException thrown if output collector could not be created]]>
  63340. </doc>
  63341. </method>
  63342. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  63343. abstract="false" native="false" synchronized="false"
  63344. static="false" final="false" visibility="public"
  63345. deprecated="not deprecated">
  63346. <param name="namedOutput" type="java.lang.String"/>
  63347. <param name="multiName" type="java.lang.String"/>
  63348. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63349. <exception name="IOException" type="java.io.IOException"/>
  63350. <doc>
  63351. <![CDATA[Gets the output collector for a multi named output.
  63352. <p/>
  63353. @param namedOutput the named output name
  63354. @param multiName the multi name part
  63355. @param reporter the reporter
  63356. @return the output collector for the given named output
  63357. @throws IOException thrown if output collector could not be created]]>
  63358. </doc>
  63359. </method>
  63360. <method name="close"
  63361. abstract="false" native="false" synchronized="false"
  63362. static="false" final="false" visibility="public"
  63363. deprecated="not deprecated">
  63364. <exception name="IOException" type="java.io.IOException"/>
  63365. <doc>
  63366. <![CDATA[Closes all the opened named outputs.
  63367. <p/>
  63368. If overriden subclasses must invoke <code>super.close()</code> at the
  63369. end of their <code>close()</code>
  63370. @throws java.io.IOException thrown if any of the MultipleOutput files
  63371. could not be closed properly.]]>
  63372. </doc>
  63373. </method>
  63374. <doc>
  63375. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  63376. than the job default output via the <code>OutputCollector</code> passed to
  63377. the <code>map()</code> and <code>reduce()</code> methods of the
  63378. <code>Mapper</code> and <code>Reducer</code> implementations.
  63379. <p/>
  63380. Each additional output, or named output, may be configured with its own
  63381. <code>OutputFormat</code>, with its own key class and with its own value
  63382. class.
  63383. <p/>
  63384. A named output can be a single file or a multi file. The later is refered as
  63385. a multi named output.
  63386. <p/>
  63387. A multi named output is an unbound set of files all sharing the same
  63388. <code>OutputFormat</code>, key class and value class configuration.
  63389. <p/>
  63390. When named outputs are used within a <code>Mapper</code> implementation,
  63391. key/values written to a name output are not part of the reduce phase, only
  63392. key/values written to the job <code>OutputCollector</code> are part of the
  63393. reduce phase.
  63394. <p/>
  63395. MultipleOutputs supports counters, by default the are disabled. The counters
  63396. group is the {@link MultipleOutputs} class name.
  63397. </p>
  63398. The names of the counters are the same as the named outputs. For multi
  63399. named outputs the name of the counter is the concatenation of the named
  63400. output, and underscore '_' and the multiname.
  63401. <p/>
  63402. Job configuration usage pattern is:
  63403. <pre>
  63404. JobConf conf = new JobConf();
  63405. conf.setInputPath(inDir);
  63406. FileOutputFormat.setOutputPath(conf, outDir);
  63407. conf.setMapperClass(MOMap.class);
  63408. conf.setReducerClass(MOReduce.class);
  63409. ...
  63410. // Defines additional single text based output 'text' for the job
  63411. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  63412. LongWritable.class, Text.class);
  63413. // Defines additional multi sequencefile based output 'sequence' for the
  63414. // job
  63415. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  63416. SequenceFileOutputFormat.class,
  63417. LongWritable.class, Text.class);
  63418. ...
  63419. JobClient jc = new JobClient();
  63420. RunningJob job = jc.submitJob(conf);
  63421. ...
  63422. </pre>
  63423. <p/>
  63424. Job configuration usage pattern is:
  63425. <pre>
  63426. public class MOReduce implements
  63427. Reducer&lt;WritableComparable, Writable&gt; {
  63428. private MultipleOutputs mos;
  63429. public void configure(JobConf conf) {
  63430. ...
  63431. mos = new MultipleOutputs(conf);
  63432. }
  63433. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  63434. OutputCollector output, Reporter reporter)
  63435. throws IOException {
  63436. ...
  63437. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  63438. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  63439. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  63440. ...
  63441. }
  63442. public void close() throws IOException {
  63443. mos.close();
  63444. ...
  63445. }
  63446. }
  63447. </pre>]]>
  63448. </doc>
  63449. </class>
  63450. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  63451. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  63452. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  63453. abstract="false"
  63454. static="false" final="false" visibility="public"
  63455. deprecated="not deprecated">
  63456. <constructor name="MultipleSequenceFileOutputFormat"
  63457. static="false" final="false" visibility="public"
  63458. deprecated="not deprecated">
  63459. </constructor>
  63460. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63461. abstract="false" native="false" synchronized="false"
  63462. static="false" final="false" visibility="protected"
  63463. deprecated="not deprecated">
  63464. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63465. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63466. <param name="name" type="java.lang.String"/>
  63467. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63468. <exception name="IOException" type="java.io.IOException"/>
  63469. </method>
  63470. <doc>
  63471. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  63472. to different output files in sequence file output format.]]>
  63473. </doc>
  63474. </class>
  63475. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  63476. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  63477. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  63478. abstract="false"
  63479. static="false" final="false" visibility="public"
  63480. deprecated="not deprecated">
  63481. <constructor name="MultipleTextOutputFormat"
  63482. static="false" final="false" visibility="public"
  63483. deprecated="not deprecated">
  63484. </constructor>
  63485. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63486. abstract="false" native="false" synchronized="false"
  63487. static="false" final="false" visibility="protected"
  63488. deprecated="not deprecated">
  63489. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63490. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63491. <param name="name" type="java.lang.String"/>
  63492. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63493. <exception name="IOException" type="java.io.IOException"/>
  63494. </method>
  63495. <doc>
  63496. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  63497. data to different output files in Text output format.]]>
  63498. </doc>
  63499. </class>
  63500. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  63501. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  63502. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  63503. abstract="false"
  63504. static="false" final="false" visibility="public"
  63505. deprecated="not deprecated">
  63506. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  63507. <constructor name="MultithreadedMapRunner"
  63508. static="false" final="false" visibility="public"
  63509. deprecated="not deprecated">
  63510. </constructor>
  63511. <method name="configure"
  63512. abstract="false" native="false" synchronized="false"
  63513. static="false" final="false" visibility="public"
  63514. deprecated="not deprecated">
  63515. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  63516. </method>
  63517. <method name="run"
  63518. abstract="false" native="false" synchronized="false"
  63519. static="false" final="false" visibility="public"
  63520. deprecated="not deprecated">
  63521. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  63522. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63523. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63524. <exception name="IOException" type="java.io.IOException"/>
  63525. </method>
  63526. <doc>
  63527. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  63528. <p>
  63529. It can be used instead of the default implementation,
  63530. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  63531. bound in order to improve throughput.
  63532. <p>
  63533. Map implementations using this MapRunnable must be thread-safe.
  63534. <p>
  63535. The Map-Reduce job has to be configured to use this MapRunnable class (using
  63536. the JobConf.setMapRunnerClass method) and
  63537. the number of thread the thread-pool can use with the
  63538. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  63539. value is 10 threads.
  63540. <p>]]>
  63541. </doc>
  63542. </class>
  63543. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  63544. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  63545. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  63546. abstract="false"
  63547. static="false" final="false" visibility="public"
  63548. deprecated="not deprecated">
  63549. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  63550. <constructor name="NLineInputFormat"
  63551. static="false" final="false" visibility="public"
  63552. deprecated="not deprecated">
  63553. </constructor>
  63554. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63555. abstract="false" native="false" synchronized="false"
  63556. static="false" final="false" visibility="public"
  63557. deprecated="not deprecated">
  63558. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  63559. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63560. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63561. <exception name="IOException" type="java.io.IOException"/>
  63562. </method>
  63563. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63564. abstract="false" native="false" synchronized="false"
  63565. static="false" final="false" visibility="public"
  63566. deprecated="not deprecated">
  63567. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63568. <param name="numSplits" type="int"/>
  63569. <exception name="IOException" type="java.io.IOException"/>
  63570. <doc>
  63571. <![CDATA[Logically splits the set of input files for the job, splits N lines
  63572. of the input as one split.
  63573. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  63574. </doc>
  63575. </method>
  63576. <method name="configure"
  63577. abstract="false" native="false" synchronized="false"
  63578. static="false" final="false" visibility="public"
  63579. deprecated="not deprecated">
  63580. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63581. </method>
  63582. <doc>
  63583. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  63584. In many "pleasantly" parallel applications, each process/mapper
  63585. processes the same input file (s), but with computations are
  63586. controlled by different parameters.(Referred to as "parameter sweeps").
  63587. One way to achieve this, is to specify a set of parameters
  63588. (one set per line) as input in a control file
  63589. (which is the input path to the map-reduce application,
  63590. where as the input dataset is specified
  63591. via a config variable in JobConf.).
  63592. The NLineInputFormat can be used in such applications, that splits
  63593. the input file such that by default, one line is fed as
  63594. a value to one map task, and key is the offset.
  63595. i.e. (k,v) is (LongWritable, Text).
  63596. The location hints will span the whole mapred cluster.]]>
  63597. </doc>
  63598. </class>
  63599. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  63600. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  63601. <class name="NullOutputFormat" extends="java.lang.Object"
  63602. abstract="false"
  63603. static="false" final="false" visibility="public"
  63604. deprecated="not deprecated">
  63605. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  63606. <constructor name="NullOutputFormat"
  63607. static="false" final="false" visibility="public"
  63608. deprecated="not deprecated">
  63609. </constructor>
  63610. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63611. abstract="false" native="false" synchronized="false"
  63612. static="false" final="false" visibility="public"
  63613. deprecated="not deprecated">
  63614. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  63615. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63616. <param name="name" type="java.lang.String"/>
  63617. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  63618. </method>
  63619. <method name="checkOutputSpecs"
  63620. abstract="false" native="false" synchronized="false"
  63621. static="false" final="false" visibility="public"
  63622. deprecated="not deprecated">
  63623. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  63624. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63625. </method>
  63626. <doc>
  63627. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  63628. </doc>
  63629. </class>
  63630. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  63631. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  63632. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63633. abstract="false"
  63634. static="false" final="false" visibility="public"
  63635. deprecated="not deprecated">
  63636. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63637. <constructor name="RegexMapper"
  63638. static="false" final="false" visibility="public"
  63639. deprecated="not deprecated">
  63640. </constructor>
  63641. <method name="configure"
  63642. abstract="false" native="false" synchronized="false"
  63643. static="false" final="false" visibility="public"
  63644. deprecated="not deprecated">
  63645. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63646. </method>
  63647. <method name="map"
  63648. abstract="false" native="false" synchronized="false"
  63649. static="false" final="false" visibility="public"
  63650. deprecated="not deprecated">
  63651. <param name="key" type="java.lang.Object"/>
  63652. <param name="value" type="org.apache.hadoop.io.Text"/>
  63653. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63654. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63655. <exception name="IOException" type="java.io.IOException"/>
  63656. </method>
  63657. <doc>
  63658. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  63659. </doc>
  63660. </class>
  63661. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  63662. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  63663. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63664. abstract="false"
  63665. static="false" final="false" visibility="public"
  63666. deprecated="not deprecated">
  63667. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63668. <constructor name="TokenCountMapper"
  63669. static="false" final="false" visibility="public"
  63670. deprecated="not deprecated">
  63671. </constructor>
  63672. <method name="map"
  63673. abstract="false" native="false" synchronized="false"
  63674. static="false" final="false" visibility="public"
  63675. deprecated="not deprecated">
  63676. <param name="key" type="java.lang.Object"/>
  63677. <param name="value" type="org.apache.hadoop.io.Text"/>
  63678. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63679. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63680. <exception name="IOException" type="java.io.IOException"/>
  63681. </method>
  63682. <doc>
  63683. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  63684. {@link StringTokenizer} to break text into tokens.]]>
  63685. </doc>
  63686. </class>
  63687. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  63688. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  63689. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  63690. abstract="false"
  63691. static="false" final="false" visibility="public"
  63692. deprecated="not deprecated">
  63693. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  63694. <constructor name="TotalOrderPartitioner"
  63695. static="false" final="false" visibility="public"
  63696. deprecated="not deprecated">
  63697. </constructor>
  63698. <method name="configure"
  63699. abstract="false" native="false" synchronized="false"
  63700. static="false" final="false" visibility="public"
  63701. deprecated="not deprecated">
  63702. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63703. <doc>
  63704. <![CDATA[Read in the partition file and build indexing data structures.
  63705. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  63706. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  63707. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  63708. will be built. Otherwise, keys will be located using a binary search of
  63709. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  63710. defined for this job. The input file must be sorted with the same
  63711. comparator and contain {@link
  63712. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  63713. </doc>
  63714. </method>
  63715. <method name="getPartition" return="int"
  63716. abstract="false" native="false" synchronized="false"
  63717. static="false" final="false" visibility="public"
  63718. deprecated="not deprecated">
  63719. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  63720. <param name="value" type="java.lang.Object"/>
  63721. <param name="numPartitions" type="int"/>
  63722. </method>
  63723. <method name="setPartitionFile"
  63724. abstract="false" native="false" synchronized="false"
  63725. static="true" final="false" visibility="public"
  63726. deprecated="not deprecated">
  63727. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63728. <param name="p" type="org.apache.hadoop.fs.Path"/>
  63729. <doc>
  63730. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  63731. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  63732. keys in the SequenceFile.]]>
  63733. </doc>
  63734. </method>
  63735. <method name="getPartitionFile" return="java.lang.String"
  63736. abstract="false" native="false" synchronized="false"
  63737. static="true" final="false" visibility="public"
  63738. deprecated="not deprecated">
  63739. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63740. <doc>
  63741. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  63742. @see #setPartitionFile(JobConf,Path)]]>
  63743. </doc>
  63744. </method>
  63745. <field name="DEFAULT_PATH" type="java.lang.String"
  63746. transient="false" volatile="false"
  63747. static="true" final="true" visibility="public"
  63748. deprecated="not deprecated">
  63749. </field>
  63750. <doc>
  63751. <![CDATA[Partitioner effecting a total order by reading split points from
  63752. an externally generated source.]]>
  63753. </doc>
  63754. </class>
  63755. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  63756. </package>
  63757. <package name="org.apache.hadoop.mapred.lib.aggregate">
  63758. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  63759. <class name="DoubleValueSum" 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.lib.aggregate.ValueAggregator"/>
  63764. <constructor name="DoubleValueSum"
  63765. static="false" final="false" visibility="public"
  63766. deprecated="not deprecated">
  63767. <doc>
  63768. <![CDATA[The default constructor]]>
  63769. </doc>
  63770. </constructor>
  63771. <method name="addNextValue"
  63772. abstract="false" native="false" synchronized="false"
  63773. static="false" final="false" visibility="public"
  63774. deprecated="not deprecated">
  63775. <param name="val" type="java.lang.Object"/>
  63776. <doc>
  63777. <![CDATA[add a value to the aggregator
  63778. @param val
  63779. an object whose string representation represents a double value.]]>
  63780. </doc>
  63781. </method>
  63782. <method name="addNextValue"
  63783. abstract="false" native="false" synchronized="false"
  63784. static="false" final="false" visibility="public"
  63785. deprecated="not deprecated">
  63786. <param name="val" type="double"/>
  63787. <doc>
  63788. <![CDATA[add a value to the aggregator
  63789. @param val
  63790. a double value.]]>
  63791. </doc>
  63792. </method>
  63793. <method name="getReport" return="java.lang.String"
  63794. abstract="false" native="false" synchronized="false"
  63795. static="false" final="false" visibility="public"
  63796. deprecated="not deprecated">
  63797. <doc>
  63798. <![CDATA[@return the string representation of the aggregated value]]>
  63799. </doc>
  63800. </method>
  63801. <method name="getSum" return="double"
  63802. abstract="false" native="false" synchronized="false"
  63803. static="false" final="false" visibility="public"
  63804. deprecated="not deprecated">
  63805. <doc>
  63806. <![CDATA[@return the aggregated value]]>
  63807. </doc>
  63808. </method>
  63809. <method name="reset"
  63810. abstract="false" native="false" synchronized="false"
  63811. static="false" final="false" visibility="public"
  63812. deprecated="not deprecated">
  63813. <doc>
  63814. <![CDATA[reset the aggregator]]>
  63815. </doc>
  63816. </method>
  63817. <method name="getCombinerOutput" return="java.util.ArrayList"
  63818. abstract="false" native="false" synchronized="false"
  63819. static="false" final="false" visibility="public"
  63820. deprecated="not deprecated">
  63821. <doc>
  63822. <![CDATA[@return return an array of one element. The element is a string
  63823. representation of the aggregated value. The return value is
  63824. expected to be used by the a combiner.]]>
  63825. </doc>
  63826. </method>
  63827. <doc>
  63828. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  63829. values.]]>
  63830. </doc>
  63831. </class>
  63832. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  63833. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  63834. <class name="LongValueMax" extends="java.lang.Object"
  63835. abstract="false"
  63836. static="false" final="false" visibility="public"
  63837. deprecated="not deprecated">
  63838. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63839. <constructor name="LongValueMax"
  63840. static="false" final="false" visibility="public"
  63841. deprecated="not deprecated">
  63842. <doc>
  63843. <![CDATA[the default constructor]]>
  63844. </doc>
  63845. </constructor>
  63846. <method name="addNextValue"
  63847. abstract="false" native="false" synchronized="false"
  63848. static="false" final="false" visibility="public"
  63849. deprecated="not deprecated">
  63850. <param name="val" type="java.lang.Object"/>
  63851. <doc>
  63852. <![CDATA[add a value to the aggregator
  63853. @param val
  63854. an object whose string representation represents a long value.]]>
  63855. </doc>
  63856. </method>
  63857. <method name="addNextValue"
  63858. abstract="false" native="false" synchronized="false"
  63859. static="false" final="false" visibility="public"
  63860. deprecated="not deprecated">
  63861. <param name="newVal" type="long"/>
  63862. <doc>
  63863. <![CDATA[add a value to the aggregator
  63864. @param newVal
  63865. a long value.]]>
  63866. </doc>
  63867. </method>
  63868. <method name="getVal" return="long"
  63869. abstract="false" native="false" synchronized="false"
  63870. static="false" final="false" visibility="public"
  63871. deprecated="not deprecated">
  63872. <doc>
  63873. <![CDATA[@return the aggregated value]]>
  63874. </doc>
  63875. </method>
  63876. <method name="getReport" return="java.lang.String"
  63877. abstract="false" native="false" synchronized="false"
  63878. static="false" final="false" visibility="public"
  63879. deprecated="not deprecated">
  63880. <doc>
  63881. <![CDATA[@return the string representation of the aggregated value]]>
  63882. </doc>
  63883. </method>
  63884. <method name="reset"
  63885. abstract="false" native="false" synchronized="false"
  63886. static="false" final="false" visibility="public"
  63887. deprecated="not deprecated">
  63888. <doc>
  63889. <![CDATA[reset the aggregator]]>
  63890. </doc>
  63891. </method>
  63892. <method name="getCombinerOutput" return="java.util.ArrayList"
  63893. abstract="false" native="false" synchronized="false"
  63894. static="false" final="false" visibility="public"
  63895. deprecated="not deprecated">
  63896. <doc>
  63897. <![CDATA[@return return an array of one element. The element is a string
  63898. representation of the aggregated value. The return value is
  63899. expected to be used by the a combiner.]]>
  63900. </doc>
  63901. </method>
  63902. <doc>
  63903. <![CDATA[This class implements a value aggregator that maintain the maximum of
  63904. a sequence of long values.]]>
  63905. </doc>
  63906. </class>
  63907. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  63908. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  63909. <class name="LongValueMin" extends="java.lang.Object"
  63910. abstract="false"
  63911. static="false" final="false" visibility="public"
  63912. deprecated="not deprecated">
  63913. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63914. <constructor name="LongValueMin"
  63915. static="false" final="false" visibility="public"
  63916. deprecated="not deprecated">
  63917. <doc>
  63918. <![CDATA[the default constructor]]>
  63919. </doc>
  63920. </constructor>
  63921. <method name="addNextValue"
  63922. abstract="false" native="false" synchronized="false"
  63923. static="false" final="false" visibility="public"
  63924. deprecated="not deprecated">
  63925. <param name="val" type="java.lang.Object"/>
  63926. <doc>
  63927. <![CDATA[add a value to the aggregator
  63928. @param val
  63929. an object whose string representation represents a long value.]]>
  63930. </doc>
  63931. </method>
  63932. <method name="addNextValue"
  63933. abstract="false" native="false" synchronized="false"
  63934. static="false" final="false" visibility="public"
  63935. deprecated="not deprecated">
  63936. <param name="newVal" type="long"/>
  63937. <doc>
  63938. <![CDATA[add a value to the aggregator
  63939. @param newVal
  63940. a long value.]]>
  63941. </doc>
  63942. </method>
  63943. <method name="getVal" return="long"
  63944. abstract="false" native="false" synchronized="false"
  63945. static="false" final="false" visibility="public"
  63946. deprecated="not deprecated">
  63947. <doc>
  63948. <![CDATA[@return the aggregated value]]>
  63949. </doc>
  63950. </method>
  63951. <method name="getReport" return="java.lang.String"
  63952. abstract="false" native="false" synchronized="false"
  63953. static="false" final="false" visibility="public"
  63954. deprecated="not deprecated">
  63955. <doc>
  63956. <![CDATA[@return the string representation of the aggregated value]]>
  63957. </doc>
  63958. </method>
  63959. <method name="reset"
  63960. abstract="false" native="false" synchronized="false"
  63961. static="false" final="false" visibility="public"
  63962. deprecated="not deprecated">
  63963. <doc>
  63964. <![CDATA[reset the aggregator]]>
  63965. </doc>
  63966. </method>
  63967. <method name="getCombinerOutput" return="java.util.ArrayList"
  63968. abstract="false" native="false" synchronized="false"
  63969. static="false" final="false" visibility="public"
  63970. deprecated="not deprecated">
  63971. <doc>
  63972. <![CDATA[@return return an array of one element. The element is a string
  63973. representation of the aggregated value. The return value is
  63974. expected to be used by the a combiner.]]>
  63975. </doc>
  63976. </method>
  63977. <doc>
  63978. <![CDATA[This class implements a value aggregator that maintain the minimum of
  63979. a sequence of long values.]]>
  63980. </doc>
  63981. </class>
  63982. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  63983. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  63984. <class name="LongValueSum" extends="java.lang.Object"
  63985. abstract="false"
  63986. static="false" final="false" visibility="public"
  63987. deprecated="not deprecated">
  63988. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63989. <constructor name="LongValueSum"
  63990. static="false" final="false" visibility="public"
  63991. deprecated="not deprecated">
  63992. <doc>
  63993. <![CDATA[the default constructor]]>
  63994. </doc>
  63995. </constructor>
  63996. <method name="addNextValue"
  63997. abstract="false" native="false" synchronized="false"
  63998. static="false" final="false" visibility="public"
  63999. deprecated="not deprecated">
  64000. <param name="val" type="java.lang.Object"/>
  64001. <doc>
  64002. <![CDATA[add a value to the aggregator
  64003. @param val
  64004. an object whose string representation represents a long value.]]>
  64005. </doc>
  64006. </method>
  64007. <method name="addNextValue"
  64008. abstract="false" native="false" synchronized="false"
  64009. static="false" final="false" visibility="public"
  64010. deprecated="not deprecated">
  64011. <param name="val" type="long"/>
  64012. <doc>
  64013. <![CDATA[add a value to the aggregator
  64014. @param val
  64015. a long value.]]>
  64016. </doc>
  64017. </method>
  64018. <method name="getSum" return="long"
  64019. abstract="false" native="false" synchronized="false"
  64020. static="false" final="false" visibility="public"
  64021. deprecated="not deprecated">
  64022. <doc>
  64023. <![CDATA[@return the aggregated value]]>
  64024. </doc>
  64025. </method>
  64026. <method name="getReport" return="java.lang.String"
  64027. abstract="false" native="false" synchronized="false"
  64028. static="false" final="false" visibility="public"
  64029. deprecated="not deprecated">
  64030. <doc>
  64031. <![CDATA[@return the string representation of the aggregated value]]>
  64032. </doc>
  64033. </method>
  64034. <method name="reset"
  64035. abstract="false" native="false" synchronized="false"
  64036. static="false" final="false" visibility="public"
  64037. deprecated="not deprecated">
  64038. <doc>
  64039. <![CDATA[reset the aggregator]]>
  64040. </doc>
  64041. </method>
  64042. <method name="getCombinerOutput" return="java.util.ArrayList"
  64043. abstract="false" native="false" synchronized="false"
  64044. static="false" final="false" visibility="public"
  64045. deprecated="not deprecated">
  64046. <doc>
  64047. <![CDATA[@return return an array of one element. The element is a string
  64048. representation of the aggregated value. The return value is
  64049. expected to be used by the a combiner.]]>
  64050. </doc>
  64051. </method>
  64052. <doc>
  64053. <![CDATA[This class implements a value aggregator that sums up
  64054. a sequence of long values.]]>
  64055. </doc>
  64056. </class>
  64057. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  64058. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  64059. <class name="StringValueMax" extends="java.lang.Object"
  64060. abstract="false"
  64061. static="false" final="false" visibility="public"
  64062. deprecated="not deprecated">
  64063. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64064. <constructor name="StringValueMax"
  64065. static="false" final="false" visibility="public"
  64066. deprecated="not deprecated">
  64067. <doc>
  64068. <![CDATA[the default constructor]]>
  64069. </doc>
  64070. </constructor>
  64071. <method name="addNextValue"
  64072. abstract="false" native="false" synchronized="false"
  64073. static="false" final="false" visibility="public"
  64074. deprecated="not deprecated">
  64075. <param name="val" type="java.lang.Object"/>
  64076. <doc>
  64077. <![CDATA[add a value to the aggregator
  64078. @param val
  64079. a string.]]>
  64080. </doc>
  64081. </method>
  64082. <method name="getVal" return="java.lang.String"
  64083. abstract="false" native="false" synchronized="false"
  64084. static="false" final="false" visibility="public"
  64085. deprecated="not deprecated">
  64086. <doc>
  64087. <![CDATA[@return the aggregated value]]>
  64088. </doc>
  64089. </method>
  64090. <method name="getReport" return="java.lang.String"
  64091. abstract="false" native="false" synchronized="false"
  64092. static="false" final="false" visibility="public"
  64093. deprecated="not deprecated">
  64094. <doc>
  64095. <![CDATA[@return the string representation of the aggregated value]]>
  64096. </doc>
  64097. </method>
  64098. <method name="reset"
  64099. abstract="false" native="false" synchronized="false"
  64100. static="false" final="false" visibility="public"
  64101. deprecated="not deprecated">
  64102. <doc>
  64103. <![CDATA[reset the aggregator]]>
  64104. </doc>
  64105. </method>
  64106. <method name="getCombinerOutput" return="java.util.ArrayList"
  64107. abstract="false" native="false" synchronized="false"
  64108. static="false" final="false" visibility="public"
  64109. deprecated="not deprecated">
  64110. <doc>
  64111. <![CDATA[@return return an array of one element. The element is a string
  64112. representation of the aggregated value. The return value is
  64113. expected to be used by the a combiner.]]>
  64114. </doc>
  64115. </method>
  64116. <doc>
  64117. <![CDATA[This class implements a value aggregator that maintain the biggest of
  64118. a sequence of strings.]]>
  64119. </doc>
  64120. </class>
  64121. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  64122. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  64123. <class name="StringValueMin" extends="java.lang.Object"
  64124. abstract="false"
  64125. static="false" final="false" visibility="public"
  64126. deprecated="not deprecated">
  64127. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64128. <constructor name="StringValueMin"
  64129. static="false" final="false" visibility="public"
  64130. deprecated="not deprecated">
  64131. <doc>
  64132. <![CDATA[the default constructor]]>
  64133. </doc>
  64134. </constructor>
  64135. <method name="addNextValue"
  64136. abstract="false" native="false" synchronized="false"
  64137. static="false" final="false" visibility="public"
  64138. deprecated="not deprecated">
  64139. <param name="val" type="java.lang.Object"/>
  64140. <doc>
  64141. <![CDATA[add a value to the aggregator
  64142. @param val
  64143. a string.]]>
  64144. </doc>
  64145. </method>
  64146. <method name="getVal" return="java.lang.String"
  64147. abstract="false" native="false" synchronized="false"
  64148. static="false" final="false" visibility="public"
  64149. deprecated="not deprecated">
  64150. <doc>
  64151. <![CDATA[@return the aggregated value]]>
  64152. </doc>
  64153. </method>
  64154. <method name="getReport" return="java.lang.String"
  64155. abstract="false" native="false" synchronized="false"
  64156. static="false" final="false" visibility="public"
  64157. deprecated="not deprecated">
  64158. <doc>
  64159. <![CDATA[@return the string representation of the aggregated value]]>
  64160. </doc>
  64161. </method>
  64162. <method name="reset"
  64163. abstract="false" native="false" synchronized="false"
  64164. static="false" final="false" visibility="public"
  64165. deprecated="not deprecated">
  64166. <doc>
  64167. <![CDATA[reset the aggregator]]>
  64168. </doc>
  64169. </method>
  64170. <method name="getCombinerOutput" return="java.util.ArrayList"
  64171. abstract="false" native="false" synchronized="false"
  64172. static="false" final="false" visibility="public"
  64173. deprecated="not deprecated">
  64174. <doc>
  64175. <![CDATA[@return return an array of one element. The element is a string
  64176. representation of the aggregated value. The return value is
  64177. expected to be used by the a combiner.]]>
  64178. </doc>
  64179. </method>
  64180. <doc>
  64181. <![CDATA[This class implements a value aggregator that maintain the smallest of
  64182. a sequence of strings.]]>
  64183. </doc>
  64184. </class>
  64185. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  64186. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  64187. <class name="UniqValueCount" extends="java.lang.Object"
  64188. abstract="false"
  64189. static="false" final="false" visibility="public"
  64190. deprecated="not deprecated">
  64191. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64192. <constructor name="UniqValueCount"
  64193. static="false" final="false" visibility="public"
  64194. deprecated="not deprecated">
  64195. <doc>
  64196. <![CDATA[the default constructor]]>
  64197. </doc>
  64198. </constructor>
  64199. <constructor name="UniqValueCount" type="long"
  64200. static="false" final="false" visibility="public"
  64201. deprecated="not deprecated">
  64202. <doc>
  64203. <![CDATA[constructor
  64204. @param maxNum the limit in the number of unique values to keep.]]>
  64205. </doc>
  64206. </constructor>
  64207. <method name="setMaxItems" return="long"
  64208. abstract="false" native="false" synchronized="false"
  64209. static="false" final="false" visibility="public"
  64210. deprecated="not deprecated">
  64211. <param name="n" type="long"/>
  64212. <doc>
  64213. <![CDATA[Set the limit on the number of unique values
  64214. @param n the desired limit on the number of unique values
  64215. @return the new limit on the number of unique values]]>
  64216. </doc>
  64217. </method>
  64218. <method name="addNextValue"
  64219. abstract="false" native="false" synchronized="false"
  64220. static="false" final="false" visibility="public"
  64221. deprecated="not deprecated">
  64222. <param name="val" type="java.lang.Object"/>
  64223. <doc>
  64224. <![CDATA[add a value to the aggregator
  64225. @param val
  64226. an object.]]>
  64227. </doc>
  64228. </method>
  64229. <method name="getReport" return="java.lang.String"
  64230. abstract="false" native="false" synchronized="false"
  64231. static="false" final="false" visibility="public"
  64232. deprecated="not deprecated">
  64233. <doc>
  64234. <![CDATA[@return return the number of unique objects aggregated]]>
  64235. </doc>
  64236. </method>
  64237. <method name="getUniqueItems" return="java.util.Set"
  64238. abstract="false" native="false" synchronized="false"
  64239. static="false" final="false" visibility="public"
  64240. deprecated="not deprecated">
  64241. <doc>
  64242. <![CDATA[@return the set of the unique objects]]>
  64243. </doc>
  64244. </method>
  64245. <method name="reset"
  64246. abstract="false" native="false" synchronized="false"
  64247. static="false" final="false" visibility="public"
  64248. deprecated="not deprecated">
  64249. <doc>
  64250. <![CDATA[reset the aggregator]]>
  64251. </doc>
  64252. </method>
  64253. <method name="getCombinerOutput" return="java.util.ArrayList"
  64254. abstract="false" native="false" synchronized="false"
  64255. static="false" final="false" visibility="public"
  64256. deprecated="not deprecated">
  64257. <doc>
  64258. <![CDATA[@return return an array of the unique objects. The return value is
  64259. expected to be used by the a combiner.]]>
  64260. </doc>
  64261. </method>
  64262. <doc>
  64263. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  64264. </doc>
  64265. </class>
  64266. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  64267. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  64268. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  64269. abstract="false"
  64270. static="false" final="false" visibility="public"
  64271. deprecated="not deprecated">
  64272. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  64273. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  64274. static="false" final="false" visibility="public"
  64275. deprecated="not deprecated">
  64276. <doc>
  64277. <![CDATA[@param className the class name of the user defined descriptor class
  64278. @param job a configure object used for decriptor configuration]]>
  64279. </doc>
  64280. </constructor>
  64281. <method name="createInstance" return="java.lang.Object"
  64282. abstract="false" native="false" synchronized="false"
  64283. static="true" final="false" visibility="public"
  64284. deprecated="not deprecated">
  64285. <param name="className" type="java.lang.String"/>
  64286. <doc>
  64287. <![CDATA[Create an instance of the given class
  64288. @param className the name of the class
  64289. @return a dynamically created instance of the given class]]>
  64290. </doc>
  64291. </method>
  64292. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64293. abstract="false" native="false" synchronized="false"
  64294. static="false" final="false" visibility="public"
  64295. deprecated="not deprecated">
  64296. <param name="key" type="java.lang.Object"/>
  64297. <param name="val" type="java.lang.Object"/>
  64298. <doc>
  64299. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  64300. by delegating the invocation to the real object.
  64301. @param key
  64302. input key
  64303. @param val
  64304. input value
  64305. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64306. aggregation type which is used to guide the way to aggregate the
  64307. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64308. </doc>
  64309. </method>
  64310. <method name="toString" return="java.lang.String"
  64311. abstract="false" native="false" synchronized="false"
  64312. static="false" final="false" visibility="public"
  64313. deprecated="not deprecated">
  64314. <doc>
  64315. <![CDATA[@return the string representation of this object.]]>
  64316. </doc>
  64317. </method>
  64318. <method name="configure"
  64319. abstract="false" native="false" synchronized="false"
  64320. static="false" final="false" visibility="public"
  64321. deprecated="not deprecated">
  64322. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64323. <doc>
  64324. <![CDATA[Do nothing.]]>
  64325. </doc>
  64326. </method>
  64327. <doc>
  64328. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  64329. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  64330. name of a user defined class that may be dynamically loaded. The other is to
  64331. deligate inviokations of generateKeyValPairs function to the created object.]]>
  64332. </doc>
  64333. </class>
  64334. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  64335. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  64336. <interface name="ValueAggregator" abstract="true"
  64337. static="false" final="false" visibility="public"
  64338. deprecated="not deprecated">
  64339. <method name="addNextValue"
  64340. abstract="false" native="false" synchronized="false"
  64341. static="false" final="false" visibility="public"
  64342. deprecated="not deprecated">
  64343. <param name="val" type="java.lang.Object"/>
  64344. <doc>
  64345. <![CDATA[add a value to the aggregator
  64346. @param val the value to be added]]>
  64347. </doc>
  64348. </method>
  64349. <method name="reset"
  64350. abstract="false" native="false" synchronized="false"
  64351. static="false" final="false" visibility="public"
  64352. deprecated="not deprecated">
  64353. <doc>
  64354. <![CDATA[reset the aggregator]]>
  64355. </doc>
  64356. </method>
  64357. <method name="getReport" return="java.lang.String"
  64358. abstract="false" native="false" synchronized="false"
  64359. static="false" final="false" visibility="public"
  64360. deprecated="not deprecated">
  64361. <doc>
  64362. <![CDATA[@return the string representation of the agregator]]>
  64363. </doc>
  64364. </method>
  64365. <method name="getCombinerOutput" return="java.util.ArrayList"
  64366. abstract="false" native="false" synchronized="false"
  64367. static="false" final="false" visibility="public"
  64368. deprecated="not deprecated">
  64369. <doc>
  64370. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  64371. </doc>
  64372. </method>
  64373. <doc>
  64374. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  64375. </doc>
  64376. </interface>
  64377. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  64378. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  64379. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  64380. abstract="false"
  64381. static="false" final="false" visibility="public"
  64382. deprecated="not deprecated">
  64383. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  64384. <constructor name="ValueAggregatorBaseDescriptor"
  64385. static="false" final="false" visibility="public"
  64386. deprecated="not deprecated">
  64387. </constructor>
  64388. <method name="generateEntry" return="java.util.Map.Entry"
  64389. abstract="false" native="false" synchronized="false"
  64390. static="true" final="false" visibility="public"
  64391. deprecated="not deprecated">
  64392. <param name="type" type="java.lang.String"/>
  64393. <param name="id" type="java.lang.String"/>
  64394. <param name="val" type="org.apache.hadoop.io.Text"/>
  64395. <doc>
  64396. <![CDATA[@param type the aggregation type
  64397. @param id the aggregation id
  64398. @param val the val associated with the id to be aggregated
  64399. @return an Entry whose key is the aggregation id prefixed with
  64400. the aggregation type.]]>
  64401. </doc>
  64402. </method>
  64403. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  64404. abstract="false" native="false" synchronized="false"
  64405. static="true" final="false" visibility="public"
  64406. deprecated="not deprecated">
  64407. <param name="type" type="java.lang.String"/>
  64408. <doc>
  64409. <![CDATA[@param type the aggregation type
  64410. @return a value aggregator of the given type.]]>
  64411. </doc>
  64412. </method>
  64413. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64414. abstract="false" native="false" synchronized="false"
  64415. static="false" final="false" visibility="public"
  64416. deprecated="not deprecated">
  64417. <param name="key" type="java.lang.Object"/>
  64418. <param name="val" type="java.lang.Object"/>
  64419. <doc>
  64420. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  64421. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  64422. its aggregation id. If the input is a file split,
  64423. the second id of the same type will be generated too, with the file name
  64424. as its aggregation id. This achieves the behavior of counting the total number
  64425. of records in the input data, and the number of records in each input file.
  64426. @param key
  64427. input key
  64428. @param val
  64429. input value
  64430. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64431. aggregation type which is used to guide the way to aggregate the
  64432. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64433. </doc>
  64434. </method>
  64435. <method name="configure"
  64436. abstract="false" native="false" synchronized="false"
  64437. static="false" final="false" visibility="public"
  64438. deprecated="not deprecated">
  64439. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64440. <doc>
  64441. <![CDATA[get the input file name.
  64442. @param job a job configuration object]]>
  64443. </doc>
  64444. </method>
  64445. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  64446. transient="false" volatile="false"
  64447. static="true" final="true" visibility="public"
  64448. deprecated="not deprecated">
  64449. </field>
  64450. <field name="LONG_VALUE_SUM" type="java.lang.String"
  64451. transient="false" volatile="false"
  64452. static="true" final="true" visibility="public"
  64453. deprecated="not deprecated">
  64454. </field>
  64455. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  64456. transient="false" volatile="false"
  64457. static="true" final="true" visibility="public"
  64458. deprecated="not deprecated">
  64459. </field>
  64460. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  64461. transient="false" volatile="false"
  64462. static="true" final="true" visibility="public"
  64463. deprecated="not deprecated">
  64464. </field>
  64465. <field name="LONG_VALUE_MAX" type="java.lang.String"
  64466. transient="false" volatile="false"
  64467. static="true" final="true" visibility="public"
  64468. deprecated="not deprecated">
  64469. </field>
  64470. <field name="LONG_VALUE_MIN" type="java.lang.String"
  64471. transient="false" volatile="false"
  64472. static="true" final="true" visibility="public"
  64473. deprecated="not deprecated">
  64474. </field>
  64475. <field name="STRING_VALUE_MAX" type="java.lang.String"
  64476. transient="false" volatile="false"
  64477. static="true" final="true" visibility="public"
  64478. deprecated="not deprecated">
  64479. </field>
  64480. <field name="STRING_VALUE_MIN" type="java.lang.String"
  64481. transient="false" volatile="false"
  64482. static="true" final="true" visibility="public"
  64483. deprecated="not deprecated">
  64484. </field>
  64485. <field name="inputFile" type="java.lang.String"
  64486. transient="false" volatile="false"
  64487. static="false" final="false" visibility="public"
  64488. deprecated="not deprecated">
  64489. </field>
  64490. <doc>
  64491. <![CDATA[This class implements the common functionalities of
  64492. the subclasses of ValueAggregatorDescriptor class.]]>
  64493. </doc>
  64494. </class>
  64495. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  64496. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  64497. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64498. abstract="false"
  64499. static="false" final="false" visibility="public"
  64500. deprecated="not deprecated">
  64501. <constructor name="ValueAggregatorCombiner"
  64502. static="false" final="false" visibility="public"
  64503. deprecated="not deprecated">
  64504. </constructor>
  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[Combiner does not need to configure.]]>
  64512. </doc>
  64513. </method>
  64514. <method name="reduce"
  64515. abstract="false" native="false" synchronized="false"
  64516. static="false" final="false" visibility="public"
  64517. deprecated="not deprecated">
  64518. <param name="key" type="org.apache.hadoop.io.Text"/>
  64519. <param name="values" type="java.util.Iterator"/>
  64520. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64521. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64522. <exception name="IOException" type="java.io.IOException"/>
  64523. <doc>
  64524. <![CDATA[Combines values for a given key.
  64525. @param key the key is expected to be a Text object, whose prefix indicates
  64526. the type of aggregation to aggregate the values.
  64527. @param values the values to combine
  64528. @param output to collect combined values]]>
  64529. </doc>
  64530. </method>
  64531. <method name="close"
  64532. abstract="false" native="false" synchronized="false"
  64533. static="false" final="false" visibility="public"
  64534. deprecated="not deprecated">
  64535. <exception name="IOException" type="java.io.IOException"/>
  64536. <doc>
  64537. <![CDATA[Do nothing.]]>
  64538. </doc>
  64539. </method>
  64540. <method name="map"
  64541. abstract="false" native="false" synchronized="false"
  64542. static="false" final="false" visibility="public"
  64543. deprecated="not deprecated">
  64544. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  64545. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  64546. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64547. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64548. <exception name="IOException" type="java.io.IOException"/>
  64549. <doc>
  64550. <![CDATA[Do nothing. Should not be called.]]>
  64551. </doc>
  64552. </method>
  64553. <doc>
  64554. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  64555. </doc>
  64556. </class>
  64557. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  64558. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  64559. <interface name="ValueAggregatorDescriptor" abstract="true"
  64560. static="false" final="false" visibility="public"
  64561. deprecated="not deprecated">
  64562. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64563. abstract="false" native="false" synchronized="false"
  64564. static="false" final="false" visibility="public"
  64565. deprecated="not deprecated">
  64566. <param name="key" type="java.lang.Object"/>
  64567. <param name="val" type="java.lang.Object"/>
  64568. <doc>
  64569. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  64570. This function is usually called by the mapper of an Aggregate based job.
  64571. @param key
  64572. input key
  64573. @param val
  64574. input value
  64575. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64576. aggregation type which is used to guide the way to aggregate the
  64577. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64578. </doc>
  64579. </method>
  64580. <method name="configure"
  64581. abstract="false" native="false" synchronized="false"
  64582. static="false" final="false" visibility="public"
  64583. deprecated="not deprecated">
  64584. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64585. <doc>
  64586. <![CDATA[Configure the object
  64587. @param job
  64588. a JobConf object that may contain the information that can be used
  64589. to configure the object.]]>
  64590. </doc>
  64591. </method>
  64592. <field name="TYPE_SEPARATOR" type="java.lang.String"
  64593. transient="false" volatile="false"
  64594. static="true" final="true" visibility="public"
  64595. deprecated="not deprecated">
  64596. </field>
  64597. <field name="ONE" type="org.apache.hadoop.io.Text"
  64598. transient="false" volatile="false"
  64599. static="true" final="true" visibility="public"
  64600. deprecated="not deprecated">
  64601. </field>
  64602. <doc>
  64603. <![CDATA[This interface defines the contract a value aggregator descriptor must
  64604. support. Such a descriptor can be configured with a JobConf object. Its main
  64605. function is to generate a list of aggregation-id/value pairs. An aggregation
  64606. id encodes an aggregation type which is used to guide the way to aggregate
  64607. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  64608. an Aggregate based map/reduce job may create one or more of
  64609. ValueAggregatorDescriptor objects at configuration time. For each input
  64610. key/value pair, the mapper will use those objects to create aggregation
  64611. id/value pairs.]]>
  64612. </doc>
  64613. </interface>
  64614. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  64615. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  64616. <class name="ValueAggregatorJob" extends="java.lang.Object"
  64617. abstract="false"
  64618. static="false" final="false" visibility="public"
  64619. deprecated="not deprecated">
  64620. <constructor name="ValueAggregatorJob"
  64621. static="false" final="false" visibility="public"
  64622. deprecated="not deprecated">
  64623. </constructor>
  64624. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  64625. abstract="false" native="false" synchronized="false"
  64626. static="true" final="false" visibility="public"
  64627. deprecated="not deprecated">
  64628. <param name="args" type="java.lang.String[]"/>
  64629. <param name="descriptors" type="java.lang.Class[]"/>
  64630. <exception name="IOException" type="java.io.IOException"/>
  64631. </method>
  64632. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  64633. abstract="false" native="false" synchronized="false"
  64634. static="true" final="false" visibility="public"
  64635. deprecated="not deprecated">
  64636. <param name="args" type="java.lang.String[]"/>
  64637. <exception name="IOException" type="java.io.IOException"/>
  64638. </method>
  64639. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  64640. abstract="false" native="false" synchronized="false"
  64641. static="true" final="false" visibility="public"
  64642. deprecated="not deprecated">
  64643. <param name="args" type="java.lang.String[]"/>
  64644. <exception name="IOException" type="java.io.IOException"/>
  64645. <doc>
  64646. <![CDATA[Create an Aggregate based map/reduce job.
  64647. @param args the arguments used for job creation. Generic hadoop
  64648. arguments are accepted.
  64649. @return a JobConf object ready for submission.
  64650. @throws IOException
  64651. @see GenericOptionsParser]]>
  64652. </doc>
  64653. </method>
  64654. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  64655. abstract="false" native="false" synchronized="false"
  64656. static="true" final="false" visibility="public"
  64657. deprecated="not deprecated">
  64658. <param name="args" type="java.lang.String[]"/>
  64659. <param name="descriptors" type="java.lang.Class[]"/>
  64660. <exception name="IOException" type="java.io.IOException"/>
  64661. </method>
  64662. <method name="setAggregatorDescriptors"
  64663. abstract="false" native="false" synchronized="false"
  64664. static="true" final="false" visibility="public"
  64665. deprecated="not deprecated">
  64666. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64667. <param name="descriptors" type="java.lang.Class[]"/>
  64668. </method>
  64669. <method name="main"
  64670. abstract="false" native="false" synchronized="false"
  64671. static="true" final="false" visibility="public"
  64672. deprecated="not deprecated">
  64673. <param name="args" type="java.lang.String[]"/>
  64674. <exception name="IOException" type="java.io.IOException"/>
  64675. <doc>
  64676. <![CDATA[create and run an Aggregate based map/reduce job.
  64677. @param args the arguments used for job creation
  64678. @throws IOException]]>
  64679. </doc>
  64680. </method>
  64681. <doc>
  64682. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  64683. framework. The Aggregate is a specialization of map/reduce framework,
  64684. specilizing for performing various simple aggregations.
  64685. Generally speaking, in order to implement an application using Map/Reduce
  64686. model, the developer is to implement Map and Reduce functions (and possibly
  64687. combine function). However, a lot of applications related to counting and
  64688. statistics computing have very similar characteristics. Aggregate abstracts
  64689. out the general patterns of these functions and implementing those patterns.
  64690. In particular, the package provides generic mapper/redducer/combiner classes,
  64691. and a set of built-in value aggregators, and a generic utility class that
  64692. helps user create map/reduce jobs using the generic class. The built-in
  64693. aggregators include:
  64694. sum over numeric values count the number of distinct values compute the
  64695. histogram of values compute the minimum, maximum, media,average, standard
  64696. deviation of numeric values
  64697. The developer using Aggregate will need only to provide a plugin class
  64698. conforming to the following interface:
  64699. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  64700. generateKeyValPairs(Object key, Object value); public void
  64701. configure(JobConfjob); }
  64702. The package also provides a base class, ValueAggregatorBaseDescriptor,
  64703. implementing the above interface. The user can extend the base class and
  64704. implement generateKeyValPairs accordingly.
  64705. The primary work of generateKeyValPairs is to emit one or more key/value
  64706. pairs based on the input key/value pair. The key in an output key/value pair
  64707. encode two pieces of information: aggregation type and aggregation id. The
  64708. value will be aggregated onto the aggregation id according the aggregation
  64709. type.
  64710. This class offers a function to generate a map/reduce job using Aggregate
  64711. framework. The function takes the following parameters: input directory spec
  64712. input format (text or sequence file) output directory a file specifying the
  64713. user plugin class]]>
  64714. </doc>
  64715. </class>
  64716. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  64717. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  64718. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  64719. abstract="true"
  64720. static="false" final="false" visibility="public"
  64721. deprecated="not deprecated">
  64722. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64723. <implements name="org.apache.hadoop.mapred.Reducer"/>
  64724. <constructor name="ValueAggregatorJobBase"
  64725. static="false" final="false" visibility="public"
  64726. deprecated="not deprecated">
  64727. </constructor>
  64728. <method name="configure"
  64729. abstract="false" native="false" synchronized="false"
  64730. static="false" final="false" visibility="public"
  64731. deprecated="not deprecated">
  64732. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64733. </method>
  64734. <method name="logSpec"
  64735. abstract="false" native="false" synchronized="false"
  64736. static="false" final="false" visibility="protected"
  64737. deprecated="not deprecated">
  64738. </method>
  64739. <method name="close"
  64740. abstract="false" native="false" synchronized="false"
  64741. static="false" final="false" visibility="public"
  64742. deprecated="not deprecated">
  64743. <exception name="IOException" type="java.io.IOException"/>
  64744. </method>
  64745. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  64746. transient="false" volatile="false"
  64747. static="false" final="false" visibility="protected"
  64748. deprecated="not deprecated">
  64749. </field>
  64750. <doc>
  64751. <![CDATA[This abstract class implements some common functionalities of the
  64752. the generic mapper, reducer and combiner classes of Aggregate.]]>
  64753. </doc>
  64754. </class>
  64755. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  64756. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  64757. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64758. abstract="false"
  64759. static="false" final="false" visibility="public"
  64760. deprecated="not deprecated">
  64761. <constructor name="ValueAggregatorMapper"
  64762. static="false" final="false" visibility="public"
  64763. deprecated="not deprecated">
  64764. </constructor>
  64765. <method name="map"
  64766. abstract="false" native="false" synchronized="false"
  64767. static="false" final="false" visibility="public"
  64768. deprecated="not deprecated">
  64769. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  64770. <param name="value" type="org.apache.hadoop.io.Writable"/>
  64771. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64772. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64773. <exception name="IOException" type="java.io.IOException"/>
  64774. <doc>
  64775. <![CDATA[the map function. It iterates through the value aggregator descriptor
  64776. list to generate aggregation id/value pairs and emit them.]]>
  64777. </doc>
  64778. </method>
  64779. <method name="reduce"
  64780. abstract="false" native="false" synchronized="false"
  64781. static="false" final="false" visibility="public"
  64782. deprecated="not deprecated">
  64783. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  64784. <param name="arg1" type="java.util.Iterator"/>
  64785. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64786. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64787. <exception name="IOException" type="java.io.IOException"/>
  64788. <doc>
  64789. <![CDATA[Do nothing. Should not be called.]]>
  64790. </doc>
  64791. </method>
  64792. <doc>
  64793. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  64794. </doc>
  64795. </class>
  64796. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  64797. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  64798. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64799. abstract="false"
  64800. static="false" final="false" visibility="public"
  64801. deprecated="not deprecated">
  64802. <constructor name="ValueAggregatorReducer"
  64803. static="false" final="false" visibility="public"
  64804. deprecated="not deprecated">
  64805. </constructor>
  64806. <method name="reduce"
  64807. abstract="false" native="false" synchronized="false"
  64808. static="false" final="false" visibility="public"
  64809. deprecated="not deprecated">
  64810. <param name="key" type="org.apache.hadoop.io.Text"/>
  64811. <param name="values" type="java.util.Iterator"/>
  64812. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64813. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64814. <exception name="IOException" type="java.io.IOException"/>
  64815. <doc>
  64816. <![CDATA[@param key
  64817. the key is expected to be a Text object, whose prefix indicates
  64818. the type of aggregation to aggregate the values. In effect, data
  64819. driven computing is achieved. It is assumed that each aggregator's
  64820. getReport method emits appropriate output for the aggregator. This
  64821. may be further customiized.
  64822. @value the values to be aggregated]]>
  64823. </doc>
  64824. </method>
  64825. <method name="map"
  64826. abstract="false" native="false" synchronized="false"
  64827. static="false" final="false" visibility="public"
  64828. deprecated="not deprecated">
  64829. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  64830. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  64831. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64832. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64833. <exception name="IOException" type="java.io.IOException"/>
  64834. <doc>
  64835. <![CDATA[Do nothing. Should not be called]]>
  64836. </doc>
  64837. </method>
  64838. <doc>
  64839. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  64840. </doc>
  64841. </class>
  64842. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  64843. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  64844. <class name="ValueHistogram" extends="java.lang.Object"
  64845. abstract="false"
  64846. static="false" final="false" visibility="public"
  64847. deprecated="not deprecated">
  64848. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64849. <constructor name="ValueHistogram"
  64850. static="false" final="false" visibility="public"
  64851. deprecated="not deprecated">
  64852. </constructor>
  64853. <method name="addNextValue"
  64854. abstract="false" native="false" synchronized="false"
  64855. static="false" final="false" visibility="public"
  64856. deprecated="not deprecated">
  64857. <param name="val" type="java.lang.Object"/>
  64858. <doc>
  64859. <![CDATA[add the given val to the aggregator.
  64860. @param val the value to be added. It is expected to be a string
  64861. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  64862. </doc>
  64863. </method>
  64864. <method name="getReport" return="java.lang.String"
  64865. abstract="false" native="false" synchronized="false"
  64866. static="false" final="false" visibility="public"
  64867. deprecated="not deprecated">
  64868. <doc>
  64869. <![CDATA[@return the string representation of this aggregator.
  64870. It includes the following basic statistics of the histogram:
  64871. the number of unique values
  64872. the minimum value
  64873. the media value
  64874. the maximum value
  64875. the average value
  64876. the standard deviation]]>
  64877. </doc>
  64878. </method>
  64879. <method name="getReportDetails" return="java.lang.String"
  64880. abstract="false" native="false" synchronized="false"
  64881. static="false" final="false" visibility="public"
  64882. deprecated="not deprecated">
  64883. <doc>
  64884. <![CDATA[@return a string representation of the list of value/frequence pairs of
  64885. the histogram]]>
  64886. </doc>
  64887. </method>
  64888. <method name="getCombinerOutput" return="java.util.ArrayList"
  64889. abstract="false" native="false" synchronized="false"
  64890. static="false" final="false" visibility="public"
  64891. deprecated="not deprecated">
  64892. <doc>
  64893. <![CDATA[@return a list value/frequence pairs.
  64894. The return value is expected to be used by the reducer.]]>
  64895. </doc>
  64896. </method>
  64897. <method name="getReportItems" return="java.util.TreeMap"
  64898. abstract="false" native="false" synchronized="false"
  64899. static="false" final="false" visibility="public"
  64900. deprecated="not deprecated">
  64901. <doc>
  64902. <![CDATA[@return a TreeMap representation of the histogram]]>
  64903. </doc>
  64904. </method>
  64905. <method name="reset"
  64906. abstract="false" native="false" synchronized="false"
  64907. static="false" final="false" visibility="public"
  64908. deprecated="not deprecated">
  64909. <doc>
  64910. <![CDATA[reset the aggregator]]>
  64911. </doc>
  64912. </method>
  64913. <doc>
  64914. <![CDATA[This class implements a value aggregator that computes the
  64915. histogram of a sequence of strings.]]>
  64916. </doc>
  64917. </class>
  64918. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  64919. </package>
  64920. <package name="org.apache.hadoop.mapred.lib.db">
  64921. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  64922. <class name="DBConfiguration" extends="java.lang.Object"
  64923. abstract="false"
  64924. static="false" final="false" visibility="public"
  64925. deprecated="not deprecated">
  64926. <method name="configureDB"
  64927. abstract="false" native="false" synchronized="false"
  64928. static="true" final="false" visibility="public"
  64929. deprecated="not deprecated">
  64930. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64931. <param name="driverClass" type="java.lang.String"/>
  64932. <param name="dbUrl" type="java.lang.String"/>
  64933. <param name="userName" type="java.lang.String"/>
  64934. <param name="passwd" type="java.lang.String"/>
  64935. <doc>
  64936. <![CDATA[Sets the DB access related fields in the JobConf.
  64937. @param job the job
  64938. @param driverClass JDBC Driver class name
  64939. @param dbUrl JDBC DB access URL.
  64940. @param userName DB access username
  64941. @param passwd DB access passwd]]>
  64942. </doc>
  64943. </method>
  64944. <method name="configureDB"
  64945. abstract="false" native="false" synchronized="false"
  64946. static="true" final="false" visibility="public"
  64947. deprecated="not deprecated">
  64948. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64949. <param name="driverClass" type="java.lang.String"/>
  64950. <param name="dbUrl" type="java.lang.String"/>
  64951. <doc>
  64952. <![CDATA[Sets the DB access related fields in the JobConf.
  64953. @param job the job
  64954. @param driverClass JDBC Driver class name
  64955. @param dbUrl JDBC DB access URL.]]>
  64956. </doc>
  64957. </method>
  64958. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  64959. transient="false" volatile="false"
  64960. static="true" final="true" visibility="public"
  64961. deprecated="not deprecated">
  64962. <doc>
  64963. <![CDATA[The JDBC Driver class name]]>
  64964. </doc>
  64965. </field>
  64966. <field name="URL_PROPERTY" type="java.lang.String"
  64967. transient="false" volatile="false"
  64968. static="true" final="true" visibility="public"
  64969. deprecated="not deprecated">
  64970. <doc>
  64971. <![CDATA[JDBC Database access URL]]>
  64972. </doc>
  64973. </field>
  64974. <field name="USERNAME_PROPERTY" type="java.lang.String"
  64975. transient="false" volatile="false"
  64976. static="true" final="true" visibility="public"
  64977. deprecated="not deprecated">
  64978. <doc>
  64979. <![CDATA[User name to access the database]]>
  64980. </doc>
  64981. </field>
  64982. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  64983. transient="false" volatile="false"
  64984. static="true" final="true" visibility="public"
  64985. deprecated="not deprecated">
  64986. <doc>
  64987. <![CDATA[Password to access the database]]>
  64988. </doc>
  64989. </field>
  64990. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  64991. transient="false" volatile="false"
  64992. static="true" final="true" visibility="public"
  64993. deprecated="not deprecated">
  64994. <doc>
  64995. <![CDATA[Input table name]]>
  64996. </doc>
  64997. </field>
  64998. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  64999. transient="false" volatile="false"
  65000. static="true" final="true" visibility="public"
  65001. deprecated="not deprecated">
  65002. <doc>
  65003. <![CDATA[Field names in the Input table]]>
  65004. </doc>
  65005. </field>
  65006. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  65007. transient="false" volatile="false"
  65008. static="true" final="true" visibility="public"
  65009. deprecated="not deprecated">
  65010. <doc>
  65011. <![CDATA[WHERE clause in the input SELECT statement]]>
  65012. </doc>
  65013. </field>
  65014. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  65015. transient="false" volatile="false"
  65016. static="true" final="true" visibility="public"
  65017. deprecated="not deprecated">
  65018. <doc>
  65019. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  65020. </doc>
  65021. </field>
  65022. <field name="INPUT_QUERY" type="java.lang.String"
  65023. transient="false" volatile="false"
  65024. static="true" final="true" visibility="public"
  65025. deprecated="not deprecated">
  65026. <doc>
  65027. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  65028. </doc>
  65029. </field>
  65030. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  65031. transient="false" volatile="false"
  65032. static="true" final="true" visibility="public"
  65033. deprecated="not deprecated">
  65034. <doc>
  65035. <![CDATA[Input query to get the count of records]]>
  65036. </doc>
  65037. </field>
  65038. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  65039. transient="false" volatile="false"
  65040. static="true" final="true" visibility="public"
  65041. deprecated="not deprecated">
  65042. <doc>
  65043. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  65044. </doc>
  65045. </field>
  65046. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  65047. transient="false" volatile="false"
  65048. static="true" final="true" visibility="public"
  65049. deprecated="not deprecated">
  65050. <doc>
  65051. <![CDATA[Output table name]]>
  65052. </doc>
  65053. </field>
  65054. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  65055. transient="false" volatile="false"
  65056. static="true" final="true" visibility="public"
  65057. deprecated="not deprecated">
  65058. <doc>
  65059. <![CDATA[Field names in the Output table]]>
  65060. </doc>
  65061. </field>
  65062. <doc>
  65063. <![CDATA[A container for configuration property names for jobs with DB input/output.
  65064. <br>
  65065. The job can be configured using the static methods in this class,
  65066. {@link DBInputFormat}, and {@link DBOutputFormat}.
  65067. <p>
  65068. Alternatively, the properties can be set in the configuration with proper
  65069. values.
  65070. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  65071. @see DBInputFormat#setInput(JobConf, Class, String, String)
  65072. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  65073. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  65074. </doc>
  65075. </class>
  65076. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  65077. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  65078. <class name="DBInputFormat" extends="java.lang.Object"
  65079. abstract="false"
  65080. static="false" final="false" visibility="public"
  65081. deprecated="not deprecated">
  65082. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  65083. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  65084. <constructor name="DBInputFormat"
  65085. static="false" final="false" visibility="public"
  65086. deprecated="not deprecated">
  65087. </constructor>
  65088. <method name="configure"
  65089. abstract="false" native="false" synchronized="false"
  65090. static="false" final="false" visibility="public"
  65091. deprecated="not deprecated">
  65092. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65093. <doc>
  65094. <![CDATA[{@inheritDoc}]]>
  65095. </doc>
  65096. </method>
  65097. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  65098. abstract="false" native="false" synchronized="false"
  65099. static="false" final="false" visibility="public"
  65100. deprecated="not deprecated">
  65101. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  65102. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65103. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65104. <exception name="IOException" type="java.io.IOException"/>
  65105. <doc>
  65106. <![CDATA[{@inheritDoc}]]>
  65107. </doc>
  65108. </method>
  65109. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  65110. abstract="false" native="false" synchronized="false"
  65111. static="false" final="false" visibility="public"
  65112. deprecated="not deprecated">
  65113. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65114. <param name="chunks" type="int"/>
  65115. <exception name="IOException" type="java.io.IOException"/>
  65116. <doc>
  65117. <![CDATA[{@inheritDoc}]]>
  65118. </doc>
  65119. </method>
  65120. <method name="getCountQuery" return="java.lang.String"
  65121. abstract="false" native="false" synchronized="false"
  65122. static="false" final="false" visibility="protected"
  65123. deprecated="not deprecated">
  65124. <doc>
  65125. <![CDATA[Returns the query for getting the total number of rows,
  65126. subclasses can override this for custom behaviour.]]>
  65127. </doc>
  65128. </method>
  65129. <method name="setInput"
  65130. abstract="false" native="false" synchronized="false"
  65131. static="true" final="false" visibility="public"
  65132. deprecated="not deprecated">
  65133. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65134. <param name="inputClass" type="java.lang.Class"/>
  65135. <param name="tableName" type="java.lang.String"/>
  65136. <param name="conditions" type="java.lang.String"/>
  65137. <param name="orderBy" type="java.lang.String"/>
  65138. <param name="fieldNames" type="java.lang.String[]"/>
  65139. <doc>
  65140. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  65141. @param job The job
  65142. @param inputClass the class object implementing DBWritable, which is the
  65143. Java object holding tuple fields.
  65144. @param tableName The table to read data from
  65145. @param conditions The condition which to select data with, eg. '(updated >
  65146. 20070101 AND length > 0)'
  65147. @param orderBy the fieldNames in the orderBy clause.
  65148. @param fieldNames The field names in the table
  65149. @see #setInput(JobConf, Class, String, String)]]>
  65150. </doc>
  65151. </method>
  65152. <method name="setInput"
  65153. abstract="false" native="false" synchronized="false"
  65154. static="true" final="false" visibility="public"
  65155. deprecated="not deprecated">
  65156. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65157. <param name="inputClass" type="java.lang.Class"/>
  65158. <param name="inputQuery" type="java.lang.String"/>
  65159. <param name="inputCountQuery" type="java.lang.String"/>
  65160. <doc>
  65161. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  65162. @param job The job
  65163. @param inputClass the class object implementing DBWritable, which is the
  65164. Java object holding tuple fields.
  65165. @param inputQuery the input query to select fields. Example :
  65166. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  65167. @param inputCountQuery the input query that returns the number of records in
  65168. the table.
  65169. Example : "SELECT COUNT(f1) FROM Mytable"
  65170. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  65171. </doc>
  65172. </method>
  65173. <doc>
  65174. <![CDATA[A InputFormat that reads input data from an SQL table.
  65175. <p>
  65176. DBInputFormat emits LongWritables containing the record number as
  65177. key and DBWritables as value.
  65178. The SQL query, and input class can be using one of the two
  65179. setInput methods.]]>
  65180. </doc>
  65181. </class>
  65182. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  65183. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  65184. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  65185. abstract="false"
  65186. static="true" final="false" visibility="protected"
  65187. deprecated="not deprecated">
  65188. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  65189. <constructor name="DBInputFormat.DBInputSplit"
  65190. static="false" final="false" visibility="public"
  65191. deprecated="not deprecated">
  65192. <doc>
  65193. <![CDATA[Default Constructor]]>
  65194. </doc>
  65195. </constructor>
  65196. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  65197. static="false" final="false" visibility="public"
  65198. deprecated="not deprecated">
  65199. <doc>
  65200. <![CDATA[Convenience Constructor
  65201. @param start the index of the first row to select
  65202. @param end the index of the last row to select]]>
  65203. </doc>
  65204. </constructor>
  65205. <method name="getLocations" return="java.lang.String[]"
  65206. abstract="false" native="false" synchronized="false"
  65207. static="false" final="false" visibility="public"
  65208. deprecated="not deprecated">
  65209. <exception name="IOException" type="java.io.IOException"/>
  65210. <doc>
  65211. <![CDATA[{@inheritDoc}]]>
  65212. </doc>
  65213. </method>
  65214. <method name="getStart" return="long"
  65215. abstract="false" native="false" synchronized="false"
  65216. static="false" final="false" visibility="public"
  65217. deprecated="not deprecated">
  65218. <doc>
  65219. <![CDATA[@return The index of the first row to select]]>
  65220. </doc>
  65221. </method>
  65222. <method name="getEnd" return="long"
  65223. abstract="false" native="false" synchronized="false"
  65224. static="false" final="false" visibility="public"
  65225. deprecated="not deprecated">
  65226. <doc>
  65227. <![CDATA[@return The index of the last row to select]]>
  65228. </doc>
  65229. </method>
  65230. <method name="getLength" return="long"
  65231. abstract="false" native="false" synchronized="false"
  65232. static="false" final="false" visibility="public"
  65233. deprecated="not deprecated">
  65234. <exception name="IOException" type="java.io.IOException"/>
  65235. <doc>
  65236. <![CDATA[@return The total row count in this split]]>
  65237. </doc>
  65238. </method>
  65239. <method name="readFields"
  65240. abstract="false" native="false" synchronized="false"
  65241. static="false" final="false" visibility="public"
  65242. deprecated="not deprecated">
  65243. <param name="input" type="java.io.DataInput"/>
  65244. <exception name="IOException" type="java.io.IOException"/>
  65245. <doc>
  65246. <![CDATA[{@inheritDoc}]]>
  65247. </doc>
  65248. </method>
  65249. <method name="write"
  65250. abstract="false" native="false" synchronized="false"
  65251. static="false" final="false" visibility="public"
  65252. deprecated="not deprecated">
  65253. <param name="output" type="java.io.DataOutput"/>
  65254. <exception name="IOException" type="java.io.IOException"/>
  65255. <doc>
  65256. <![CDATA[{@inheritDoc}]]>
  65257. </doc>
  65258. </method>
  65259. <doc>
  65260. <![CDATA[A InputSplit that spans a set of rows]]>
  65261. </doc>
  65262. </class>
  65263. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  65264. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  65265. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  65266. abstract="false"
  65267. static="false" final="false" visibility="protected"
  65268. deprecated="not deprecated">
  65269. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  65270. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  65271. static="false" final="false" visibility="protected"
  65272. deprecated="not deprecated">
  65273. <exception name="SQLException" type="java.sql.SQLException"/>
  65274. <doc>
  65275. <![CDATA[@param split The InputSplit to read data for
  65276. @throws SQLException]]>
  65277. </doc>
  65278. </constructor>
  65279. <method name="getSelectQuery" return="java.lang.String"
  65280. abstract="false" native="false" synchronized="false"
  65281. static="false" final="false" visibility="protected"
  65282. deprecated="not deprecated">
  65283. <doc>
  65284. <![CDATA[Returns the query for selecting the records,
  65285. subclasses can override this for custom behaviour.]]>
  65286. </doc>
  65287. </method>
  65288. <method name="close"
  65289. abstract="false" native="false" synchronized="false"
  65290. static="false" final="false" visibility="public"
  65291. deprecated="not deprecated">
  65292. <exception name="IOException" type="java.io.IOException"/>
  65293. <doc>
  65294. <![CDATA[{@inheritDoc}]]>
  65295. </doc>
  65296. </method>
  65297. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  65298. abstract="false" native="false" synchronized="false"
  65299. static="false" final="false" visibility="public"
  65300. deprecated="not deprecated">
  65301. <doc>
  65302. <![CDATA[{@inheritDoc}]]>
  65303. </doc>
  65304. </method>
  65305. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  65306. abstract="false" native="false" synchronized="false"
  65307. static="false" final="false" visibility="public"
  65308. deprecated="not deprecated">
  65309. <doc>
  65310. <![CDATA[{@inheritDoc}]]>
  65311. </doc>
  65312. </method>
  65313. <method name="getPos" return="long"
  65314. abstract="false" native="false" synchronized="false"
  65315. static="false" final="false" visibility="public"
  65316. deprecated="not deprecated">
  65317. <exception name="IOException" type="java.io.IOException"/>
  65318. <doc>
  65319. <![CDATA[{@inheritDoc}]]>
  65320. </doc>
  65321. </method>
  65322. <method name="getProgress" return="float"
  65323. abstract="false" native="false" synchronized="false"
  65324. static="false" final="false" visibility="public"
  65325. deprecated="not deprecated">
  65326. <exception name="IOException" type="java.io.IOException"/>
  65327. <doc>
  65328. <![CDATA[{@inheritDoc}]]>
  65329. </doc>
  65330. </method>
  65331. <method name="next" return="boolean"
  65332. abstract="false" native="false" synchronized="false"
  65333. static="false" final="false" visibility="public"
  65334. deprecated="not deprecated">
  65335. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  65336. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65337. <exception name="IOException" type="java.io.IOException"/>
  65338. <doc>
  65339. <![CDATA[{@inheritDoc}]]>
  65340. </doc>
  65341. </method>
  65342. <doc>
  65343. <![CDATA[A RecordReader that reads records from a SQL table.
  65344. Emits LongWritables containing the record number as
  65345. key and DBWritables as value.]]>
  65346. </doc>
  65347. </class>
  65348. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  65349. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  65350. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  65351. abstract="false"
  65352. static="true" final="false" visibility="public"
  65353. deprecated="not deprecated">
  65354. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65355. <implements name="org.apache.hadoop.io.Writable"/>
  65356. <constructor name="DBInputFormat.NullDBWritable"
  65357. static="false" final="false" visibility="public"
  65358. deprecated="not deprecated">
  65359. </constructor>
  65360. <method name="readFields"
  65361. abstract="false" native="false" synchronized="false"
  65362. static="false" final="false" visibility="public"
  65363. deprecated="not deprecated">
  65364. <param name="in" type="java.io.DataInput"/>
  65365. <exception name="IOException" type="java.io.IOException"/>
  65366. </method>
  65367. <method name="readFields"
  65368. abstract="false" native="false" synchronized="false"
  65369. static="false" final="false" visibility="public"
  65370. deprecated="not deprecated">
  65371. <param name="arg0" type="java.sql.ResultSet"/>
  65372. <exception name="SQLException" type="java.sql.SQLException"/>
  65373. </method>
  65374. <method name="write"
  65375. abstract="false" native="false" synchronized="false"
  65376. static="false" final="false" visibility="public"
  65377. deprecated="not deprecated">
  65378. <param name="out" type="java.io.DataOutput"/>
  65379. <exception name="IOException" type="java.io.IOException"/>
  65380. </method>
  65381. <method name="write"
  65382. abstract="false" native="false" synchronized="false"
  65383. static="false" final="false" visibility="public"
  65384. deprecated="not deprecated">
  65385. <param name="arg0" type="java.sql.PreparedStatement"/>
  65386. <exception name="SQLException" type="java.sql.SQLException"/>
  65387. </method>
  65388. <doc>
  65389. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  65390. </doc>
  65391. </class>
  65392. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  65393. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  65394. <class name="DBOutputFormat" extends="java.lang.Object"
  65395. abstract="false"
  65396. static="false" final="false" visibility="public"
  65397. deprecated="not deprecated">
  65398. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  65399. <constructor name="DBOutputFormat"
  65400. static="false" final="false" visibility="public"
  65401. deprecated="not deprecated">
  65402. </constructor>
  65403. <method name="constructQuery" return="java.lang.String"
  65404. abstract="false" native="false" synchronized="false"
  65405. static="false" final="false" visibility="protected"
  65406. deprecated="not deprecated">
  65407. <param name="table" type="java.lang.String"/>
  65408. <param name="fieldNames" type="java.lang.String[]"/>
  65409. <doc>
  65410. <![CDATA[Constructs the query used as the prepared statement to insert data.
  65411. @param table
  65412. the table to insert into
  65413. @param fieldNames
  65414. the fields to insert into. If field names are unknown, supply an
  65415. array of nulls.]]>
  65416. </doc>
  65417. </method>
  65418. <method name="checkOutputSpecs"
  65419. abstract="false" native="false" synchronized="false"
  65420. static="false" final="false" visibility="public"
  65421. deprecated="not deprecated">
  65422. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  65423. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65424. <exception name="IOException" type="java.io.IOException"/>
  65425. <doc>
  65426. <![CDATA[{@inheritDoc}]]>
  65427. </doc>
  65428. </method>
  65429. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  65430. abstract="false" native="false" synchronized="false"
  65431. static="false" final="false" visibility="public"
  65432. deprecated="not deprecated">
  65433. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  65434. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65435. <param name="name" type="java.lang.String"/>
  65436. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  65437. <exception name="IOException" type="java.io.IOException"/>
  65438. <doc>
  65439. <![CDATA[{@inheritDoc}]]>
  65440. </doc>
  65441. </method>
  65442. <method name="setOutput"
  65443. abstract="false" native="false" synchronized="false"
  65444. static="true" final="false" visibility="public"
  65445. deprecated="not deprecated">
  65446. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65447. <param name="tableName" type="java.lang.String"/>
  65448. <param name="fieldNames" type="java.lang.String[]"/>
  65449. <doc>
  65450. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  65451. @param job
  65452. The job
  65453. @param tableName
  65454. The table to insert data into
  65455. @param fieldNames
  65456. The field names in the table. If unknown, supply the appropriate
  65457. number of nulls.]]>
  65458. </doc>
  65459. </method>
  65460. <doc>
  65461. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  65462. <p>
  65463. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  65464. key has a type extending DBWritable. Returned {@link RecordWriter}
  65465. writes <b>only the key</b> to the database with a batch SQL query.]]>
  65466. </doc>
  65467. </class>
  65468. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  65469. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  65470. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  65471. abstract="false"
  65472. static="false" final="false" visibility="protected"
  65473. deprecated="not deprecated">
  65474. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  65475. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  65476. static="false" final="false" visibility="protected"
  65477. deprecated="not deprecated">
  65478. <exception name="SQLException" type="java.sql.SQLException"/>
  65479. </constructor>
  65480. <method name="close"
  65481. abstract="false" native="false" synchronized="false"
  65482. static="false" final="false" visibility="public"
  65483. deprecated="not deprecated">
  65484. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65485. <exception name="IOException" type="java.io.IOException"/>
  65486. <doc>
  65487. <![CDATA[{@inheritDoc}]]>
  65488. </doc>
  65489. </method>
  65490. <method name="write"
  65491. abstract="false" native="false" synchronized="false"
  65492. static="false" final="false" visibility="public"
  65493. deprecated="not deprecated">
  65494. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65495. <param name="value" type="java.lang.Object"/>
  65496. <exception name="IOException" type="java.io.IOException"/>
  65497. <doc>
  65498. <![CDATA[{@inheritDoc}]]>
  65499. </doc>
  65500. </method>
  65501. <doc>
  65502. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  65503. </doc>
  65504. </class>
  65505. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  65506. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  65507. <interface name="DBWritable" abstract="true"
  65508. static="false" final="false" visibility="public"
  65509. deprecated="not deprecated">
  65510. <method name="write"
  65511. abstract="false" native="false" synchronized="false"
  65512. static="false" final="false" visibility="public"
  65513. deprecated="not deprecated">
  65514. <param name="statement" type="java.sql.PreparedStatement"/>
  65515. <exception name="SQLException" type="java.sql.SQLException"/>
  65516. <doc>
  65517. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  65518. @param statement the statement that the fields are put into.
  65519. @throws SQLException]]>
  65520. </doc>
  65521. </method>
  65522. <method name="readFields"
  65523. abstract="false" native="false" synchronized="false"
  65524. static="false" final="false" visibility="public"
  65525. deprecated="not deprecated">
  65526. <param name="resultSet" type="java.sql.ResultSet"/>
  65527. <exception name="SQLException" type="java.sql.SQLException"/>
  65528. <doc>
  65529. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  65530. @param resultSet the {@link ResultSet} to get the fields from.
  65531. @throws SQLException]]>
  65532. </doc>
  65533. </method>
  65534. <doc>
  65535. <![CDATA[Objects that are read from/written to a database should implement
  65536. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  65537. except that the {@link #write(PreparedStatement)} method takes a
  65538. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  65539. takes a {@link ResultSet}.
  65540. <p>
  65541. Implementations are responsible for writing the fields of the object
  65542. to PreparedStatement, and reading the fields of the object from the
  65543. ResultSet.
  65544. <p>Example:</p>
  65545. If we have the following table in the database :
  65546. <pre>
  65547. CREATE TABLE MyTable (
  65548. counter INTEGER NOT NULL,
  65549. timestamp BIGINT NOT NULL,
  65550. );
  65551. </pre>
  65552. then we can read/write the tuples from/to the table with :
  65553. <p><pre>
  65554. public class MyWritable implements Writable, DBWritable {
  65555. // Some data
  65556. private int counter;
  65557. private long timestamp;
  65558. //Writable#write() implementation
  65559. public void write(DataOutput out) throws IOException {
  65560. out.writeInt(counter);
  65561. out.writeLong(timestamp);
  65562. }
  65563. //Writable#readFields() implementation
  65564. public void readFields(DataInput in) throws IOException {
  65565. counter = in.readInt();
  65566. timestamp = in.readLong();
  65567. }
  65568. public void write(PreparedStatement statement) throws SQLException {
  65569. statement.setInt(1, counter);
  65570. statement.setLong(2, timestamp);
  65571. }
  65572. public void readFields(ResultSet resultSet) throws SQLException {
  65573. counter = resultSet.getInt(1);
  65574. timestamp = resultSet.getLong(2);
  65575. }
  65576. }
  65577. </pre></p>]]>
  65578. </doc>
  65579. </interface>
  65580. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  65581. </package>
  65582. <package name="org.apache.hadoop.mapred.pipes">
  65583. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  65584. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  65585. abstract="false"
  65586. static="false" final="false" visibility="public"
  65587. deprecated="not deprecated">
  65588. <implements name="org.apache.hadoop.util.Tool"/>
  65589. <constructor name="Submitter"
  65590. static="false" final="false" visibility="public"
  65591. deprecated="not deprecated">
  65592. </constructor>
  65593. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  65594. static="false" final="false" visibility="public"
  65595. deprecated="not deprecated">
  65596. </constructor>
  65597. <method name="getExecutable" return="java.lang.String"
  65598. abstract="false" native="false" synchronized="false"
  65599. static="true" final="false" visibility="public"
  65600. deprecated="not deprecated">
  65601. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65602. <doc>
  65603. <![CDATA[Get the URI of the application's executable.
  65604. @param conf
  65605. @return the URI where the application's executable is located]]>
  65606. </doc>
  65607. </method>
  65608. <method name="setExecutable"
  65609. abstract="false" native="false" synchronized="false"
  65610. static="true" final="false" visibility="public"
  65611. deprecated="not deprecated">
  65612. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65613. <param name="executable" type="java.lang.String"/>
  65614. <doc>
  65615. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  65616. location.
  65617. @param conf
  65618. @param executable The URI of the application's executable.]]>
  65619. </doc>
  65620. </method>
  65621. <method name="setIsJavaRecordReader"
  65622. abstract="false" native="false" synchronized="false"
  65623. static="true" final="false" visibility="public"
  65624. deprecated="not deprecated">
  65625. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65626. <param name="value" type="boolean"/>
  65627. <doc>
  65628. <![CDATA[Set whether the job is using a Java RecordReader.
  65629. @param conf the configuration to modify
  65630. @param value the new value]]>
  65631. </doc>
  65632. </method>
  65633. <method name="getIsJavaRecordReader" return="boolean"
  65634. abstract="false" native="false" synchronized="false"
  65635. static="true" final="false" visibility="public"
  65636. deprecated="not deprecated">
  65637. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65638. <doc>
  65639. <![CDATA[Check whether the job is using a Java RecordReader
  65640. @param conf the configuration to check
  65641. @return is it a Java RecordReader?]]>
  65642. </doc>
  65643. </method>
  65644. <method name="setIsJavaMapper"
  65645. abstract="false" native="false" synchronized="false"
  65646. static="true" final="false" visibility="public"
  65647. deprecated="not deprecated">
  65648. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65649. <param name="value" type="boolean"/>
  65650. <doc>
  65651. <![CDATA[Set whether the Mapper is written in Java.
  65652. @param conf the configuration to modify
  65653. @param value the new value]]>
  65654. </doc>
  65655. </method>
  65656. <method name="getIsJavaMapper" return="boolean"
  65657. abstract="false" native="false" synchronized="false"
  65658. static="true" final="false" visibility="public"
  65659. deprecated="not deprecated">
  65660. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65661. <doc>
  65662. <![CDATA[Check whether the job is using a Java Mapper.
  65663. @param conf the configuration to check
  65664. @return is it a Java Mapper?]]>
  65665. </doc>
  65666. </method>
  65667. <method name="setIsJavaReducer"
  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. <param name="value" type="boolean"/>
  65673. <doc>
  65674. <![CDATA[Set whether the Reducer is written in Java.
  65675. @param conf the configuration to modify
  65676. @param value the new value]]>
  65677. </doc>
  65678. </method>
  65679. <method name="getIsJavaReducer" return="boolean"
  65680. abstract="false" native="false" synchronized="false"
  65681. static="true" final="false" visibility="public"
  65682. deprecated="not deprecated">
  65683. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65684. <doc>
  65685. <![CDATA[Check whether the job is using a Java Reducer.
  65686. @param conf the configuration to check
  65687. @return is it a Java Reducer?]]>
  65688. </doc>
  65689. </method>
  65690. <method name="setIsJavaRecordWriter"
  65691. abstract="false" native="false" synchronized="false"
  65692. static="true" final="false" visibility="public"
  65693. deprecated="not deprecated">
  65694. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65695. <param name="value" type="boolean"/>
  65696. <doc>
  65697. <![CDATA[Set whether the job will use a Java RecordWriter.
  65698. @param conf the configuration to modify
  65699. @param value the new value to set]]>
  65700. </doc>
  65701. </method>
  65702. <method name="getIsJavaRecordWriter" return="boolean"
  65703. abstract="false" native="false" synchronized="false"
  65704. static="true" final="false" visibility="public"
  65705. deprecated="not deprecated">
  65706. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65707. <doc>
  65708. <![CDATA[Will the reduce use a Java RecordWriter?
  65709. @param conf the configuration to check
  65710. @return true, if the output of the job will be written by Java]]>
  65711. </doc>
  65712. </method>
  65713. <method name="getKeepCommandFile" return="boolean"
  65714. abstract="false" native="false" synchronized="false"
  65715. static="true" final="false" visibility="public"
  65716. deprecated="not deprecated">
  65717. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65718. <doc>
  65719. <![CDATA[Does the user want to keep the command file for debugging? If this is
  65720. true, pipes will write a copy of the command data to a file in the
  65721. task directory named "downlink.data", which may be used to run the C++
  65722. program under the debugger. You probably also want to set
  65723. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  65724. being deleted.
  65725. To run using the data file, set the environment variable
  65726. "hadoop.pipes.command.file" to point to the file.
  65727. @param conf the configuration to check
  65728. @return will the framework save the command file?]]>
  65729. </doc>
  65730. </method>
  65731. <method name="setKeepCommandFile"
  65732. abstract="false" native="false" synchronized="false"
  65733. static="true" final="false" visibility="public"
  65734. deprecated="not deprecated">
  65735. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65736. <param name="keep" type="boolean"/>
  65737. <doc>
  65738. <![CDATA[Set whether to keep the command file for debugging
  65739. @param conf the configuration to modify
  65740. @param keep the new value]]>
  65741. </doc>
  65742. </method>
  65743. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  65744. abstract="false" native="false" synchronized="false"
  65745. static="true" final="false" visibility="public"
  65746. deprecated="Use {@link Submitter#runJob(JobConf)}">
  65747. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65748. <exception name="IOException" type="java.io.IOException"/>
  65749. <doc>
  65750. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  65751. to the job to run under pipes are made to the configuration.
  65752. @param conf the job to submit to the cluster (MODIFIED)
  65753. @throws IOException
  65754. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  65755. </doc>
  65756. </method>
  65757. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  65758. abstract="false" native="false" synchronized="false"
  65759. static="true" final="false" visibility="public"
  65760. deprecated="not deprecated">
  65761. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65762. <exception name="IOException" type="java.io.IOException"/>
  65763. <doc>
  65764. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  65765. to the job to run under pipes are made to the configuration.
  65766. @param conf the job to submit to the cluster (MODIFIED)
  65767. @throws IOException]]>
  65768. </doc>
  65769. </method>
  65770. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  65771. abstract="false" native="false" synchronized="false"
  65772. static="true" final="false" visibility="public"
  65773. deprecated="not deprecated">
  65774. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65775. <exception name="IOException" type="java.io.IOException"/>
  65776. <doc>
  65777. <![CDATA[Submit a job to the Map-Reduce framework.
  65778. This returns a handle to the {@link RunningJob} which can be used to track
  65779. the running-job.
  65780. @param conf the job configuration.
  65781. @return a handle to the {@link RunningJob} which can be used to track the
  65782. running-job.
  65783. @throws IOException]]>
  65784. </doc>
  65785. </method>
  65786. <method name="run" return="int"
  65787. abstract="false" native="false" synchronized="false"
  65788. static="false" final="false" visibility="public"
  65789. deprecated="not deprecated">
  65790. <param name="args" type="java.lang.String[]"/>
  65791. <exception name="Exception" type="java.lang.Exception"/>
  65792. </method>
  65793. <method name="main"
  65794. abstract="false" native="false" synchronized="false"
  65795. static="true" final="false" visibility="public"
  65796. deprecated="not deprecated">
  65797. <param name="args" type="java.lang.String[]"/>
  65798. <exception name="Exception" type="java.lang.Exception"/>
  65799. <doc>
  65800. <![CDATA[Submit a pipes job based on the command line arguments.
  65801. @param args]]>
  65802. </doc>
  65803. </method>
  65804. <field name="LOG" type="org.apache.commons.logging.Log"
  65805. transient="false" volatile="false"
  65806. static="true" final="true" visibility="protected"
  65807. deprecated="not deprecated">
  65808. </field>
  65809. <doc>
  65810. <![CDATA[The main entry point and job submitter. It may either be used as a command
  65811. line-based or API-based method to launch Pipes jobs.]]>
  65812. </doc>
  65813. </class>
  65814. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  65815. </package>
  65816. <package name="org.apache.hadoop.mapred.tools">
  65817. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  65818. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  65819. abstract="false"
  65820. static="false" final="false" visibility="public"
  65821. deprecated="not deprecated">
  65822. <implements name="org.apache.hadoop.util.Tool"/>
  65823. <constructor name="MRAdmin"
  65824. static="false" final="false" visibility="public"
  65825. deprecated="not deprecated">
  65826. </constructor>
  65827. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  65828. static="false" final="false" visibility="public"
  65829. deprecated="not deprecated">
  65830. </constructor>
  65831. <method name="refreshSuperUserGroupsConfiguration" return="int"
  65832. abstract="false" native="false" synchronized="false"
  65833. static="false" final="false" visibility="public"
  65834. deprecated="not deprecated">
  65835. <exception name="IOException" type="java.io.IOException"/>
  65836. <doc>
  65837. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  65838. @return exitcode 0 on success, non-zero on failure
  65839. @throws IOException]]>
  65840. </doc>
  65841. </method>
  65842. <method name="run" return="int"
  65843. abstract="false" native="false" synchronized="false"
  65844. static="false" final="false" visibility="public"
  65845. deprecated="not deprecated">
  65846. <param name="args" type="java.lang.String[]"/>
  65847. <exception name="Exception" type="java.lang.Exception"/>
  65848. </method>
  65849. <method name="main"
  65850. abstract="false" native="false" synchronized="false"
  65851. static="true" final="false" visibility="public"
  65852. deprecated="not deprecated">
  65853. <param name="args" type="java.lang.String[]"/>
  65854. <exception name="Exception" type="java.lang.Exception"/>
  65855. </method>
  65856. <doc>
  65857. <![CDATA[Administrative access to Hadoop Map-Reduce.
  65858. Currently it only provides the ability to connect to the {@link JobTracker}
  65859. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  65860. properties.]]>
  65861. </doc>
  65862. </class>
  65863. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  65864. </package>
  65865. <package name="org.apache.hadoop.mapreduce">
  65866. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  65867. <class name="ClusterMetrics" extends="java.lang.Object"
  65868. abstract="false"
  65869. static="false" final="false" visibility="public"
  65870. deprecated="not deprecated">
  65871. <implements name="org.apache.hadoop.io.Writable"/>
  65872. <constructor name="ClusterMetrics"
  65873. static="false" final="false" visibility="public"
  65874. deprecated="not deprecated">
  65875. </constructor>
  65876. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  65877. static="false" final="false" visibility="public"
  65878. deprecated="not deprecated">
  65879. </constructor>
  65880. <method name="getRunningMaps" return="int"
  65881. abstract="false" native="false" synchronized="false"
  65882. static="false" final="false" visibility="public"
  65883. deprecated="not deprecated">
  65884. <doc>
  65885. <![CDATA[Get the number of running map tasks in the cluster.
  65886. @return running maps]]>
  65887. </doc>
  65888. </method>
  65889. <method name="getRunningReduces" return="int"
  65890. abstract="false" native="false" synchronized="false"
  65891. static="false" final="false" visibility="public"
  65892. deprecated="not deprecated">
  65893. <doc>
  65894. <![CDATA[Get the number of running reduce tasks in the cluster.
  65895. @return running reduces]]>
  65896. </doc>
  65897. </method>
  65898. <method name="getOccupiedMapSlots" return="int"
  65899. abstract="false" native="false" synchronized="false"
  65900. static="false" final="false" visibility="public"
  65901. deprecated="not deprecated">
  65902. <doc>
  65903. <![CDATA[Get number of occupied map slots in the cluster.
  65904. @return occupied map slot count]]>
  65905. </doc>
  65906. </method>
  65907. <method name="getOccupiedReduceSlots" return="int"
  65908. abstract="false" native="false" synchronized="false"
  65909. static="false" final="false" visibility="public"
  65910. deprecated="not deprecated">
  65911. <doc>
  65912. <![CDATA[Get the number of occupied reduce slots in the cluster.
  65913. @return occupied reduce slot count]]>
  65914. </doc>
  65915. </method>
  65916. <method name="getReservedMapSlots" return="int"
  65917. abstract="false" native="false" synchronized="false"
  65918. static="false" final="false" visibility="public"
  65919. deprecated="not deprecated">
  65920. <doc>
  65921. <![CDATA[Get number of reserved map slots in the cluster.
  65922. @return reserved map slot count]]>
  65923. </doc>
  65924. </method>
  65925. <method name="getReservedReduceSlots" return="int"
  65926. abstract="false" native="false" synchronized="false"
  65927. static="false" final="false" visibility="public"
  65928. deprecated="not deprecated">
  65929. <doc>
  65930. <![CDATA[Get the number of reserved reduce slots in the cluster.
  65931. @return reserved reduce slot count]]>
  65932. </doc>
  65933. </method>
  65934. <method name="getMapSlotCapacity" return="int"
  65935. abstract="false" native="false" synchronized="false"
  65936. static="false" final="false" visibility="public"
  65937. deprecated="not deprecated">
  65938. <doc>
  65939. <![CDATA[Get the total number of map slots in the cluster.
  65940. @return map slot capacity]]>
  65941. </doc>
  65942. </method>
  65943. <method name="getReduceSlotCapacity" return="int"
  65944. abstract="false" native="false" synchronized="false"
  65945. static="false" final="false" visibility="public"
  65946. deprecated="not deprecated">
  65947. <doc>
  65948. <![CDATA[Get the total number of reduce slots in the cluster.
  65949. @return reduce slot capacity]]>
  65950. </doc>
  65951. </method>
  65952. <method name="getTotalJobSubmissions" return="int"
  65953. abstract="false" native="false" synchronized="false"
  65954. static="false" final="false" visibility="public"
  65955. deprecated="not deprecated">
  65956. <doc>
  65957. <![CDATA[Get the total number of job submissions in the cluster.
  65958. @return total number of job submissions]]>
  65959. </doc>
  65960. </method>
  65961. <method name="getTaskTrackerCount" return="int"
  65962. abstract="false" native="false" synchronized="false"
  65963. static="false" final="false" visibility="public"
  65964. deprecated="not deprecated">
  65965. <doc>
  65966. <![CDATA[Get the number of active trackers in the cluster.
  65967. @return active tracker count.]]>
  65968. </doc>
  65969. </method>
  65970. <method name="getBlackListedTaskTrackerCount" return="int"
  65971. abstract="false" native="false" synchronized="false"
  65972. static="false" final="false" visibility="public"
  65973. deprecated="not deprecated">
  65974. <doc>
  65975. <![CDATA[Get the number of blacklisted trackers in the cluster.
  65976. @return blacklisted tracker count]]>
  65977. </doc>
  65978. </method>
  65979. <method name="getGrayListedTaskTrackerCount" return="int"
  65980. abstract="false" native="false" synchronized="false"
  65981. static="false" final="false" visibility="public"
  65982. deprecated="not deprecated">
  65983. <doc>
  65984. <![CDATA[Get the number of graylisted trackers in the cluster.
  65985. @return graylisted tracker count]]>
  65986. </doc>
  65987. </method>
  65988. <method name="getDecommissionedTaskTrackerCount" return="int"
  65989. abstract="false" native="false" synchronized="false"
  65990. static="false" final="false" visibility="public"
  65991. deprecated="not deprecated">
  65992. <doc>
  65993. <![CDATA[Get the number of decommissioned trackers in the cluster.
  65994. @return decommissioned tracker count]]>
  65995. </doc>
  65996. </method>
  65997. <method name="readFields"
  65998. abstract="false" native="false" synchronized="false"
  65999. static="false" final="false" visibility="public"
  66000. deprecated="not deprecated">
  66001. <param name="in" type="java.io.DataInput"/>
  66002. <exception name="IOException" type="java.io.IOException"/>
  66003. </method>
  66004. <method name="write"
  66005. abstract="false" native="false" synchronized="false"
  66006. static="false" final="false" visibility="public"
  66007. deprecated="not deprecated">
  66008. <param name="out" type="java.io.DataOutput"/>
  66009. <exception name="IOException" type="java.io.IOException"/>
  66010. </method>
  66011. <doc>
  66012. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  66013. <p><code>ClusterMetrics</code> provides clients with information such as:
  66014. <ol>
  66015. <li>
  66016. Size of the cluster.
  66017. </li>
  66018. <li>
  66019. Number of blacklisted and decommissioned trackers.
  66020. </li>
  66021. <li>
  66022. Slot capacity of the cluster.
  66023. </li>
  66024. <li>
  66025. The number of currently occupied/reserved map & reduce slots.
  66026. </li>
  66027. <li>
  66028. The number of currently running map & reduce tasks.
  66029. </li>
  66030. <li>
  66031. The number of job submissions.
  66032. </li>
  66033. </ol></p>]]>
  66034. </doc>
  66035. </class>
  66036. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  66037. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  66038. <class name="Counter" extends="java.lang.Object"
  66039. abstract="false"
  66040. static="false" final="false" visibility="public"
  66041. deprecated="not deprecated">
  66042. <implements name="org.apache.hadoop.io.Writable"/>
  66043. <constructor name="Counter"
  66044. static="false" final="false" visibility="protected"
  66045. deprecated="not deprecated">
  66046. </constructor>
  66047. <constructor name="Counter" type="java.lang.String, java.lang.String"
  66048. static="false" final="false" visibility="protected"
  66049. deprecated="not deprecated">
  66050. </constructor>
  66051. <method name="setDisplayName"
  66052. abstract="false" native="false" synchronized="true"
  66053. static="false" final="false" visibility="protected"
  66054. deprecated="not deprecated">
  66055. <param name="displayName" type="java.lang.String"/>
  66056. </method>
  66057. <method name="readFields"
  66058. abstract="false" native="false" synchronized="true"
  66059. static="false" final="false" visibility="public"
  66060. deprecated="not deprecated">
  66061. <param name="in" type="java.io.DataInput"/>
  66062. <exception name="IOException" type="java.io.IOException"/>
  66063. <doc>
  66064. <![CDATA[Read the binary representation of the counter]]>
  66065. </doc>
  66066. </method>
  66067. <method name="write"
  66068. abstract="false" native="false" synchronized="true"
  66069. static="false" final="false" visibility="public"
  66070. deprecated="not deprecated">
  66071. <param name="out" type="java.io.DataOutput"/>
  66072. <exception name="IOException" type="java.io.IOException"/>
  66073. <doc>
  66074. <![CDATA[Write the binary representation of the counter]]>
  66075. </doc>
  66076. </method>
  66077. <method name="getName" return="java.lang.String"
  66078. abstract="false" native="false" synchronized="true"
  66079. static="false" final="false" visibility="public"
  66080. deprecated="not deprecated">
  66081. </method>
  66082. <method name="getDisplayName" return="java.lang.String"
  66083. abstract="false" native="false" synchronized="true"
  66084. static="false" final="false" visibility="public"
  66085. deprecated="not deprecated">
  66086. <doc>
  66087. <![CDATA[Get the name of the counter.
  66088. @return the user facing name of the counter]]>
  66089. </doc>
  66090. </method>
  66091. <method name="getValue" return="long"
  66092. abstract="false" native="false" synchronized="true"
  66093. static="false" final="false" visibility="public"
  66094. deprecated="not deprecated">
  66095. <doc>
  66096. <![CDATA[What is the current value of this counter?
  66097. @return the current value]]>
  66098. </doc>
  66099. </method>
  66100. <method name="setValue"
  66101. abstract="false" native="false" synchronized="true"
  66102. static="false" final="false" visibility="public"
  66103. deprecated="not deprecated">
  66104. <param name="value" type="long"/>
  66105. <doc>
  66106. <![CDATA[Set this counter by the given value
  66107. @param value the value to set]]>
  66108. </doc>
  66109. </method>
  66110. <method name="increment"
  66111. abstract="false" native="false" synchronized="true"
  66112. static="false" final="false" visibility="public"
  66113. deprecated="not deprecated">
  66114. <param name="incr" type="long"/>
  66115. <doc>
  66116. <![CDATA[Increment this counter by the given value
  66117. @param incr the value to increase this counter by]]>
  66118. </doc>
  66119. </method>
  66120. <method name="equals" return="boolean"
  66121. abstract="false" native="false" synchronized="true"
  66122. static="false" final="false" visibility="public"
  66123. deprecated="not deprecated">
  66124. <param name="genericRight" type="java.lang.Object"/>
  66125. </method>
  66126. <method name="hashCode" return="int"
  66127. abstract="false" native="false" synchronized="true"
  66128. static="false" final="false" visibility="public"
  66129. deprecated="not deprecated">
  66130. </method>
  66131. <doc>
  66132. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  66133. <p><code>Counters</code> represent global counters, defined either by the
  66134. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  66135. an {@link Enum} and has a long for the value.</p>
  66136. <p><code>Counters</code> are bunched into Groups, each comprising of
  66137. counters from a particular <code>Enum</code> class.]]>
  66138. </doc>
  66139. </class>
  66140. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  66141. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  66142. <class name="CounterGroup" extends="java.lang.Object"
  66143. abstract="false"
  66144. static="false" final="false" visibility="public"
  66145. deprecated="not deprecated">
  66146. <implements name="org.apache.hadoop.io.Writable"/>
  66147. <implements name="java.lang.Iterable"/>
  66148. <constructor name="CounterGroup" type="java.lang.String"
  66149. static="false" final="false" visibility="protected"
  66150. deprecated="not deprecated">
  66151. </constructor>
  66152. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  66153. static="false" final="false" visibility="protected"
  66154. deprecated="not deprecated">
  66155. </constructor>
  66156. <method name="getName" return="java.lang.String"
  66157. abstract="false" native="false" synchronized="true"
  66158. static="false" final="false" visibility="public"
  66159. deprecated="not deprecated">
  66160. <doc>
  66161. <![CDATA[Get the internal name of the group
  66162. @return the internal name]]>
  66163. </doc>
  66164. </method>
  66165. <method name="getDisplayName" return="java.lang.String"
  66166. abstract="false" native="false" synchronized="true"
  66167. static="false" final="false" visibility="public"
  66168. deprecated="not deprecated">
  66169. <doc>
  66170. <![CDATA[Get the display name of the group.
  66171. @return the human readable name]]>
  66172. </doc>
  66173. </method>
  66174. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66175. abstract="false" native="false" synchronized="false"
  66176. static="false" final="false" visibility="protected"
  66177. deprecated="not deprecated">
  66178. <param name="counterName" type="java.lang.String"/>
  66179. <param name="displayName" type="java.lang.String"/>
  66180. <doc>
  66181. <![CDATA[Internal to find a counter in a group.
  66182. @param counterName the name of the counter
  66183. @param displayName the display name of the counter
  66184. @return the counter that was found or added]]>
  66185. </doc>
  66186. </method>
  66187. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66188. abstract="false" native="false" synchronized="true"
  66189. static="false" final="false" visibility="public"
  66190. deprecated="not deprecated">
  66191. <param name="counterName" type="java.lang.String"/>
  66192. </method>
  66193. <method name="iterator" return="java.util.Iterator"
  66194. abstract="false" native="false" synchronized="true"
  66195. static="false" final="false" visibility="public"
  66196. deprecated="not deprecated">
  66197. </method>
  66198. <method name="write"
  66199. abstract="false" native="false" synchronized="true"
  66200. static="false" final="false" visibility="public"
  66201. deprecated="not deprecated">
  66202. <param name="out" type="java.io.DataOutput"/>
  66203. <exception name="IOException" type="java.io.IOException"/>
  66204. </method>
  66205. <method name="readFields"
  66206. abstract="false" native="false" synchronized="true"
  66207. static="false" final="false" visibility="public"
  66208. deprecated="not deprecated">
  66209. <param name="in" type="java.io.DataInput"/>
  66210. <exception name="IOException" type="java.io.IOException"/>
  66211. </method>
  66212. <method name="size" return="int"
  66213. abstract="false" native="false" synchronized="true"
  66214. static="false" final="false" visibility="public"
  66215. deprecated="not deprecated">
  66216. <doc>
  66217. <![CDATA[Returns the number of counters in this group.]]>
  66218. </doc>
  66219. </method>
  66220. <method name="equals" return="boolean"
  66221. abstract="false" native="false" synchronized="true"
  66222. static="false" final="false" visibility="public"
  66223. deprecated="not deprecated">
  66224. <param name="genericRight" type="java.lang.Object"/>
  66225. </method>
  66226. <method name="hashCode" return="int"
  66227. abstract="false" native="false" synchronized="true"
  66228. static="false" final="false" visibility="public"
  66229. deprecated="not deprecated">
  66230. </method>
  66231. <method name="incrAllCounters"
  66232. abstract="false" native="false" synchronized="true"
  66233. static="false" final="false" visibility="public"
  66234. deprecated="not deprecated">
  66235. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  66236. </method>
  66237. <doc>
  66238. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  66239. it is an {@link Enum} subclass and the counters are the values.]]>
  66240. </doc>
  66241. </class>
  66242. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  66243. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  66244. <class name="Counters" extends="java.lang.Object"
  66245. abstract="false"
  66246. static="false" final="false" visibility="public"
  66247. deprecated="not deprecated">
  66248. <implements name="org.apache.hadoop.io.Writable"/>
  66249. <implements name="java.lang.Iterable"/>
  66250. <constructor name="Counters"
  66251. static="false" final="false" visibility="public"
  66252. deprecated="not deprecated">
  66253. </constructor>
  66254. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  66255. static="false" final="false" visibility="public"
  66256. deprecated="not deprecated">
  66257. </constructor>
  66258. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66259. abstract="false" native="false" synchronized="false"
  66260. static="false" final="false" visibility="public"
  66261. deprecated="not deprecated">
  66262. <param name="groupName" type="java.lang.String"/>
  66263. <param name="counterName" type="java.lang.String"/>
  66264. </method>
  66265. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66266. abstract="false" native="false" synchronized="true"
  66267. static="false" final="false" visibility="public"
  66268. deprecated="not deprecated">
  66269. <param name="key" type="java.lang.Enum"/>
  66270. <doc>
  66271. <![CDATA[Find the counter for the given enum. The same enum will always return the
  66272. same counter.
  66273. @param key the counter key
  66274. @return the matching counter object]]>
  66275. </doc>
  66276. </method>
  66277. <method name="getGroupNames" return="java.util.Collection"
  66278. abstract="false" native="false" synchronized="true"
  66279. static="false" final="false" visibility="public"
  66280. deprecated="not deprecated">
  66281. <doc>
  66282. <![CDATA[Returns the names of all counter classes.
  66283. @return Set of counter names.]]>
  66284. </doc>
  66285. </method>
  66286. <method name="iterator" return="java.util.Iterator"
  66287. abstract="false" native="false" synchronized="false"
  66288. static="false" final="false" visibility="public"
  66289. deprecated="not deprecated">
  66290. </method>
  66291. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  66292. abstract="false" native="false" synchronized="true"
  66293. static="false" final="false" visibility="public"
  66294. deprecated="not deprecated">
  66295. <param name="groupName" type="java.lang.String"/>
  66296. <doc>
  66297. <![CDATA[Returns the named counter group, or an empty group if there is none
  66298. with the specified name.]]>
  66299. </doc>
  66300. </method>
  66301. <method name="countCounters" return="int"
  66302. abstract="false" native="false" synchronized="true"
  66303. static="false" final="false" visibility="public"
  66304. deprecated="not deprecated">
  66305. <doc>
  66306. <![CDATA[Returns the total number of counters, by summing the number of counters
  66307. in each group.]]>
  66308. </doc>
  66309. </method>
  66310. <method name="write"
  66311. abstract="false" native="false" synchronized="true"
  66312. static="false" final="false" visibility="public"
  66313. deprecated="not deprecated">
  66314. <param name="out" type="java.io.DataOutput"/>
  66315. <exception name="IOException" type="java.io.IOException"/>
  66316. <doc>
  66317. <![CDATA[Write the set of groups.
  66318. The external format is:
  66319. #groups (groupName group)*
  66320. i.e. the number of groups followed by 0 or more groups, where each
  66321. group is of the form:
  66322. groupDisplayName #counters (false | true counter)*
  66323. where each counter is of the form:
  66324. name (false | true displayName) value]]>
  66325. </doc>
  66326. </method>
  66327. <method name="readFields"
  66328. abstract="false" native="false" synchronized="true"
  66329. static="false" final="false" visibility="public"
  66330. deprecated="not deprecated">
  66331. <param name="in" type="java.io.DataInput"/>
  66332. <exception name="IOException" type="java.io.IOException"/>
  66333. <doc>
  66334. <![CDATA[Read a set of groups.]]>
  66335. </doc>
  66336. </method>
  66337. <method name="toString" return="java.lang.String"
  66338. abstract="false" native="false" synchronized="true"
  66339. static="false" final="false" visibility="public"
  66340. deprecated="not deprecated">
  66341. <doc>
  66342. <![CDATA[Return textual representation of the counter values.]]>
  66343. </doc>
  66344. </method>
  66345. <method name="incrAllCounters"
  66346. abstract="false" native="false" synchronized="true"
  66347. static="false" final="false" visibility="public"
  66348. deprecated="not deprecated">
  66349. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  66350. <doc>
  66351. <![CDATA[Increments multiple counters by their amounts in another Counters
  66352. instance.
  66353. @param other the other Counters instance]]>
  66354. </doc>
  66355. </method>
  66356. <method name="equals" return="boolean"
  66357. abstract="false" native="false" synchronized="false"
  66358. static="false" final="false" visibility="public"
  66359. deprecated="not deprecated">
  66360. <param name="genericRight" type="java.lang.Object"/>
  66361. </method>
  66362. <method name="hashCode" return="int"
  66363. abstract="false" native="false" synchronized="false"
  66364. static="false" final="false" visibility="public"
  66365. deprecated="not deprecated">
  66366. </method>
  66367. </class>
  66368. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  66369. <!-- start class org.apache.hadoop.mapreduce.ID -->
  66370. <class name="ID" extends="java.lang.Object"
  66371. abstract="true"
  66372. static="false" final="false" visibility="public"
  66373. deprecated="not deprecated">
  66374. <implements name="org.apache.hadoop.io.WritableComparable"/>
  66375. <constructor name="ID" type="int"
  66376. static="false" final="false" visibility="public"
  66377. deprecated="not deprecated">
  66378. <doc>
  66379. <![CDATA[constructs an ID object from the given int]]>
  66380. </doc>
  66381. </constructor>
  66382. <constructor name="ID"
  66383. static="false" final="false" visibility="protected"
  66384. deprecated="not deprecated">
  66385. </constructor>
  66386. <method name="getId" return="int"
  66387. abstract="false" native="false" synchronized="false"
  66388. static="false" final="false" visibility="public"
  66389. deprecated="not deprecated">
  66390. <doc>
  66391. <![CDATA[returns the int which represents the identifier]]>
  66392. </doc>
  66393. </method>
  66394. <method name="toString" return="java.lang.String"
  66395. abstract="false" native="false" synchronized="false"
  66396. static="false" final="false" visibility="public"
  66397. deprecated="not deprecated">
  66398. </method>
  66399. <method name="hashCode" return="int"
  66400. abstract="false" native="false" synchronized="false"
  66401. static="false" final="false" visibility="public"
  66402. deprecated="not deprecated">
  66403. </method>
  66404. <method name="equals" return="boolean"
  66405. abstract="false" native="false" synchronized="false"
  66406. static="false" final="false" visibility="public"
  66407. deprecated="not deprecated">
  66408. <param name="o" type="java.lang.Object"/>
  66409. </method>
  66410. <method name="compareTo" return="int"
  66411. abstract="false" native="false" synchronized="false"
  66412. static="false" final="false" visibility="public"
  66413. deprecated="not deprecated">
  66414. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  66415. <doc>
  66416. <![CDATA[Compare IDs by associated numbers]]>
  66417. </doc>
  66418. </method>
  66419. <method name="readFields"
  66420. abstract="false" native="false" synchronized="false"
  66421. static="false" final="false" visibility="public"
  66422. deprecated="not deprecated">
  66423. <param name="in" type="java.io.DataInput"/>
  66424. <exception name="IOException" type="java.io.IOException"/>
  66425. </method>
  66426. <method name="write"
  66427. abstract="false" native="false" synchronized="false"
  66428. static="false" final="false" visibility="public"
  66429. deprecated="not deprecated">
  66430. <param name="out" type="java.io.DataOutput"/>
  66431. <exception name="IOException" type="java.io.IOException"/>
  66432. </method>
  66433. <field name="SEPARATOR" type="char"
  66434. transient="false" volatile="false"
  66435. static="true" final="true" visibility="protected"
  66436. deprecated="not deprecated">
  66437. </field>
  66438. <field name="id" type="int"
  66439. transient="false" volatile="false"
  66440. static="false" final="false" visibility="protected"
  66441. deprecated="not deprecated">
  66442. </field>
  66443. <doc>
  66444. <![CDATA[A general identifier, which internally stores the id
  66445. as an integer. This is the super class of {@link JobID},
  66446. {@link TaskID} and {@link TaskAttemptID}.
  66447. @see JobID
  66448. @see TaskID
  66449. @see TaskAttemptID]]>
  66450. </doc>
  66451. </class>
  66452. <!-- end class org.apache.hadoop.mapreduce.ID -->
  66453. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  66454. <class name="InputFormat" extends="java.lang.Object"
  66455. abstract="true"
  66456. static="false" final="false" visibility="public"
  66457. deprecated="not deprecated">
  66458. <constructor name="InputFormat"
  66459. static="false" final="false" visibility="public"
  66460. deprecated="not deprecated">
  66461. </constructor>
  66462. <method name="getSplits" return="java.util.List"
  66463. abstract="true" native="false" synchronized="false"
  66464. static="false" final="false" visibility="public"
  66465. deprecated="not deprecated">
  66466. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66467. <exception name="IOException" type="java.io.IOException"/>
  66468. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66469. <doc>
  66470. <![CDATA[Logically split the set of input files for the job.
  66471. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  66472. for processing.</p>
  66473. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  66474. input files are not physically split into chunks. For e.g. a split could
  66475. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  66476. also creates the {@link RecordReader} to read the {@link InputSplit}.
  66477. @param context job configuration.
  66478. @return an array of {@link InputSplit}s for the job.]]>
  66479. </doc>
  66480. </method>
  66481. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  66482. abstract="true" native="false" synchronized="false"
  66483. static="false" final="false" visibility="public"
  66484. deprecated="not deprecated">
  66485. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  66486. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66487. <exception name="IOException" type="java.io.IOException"/>
  66488. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66489. <doc>
  66490. <![CDATA[Create a record reader for a given split. The framework will call
  66491. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  66492. the split is used.
  66493. @param split the split to be read
  66494. @param context the information about the task
  66495. @return a new record reader
  66496. @throws IOException
  66497. @throws InterruptedException]]>
  66498. </doc>
  66499. </method>
  66500. <doc>
  66501. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  66502. Map-Reduce job.
  66503. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  66504. job to:<p>
  66505. <ol>
  66506. <li>
  66507. Validate the input-specification of the job.
  66508. <li>
  66509. Split-up the input file(s) into logical {@link InputSplit}s, each of
  66510. which is then assigned to an individual {@link Mapper}.
  66511. </li>
  66512. <li>
  66513. Provide the {@link RecordReader} implementation to be used to glean
  66514. input records from the logical <code>InputSplit</code> for processing by
  66515. the {@link Mapper}.
  66516. </li>
  66517. </ol>
  66518. <p>The default behavior of file-based {@link InputFormat}s, typically
  66519. sub-classes of {@link FileInputFormat}, is to split the
  66520. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  66521. bytes, of the input files. However, the {@link FileSystem} blocksize of
  66522. the input files is treated as an upper bound for input splits. A lower bound
  66523. on the split size can be set via
  66524. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  66525. mapred.min.split.size</a>.</p>
  66526. <p>Clearly, logical splits based on input-size is insufficient for many
  66527. applications since record boundaries are to respected. In such cases, the
  66528. application has to also implement a {@link RecordReader} on whom lies the
  66529. responsibility to respect record-boundaries and present a record-oriented
  66530. view of the logical <code>InputSplit</code> to the individual task.
  66531. @see InputSplit
  66532. @see RecordReader
  66533. @see FileInputFormat]]>
  66534. </doc>
  66535. </class>
  66536. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  66537. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  66538. <class name="InputSplit" extends="java.lang.Object"
  66539. abstract="true"
  66540. static="false" final="false" visibility="public"
  66541. deprecated="not deprecated">
  66542. <constructor name="InputSplit"
  66543. static="false" final="false" visibility="public"
  66544. deprecated="not deprecated">
  66545. </constructor>
  66546. <method name="getLength" return="long"
  66547. abstract="true" native="false" synchronized="false"
  66548. static="false" final="false" visibility="public"
  66549. deprecated="not deprecated">
  66550. <exception name="IOException" type="java.io.IOException"/>
  66551. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66552. <doc>
  66553. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  66554. @return the number of bytes in the split
  66555. @throws IOException
  66556. @throws InterruptedException]]>
  66557. </doc>
  66558. </method>
  66559. <method name="getLocations" return="java.lang.String[]"
  66560. abstract="true" native="false" synchronized="false"
  66561. static="false" final="false" visibility="public"
  66562. deprecated="not deprecated">
  66563. <exception name="IOException" type="java.io.IOException"/>
  66564. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66565. <doc>
  66566. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  66567. The locations do not need to be serialized.
  66568. @return a new array of the node nodes.
  66569. @throws IOException
  66570. @throws InterruptedException]]>
  66571. </doc>
  66572. </method>
  66573. <doc>
  66574. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  66575. individual {@link Mapper}.
  66576. <p>Typically, it presents a byte-oriented view on the input and is the
  66577. responsibility of {@link RecordReader} of the job to process this and present
  66578. a record-oriented view.
  66579. @see InputFormat
  66580. @see RecordReader]]>
  66581. </doc>
  66582. </class>
  66583. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  66584. <!-- start class org.apache.hadoop.mapreduce.Job -->
  66585. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  66586. abstract="false"
  66587. static="false" final="false" visibility="public"
  66588. deprecated="not deprecated">
  66589. <constructor name="Job"
  66590. static="false" final="false" visibility="public"
  66591. deprecated="not deprecated">
  66592. <exception name="IOException" type="java.io.IOException"/>
  66593. </constructor>
  66594. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  66595. static="false" final="false" visibility="public"
  66596. deprecated="not deprecated">
  66597. <exception name="IOException" type="java.io.IOException"/>
  66598. </constructor>
  66599. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  66600. static="false" final="false" visibility="public"
  66601. deprecated="not deprecated">
  66602. <exception name="IOException" type="java.io.IOException"/>
  66603. </constructor>
  66604. <method name="setNumReduceTasks"
  66605. abstract="false" native="false" synchronized="false"
  66606. static="false" final="false" visibility="public"
  66607. deprecated="not deprecated">
  66608. <param name="tasks" type="int"/>
  66609. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66610. <doc>
  66611. <![CDATA[Set the number of reduce tasks for the job.
  66612. @param tasks the number of reduce tasks
  66613. @throws IllegalStateException if the job is submitted]]>
  66614. </doc>
  66615. </method>
  66616. <method name="setWorkingDirectory"
  66617. abstract="false" native="false" synchronized="false"
  66618. static="false" final="false" visibility="public"
  66619. deprecated="not deprecated">
  66620. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  66621. <exception name="IOException" type="java.io.IOException"/>
  66622. <doc>
  66623. <![CDATA[Set the current working directory for the default file system.
  66624. @param dir the new current working directory.
  66625. @throws IllegalStateException if the job is submitted]]>
  66626. </doc>
  66627. </method>
  66628. <method name="setInputFormatClass"
  66629. abstract="false" native="false" synchronized="false"
  66630. static="false" final="false" visibility="public"
  66631. deprecated="not deprecated">
  66632. <param name="cls" type="java.lang.Class"/>
  66633. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66634. <doc>
  66635. <![CDATA[Set the {@link InputFormat} for the job.
  66636. @param cls the <code>InputFormat</code> to use
  66637. @throws IllegalStateException if the job is submitted]]>
  66638. </doc>
  66639. </method>
  66640. <method name="setOutputFormatClass"
  66641. abstract="false" native="false" synchronized="false"
  66642. static="false" final="false" visibility="public"
  66643. deprecated="not deprecated">
  66644. <param name="cls" type="java.lang.Class"/>
  66645. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66646. <doc>
  66647. <![CDATA[Set the {@link OutputFormat} for the job.
  66648. @param cls the <code>OutputFormat</code> to use
  66649. @throws IllegalStateException if the job is submitted]]>
  66650. </doc>
  66651. </method>
  66652. <method name="setMapperClass"
  66653. abstract="false" native="false" synchronized="false"
  66654. static="false" final="false" visibility="public"
  66655. deprecated="not deprecated">
  66656. <param name="cls" type="java.lang.Class"/>
  66657. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66658. <doc>
  66659. <![CDATA[Set the {@link Mapper} for the job.
  66660. @param cls the <code>Mapper</code> to use
  66661. @throws IllegalStateException if the job is submitted]]>
  66662. </doc>
  66663. </method>
  66664. <method name="setJarByClass"
  66665. abstract="false" native="false" synchronized="false"
  66666. static="false" final="false" visibility="public"
  66667. deprecated="not deprecated">
  66668. <param name="cls" type="java.lang.Class"/>
  66669. <doc>
  66670. <![CDATA[Set the Jar by finding where a given class came from.
  66671. @param cls the example class]]>
  66672. </doc>
  66673. </method>
  66674. <method name="getJar" return="java.lang.String"
  66675. abstract="false" native="false" synchronized="false"
  66676. static="false" final="false" visibility="public"
  66677. deprecated="not deprecated">
  66678. <doc>
  66679. <![CDATA[Get the pathname of the job's jar.
  66680. @return the pathname]]>
  66681. </doc>
  66682. </method>
  66683. <method name="setCombinerClass"
  66684. abstract="false" native="false" synchronized="false"
  66685. static="false" final="false" visibility="public"
  66686. deprecated="not deprecated">
  66687. <param name="cls" type="java.lang.Class"/>
  66688. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66689. <doc>
  66690. <![CDATA[Set the combiner class for the job.
  66691. @param cls the combiner to use
  66692. @throws IllegalStateException if the job is submitted]]>
  66693. </doc>
  66694. </method>
  66695. <method name="setReducerClass"
  66696. abstract="false" native="false" synchronized="false"
  66697. static="false" final="false" visibility="public"
  66698. deprecated="not deprecated">
  66699. <param name="cls" type="java.lang.Class"/>
  66700. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66701. <doc>
  66702. <![CDATA[Set the {@link Reducer} for the job.
  66703. @param cls the <code>Reducer</code> to use
  66704. @throws IllegalStateException if the job is submitted]]>
  66705. </doc>
  66706. </method>
  66707. <method name="setPartitionerClass"
  66708. abstract="false" native="false" synchronized="false"
  66709. static="false" final="false" visibility="public"
  66710. deprecated="not deprecated">
  66711. <param name="cls" type="java.lang.Class"/>
  66712. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66713. <doc>
  66714. <![CDATA[Set the {@link Partitioner} for the job.
  66715. @param cls the <code>Partitioner</code> to use
  66716. @throws IllegalStateException if the job is submitted]]>
  66717. </doc>
  66718. </method>
  66719. <method name="setMapOutputKeyClass"
  66720. abstract="false" native="false" synchronized="false"
  66721. static="false" final="false" visibility="public"
  66722. deprecated="not deprecated">
  66723. <param name="theClass" type="java.lang.Class"/>
  66724. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66725. <doc>
  66726. <![CDATA[Set the key class for the map output data. This allows the user to
  66727. specify the map output key class to be different than the final output
  66728. value class.
  66729. @param theClass the map output key class.
  66730. @throws IllegalStateException if the job is submitted]]>
  66731. </doc>
  66732. </method>
  66733. <method name="setMapOutputValueClass"
  66734. abstract="false" native="false" synchronized="false"
  66735. static="false" final="false" visibility="public"
  66736. deprecated="not deprecated">
  66737. <param name="theClass" type="java.lang.Class"/>
  66738. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66739. <doc>
  66740. <![CDATA[Set the value class for the map output data. This allows the user to
  66741. specify the map output value class to be different than the final output
  66742. value class.
  66743. @param theClass the map output value class.
  66744. @throws IllegalStateException if the job is submitted]]>
  66745. </doc>
  66746. </method>
  66747. <method name="setOutputKeyClass"
  66748. abstract="false" native="false" synchronized="false"
  66749. static="false" final="false" visibility="public"
  66750. deprecated="not deprecated">
  66751. <param name="theClass" type="java.lang.Class"/>
  66752. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66753. <doc>
  66754. <![CDATA[Set the key class for the job output data.
  66755. @param theClass the key class for the job output data.
  66756. @throws IllegalStateException if the job is submitted]]>
  66757. </doc>
  66758. </method>
  66759. <method name="setOutputValueClass"
  66760. abstract="false" native="false" synchronized="false"
  66761. static="false" final="false" visibility="public"
  66762. deprecated="not deprecated">
  66763. <param name="theClass" type="java.lang.Class"/>
  66764. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66765. <doc>
  66766. <![CDATA[Set the value class for job outputs.
  66767. @param theClass the value class for job outputs.
  66768. @throws IllegalStateException if the job is submitted]]>
  66769. </doc>
  66770. </method>
  66771. <method name="setSortComparatorClass"
  66772. abstract="false" native="false" synchronized="false"
  66773. static="false" final="false" visibility="public"
  66774. deprecated="not deprecated">
  66775. <param name="cls" type="java.lang.Class"/>
  66776. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66777. <doc>
  66778. <![CDATA[Define the comparator that controls how the keys are sorted before they
  66779. are passed to the {@link Reducer}.
  66780. @param cls the raw comparator
  66781. @throws IllegalStateException if the job is submitted]]>
  66782. </doc>
  66783. </method>
  66784. <method name="setGroupingComparatorClass"
  66785. abstract="false" native="false" synchronized="false"
  66786. static="false" final="false" visibility="public"
  66787. deprecated="not deprecated">
  66788. <param name="cls" type="java.lang.Class"/>
  66789. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66790. <doc>
  66791. <![CDATA[Define the comparator that controls which keys are grouped together
  66792. for a single call to
  66793. {@link Reducer#reduce(Object, Iterable,
  66794. org.apache.hadoop.mapreduce.Reducer.Context)}
  66795. @param cls the raw comparator to use
  66796. @throws IllegalStateException if the job is submitted]]>
  66797. </doc>
  66798. </method>
  66799. <method name="setJobName"
  66800. abstract="false" native="false" synchronized="false"
  66801. static="false" final="false" visibility="public"
  66802. deprecated="not deprecated">
  66803. <param name="name" type="java.lang.String"/>
  66804. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66805. <doc>
  66806. <![CDATA[Set the user-specified job name.
  66807. @param name the job's new name.
  66808. @throws IllegalStateException if the job is submitted]]>
  66809. </doc>
  66810. </method>
  66811. <method name="setSpeculativeExecution"
  66812. abstract="false" native="false" synchronized="false"
  66813. static="false" final="false" visibility="public"
  66814. deprecated="not deprecated">
  66815. <param name="speculativeExecution" type="boolean"/>
  66816. <doc>
  66817. <![CDATA[Turn speculative execution on or off for this job.
  66818. @param speculativeExecution <code>true</code> if speculative execution
  66819. should be turned on, else <code>false</code>.]]>
  66820. </doc>
  66821. </method>
  66822. <method name="setMapSpeculativeExecution"
  66823. abstract="false" native="false" synchronized="false"
  66824. static="false" final="false" visibility="public"
  66825. deprecated="not deprecated">
  66826. <param name="speculativeExecution" type="boolean"/>
  66827. <doc>
  66828. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  66829. @param speculativeExecution <code>true</code> if speculative execution
  66830. should be turned on for map tasks,
  66831. else <code>false</code>.]]>
  66832. </doc>
  66833. </method>
  66834. <method name="setReduceSpeculativeExecution"
  66835. abstract="false" native="false" synchronized="false"
  66836. static="false" final="false" visibility="public"
  66837. deprecated="not deprecated">
  66838. <param name="speculativeExecution" type="boolean"/>
  66839. <doc>
  66840. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  66841. @param speculativeExecution <code>true</code> if speculative execution
  66842. should be turned on for reduce tasks,
  66843. else <code>false</code>.]]>
  66844. </doc>
  66845. </method>
  66846. <method name="getTrackingURL" return="java.lang.String"
  66847. abstract="false" native="false" synchronized="false"
  66848. static="false" final="false" visibility="public"
  66849. deprecated="not deprecated">
  66850. <doc>
  66851. <![CDATA[Get the URL where some job progress information will be displayed.
  66852. @return the URL where some job progress information will be displayed.]]>
  66853. </doc>
  66854. </method>
  66855. <method name="setupProgress" return="float"
  66856. abstract="false" native="false" synchronized="false"
  66857. static="false" final="false" visibility="public"
  66858. deprecated="not deprecated">
  66859. <exception name="IOException" type="java.io.IOException"/>
  66860. <doc>
  66861. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  66862. and 1.0. When the job setup is completed, the function returns 1.0.
  66863. @return the progress of the job's setup.
  66864. @throws IOException]]>
  66865. </doc>
  66866. </method>
  66867. <method name="mapProgress" return="float"
  66868. abstract="false" native="false" synchronized="false"
  66869. static="false" final="false" visibility="public"
  66870. deprecated="not deprecated">
  66871. <exception name="IOException" type="java.io.IOException"/>
  66872. <doc>
  66873. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  66874. and 1.0. When all map tasks have completed, the function returns 1.0.
  66875. @return the progress of the job's map-tasks.
  66876. @throws IOException]]>
  66877. </doc>
  66878. </method>
  66879. <method name="reduceProgress" return="float"
  66880. abstract="false" native="false" synchronized="false"
  66881. static="false" final="false" visibility="public"
  66882. deprecated="not deprecated">
  66883. <exception name="IOException" type="java.io.IOException"/>
  66884. <doc>
  66885. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  66886. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  66887. @return the progress of the job's reduce-tasks.
  66888. @throws IOException]]>
  66889. </doc>
  66890. </method>
  66891. <method name="isComplete" return="boolean"
  66892. abstract="false" native="false" synchronized="false"
  66893. static="false" final="false" visibility="public"
  66894. deprecated="not deprecated">
  66895. <exception name="IOException" type="java.io.IOException"/>
  66896. <doc>
  66897. <![CDATA[Check if the job is finished or not.
  66898. This is a non-blocking call.
  66899. @return <code>true</code> if the job is complete, else <code>false</code>.
  66900. @throws IOException]]>
  66901. </doc>
  66902. </method>
  66903. <method name="isSuccessful" return="boolean"
  66904. abstract="false" native="false" synchronized="false"
  66905. static="false" final="false" visibility="public"
  66906. deprecated="not deprecated">
  66907. <exception name="IOException" type="java.io.IOException"/>
  66908. <doc>
  66909. <![CDATA[Check if the job completed successfully.
  66910. @return <code>true</code> if the job succeeded, else <code>false</code>.
  66911. @throws IOException]]>
  66912. </doc>
  66913. </method>
  66914. <method name="killJob"
  66915. abstract="false" native="false" synchronized="false"
  66916. static="false" final="false" visibility="public"
  66917. deprecated="not deprecated">
  66918. <exception name="IOException" type="java.io.IOException"/>
  66919. <doc>
  66920. <![CDATA[Kill the running job. Blocks until all job tasks have been
  66921. killed as well. If the job is no longer running, it simply returns.
  66922. @throws IOException]]>
  66923. </doc>
  66924. </method>
  66925. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  66926. abstract="false" native="false" synchronized="false"
  66927. static="false" final="false" visibility="public"
  66928. deprecated="not deprecated">
  66929. <param name="startFrom" type="int"/>
  66930. <exception name="IOException" type="java.io.IOException"/>
  66931. <doc>
  66932. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  66933. @param startFrom index to start fetching events from
  66934. @return an array of {@link TaskCompletionEvent}s
  66935. @throws IOException]]>
  66936. </doc>
  66937. </method>
  66938. <method name="killTask"
  66939. abstract="false" native="false" synchronized="false"
  66940. static="false" final="false" visibility="public"
  66941. deprecated="not deprecated">
  66942. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  66943. <exception name="IOException" type="java.io.IOException"/>
  66944. <doc>
  66945. <![CDATA[Kill indicated task attempt.
  66946. @param taskId the id of the task to be terminated.
  66947. @throws IOException]]>
  66948. </doc>
  66949. </method>
  66950. <method name="failTask"
  66951. abstract="false" native="false" synchronized="false"
  66952. static="false" final="false" visibility="public"
  66953. deprecated="not deprecated">
  66954. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  66955. <exception name="IOException" type="java.io.IOException"/>
  66956. <doc>
  66957. <![CDATA[Fail indicated task attempt.
  66958. @param taskId the id of the task to be terminated.
  66959. @throws IOException]]>
  66960. </doc>
  66961. </method>
  66962. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  66963. abstract="false" native="false" synchronized="false"
  66964. static="false" final="false" visibility="public"
  66965. deprecated="not deprecated">
  66966. <exception name="IOException" type="java.io.IOException"/>
  66967. <doc>
  66968. <![CDATA[Gets the counters for this job.
  66969. @return the counters for this job.
  66970. @throws IOException]]>
  66971. </doc>
  66972. </method>
  66973. <method name="setCancelDelegationTokenUponJobCompletion"
  66974. abstract="false" native="false" synchronized="false"
  66975. static="false" final="false" visibility="public"
  66976. deprecated="not deprecated">
  66977. <param name="value" type="boolean"/>
  66978. <doc>
  66979. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  66980. tokens upon job completion. Defaults to true.]]>
  66981. </doc>
  66982. </method>
  66983. <method name="submit"
  66984. abstract="false" native="false" synchronized="false"
  66985. static="false" final="false" visibility="public"
  66986. deprecated="not deprecated">
  66987. <exception name="IOException" type="java.io.IOException"/>
  66988. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66989. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  66990. <doc>
  66991. <![CDATA[Submit the job to the cluster and return immediately.
  66992. @throws IOException]]>
  66993. </doc>
  66994. </method>
  66995. <method name="waitForCompletion" return="boolean"
  66996. abstract="false" native="false" synchronized="false"
  66997. static="false" final="false" visibility="public"
  66998. deprecated="not deprecated">
  66999. <param name="verbose" type="boolean"/>
  67000. <exception name="IOException" type="java.io.IOException"/>
  67001. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67002. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67003. <doc>
  67004. <![CDATA[Submit the job to the cluster and wait for it to finish.
  67005. @param verbose print the progress to the user
  67006. @return true if the job succeeded
  67007. @throws IOException thrown if the communication with the
  67008. <code>JobTracker</code> is lost]]>
  67009. </doc>
  67010. </method>
  67011. <doc>
  67012. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  67013. job, submit it, control its execution, and query the state. The set methods
  67014. only work until the job is submitted, afterwards they will throw an
  67015. IllegalStateException.]]>
  67016. </doc>
  67017. </class>
  67018. <!-- end class org.apache.hadoop.mapreduce.Job -->
  67019. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  67020. <class name="Job.JobState" extends="java.lang.Enum"
  67021. abstract="false"
  67022. static="true" final="true" visibility="public"
  67023. deprecated="not deprecated">
  67024. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  67025. abstract="false" native="false" synchronized="false"
  67026. static="true" final="false" visibility="public"
  67027. deprecated="not deprecated">
  67028. </method>
  67029. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  67030. abstract="false" native="false" synchronized="false"
  67031. static="true" final="false" visibility="public"
  67032. deprecated="not deprecated">
  67033. <param name="name" type="java.lang.String"/>
  67034. </method>
  67035. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  67036. transient="false" volatile="false"
  67037. static="true" final="true" visibility="public"
  67038. deprecated="not deprecated">
  67039. </field>
  67040. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  67041. transient="false" volatile="false"
  67042. static="true" final="true" visibility="public"
  67043. deprecated="not deprecated">
  67044. </field>
  67045. </class>
  67046. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  67047. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  67048. <class name="JobACL" extends="java.lang.Enum"
  67049. abstract="false"
  67050. static="false" final="true" visibility="public"
  67051. deprecated="not deprecated">
  67052. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  67053. abstract="false" native="false" synchronized="false"
  67054. static="true" final="false" visibility="public"
  67055. deprecated="not deprecated">
  67056. </method>
  67057. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  67058. abstract="false" native="false" synchronized="false"
  67059. static="true" final="false" visibility="public"
  67060. deprecated="not deprecated">
  67061. <param name="name" type="java.lang.String"/>
  67062. </method>
  67063. <method name="getAclName" return="java.lang.String"
  67064. abstract="false" native="false" synchronized="false"
  67065. static="false" final="false" visibility="public"
  67066. deprecated="not deprecated">
  67067. <doc>
  67068. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  67069. property for specifying the ACL for the job.
  67070. @return aclName]]>
  67071. </doc>
  67072. </method>
  67073. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  67074. transient="false" volatile="false"
  67075. static="true" final="true" visibility="public"
  67076. deprecated="not deprecated">
  67077. <doc>
  67078. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  67079. related details.]]>
  67080. </doc>
  67081. </field>
  67082. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  67083. transient="false" volatile="false"
  67084. static="true" final="true" visibility="public"
  67085. deprecated="not deprecated">
  67086. <doc>
  67087. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  67088. killing the job, killing/failing a task of the job or setting priority of
  67089. the job.]]>
  67090. </doc>
  67091. </field>
  67092. <doc>
  67093. <![CDATA[Job related ACLs]]>
  67094. </doc>
  67095. </class>
  67096. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  67097. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  67098. <class name="JobContext" extends="java.lang.Object"
  67099. abstract="false"
  67100. static="false" final="false" visibility="public"
  67101. deprecated="not deprecated">
  67102. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  67103. static="false" final="false" visibility="public"
  67104. deprecated="not deprecated">
  67105. </constructor>
  67106. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  67107. abstract="false" native="false" synchronized="false"
  67108. static="false" final="false" visibility="public"
  67109. deprecated="not deprecated">
  67110. <doc>
  67111. <![CDATA[Return the configuration for the job.
  67112. @return the shared configuration object]]>
  67113. </doc>
  67114. </method>
  67115. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  67116. abstract="false" native="false" synchronized="false"
  67117. static="false" final="false" visibility="public"
  67118. deprecated="not deprecated">
  67119. <doc>
  67120. <![CDATA[Get credentials for the job.
  67121. @return credentials for the job]]>
  67122. </doc>
  67123. </method>
  67124. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  67125. abstract="false" native="false" synchronized="false"
  67126. static="false" final="false" visibility="public"
  67127. deprecated="not deprecated">
  67128. <doc>
  67129. <![CDATA[Get the unique ID for the job.
  67130. @return the object with the job id]]>
  67131. </doc>
  67132. </method>
  67133. <method name="getNumReduceTasks" return="int"
  67134. abstract="false" native="false" synchronized="false"
  67135. static="false" final="false" visibility="public"
  67136. deprecated="not deprecated">
  67137. <doc>
  67138. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  67139. <code>1</code>.
  67140. @return the number of reduce tasks for this job.]]>
  67141. </doc>
  67142. </method>
  67143. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  67144. abstract="false" native="false" synchronized="false"
  67145. static="false" final="false" visibility="public"
  67146. deprecated="not deprecated">
  67147. <exception name="IOException" type="java.io.IOException"/>
  67148. <doc>
  67149. <![CDATA[Get the current working directory for the default file system.
  67150. @return the directory name.]]>
  67151. </doc>
  67152. </method>
  67153. <method name="getOutputKeyClass" return="java.lang.Class"
  67154. abstract="false" native="false" synchronized="false"
  67155. static="false" final="false" visibility="public"
  67156. deprecated="not deprecated">
  67157. <doc>
  67158. <![CDATA[Get the key class for the job output data.
  67159. @return the key class for the job output data.]]>
  67160. </doc>
  67161. </method>
  67162. <method name="getOutputValueClass" return="java.lang.Class"
  67163. abstract="false" native="false" synchronized="false"
  67164. static="false" final="false" visibility="public"
  67165. deprecated="not deprecated">
  67166. <doc>
  67167. <![CDATA[Get the value class for job outputs.
  67168. @return the value class for job outputs.]]>
  67169. </doc>
  67170. </method>
  67171. <method name="getMapOutputKeyClass" return="java.lang.Class"
  67172. abstract="false" native="false" synchronized="false"
  67173. static="false" final="false" visibility="public"
  67174. deprecated="not deprecated">
  67175. <doc>
  67176. <![CDATA[Get the key class for the map output data. If it is not set, use the
  67177. (final) output key class. This allows the map output key class to be
  67178. different than the final output key class.
  67179. @return the map output key class.]]>
  67180. </doc>
  67181. </method>
  67182. <method name="getMapOutputValueClass" return="java.lang.Class"
  67183. abstract="false" native="false" synchronized="false"
  67184. static="false" final="false" visibility="public"
  67185. deprecated="not deprecated">
  67186. <doc>
  67187. <![CDATA[Get the value class for the map output data. If it is not set, use the
  67188. (final) output value class This allows the map output value class to be
  67189. different than the final output value class.
  67190. @return the map output value class.]]>
  67191. </doc>
  67192. </method>
  67193. <method name="getJobName" return="java.lang.String"
  67194. abstract="false" native="false" synchronized="false"
  67195. static="false" final="false" visibility="public"
  67196. deprecated="not deprecated">
  67197. <doc>
  67198. <![CDATA[Get the user-specified job name. This is only used to identify the
  67199. job to the user.
  67200. @return the job's name, defaulting to "".]]>
  67201. </doc>
  67202. </method>
  67203. <method name="getInputFormatClass" return="java.lang.Class"
  67204. abstract="false" native="false" synchronized="false"
  67205. static="false" final="false" visibility="public"
  67206. deprecated="not deprecated">
  67207. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67208. <doc>
  67209. <![CDATA[Get the {@link InputFormat} class for the job.
  67210. @return the {@link InputFormat} class for the job.]]>
  67211. </doc>
  67212. </method>
  67213. <method name="getMapperClass" return="java.lang.Class"
  67214. abstract="false" native="false" synchronized="false"
  67215. static="false" final="false" visibility="public"
  67216. deprecated="not deprecated">
  67217. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67218. <doc>
  67219. <![CDATA[Get the {@link Mapper} class for the job.
  67220. @return the {@link Mapper} class for the job.]]>
  67221. </doc>
  67222. </method>
  67223. <method name="getCombinerClass" return="java.lang.Class"
  67224. abstract="false" native="false" synchronized="false"
  67225. static="false" final="false" visibility="public"
  67226. deprecated="not deprecated">
  67227. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67228. <doc>
  67229. <![CDATA[Get the combiner class for the job.
  67230. @return the combiner class for the job.]]>
  67231. </doc>
  67232. </method>
  67233. <method name="getReducerClass" return="java.lang.Class"
  67234. abstract="false" native="false" synchronized="false"
  67235. static="false" final="false" visibility="public"
  67236. deprecated="not deprecated">
  67237. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67238. <doc>
  67239. <![CDATA[Get the {@link Reducer} class for the job.
  67240. @return the {@link Reducer} class for the job.]]>
  67241. </doc>
  67242. </method>
  67243. <method name="getOutputFormatClass" return="java.lang.Class"
  67244. abstract="false" native="false" synchronized="false"
  67245. static="false" final="false" visibility="public"
  67246. deprecated="not deprecated">
  67247. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67248. <doc>
  67249. <![CDATA[Get the {@link OutputFormat} class for the job.
  67250. @return the {@link OutputFormat} class for the job.]]>
  67251. </doc>
  67252. </method>
  67253. <method name="getPartitionerClass" return="java.lang.Class"
  67254. abstract="false" native="false" synchronized="false"
  67255. static="false" final="false" visibility="public"
  67256. deprecated="not deprecated">
  67257. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67258. <doc>
  67259. <![CDATA[Get the {@link Partitioner} class for the job.
  67260. @return the {@link Partitioner} class for the job.]]>
  67261. </doc>
  67262. </method>
  67263. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  67264. abstract="false" native="false" synchronized="false"
  67265. static="false" final="false" visibility="public"
  67266. deprecated="not deprecated">
  67267. <doc>
  67268. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  67269. @return the {@link RawComparator} comparator used to compare keys.]]>
  67270. </doc>
  67271. </method>
  67272. <method name="getJar" return="java.lang.String"
  67273. abstract="false" native="false" synchronized="false"
  67274. static="false" final="false" visibility="public"
  67275. deprecated="not deprecated">
  67276. <doc>
  67277. <![CDATA[Get the pathname of the job's jar.
  67278. @return the pathname]]>
  67279. </doc>
  67280. </method>
  67281. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  67282. abstract="false" native="false" synchronized="false"
  67283. static="false" final="false" visibility="public"
  67284. deprecated="not deprecated">
  67285. <doc>
  67286. <![CDATA[Get the user defined {@link RawComparator} comparator for
  67287. grouping keys of inputs to the reduce.
  67288. @return comparator set by the user for grouping values.
  67289. @see Job#setGroupingComparatorClass(Class) for details.]]>
  67290. </doc>
  67291. </method>
  67292. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  67293. transient="false" volatile="false"
  67294. static="true" final="true" visibility="protected"
  67295. deprecated="not deprecated">
  67296. </field>
  67297. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  67298. transient="false" volatile="false"
  67299. static="true" final="true" visibility="protected"
  67300. deprecated="not deprecated">
  67301. </field>
  67302. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  67303. transient="false" volatile="false"
  67304. static="true" final="true" visibility="protected"
  67305. deprecated="not deprecated">
  67306. </field>
  67307. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  67308. transient="false" volatile="false"
  67309. static="true" final="true" visibility="protected"
  67310. deprecated="not deprecated">
  67311. </field>
  67312. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  67313. transient="false" volatile="false"
  67314. static="true" final="true" visibility="protected"
  67315. deprecated="not deprecated">
  67316. </field>
  67317. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  67318. transient="false" volatile="false"
  67319. static="true" final="true" visibility="protected"
  67320. deprecated="not deprecated">
  67321. </field>
  67322. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  67323. transient="false" volatile="false"
  67324. static="false" final="true" visibility="protected"
  67325. deprecated="not deprecated">
  67326. </field>
  67327. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  67328. transient="false" volatile="false"
  67329. static="false" final="true" visibility="protected"
  67330. deprecated="not deprecated">
  67331. </field>
  67332. <field name="JOB_NAMENODES" type="java.lang.String"
  67333. transient="false" volatile="false"
  67334. static="true" final="true" visibility="public"
  67335. deprecated="not deprecated">
  67336. </field>
  67337. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  67338. transient="false" volatile="false"
  67339. static="true" final="true" visibility="public"
  67340. deprecated="not deprecated">
  67341. </field>
  67342. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  67343. transient="false" volatile="false"
  67344. static="true" final="true" visibility="public"
  67345. deprecated="not deprecated">
  67346. </field>
  67347. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  67348. transient="false" volatile="false"
  67349. static="true" final="true" visibility="public"
  67350. deprecated="not deprecated">
  67351. </field>
  67352. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  67353. transient="false" volatile="false"
  67354. static="true" final="true" visibility="public"
  67355. deprecated="not deprecated">
  67356. </field>
  67357. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  67358. transient="false" volatile="false"
  67359. static="true" final="true" visibility="public"
  67360. deprecated="not deprecated">
  67361. </field>
  67362. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  67363. transient="false" volatile="false"
  67364. static="true" final="true" visibility="public"
  67365. deprecated="not deprecated">
  67366. </field>
  67367. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  67368. transient="false" volatile="false"
  67369. static="false" final="false" visibility="protected"
  67370. deprecated="not deprecated">
  67371. <doc>
  67372. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  67373. </doc>
  67374. </field>
  67375. <doc>
  67376. <![CDATA[A read-only view of the job that is provided to the tasks while they
  67377. are running.]]>
  67378. </doc>
  67379. </class>
  67380. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  67381. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  67382. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  67383. abstract="false"
  67384. static="false" final="false" visibility="public"
  67385. deprecated="not deprecated">
  67386. <implements name="java.lang.Comparable"/>
  67387. <constructor name="JobID" type="java.lang.String, int"
  67388. static="false" final="false" visibility="public"
  67389. deprecated="not deprecated">
  67390. <doc>
  67391. <![CDATA[Constructs a JobID object
  67392. @param jtIdentifier jobTracker identifier
  67393. @param id job number]]>
  67394. </doc>
  67395. </constructor>
  67396. <constructor name="JobID"
  67397. static="false" final="false" visibility="public"
  67398. deprecated="not deprecated">
  67399. </constructor>
  67400. <method name="getJtIdentifier" return="java.lang.String"
  67401. abstract="false" native="false" synchronized="false"
  67402. static="false" final="false" visibility="public"
  67403. deprecated="not deprecated">
  67404. </method>
  67405. <method name="equals" return="boolean"
  67406. abstract="false" native="false" synchronized="false"
  67407. static="false" final="false" visibility="public"
  67408. deprecated="not deprecated">
  67409. <param name="o" type="java.lang.Object"/>
  67410. </method>
  67411. <method name="compareTo" return="int"
  67412. abstract="false" native="false" synchronized="false"
  67413. static="false" final="false" visibility="public"
  67414. deprecated="not deprecated">
  67415. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  67416. <doc>
  67417. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  67418. </doc>
  67419. </method>
  67420. <method name="appendTo" return="java.lang.StringBuilder"
  67421. abstract="false" native="false" synchronized="false"
  67422. static="false" final="false" visibility="public"
  67423. deprecated="not deprecated">
  67424. <param name="builder" type="java.lang.StringBuilder"/>
  67425. <doc>
  67426. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  67427. because the sub-ids use this substring at the start of their string.
  67428. @param builder the builder to append to
  67429. @return the builder that was passed in]]>
  67430. </doc>
  67431. </method>
  67432. <method name="hashCode" return="int"
  67433. abstract="false" native="false" synchronized="false"
  67434. static="false" final="false" visibility="public"
  67435. deprecated="not deprecated">
  67436. </method>
  67437. <method name="toString" return="java.lang.String"
  67438. abstract="false" native="false" synchronized="false"
  67439. static="false" final="false" visibility="public"
  67440. deprecated="not deprecated">
  67441. </method>
  67442. <method name="readFields"
  67443. abstract="false" native="false" synchronized="false"
  67444. static="false" final="false" visibility="public"
  67445. deprecated="not deprecated">
  67446. <param name="in" type="java.io.DataInput"/>
  67447. <exception name="IOException" type="java.io.IOException"/>
  67448. </method>
  67449. <method name="write"
  67450. abstract="false" native="false" synchronized="false"
  67451. static="false" final="false" visibility="public"
  67452. deprecated="not deprecated">
  67453. <param name="out" type="java.io.DataOutput"/>
  67454. <exception name="IOException" type="java.io.IOException"/>
  67455. </method>
  67456. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  67457. abstract="false" native="false" synchronized="false"
  67458. static="true" final="false" visibility="public"
  67459. deprecated="not deprecated">
  67460. <param name="str" type="java.lang.String"/>
  67461. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  67462. <doc>
  67463. <![CDATA[Construct a JobId object from given string
  67464. @return constructed JobId object or null if the given String is null
  67465. @throws IllegalArgumentException if the given string is malformed]]>
  67466. </doc>
  67467. </method>
  67468. <field name="JOB" type="java.lang.String"
  67469. transient="false" volatile="false"
  67470. static="true" final="true" visibility="protected"
  67471. deprecated="not deprecated">
  67472. </field>
  67473. <field name="JOBID_REGEX" type="java.lang.String"
  67474. transient="false" volatile="false"
  67475. static="true" final="true" visibility="public"
  67476. deprecated="not deprecated">
  67477. </field>
  67478. <field name="idFormat" type="java.text.NumberFormat"
  67479. transient="false" volatile="false"
  67480. static="true" final="true" visibility="protected"
  67481. deprecated="not deprecated">
  67482. </field>
  67483. <doc>
  67484. <![CDATA[JobID represents the immutable and unique identifier for
  67485. the job. JobID consists of two parts. First part
  67486. represents the jobtracker identifier, so that jobID to jobtracker map
  67487. is defined. For cluster setup this string is the jobtracker
  67488. start time, for local setting, it is "local".
  67489. Second part of the JobID is the job number. <br>
  67490. An example JobID is :
  67491. <code>job_200707121733_0003</code> , which represents the third job
  67492. running at the jobtracker started at <code>200707121733</code>.
  67493. <p>
  67494. Applications should never construct or parse JobID strings, but rather
  67495. use appropriate constructors or {@link #forName(String)} method.
  67496. @see TaskID
  67497. @see TaskAttemptID
  67498. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  67499. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  67500. </doc>
  67501. </class>
  67502. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  67503. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  67504. <class name="JobStatus" extends="java.lang.Object"
  67505. abstract="false"
  67506. static="false" final="false" visibility="public"
  67507. deprecated="not deprecated">
  67508. <constructor name="JobStatus"
  67509. static="false" final="false" visibility="public"
  67510. deprecated="not deprecated">
  67511. </constructor>
  67512. <doc>
  67513. <![CDATA[Describes the current status of a job.]]>
  67514. </doc>
  67515. </class>
  67516. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  67517. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  67518. <class name="JobStatus.State" extends="java.lang.Enum"
  67519. abstract="false"
  67520. static="true" final="true" visibility="public"
  67521. deprecated="not deprecated">
  67522. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  67523. abstract="false" native="false" synchronized="false"
  67524. static="true" final="false" visibility="public"
  67525. deprecated="not deprecated">
  67526. </method>
  67527. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  67528. abstract="false" native="false" synchronized="false"
  67529. static="true" final="false" visibility="public"
  67530. deprecated="not deprecated">
  67531. <param name="name" type="java.lang.String"/>
  67532. </method>
  67533. <method name="getValue" return="int"
  67534. abstract="false" native="false" synchronized="false"
  67535. static="false" final="false" visibility="public"
  67536. deprecated="not deprecated">
  67537. </method>
  67538. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67539. transient="false" volatile="false"
  67540. static="true" final="true" visibility="public"
  67541. deprecated="not deprecated">
  67542. </field>
  67543. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67544. transient="false" volatile="false"
  67545. static="true" final="true" visibility="public"
  67546. deprecated="not deprecated">
  67547. </field>
  67548. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67549. transient="false" volatile="false"
  67550. static="true" final="true" visibility="public"
  67551. deprecated="not deprecated">
  67552. </field>
  67553. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67554. transient="false" volatile="false"
  67555. static="true" final="true" visibility="public"
  67556. deprecated="not deprecated">
  67557. </field>
  67558. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67559. transient="false" volatile="false"
  67560. static="true" final="true" visibility="public"
  67561. deprecated="not deprecated">
  67562. </field>
  67563. <doc>
  67564. <![CDATA[Current state of the job]]>
  67565. </doc>
  67566. </class>
  67567. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  67568. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  67569. <class name="JobSubmissionFiles" extends="java.lang.Object"
  67570. abstract="false"
  67571. static="false" final="false" visibility="public"
  67572. deprecated="not deprecated">
  67573. <constructor name="JobSubmissionFiles"
  67574. static="false" final="false" visibility="public"
  67575. deprecated="not deprecated">
  67576. </constructor>
  67577. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  67578. abstract="false" native="false" synchronized="false"
  67579. static="true" final="false" visibility="public"
  67580. deprecated="not deprecated">
  67581. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  67582. </method>
  67583. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  67584. abstract="false" native="false" synchronized="false"
  67585. static="true" final="false" visibility="public"
  67586. deprecated="not deprecated">
  67587. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  67588. </method>
  67589. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  67590. abstract="false" native="false" synchronized="false"
  67591. static="true" final="false" visibility="public"
  67592. deprecated="not deprecated">
  67593. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67594. <doc>
  67595. <![CDATA[Get the job conf path.]]>
  67596. </doc>
  67597. </method>
  67598. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  67599. abstract="false" native="false" synchronized="false"
  67600. static="true" final="false" visibility="public"
  67601. deprecated="not deprecated">
  67602. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67603. <doc>
  67604. <![CDATA[Get the job jar path.]]>
  67605. </doc>
  67606. </method>
  67607. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  67608. abstract="false" native="false" synchronized="false"
  67609. static="true" final="false" visibility="public"
  67610. deprecated="not deprecated">
  67611. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67612. <doc>
  67613. <![CDATA[Get the job distributed cache files path.
  67614. @param jobSubmitDir]]>
  67615. </doc>
  67616. </method>
  67617. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  67618. abstract="false" native="false" synchronized="false"
  67619. static="true" final="false" visibility="public"
  67620. deprecated="not deprecated">
  67621. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67622. <doc>
  67623. <![CDATA[Get the job distributed cache archives path.
  67624. @param jobSubmitDir]]>
  67625. </doc>
  67626. </method>
  67627. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  67628. abstract="false" native="false" synchronized="false"
  67629. static="true" final="false" visibility="public"
  67630. deprecated="not deprecated">
  67631. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67632. <doc>
  67633. <![CDATA[Get the job distributed cache libjars path.
  67634. @param jobSubmitDir]]>
  67635. </doc>
  67636. </method>
  67637. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  67638. abstract="false" native="false" synchronized="false"
  67639. static="true" final="false" visibility="public"
  67640. deprecated="not deprecated">
  67641. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  67642. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67643. <exception name="IOException" type="java.io.IOException"/>
  67644. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67645. <doc>
  67646. <![CDATA[Initializes the staging directory and returns the path. It also
  67647. keeps track of all necessary ownership & permissions
  67648. @param client
  67649. @param conf]]>
  67650. </doc>
  67651. </method>
  67652. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  67653. transient="false" volatile="false"
  67654. static="true" final="true" visibility="public"
  67655. deprecated="not deprecated">
  67656. </field>
  67657. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  67658. transient="false" volatile="false"
  67659. static="true" final="true" visibility="public"
  67660. deprecated="not deprecated">
  67661. </field>
  67662. <doc>
  67663. <![CDATA[A utility to manage job submission files.<br/>
  67664. <b><i>Note that this class is for framework internal usage only and is
  67665. not to be used by users directly.</i></b>]]>
  67666. </doc>
  67667. </class>
  67668. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  67669. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  67670. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  67671. abstract="false"
  67672. static="false" final="false" visibility="public"
  67673. deprecated="not deprecated">
  67674. <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"
  67675. static="false" final="false" visibility="public"
  67676. deprecated="not deprecated">
  67677. </constructor>
  67678. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  67679. abstract="false" native="false" synchronized="false"
  67680. static="false" final="false" visibility="public"
  67681. deprecated="not deprecated">
  67682. <doc>
  67683. <![CDATA[Get the input split for this map.]]>
  67684. </doc>
  67685. </method>
  67686. <method name="getCurrentKey" return="java.lang.Object"
  67687. abstract="false" native="false" synchronized="false"
  67688. static="false" final="false" visibility="public"
  67689. deprecated="not deprecated">
  67690. <exception name="IOException" type="java.io.IOException"/>
  67691. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67692. </method>
  67693. <method name="getCurrentValue" return="java.lang.Object"
  67694. abstract="false" native="false" synchronized="false"
  67695. static="false" final="false" visibility="public"
  67696. deprecated="not deprecated">
  67697. <exception name="IOException" type="java.io.IOException"/>
  67698. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67699. </method>
  67700. <method name="nextKeyValue" return="boolean"
  67701. abstract="false" native="false" synchronized="false"
  67702. static="false" final="false" visibility="public"
  67703. deprecated="not deprecated">
  67704. <exception name="IOException" type="java.io.IOException"/>
  67705. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67706. </method>
  67707. <doc>
  67708. <![CDATA[The context that is given to the {@link Mapper}.
  67709. @param <KEYIN> the key input type to the Mapper
  67710. @param <VALUEIN> the value input type to the Mapper
  67711. @param <KEYOUT> the key output type from the Mapper
  67712. @param <VALUEOUT> the value output type from the Mapper]]>
  67713. </doc>
  67714. </class>
  67715. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  67716. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  67717. <class name="Mapper" extends="java.lang.Object"
  67718. abstract="false"
  67719. static="false" final="false" visibility="public"
  67720. deprecated="not deprecated">
  67721. <constructor name="Mapper"
  67722. static="false" final="false" visibility="public"
  67723. deprecated="not deprecated">
  67724. </constructor>
  67725. <method name="setup"
  67726. abstract="false" native="false" synchronized="false"
  67727. static="false" final="false" visibility="protected"
  67728. deprecated="not deprecated">
  67729. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67730. <exception name="IOException" type="java.io.IOException"/>
  67731. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67732. <doc>
  67733. <![CDATA[Called once at the beginning of the task.]]>
  67734. </doc>
  67735. </method>
  67736. <method name="map"
  67737. abstract="false" native="false" synchronized="false"
  67738. static="false" final="false" visibility="protected"
  67739. deprecated="not deprecated">
  67740. <param name="key" type="java.lang.Object"/>
  67741. <param name="value" type="java.lang.Object"/>
  67742. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67743. <exception name="IOException" type="java.io.IOException"/>
  67744. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67745. <doc>
  67746. <![CDATA[Called once for each key/value pair in the input split. Most applications
  67747. should override this, but the default is the identity function.]]>
  67748. </doc>
  67749. </method>
  67750. <method name="cleanup"
  67751. abstract="false" native="false" synchronized="false"
  67752. static="false" final="false" visibility="protected"
  67753. deprecated="not deprecated">
  67754. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67755. <exception name="IOException" type="java.io.IOException"/>
  67756. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67757. <doc>
  67758. <![CDATA[Called once at the end of the task.]]>
  67759. </doc>
  67760. </method>
  67761. <method name="run"
  67762. abstract="false" native="false" synchronized="false"
  67763. static="false" final="false" visibility="public"
  67764. deprecated="not deprecated">
  67765. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67766. <exception name="IOException" type="java.io.IOException"/>
  67767. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67768. <doc>
  67769. <![CDATA[Expert users can override this method for more complete control over the
  67770. execution of the Mapper.
  67771. @param context
  67772. @throws IOException]]>
  67773. </doc>
  67774. </method>
  67775. <doc>
  67776. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  67777. <p>Maps are the individual tasks which transform input records into a
  67778. intermediate records. The transformed intermediate records need not be of
  67779. the same type as the input records. A given input pair may map to zero or
  67780. many output pairs.</p>
  67781. <p>The Hadoop Map-Reduce framework spawns one map task for each
  67782. {@link InputSplit} generated by the {@link InputFormat} for the job.
  67783. <code>Mapper</code> implementations can access the {@link Configuration} for
  67784. the job via the {@link JobContext#getConfiguration()}.
  67785. <p>The framework first calls
  67786. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  67787. {@link #map(Object, Object, Context)}
  67788. for each key/value pair in the <code>InputSplit</code>. Finally
  67789. {@link #cleanup(Context)} is called.</p>
  67790. <p>All intermediate values associated with a given output key are
  67791. subsequently grouped by the framework, and passed to a {@link Reducer} to
  67792. determine the final output. Users can control the sorting and grouping by
  67793. specifying two key {@link RawComparator} classes.</p>
  67794. <p>The <code>Mapper</code> outputs are partitioned per
  67795. <code>Reducer</code>. Users can control which keys (and hence records) go to
  67796. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  67797. <p>Users can optionally specify a <code>combiner</code>, via
  67798. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  67799. intermediate outputs, which helps to cut down the amount of data transferred
  67800. from the <code>Mapper</code> to the <code>Reducer</code>.
  67801. <p>Applications can specify if and how the intermediate
  67802. outputs are to be compressed and which {@link CompressionCodec}s are to be
  67803. used via the <code>Configuration</code>.</p>
  67804. <p>If the job has zero
  67805. reduces then the output of the <code>Mapper</code> is directly written
  67806. to the {@link OutputFormat} without sorting by keys.</p>
  67807. <p>Example:</p>
  67808. <p><blockquote><pre>
  67809. public class TokenCounterMapper
  67810. extends Mapper<Object, Text, Text, IntWritable>{
  67811. private final static IntWritable one = new IntWritable(1);
  67812. private Text word = new Text();
  67813. public void map(Object key, Text value, Context context) throws IOException {
  67814. StringTokenizer itr = new StringTokenizer(value.toString());
  67815. while (itr.hasMoreTokens()) {
  67816. word.set(itr.nextToken());
  67817. context.collect(word, one);
  67818. }
  67819. }
  67820. }
  67821. </pre></blockquote></p>
  67822. <p>Applications may override the {@link #run(Context)} method to exert
  67823. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  67824. etc.</p>
  67825. @see InputFormat
  67826. @see JobContext
  67827. @see Partitioner
  67828. @see Reducer]]>
  67829. </doc>
  67830. </class>
  67831. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  67832. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  67833. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  67834. abstract="false"
  67835. static="false" final="false" visibility="public"
  67836. deprecated="not deprecated">
  67837. <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"
  67838. static="false" final="false" visibility="public"
  67839. deprecated="not deprecated">
  67840. <exception name="IOException" type="java.io.IOException"/>
  67841. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67842. </constructor>
  67843. </class>
  67844. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  67845. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  67846. <class name="OutputCommitter" extends="java.lang.Object"
  67847. abstract="true"
  67848. static="false" final="false" visibility="public"
  67849. deprecated="not deprecated">
  67850. <constructor name="OutputCommitter"
  67851. static="false" final="false" visibility="public"
  67852. deprecated="not deprecated">
  67853. </constructor>
  67854. <method name="setupJob"
  67855. abstract="true" native="false" synchronized="false"
  67856. static="false" final="false" visibility="public"
  67857. deprecated="not deprecated">
  67858. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67859. <exception name="IOException" type="java.io.IOException"/>
  67860. <doc>
  67861. <![CDATA[For the framework to setup the job output during initialization
  67862. @param jobContext Context of the job whose output is being written.
  67863. @throws IOException if temporary output could not be created]]>
  67864. </doc>
  67865. </method>
  67866. <method name="commitJob"
  67867. abstract="false" native="false" synchronized="false"
  67868. static="false" final="false" visibility="public"
  67869. deprecated="not deprecated">
  67870. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67871. <exception name="IOException" type="java.io.IOException"/>
  67872. <doc>
  67873. <![CDATA[For cleaning up the job's output after job completion. Note that this
  67874. is invoked for jobs with final run state as
  67875. {@link JobStatus.State#SUCCEEDED}
  67876. @param jobContext Context of the job whose output is being written.
  67877. @throws IOException]]>
  67878. </doc>
  67879. </method>
  67880. <method name="cleanupJob"
  67881. abstract="false" native="false" synchronized="false"
  67882. static="false" final="false" visibility="public"
  67883. deprecated="use {@link #commitJob(JobContext)} or
  67884. {@link #abortJob(JobContext, JobStatus.State)} instead">
  67885. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67886. <exception name="IOException" type="java.io.IOException"/>
  67887. <doc>
  67888. <![CDATA[For cleaning up the job's output after job completion
  67889. @deprecated use {@link #commitJob(JobContext)} or
  67890. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  67891. </doc>
  67892. </method>
  67893. <method name="abortJob"
  67894. abstract="false" native="false" synchronized="false"
  67895. static="false" final="false" visibility="public"
  67896. deprecated="not deprecated">
  67897. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67898. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  67899. <exception name="IOException" type="java.io.IOException"/>
  67900. <doc>
  67901. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  67902. jobs with final run state as {@link JobStatus.State#FAILED} or
  67903. {@link JobStatus.State#KILLED}.
  67904. @param jobContext Context of the job whose output is being written.
  67905. @param state final run state of the job, should be either
  67906. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  67907. @throws IOException]]>
  67908. </doc>
  67909. </method>
  67910. <method name="setupTask"
  67911. abstract="true" native="false" synchronized="false"
  67912. static="false" final="false" visibility="public"
  67913. deprecated="not deprecated">
  67914. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67915. <exception name="IOException" type="java.io.IOException"/>
  67916. <doc>
  67917. <![CDATA[Sets up output for the task.
  67918. @param taskContext Context of the task whose output is being written.
  67919. @throws IOException]]>
  67920. </doc>
  67921. </method>
  67922. <method name="needsTaskCommit" return="boolean"
  67923. abstract="true" native="false" synchronized="false"
  67924. static="false" final="false" visibility="public"
  67925. deprecated="not deprecated">
  67926. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67927. <exception name="IOException" type="java.io.IOException"/>
  67928. <doc>
  67929. <![CDATA[Check whether task needs a commit
  67930. @param taskContext
  67931. @return true/false
  67932. @throws IOException]]>
  67933. </doc>
  67934. </method>
  67935. <method name="commitTask"
  67936. abstract="true" native="false" synchronized="false"
  67937. static="false" final="false" visibility="public"
  67938. deprecated="not deprecated">
  67939. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67940. <exception name="IOException" type="java.io.IOException"/>
  67941. <doc>
  67942. <![CDATA[To promote the task's temporary output to final output location
  67943. The task's output is moved to the job's output directory.
  67944. @param taskContext Context of the task whose output is being written.
  67945. @throws IOException if commit is not]]>
  67946. </doc>
  67947. </method>
  67948. <method name="abortTask"
  67949. abstract="true" native="false" synchronized="false"
  67950. static="false" final="false" visibility="public"
  67951. deprecated="not deprecated">
  67952. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67953. <exception name="IOException" type="java.io.IOException"/>
  67954. <doc>
  67955. <![CDATA[Discard the task output
  67956. @param taskContext
  67957. @throws IOException]]>
  67958. </doc>
  67959. </method>
  67960. <doc>
  67961. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  67962. Map-Reduce job.
  67963. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  67964. the job to:<p>
  67965. <ol>
  67966. <li>
  67967. Setup the job during initialization. For example, create the temporary
  67968. output directory for the job during the initialization of the job.
  67969. </li>
  67970. <li>
  67971. Cleanup the job after the job completion. For example, remove the
  67972. temporary output directory after the job completion.
  67973. </li>
  67974. <li>
  67975. Setup the task temporary output.
  67976. </li>
  67977. <li>
  67978. Check whether a task needs a commit. This is to avoid the commit
  67979. procedure if a task does not need commit.
  67980. </li>
  67981. <li>
  67982. Commit of the task output.
  67983. </li>
  67984. <li>
  67985. Discard the task commit.
  67986. </li>
  67987. </ol>
  67988. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  67989. @see JobContext
  67990. @see TaskAttemptContext]]>
  67991. </doc>
  67992. </class>
  67993. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  67994. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  67995. <class name="OutputFormat" extends="java.lang.Object"
  67996. abstract="true"
  67997. static="false" final="false" visibility="public"
  67998. deprecated="not deprecated">
  67999. <constructor name="OutputFormat"
  68000. static="false" final="false" visibility="public"
  68001. deprecated="not deprecated">
  68002. </constructor>
  68003. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68004. abstract="true" native="false" synchronized="false"
  68005. static="false" final="false" visibility="public"
  68006. deprecated="not deprecated">
  68007. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68008. <exception name="IOException" type="java.io.IOException"/>
  68009. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68010. <doc>
  68011. <![CDATA[Get the {@link RecordWriter} for the given task.
  68012. @param context the information about the current task.
  68013. @return a {@link RecordWriter} to write the output for the job.
  68014. @throws IOException]]>
  68015. </doc>
  68016. </method>
  68017. <method name="checkOutputSpecs"
  68018. abstract="true" native="false" synchronized="false"
  68019. static="false" final="false" visibility="public"
  68020. deprecated="not deprecated">
  68021. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  68022. <exception name="IOException" type="java.io.IOException"/>
  68023. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68024. <doc>
  68025. <![CDATA[Check for validity of the output-specification for the job.
  68026. <p>This is to validate the output specification for the job when it is
  68027. a job is submitted. Typically checks that it does not already exist,
  68028. throwing an exception when it already exists, so that output is not
  68029. overwritten.</p>
  68030. @param context information about the job
  68031. @throws IOException when output should not be attempted]]>
  68032. </doc>
  68033. </method>
  68034. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68035. abstract="true" native="false" synchronized="false"
  68036. static="false" final="false" visibility="public"
  68037. deprecated="not deprecated">
  68038. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68039. <exception name="IOException" type="java.io.IOException"/>
  68040. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68041. <doc>
  68042. <![CDATA[Get the output committer for this output format. This is responsible
  68043. for ensuring the output is committed correctly.
  68044. @param context the task context
  68045. @return an output committer
  68046. @throws IOException
  68047. @throws InterruptedException]]>
  68048. </doc>
  68049. </method>
  68050. <doc>
  68051. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  68052. Map-Reduce job.
  68053. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  68054. job to:<p>
  68055. <ol>
  68056. <li>
  68057. Validate the output-specification of the job. For e.g. check that the
  68058. output directory doesn't already exist.
  68059. <li>
  68060. Provide the {@link RecordWriter} implementation to be used to write out
  68061. the output files of the job. Output files are stored in a
  68062. {@link FileSystem}.
  68063. </li>
  68064. </ol>
  68065. @see RecordWriter]]>
  68066. </doc>
  68067. </class>
  68068. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  68069. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  68070. <class name="Partitioner" extends="java.lang.Object"
  68071. abstract="true"
  68072. static="false" final="false" visibility="public"
  68073. deprecated="not deprecated">
  68074. <constructor name="Partitioner"
  68075. static="false" final="false" visibility="public"
  68076. deprecated="not deprecated">
  68077. </constructor>
  68078. <method name="getPartition" return="int"
  68079. abstract="true" native="false" synchronized="false"
  68080. static="false" final="false" visibility="public"
  68081. deprecated="not deprecated">
  68082. <param name="key" type="java.lang.Object"/>
  68083. <param name="value" type="java.lang.Object"/>
  68084. <param name="numPartitions" type="int"/>
  68085. <doc>
  68086. <![CDATA[Get the partition number for a given key (hence record) given the total
  68087. number of partitions i.e. number of reduce-tasks for the job.
  68088. <p>Typically a hash function on a all or a subset of the key.</p>
  68089. @param key the key to be partioned.
  68090. @param value the entry value.
  68091. @param numPartitions the total number of partitions.
  68092. @return the partition number for the <code>key</code>.]]>
  68093. </doc>
  68094. </method>
  68095. <doc>
  68096. <![CDATA[Partitions the key space.
  68097. <p><code>Partitioner</code> controls the partitioning of the keys of the
  68098. intermediate map-outputs. The key (or a subset of the key) is used to derive
  68099. the partition, typically by a hash function. The total number of partitions
  68100. is the same as the number of reduce tasks for the job. Hence this controls
  68101. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  68102. record) is sent for reduction.</p>
  68103. @see Reducer]]>
  68104. </doc>
  68105. </class>
  68106. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  68107. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  68108. <class name="RecordReader" extends="java.lang.Object"
  68109. abstract="true"
  68110. static="false" final="false" visibility="public"
  68111. deprecated="not deprecated">
  68112. <implements name="java.io.Closeable"/>
  68113. <constructor name="RecordReader"
  68114. static="false" final="false" visibility="public"
  68115. deprecated="not deprecated">
  68116. </constructor>
  68117. <method name="initialize"
  68118. abstract="true" native="false" synchronized="false"
  68119. static="false" final="false" visibility="public"
  68120. deprecated="not deprecated">
  68121. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68122. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68123. <exception name="IOException" type="java.io.IOException"/>
  68124. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68125. <doc>
  68126. <![CDATA[Called once at initialization.
  68127. @param split the split that defines the range of records to read
  68128. @param context the information about the task
  68129. @throws IOException
  68130. @throws InterruptedException]]>
  68131. </doc>
  68132. </method>
  68133. <method name="nextKeyValue" return="boolean"
  68134. abstract="true" native="false" synchronized="false"
  68135. static="false" final="false" visibility="public"
  68136. deprecated="not deprecated">
  68137. <exception name="IOException" type="java.io.IOException"/>
  68138. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68139. <doc>
  68140. <![CDATA[Read the next key, value pair.
  68141. @return true if a key/value pair was read
  68142. @throws IOException
  68143. @throws InterruptedException]]>
  68144. </doc>
  68145. </method>
  68146. <method name="getCurrentKey" return="java.lang.Object"
  68147. abstract="true" native="false" synchronized="false"
  68148. static="false" final="false" visibility="public"
  68149. deprecated="not deprecated">
  68150. <exception name="IOException" type="java.io.IOException"/>
  68151. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68152. <doc>
  68153. <![CDATA[Get the current key
  68154. @return the current key or null if there is no current key
  68155. @throws IOException
  68156. @throws InterruptedException]]>
  68157. </doc>
  68158. </method>
  68159. <method name="getCurrentValue" return="java.lang.Object"
  68160. abstract="true" native="false" synchronized="false"
  68161. static="false" final="false" visibility="public"
  68162. deprecated="not deprecated">
  68163. <exception name="IOException" type="java.io.IOException"/>
  68164. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68165. <doc>
  68166. <![CDATA[Get the current value.
  68167. @return the object that was read
  68168. @throws IOException
  68169. @throws InterruptedException]]>
  68170. </doc>
  68171. </method>
  68172. <method name="getProgress" return="float"
  68173. abstract="true" native="false" synchronized="false"
  68174. static="false" final="false" visibility="public"
  68175. deprecated="not deprecated">
  68176. <exception name="IOException" type="java.io.IOException"/>
  68177. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68178. <doc>
  68179. <![CDATA[The current progress of the record reader through its data.
  68180. @return a number between 0.0 and 1.0 that is the fraction of the data read
  68181. @throws IOException
  68182. @throws InterruptedException]]>
  68183. </doc>
  68184. </method>
  68185. <method name="close"
  68186. abstract="true" native="false" synchronized="false"
  68187. static="false" final="false" visibility="public"
  68188. deprecated="not deprecated">
  68189. <exception name="IOException" type="java.io.IOException"/>
  68190. <doc>
  68191. <![CDATA[Close the record reader.]]>
  68192. </doc>
  68193. </method>
  68194. <doc>
  68195. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  68196. {@link Mapper}.
  68197. @param <KEYIN>
  68198. @param <VALUEIN>]]>
  68199. </doc>
  68200. </class>
  68201. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  68202. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  68203. <class name="RecordWriter" extends="java.lang.Object"
  68204. abstract="true"
  68205. static="false" final="false" visibility="public"
  68206. deprecated="not deprecated">
  68207. <constructor name="RecordWriter"
  68208. static="false" final="false" visibility="public"
  68209. deprecated="not deprecated">
  68210. </constructor>
  68211. <method name="write"
  68212. abstract="true" native="false" synchronized="false"
  68213. static="false" final="false" visibility="public"
  68214. deprecated="not deprecated">
  68215. <param name="key" type="java.lang.Object"/>
  68216. <param name="value" type="java.lang.Object"/>
  68217. <exception name="IOException" type="java.io.IOException"/>
  68218. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68219. <doc>
  68220. <![CDATA[Writes a key/value pair.
  68221. @param key the key to write.
  68222. @param value the value to write.
  68223. @throws IOException]]>
  68224. </doc>
  68225. </method>
  68226. <method name="close"
  68227. abstract="true" native="false" synchronized="false"
  68228. static="false" final="false" visibility="public"
  68229. deprecated="not deprecated">
  68230. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68231. <exception name="IOException" type="java.io.IOException"/>
  68232. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68233. <doc>
  68234. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  68235. @param context the context of the task
  68236. @throws IOException]]>
  68237. </doc>
  68238. </method>
  68239. <doc>
  68240. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  68241. to an output file.
  68242. <p><code>RecordWriter</code> implementations write the job outputs to the
  68243. {@link FileSystem}.
  68244. @see OutputFormat]]>
  68245. </doc>
  68246. </class>
  68247. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  68248. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  68249. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  68250. abstract="false"
  68251. static="false" final="false" visibility="public"
  68252. deprecated="not deprecated">
  68253. <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"
  68254. static="false" final="false" visibility="public"
  68255. deprecated="not deprecated">
  68256. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68257. <exception name="IOException" type="java.io.IOException"/>
  68258. </constructor>
  68259. <method name="nextKey" return="boolean"
  68260. abstract="false" native="false" synchronized="false"
  68261. static="false" final="false" visibility="public"
  68262. deprecated="not deprecated">
  68263. <exception name="IOException" type="java.io.IOException"/>
  68264. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68265. <doc>
  68266. <![CDATA[Start processing next unique key.]]>
  68267. </doc>
  68268. </method>
  68269. <method name="nextKeyValue" return="boolean"
  68270. abstract="false" native="false" synchronized="false"
  68271. static="false" final="false" visibility="public"
  68272. deprecated="not deprecated">
  68273. <exception name="IOException" type="java.io.IOException"/>
  68274. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68275. <doc>
  68276. <![CDATA[Advance to the next key/value pair.]]>
  68277. </doc>
  68278. </method>
  68279. <method name="getCurrentKey" return="java.lang.Object"
  68280. abstract="false" native="false" synchronized="false"
  68281. static="false" final="false" visibility="public"
  68282. deprecated="not deprecated">
  68283. </method>
  68284. <method name="getCurrentValue" return="java.lang.Object"
  68285. abstract="false" native="false" synchronized="false"
  68286. static="false" final="false" visibility="public"
  68287. deprecated="not deprecated">
  68288. </method>
  68289. <method name="getValues" return="java.lang.Iterable"
  68290. abstract="false" native="false" synchronized="false"
  68291. static="false" final="false" visibility="public"
  68292. deprecated="not deprecated">
  68293. <exception name="IOException" type="java.io.IOException"/>
  68294. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68295. <doc>
  68296. <![CDATA[Iterate through the values for the current key, reusing the same value
  68297. object, which is stored in the context.
  68298. @return the series of values associated with the current key. All of the
  68299. objects returned directly and indirectly from this method are reused.]]>
  68300. </doc>
  68301. </method>
  68302. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  68303. transient="false" volatile="false"
  68304. static="false" final="false" visibility="protected"
  68305. deprecated="not deprecated">
  68306. </field>
  68307. <doc>
  68308. <![CDATA[The context passed to the {@link Reducer}.
  68309. @param <KEYIN> the class of the input keys
  68310. @param <VALUEIN> the class of the input values
  68311. @param <KEYOUT> the class of the output keys
  68312. @param <VALUEOUT> the class of the output values]]>
  68313. </doc>
  68314. </class>
  68315. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  68316. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  68317. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  68318. abstract="false"
  68319. static="false" final="false" visibility="protected"
  68320. deprecated="not deprecated">
  68321. <implements name="java.lang.Iterable"/>
  68322. <constructor name="ReduceContext.ValueIterable"
  68323. static="false" final="false" visibility="protected"
  68324. deprecated="not deprecated">
  68325. </constructor>
  68326. <method name="iterator" return="java.util.Iterator"
  68327. abstract="false" native="false" synchronized="false"
  68328. static="false" final="false" visibility="public"
  68329. deprecated="not deprecated">
  68330. </method>
  68331. </class>
  68332. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  68333. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  68334. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  68335. abstract="false"
  68336. static="false" final="false" visibility="protected"
  68337. deprecated="not deprecated">
  68338. <implements name="java.util.Iterator"/>
  68339. <constructor name="ReduceContext.ValueIterator"
  68340. static="false" final="false" visibility="protected"
  68341. deprecated="not deprecated">
  68342. </constructor>
  68343. <method name="hasNext" return="boolean"
  68344. abstract="false" native="false" synchronized="false"
  68345. static="false" final="false" visibility="public"
  68346. deprecated="not deprecated">
  68347. </method>
  68348. <method name="next" return="java.lang.Object"
  68349. abstract="false" native="false" synchronized="false"
  68350. static="false" final="false" visibility="public"
  68351. deprecated="not deprecated">
  68352. </method>
  68353. <method name="remove"
  68354. abstract="false" native="false" synchronized="false"
  68355. static="false" final="false" visibility="public"
  68356. deprecated="not deprecated">
  68357. </method>
  68358. </class>
  68359. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  68360. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  68361. <class name="Reducer" extends="java.lang.Object"
  68362. abstract="false"
  68363. static="false" final="false" visibility="public"
  68364. deprecated="not deprecated">
  68365. <constructor name="Reducer"
  68366. static="false" final="false" visibility="public"
  68367. deprecated="not deprecated">
  68368. </constructor>
  68369. <method name="setup"
  68370. abstract="false" native="false" synchronized="false"
  68371. static="false" final="false" visibility="protected"
  68372. deprecated="not deprecated">
  68373. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68374. <exception name="IOException" type="java.io.IOException"/>
  68375. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68376. <doc>
  68377. <![CDATA[Called once at the start of the task.]]>
  68378. </doc>
  68379. </method>
  68380. <method name="reduce"
  68381. abstract="false" native="false" synchronized="false"
  68382. static="false" final="false" visibility="protected"
  68383. deprecated="not deprecated">
  68384. <param name="key" type="java.lang.Object"/>
  68385. <param name="values" type="java.lang.Iterable"/>
  68386. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68387. <exception name="IOException" type="java.io.IOException"/>
  68388. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68389. <doc>
  68390. <![CDATA[This method is called once for each key. Most applications will define
  68391. their reduce class by overriding this method. The default implementation
  68392. is an identity function.]]>
  68393. </doc>
  68394. </method>
  68395. <method name="cleanup"
  68396. abstract="false" native="false" synchronized="false"
  68397. static="false" final="false" visibility="protected"
  68398. deprecated="not deprecated">
  68399. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68400. <exception name="IOException" type="java.io.IOException"/>
  68401. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68402. <doc>
  68403. <![CDATA[Called once at the end of the task.]]>
  68404. </doc>
  68405. </method>
  68406. <method name="run"
  68407. abstract="false" native="false" synchronized="false"
  68408. static="false" final="false" visibility="public"
  68409. deprecated="not deprecated">
  68410. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68411. <exception name="IOException" type="java.io.IOException"/>
  68412. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68413. <doc>
  68414. <![CDATA[Advanced application writers can use the
  68415. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  68416. control how the reduce task works.]]>
  68417. </doc>
  68418. </method>
  68419. <doc>
  68420. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  68421. values.
  68422. <p><code>Reducer</code> implementations
  68423. can access the {@link Configuration} for the job via the
  68424. {@link JobContext#getConfiguration()} method.</p>
  68425. <p><code>Reducer</code> has 3 primary phases:</p>
  68426. <ol>
  68427. <li>
  68428. <h4 id="Shuffle">Shuffle</h4>
  68429. <p>The <code>Reducer</code> copies the sorted output from each
  68430. {@link Mapper} using HTTP across the network.</p>
  68431. </li>
  68432. <li>
  68433. <h4 id="Sort">Sort</h4>
  68434. <p>The framework merge sorts <code>Reducer</code> inputs by
  68435. <code>key</code>s
  68436. (since different <code>Mapper</code>s may have output the same key).</p>
  68437. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  68438. being fetched they are merged.</p>
  68439. <h5 id="SecondarySort">SecondarySort</h5>
  68440. <p>To achieve a secondary sort on the values returned by the value
  68441. iterator, the application should extend the key with the secondary
  68442. key and define a grouping comparator. The keys will be sorted using the
  68443. entire key, but will be grouped using the grouping comparator to decide
  68444. which keys and values are sent in the same call to reduce.The grouping
  68445. comparator is specified via
  68446. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  68447. controlled by
  68448. {@link Job#setSortComparatorClass(Class)}.</p>
  68449. For example, say that you want to find duplicate web pages and tag them
  68450. all with the url of the "best" known example. You would set up the job
  68451. like:
  68452. <ul>
  68453. <li>Map Input Key: url</li>
  68454. <li>Map Input Value: document</li>
  68455. <li>Map Output Key: document checksum, url pagerank</li>
  68456. <li>Map Output Value: url</li>
  68457. <li>Partitioner: by checksum</li>
  68458. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  68459. <li>OutputValueGroupingComparator: by checksum</li>
  68460. </ul>
  68461. </li>
  68462. <li>
  68463. <h4 id="Reduce">Reduce</h4>
  68464. <p>In this phase the
  68465. {@link #reduce(Object, Iterable, Context)}
  68466. method is called for each <code>&lt;key, (collection of values)></code> in
  68467. the sorted inputs.</p>
  68468. <p>The output of the reduce task is typically written to a
  68469. {@link RecordWriter} via
  68470. {@link Context#write(Object, Object)}.</p>
  68471. </li>
  68472. </ol>
  68473. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  68474. <p>Example:</p>
  68475. <p><blockquote><pre>
  68476. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  68477. Key,IntWritable> {
  68478. private IntWritable result = new IntWritable();
  68479. public void reduce(Key key, Iterable<IntWritable> values,
  68480. Context context) throws IOException {
  68481. int sum = 0;
  68482. for (IntWritable val : values) {
  68483. sum += val.get();
  68484. }
  68485. result.set(sum);
  68486. context.collect(key, result);
  68487. }
  68488. }
  68489. </pre></blockquote></p>
  68490. @see Mapper
  68491. @see Partitioner]]>
  68492. </doc>
  68493. </class>
  68494. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  68495. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  68496. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  68497. abstract="false"
  68498. static="false" final="false" visibility="public"
  68499. deprecated="not deprecated">
  68500. <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"
  68501. static="false" final="false" visibility="public"
  68502. deprecated="not deprecated">
  68503. <exception name="IOException" type="java.io.IOException"/>
  68504. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68505. </constructor>
  68506. </class>
  68507. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  68508. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  68509. <class name="StatusReporter" extends="java.lang.Object"
  68510. abstract="true"
  68511. static="false" final="false" visibility="public"
  68512. deprecated="not deprecated">
  68513. <constructor name="StatusReporter"
  68514. static="false" final="false" visibility="public"
  68515. deprecated="not deprecated">
  68516. </constructor>
  68517. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68518. abstract="true" native="false" synchronized="false"
  68519. static="false" final="false" visibility="public"
  68520. deprecated="not deprecated">
  68521. <param name="name" type="java.lang.Enum"/>
  68522. </method>
  68523. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68524. abstract="true" native="false" synchronized="false"
  68525. static="false" final="false" visibility="public"
  68526. deprecated="not deprecated">
  68527. <param name="group" type="java.lang.String"/>
  68528. <param name="name" type="java.lang.String"/>
  68529. </method>
  68530. <method name="progress"
  68531. abstract="true" native="false" synchronized="false"
  68532. static="false" final="false" visibility="public"
  68533. deprecated="not deprecated">
  68534. </method>
  68535. <method name="getProgress" return="float"
  68536. abstract="true" native="false" synchronized="false"
  68537. static="false" final="false" visibility="public"
  68538. deprecated="not deprecated">
  68539. <doc>
  68540. <![CDATA[Get the current progress.
  68541. @return a number between 0.0 and 1.0 (inclusive) indicating the attempt's
  68542. progress.]]>
  68543. </doc>
  68544. </method>
  68545. <method name="setStatus"
  68546. abstract="true" native="false" synchronized="false"
  68547. static="false" final="false" visibility="public"
  68548. deprecated="not deprecated">
  68549. <param name="status" type="java.lang.String"/>
  68550. </method>
  68551. </class>
  68552. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  68553. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  68554. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  68555. abstract="false"
  68556. static="false" final="false" visibility="public"
  68557. deprecated="not deprecated">
  68558. <implements name="org.apache.hadoop.util.Progressable"/>
  68559. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  68560. static="false" final="false" visibility="public"
  68561. deprecated="not deprecated">
  68562. </constructor>
  68563. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  68564. abstract="false" native="false" synchronized="false"
  68565. static="false" final="false" visibility="public"
  68566. deprecated="not deprecated">
  68567. <doc>
  68568. <![CDATA[Get the unique name for this task attempt.]]>
  68569. </doc>
  68570. </method>
  68571. <method name="setStatus"
  68572. abstract="false" native="false" synchronized="false"
  68573. static="false" final="false" visibility="public"
  68574. deprecated="not deprecated">
  68575. <param name="msg" type="java.lang.String"/>
  68576. <exception name="IOException" type="java.io.IOException"/>
  68577. <doc>
  68578. <![CDATA[Set the current status of the task to the given string.]]>
  68579. </doc>
  68580. </method>
  68581. <method name="getStatus" return="java.lang.String"
  68582. abstract="false" native="false" synchronized="false"
  68583. static="false" final="false" visibility="public"
  68584. deprecated="not deprecated">
  68585. <doc>
  68586. <![CDATA[Get the last set status message.
  68587. @return the current status message]]>
  68588. </doc>
  68589. </method>
  68590. <method name="progress"
  68591. abstract="false" native="false" synchronized="false"
  68592. static="false" final="false" visibility="public"
  68593. deprecated="not deprecated">
  68594. <doc>
  68595. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  68596. </doc>
  68597. </method>
  68598. <doc>
  68599. <![CDATA[The context for task attempts.]]>
  68600. </doc>
  68601. </class>
  68602. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  68603. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  68604. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  68605. abstract="false"
  68606. static="false" final="false" visibility="public"
  68607. deprecated="not deprecated">
  68608. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  68609. static="false" final="false" visibility="public"
  68610. deprecated="not deprecated">
  68611. <doc>
  68612. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  68613. @param taskId TaskID that this task belongs to
  68614. @param id the task attempt number]]>
  68615. </doc>
  68616. </constructor>
  68617. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  68618. static="false" final="false" visibility="public"
  68619. deprecated="not deprecated">
  68620. <doc>
  68621. <![CDATA[Constructs a TaskId object from given parts.
  68622. @param jtIdentifier jobTracker identifier
  68623. @param jobId job number
  68624. @param isMap whether the tip is a map
  68625. @param taskId taskId number
  68626. @param id the task attempt number]]>
  68627. </doc>
  68628. </constructor>
  68629. <constructor name="TaskAttemptID"
  68630. static="false" final="false" visibility="public"
  68631. deprecated="not deprecated">
  68632. </constructor>
  68633. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68634. abstract="false" native="false" synchronized="false"
  68635. static="false" final="false" visibility="public"
  68636. deprecated="not deprecated">
  68637. <doc>
  68638. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  68639. </doc>
  68640. </method>
  68641. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  68642. abstract="false" native="false" synchronized="false"
  68643. static="false" final="false" visibility="public"
  68644. deprecated="not deprecated">
  68645. <doc>
  68646. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  68647. </doc>
  68648. </method>
  68649. <method name="isMap" return="boolean"
  68650. abstract="false" native="false" synchronized="false"
  68651. static="false" final="false" visibility="public"
  68652. deprecated="not deprecated">
  68653. <doc>
  68654. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  68655. </doc>
  68656. </method>
  68657. <method name="equals" return="boolean"
  68658. abstract="false" native="false" synchronized="false"
  68659. static="false" final="false" visibility="public"
  68660. deprecated="not deprecated">
  68661. <param name="o" type="java.lang.Object"/>
  68662. </method>
  68663. <method name="appendTo" return="java.lang.StringBuilder"
  68664. abstract="false" native="false" synchronized="false"
  68665. static="false" final="false" visibility="protected"
  68666. deprecated="not deprecated">
  68667. <param name="builder" type="java.lang.StringBuilder"/>
  68668. <doc>
  68669. <![CDATA[Add the unique string to the StringBuilder
  68670. @param builder the builder to append ot
  68671. @return the builder that was passed in.]]>
  68672. </doc>
  68673. </method>
  68674. <method name="readFields"
  68675. abstract="false" native="false" synchronized="false"
  68676. static="false" final="false" visibility="public"
  68677. deprecated="not deprecated">
  68678. <param name="in" type="java.io.DataInput"/>
  68679. <exception name="IOException" type="java.io.IOException"/>
  68680. </method>
  68681. <method name="write"
  68682. abstract="false" native="false" synchronized="false"
  68683. static="false" final="false" visibility="public"
  68684. deprecated="not deprecated">
  68685. <param name="out" type="java.io.DataOutput"/>
  68686. <exception name="IOException" type="java.io.IOException"/>
  68687. </method>
  68688. <method name="hashCode" return="int"
  68689. abstract="false" native="false" synchronized="false"
  68690. static="false" final="false" visibility="public"
  68691. deprecated="not deprecated">
  68692. </method>
  68693. <method name="compareTo" return="int"
  68694. abstract="false" native="false" synchronized="false"
  68695. static="false" final="false" visibility="public"
  68696. deprecated="not deprecated">
  68697. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68698. <doc>
  68699. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  68700. </doc>
  68701. </method>
  68702. <method name="toString" return="java.lang.String"
  68703. abstract="false" native="false" synchronized="false"
  68704. static="false" final="false" visibility="public"
  68705. deprecated="not deprecated">
  68706. </method>
  68707. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  68708. abstract="false" native="false" synchronized="false"
  68709. static="true" final="false" visibility="public"
  68710. deprecated="not deprecated">
  68711. <param name="str" type="java.lang.String"/>
  68712. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68713. <doc>
  68714. <![CDATA[Construct a TaskAttemptID object from given string
  68715. @return constructed TaskAttemptID object or null if the given String is null
  68716. @throws IllegalArgumentException if the given string is malformed]]>
  68717. </doc>
  68718. </method>
  68719. <field name="ATTEMPT" type="java.lang.String"
  68720. transient="false" volatile="false"
  68721. static="true" final="true" visibility="protected"
  68722. deprecated="not deprecated">
  68723. </field>
  68724. <doc>
  68725. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  68726. a task attempt. Each task attempt is one particular instance of a Map or
  68727. Reduce Task identified by its TaskID.
  68728. TaskAttemptID consists of 2 parts. First part is the
  68729. {@link TaskID}, that this TaskAttemptID belongs to.
  68730. Second part is the task attempt number. <br>
  68731. An example TaskAttemptID is :
  68732. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  68733. zeroth task attempt for the fifth map task in the third job
  68734. running at the jobtracker started at <code>200707121733</code>.
  68735. <p>
  68736. Applications should never construct or parse TaskAttemptID strings
  68737. , but rather use appropriate constructors or {@link #forName(String)}
  68738. method.
  68739. @see JobID
  68740. @see TaskID]]>
  68741. </doc>
  68742. </class>
  68743. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  68744. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  68745. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  68746. abstract="false"
  68747. static="false" final="false" visibility="public"
  68748. deprecated="not deprecated">
  68749. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  68750. static="false" final="false" visibility="public"
  68751. deprecated="not deprecated">
  68752. <doc>
  68753. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  68754. @param jobId JobID that this tip belongs to
  68755. @param isMap whether the tip is a map
  68756. @param id the tip number]]>
  68757. </doc>
  68758. </constructor>
  68759. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  68760. static="false" final="false" visibility="public"
  68761. deprecated="not deprecated">
  68762. <doc>
  68763. <![CDATA[Constructs a TaskInProgressId object from given parts.
  68764. @param jtIdentifier jobTracker identifier
  68765. @param jobId job number
  68766. @param isMap whether the tip is a map
  68767. @param id the tip number]]>
  68768. </doc>
  68769. </constructor>
  68770. <constructor name="TaskID"
  68771. static="false" final="false" visibility="public"
  68772. deprecated="not deprecated">
  68773. </constructor>
  68774. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68775. abstract="false" native="false" synchronized="false"
  68776. static="false" final="false" visibility="public"
  68777. deprecated="not deprecated">
  68778. <doc>
  68779. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  68780. </doc>
  68781. </method>
  68782. <method name="isMap" return="boolean"
  68783. abstract="false" native="false" synchronized="false"
  68784. static="false" final="false" visibility="public"
  68785. deprecated="not deprecated">
  68786. <doc>
  68787. <![CDATA[Returns whether this TaskID is a map ID]]>
  68788. </doc>
  68789. </method>
  68790. <method name="equals" return="boolean"
  68791. abstract="false" native="false" synchronized="false"
  68792. static="false" final="false" visibility="public"
  68793. deprecated="not deprecated">
  68794. <param name="o" type="java.lang.Object"/>
  68795. </method>
  68796. <method name="compareTo" return="int"
  68797. abstract="false" native="false" synchronized="false"
  68798. static="false" final="false" visibility="public"
  68799. deprecated="not deprecated">
  68800. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68801. <doc>
  68802. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  68803. defined as greater then maps.]]>
  68804. </doc>
  68805. </method>
  68806. <method name="toString" return="java.lang.String"
  68807. abstract="false" native="false" synchronized="false"
  68808. static="false" final="false" visibility="public"
  68809. deprecated="not deprecated">
  68810. </method>
  68811. <method name="appendTo" return="java.lang.StringBuilder"
  68812. abstract="false" native="false" synchronized="false"
  68813. static="false" final="false" visibility="protected"
  68814. deprecated="not deprecated">
  68815. <param name="builder" type="java.lang.StringBuilder"/>
  68816. <doc>
  68817. <![CDATA[Add the unique string to the given builder.
  68818. @param builder the builder to append to
  68819. @return the builder that was passed in]]>
  68820. </doc>
  68821. </method>
  68822. <method name="hashCode" return="int"
  68823. abstract="false" native="false" synchronized="false"
  68824. static="false" final="false" visibility="public"
  68825. deprecated="not deprecated">
  68826. </method>
  68827. <method name="readFields"
  68828. abstract="false" native="false" synchronized="false"
  68829. static="false" final="false" visibility="public"
  68830. deprecated="not deprecated">
  68831. <param name="in" type="java.io.DataInput"/>
  68832. <exception name="IOException" type="java.io.IOException"/>
  68833. </method>
  68834. <method name="write"
  68835. abstract="false" native="false" synchronized="false"
  68836. static="false" final="false" visibility="public"
  68837. deprecated="not deprecated">
  68838. <param name="out" type="java.io.DataOutput"/>
  68839. <exception name="IOException" type="java.io.IOException"/>
  68840. </method>
  68841. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  68842. abstract="false" native="false" synchronized="false"
  68843. static="true" final="false" visibility="public"
  68844. deprecated="not deprecated">
  68845. <param name="str" type="java.lang.String"/>
  68846. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68847. <doc>
  68848. <![CDATA[Construct a TaskID object from given string
  68849. @return constructed TaskID object or null if the given String is null
  68850. @throws IllegalArgumentException if the given string is malformed]]>
  68851. </doc>
  68852. </method>
  68853. <field name="TASK" type="java.lang.String"
  68854. transient="false" volatile="false"
  68855. static="true" final="true" visibility="protected"
  68856. deprecated="not deprecated">
  68857. </field>
  68858. <field name="idFormat" type="java.text.NumberFormat"
  68859. transient="false" volatile="false"
  68860. static="true" final="true" visibility="protected"
  68861. deprecated="not deprecated">
  68862. </field>
  68863. <doc>
  68864. <![CDATA[TaskID represents the immutable and unique identifier for
  68865. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  68866. execute the Map or Reduce Task, each of which are uniquely indentified by
  68867. their TaskAttemptID.
  68868. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  68869. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  68870. representing whether the task is a map task or a reduce task.
  68871. And the third part is the task number. <br>
  68872. An example TaskID is :
  68873. <code>task_200707121733_0003_m_000005</code> , which represents the
  68874. fifth map task in the third job running at the jobtracker
  68875. started at <code>200707121733</code>.
  68876. <p>
  68877. Applications should never construct or parse TaskID strings
  68878. , but rather use appropriate constructors or {@link #forName(String)}
  68879. method.
  68880. @see JobID
  68881. @see TaskAttemptID]]>
  68882. </doc>
  68883. </class>
  68884. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  68885. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  68886. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  68887. abstract="true"
  68888. static="false" final="false" visibility="public"
  68889. deprecated="not deprecated">
  68890. <implements name="org.apache.hadoop.util.Progressable"/>
  68891. <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"
  68892. static="false" final="false" visibility="public"
  68893. deprecated="not deprecated">
  68894. </constructor>
  68895. <method name="nextKeyValue" return="boolean"
  68896. abstract="true" native="false" synchronized="false"
  68897. static="false" final="false" visibility="public"
  68898. deprecated="not deprecated">
  68899. <exception name="IOException" type="java.io.IOException"/>
  68900. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68901. <doc>
  68902. <![CDATA[Advance to the next key, value pair, returning null if at end.
  68903. @return the key object that was read into, or null if no more]]>
  68904. </doc>
  68905. </method>
  68906. <method name="getCurrentKey" return="java.lang.Object"
  68907. abstract="true" native="false" synchronized="false"
  68908. static="false" final="false" visibility="public"
  68909. deprecated="not deprecated">
  68910. <exception name="IOException" type="java.io.IOException"/>
  68911. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68912. <doc>
  68913. <![CDATA[Get the current key.
  68914. @return the current key object or null if there isn't one
  68915. @throws IOException
  68916. @throws InterruptedException]]>
  68917. </doc>
  68918. </method>
  68919. <method name="getCurrentValue" return="java.lang.Object"
  68920. abstract="true" native="false" synchronized="false"
  68921. static="false" final="false" visibility="public"
  68922. deprecated="not deprecated">
  68923. <exception name="IOException" type="java.io.IOException"/>
  68924. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68925. <doc>
  68926. <![CDATA[Get the current value.
  68927. @return the value object that was read into
  68928. @throws IOException
  68929. @throws InterruptedException]]>
  68930. </doc>
  68931. </method>
  68932. <method name="write"
  68933. abstract="false" native="false" synchronized="false"
  68934. static="false" final="false" visibility="public"
  68935. deprecated="not deprecated">
  68936. <param name="key" type="java.lang.Object"/>
  68937. <param name="value" type="java.lang.Object"/>
  68938. <exception name="IOException" type="java.io.IOException"/>
  68939. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68940. <doc>
  68941. <![CDATA[Generate an output key/value pair.]]>
  68942. </doc>
  68943. </method>
  68944. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68945. abstract="false" native="false" synchronized="false"
  68946. static="false" final="false" visibility="public"
  68947. deprecated="not deprecated">
  68948. <param name="counterName" type="java.lang.Enum"/>
  68949. </method>
  68950. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68951. abstract="false" native="false" synchronized="false"
  68952. static="false" final="false" visibility="public"
  68953. deprecated="not deprecated">
  68954. <param name="groupName" type="java.lang.String"/>
  68955. <param name="counterName" type="java.lang.String"/>
  68956. </method>
  68957. <method name="progress"
  68958. abstract="false" native="false" synchronized="false"
  68959. static="false" final="false" visibility="public"
  68960. deprecated="not deprecated">
  68961. </method>
  68962. <method name="getProgress" return="float"
  68963. abstract="false" native="false" synchronized="false"
  68964. static="false" final="false" visibility="public"
  68965. deprecated="not deprecated">
  68966. </method>
  68967. <method name="setStatus"
  68968. abstract="false" native="false" synchronized="false"
  68969. static="false" final="false" visibility="public"
  68970. deprecated="not deprecated">
  68971. <param name="status" type="java.lang.String"/>
  68972. </method>
  68973. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68974. abstract="false" native="false" synchronized="false"
  68975. static="false" final="false" visibility="public"
  68976. deprecated="not deprecated">
  68977. </method>
  68978. <doc>
  68979. <![CDATA[A context object that allows input and output from the task. It is only
  68980. supplied to the {@link Mapper} or {@link Reducer}.
  68981. @param <KEYIN> the input key type for the task
  68982. @param <VALUEIN> the input value type for the task
  68983. @param <KEYOUT> the output key type for the task
  68984. @param <VALUEOUT> the output value type for the task]]>
  68985. </doc>
  68986. </class>
  68987. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  68988. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  68989. <class name="TaskType" extends="java.lang.Enum"
  68990. abstract="false"
  68991. static="false" final="true" visibility="public"
  68992. deprecated="not deprecated">
  68993. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  68994. abstract="false" native="false" synchronized="false"
  68995. static="true" final="false" visibility="public"
  68996. deprecated="not deprecated">
  68997. </method>
  68998. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  68999. abstract="false" native="false" synchronized="false"
  69000. static="true" final="false" visibility="public"
  69001. deprecated="not deprecated">
  69002. <param name="name" type="java.lang.String"/>
  69003. </method>
  69004. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  69005. transient="false" volatile="false"
  69006. static="true" final="true" visibility="public"
  69007. deprecated="not deprecated">
  69008. </field>
  69009. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  69010. transient="false" volatile="false"
  69011. static="true" final="true" visibility="public"
  69012. deprecated="not deprecated">
  69013. </field>
  69014. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  69015. transient="false" volatile="false"
  69016. static="true" final="true" visibility="public"
  69017. deprecated="not deprecated">
  69018. </field>
  69019. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  69020. transient="false" volatile="false"
  69021. static="true" final="true" visibility="public"
  69022. deprecated="not deprecated">
  69023. </field>
  69024. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  69025. transient="false" volatile="false"
  69026. static="true" final="true" visibility="public"
  69027. deprecated="not deprecated">
  69028. </field>
  69029. <doc>
  69030. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  69031. </doc>
  69032. </class>
  69033. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  69034. </package>
  69035. <package name="org.apache.hadoop.mapreduce.lib.db">
  69036. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  69037. <class name="BigDecimalSplitter" extends="java.lang.Object"
  69038. abstract="false"
  69039. static="false" final="false" visibility="public"
  69040. deprecated="not deprecated">
  69041. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69042. <constructor name="BigDecimalSplitter"
  69043. static="false" final="false" visibility="public"
  69044. deprecated="not deprecated">
  69045. </constructor>
  69046. <method name="split" return="java.util.List"
  69047. abstract="false" native="false" synchronized="false"
  69048. static="false" final="false" visibility="public"
  69049. deprecated="not deprecated">
  69050. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69051. <param name="results" type="java.sql.ResultSet"/>
  69052. <param name="colName" type="java.lang.String"/>
  69053. <exception name="SQLException" type="java.sql.SQLException"/>
  69054. </method>
  69055. <method name="tryDivide" return="java.math.BigDecimal"
  69056. abstract="false" native="false" synchronized="false"
  69057. static="false" final="false" visibility="protected"
  69058. deprecated="not deprecated">
  69059. <param name="numerator" type="java.math.BigDecimal"/>
  69060. <param name="denominator" type="java.math.BigDecimal"/>
  69061. <doc>
  69062. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  69063. </doc>
  69064. </method>
  69065. <doc>
  69066. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  69067. </doc>
  69068. </class>
  69069. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  69070. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  69071. <class name="BooleanSplitter" extends="java.lang.Object"
  69072. abstract="false"
  69073. static="false" final="false" visibility="public"
  69074. deprecated="not deprecated">
  69075. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69076. <constructor name="BooleanSplitter"
  69077. static="false" final="false" visibility="public"
  69078. deprecated="not deprecated">
  69079. </constructor>
  69080. <method name="split" return="java.util.List"
  69081. abstract="false" native="false" synchronized="false"
  69082. static="false" final="false" visibility="public"
  69083. deprecated="not deprecated">
  69084. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69085. <param name="results" type="java.sql.ResultSet"/>
  69086. <param name="colName" type="java.lang.String"/>
  69087. <exception name="SQLException" type="java.sql.SQLException"/>
  69088. </method>
  69089. <doc>
  69090. <![CDATA[Implement DBSplitter over boolean values.]]>
  69091. </doc>
  69092. </class>
  69093. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  69094. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  69095. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  69096. abstract="false"
  69097. static="false" final="false" visibility="public"
  69098. deprecated="not deprecated">
  69099. <implements name="org.apache.hadoop.conf.Configurable"/>
  69100. <constructor name="DataDrivenDBInputFormat"
  69101. static="false" final="false" visibility="public"
  69102. deprecated="not deprecated">
  69103. </constructor>
  69104. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  69105. abstract="false" native="false" synchronized="false"
  69106. static="false" final="false" visibility="protected"
  69107. deprecated="not deprecated">
  69108. <param name="sqlDataType" type="int"/>
  69109. <doc>
  69110. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  69111. </doc>
  69112. </method>
  69113. <method name="getSplits" return="java.util.List"
  69114. abstract="false" native="false" synchronized="false"
  69115. static="false" final="false" visibility="public"
  69116. deprecated="not deprecated">
  69117. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69118. <exception name="IOException" type="java.io.IOException"/>
  69119. <doc>
  69120. <![CDATA[{@inheritDoc}]]>
  69121. </doc>
  69122. </method>
  69123. <method name="getBoundingValsQuery" return="java.lang.String"
  69124. abstract="false" native="false" synchronized="false"
  69125. static="false" final="false" visibility="protected"
  69126. deprecated="not deprecated">
  69127. <doc>
  69128. <![CDATA[@return a query which returns the minimum and maximum values for
  69129. the order-by column.
  69130. The min value should be in the first column, and the
  69131. max value should be in the second column of the results.]]>
  69132. </doc>
  69133. </method>
  69134. <method name="setBoundingQuery"
  69135. abstract="false" native="false" synchronized="false"
  69136. static="true" final="false" visibility="public"
  69137. deprecated="not deprecated">
  69138. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69139. <param name="query" type="java.lang.String"/>
  69140. <doc>
  69141. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  69142. This *must* include the substring "$CONDITIONS"
  69143. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  69144. so that DataDrivenDBInputFormat knows where to insert split clauses.
  69145. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  69146. This will be expanded to something like:
  69147. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  69148. inside each split.]]>
  69149. </doc>
  69150. </method>
  69151. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69152. abstract="false" native="false" synchronized="false"
  69153. static="false" final="false" visibility="protected"
  69154. deprecated="not deprecated">
  69155. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69157. <exception name="IOException" type="java.io.IOException"/>
  69158. </method>
  69159. <method name="setInput"
  69160. abstract="false" native="false" synchronized="false"
  69161. static="true" final="false" visibility="public"
  69162. deprecated="not deprecated">
  69163. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69164. <param name="inputClass" type="java.lang.Class"/>
  69165. <param name="tableName" type="java.lang.String"/>
  69166. <param name="conditions" type="java.lang.String"/>
  69167. <param name="splitBy" type="java.lang.String"/>
  69168. <param name="fieldNames" type="java.lang.String[]"/>
  69169. <doc>
  69170. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  69171. We reuse the same field, but it's not strictly ordering it -- just partitioning
  69172. the results.]]>
  69173. </doc>
  69174. </method>
  69175. <method name="setInput"
  69176. abstract="false" native="false" synchronized="false"
  69177. static="true" final="false" visibility="public"
  69178. deprecated="not deprecated">
  69179. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69180. <param name="inputClass" type="java.lang.Class"/>
  69181. <param name="inputQuery" type="java.lang.String"/>
  69182. <param name="inputBoundingQuery" type="java.lang.String"/>
  69183. <doc>
  69184. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  69185. instead of the custom "count query" used by DBInputFormat.]]>
  69186. </doc>
  69187. </method>
  69188. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  69189. transient="false" volatile="false"
  69190. static="true" final="true" visibility="public"
  69191. deprecated="not deprecated">
  69192. <doc>
  69193. <![CDATA[If users are providing their own query, the following string is expected to
  69194. appear in the WHERE clause, which will be substituted with a pair of conditions
  69195. on the input to allow input splits to parallelise the import.]]>
  69196. </doc>
  69197. </field>
  69198. <doc>
  69199. <![CDATA[A InputFormat that reads input data from an SQL table.
  69200. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  69201. splits, it tries to generate WHERE clauses which separate the data into roughly
  69202. equivalent shards.]]>
  69203. </doc>
  69204. </class>
  69205. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  69206. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  69207. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  69208. abstract="false"
  69209. static="true" final="false" visibility="public"
  69210. deprecated="not deprecated">
  69211. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  69212. static="false" final="false" visibility="public"
  69213. deprecated="not deprecated">
  69214. <doc>
  69215. <![CDATA[Default Constructor]]>
  69216. </doc>
  69217. </constructor>
  69218. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  69219. static="false" final="false" visibility="public"
  69220. deprecated="not deprecated">
  69221. <doc>
  69222. <![CDATA[Convenience Constructor
  69223. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  69224. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  69225. </doc>
  69226. </constructor>
  69227. <method name="getLength" return="long"
  69228. abstract="false" native="false" synchronized="false"
  69229. static="false" final="false" visibility="public"
  69230. deprecated="not deprecated">
  69231. <exception name="IOException" type="java.io.IOException"/>
  69232. <doc>
  69233. <![CDATA[@return The total row count in this split]]>
  69234. </doc>
  69235. </method>
  69236. <method name="readFields"
  69237. abstract="false" native="false" synchronized="false"
  69238. static="false" final="false" visibility="public"
  69239. deprecated="not deprecated">
  69240. <param name="input" type="java.io.DataInput"/>
  69241. <exception name="IOException" type="java.io.IOException"/>
  69242. <doc>
  69243. <![CDATA[{@inheritDoc}]]>
  69244. </doc>
  69245. </method>
  69246. <method name="write"
  69247. abstract="false" native="false" synchronized="false"
  69248. static="false" final="false" visibility="public"
  69249. deprecated="not deprecated">
  69250. <param name="output" type="java.io.DataOutput"/>
  69251. <exception name="IOException" type="java.io.IOException"/>
  69252. <doc>
  69253. <![CDATA[{@inheritDoc}]]>
  69254. </doc>
  69255. </method>
  69256. <method name="getLowerClause" return="java.lang.String"
  69257. abstract="false" native="false" synchronized="false"
  69258. static="false" final="false" visibility="public"
  69259. deprecated="not deprecated">
  69260. </method>
  69261. <method name="getUpperClause" return="java.lang.String"
  69262. abstract="false" native="false" synchronized="false"
  69263. static="false" final="false" visibility="public"
  69264. deprecated="not deprecated">
  69265. </method>
  69266. <doc>
  69267. <![CDATA[A InputSplit that spans a set of rows]]>
  69268. </doc>
  69269. </class>
  69270. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  69271. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  69272. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  69273. abstract="false"
  69274. static="false" final="false" visibility="public"
  69275. deprecated="not deprecated">
  69276. <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"
  69277. static="false" final="false" visibility="public"
  69278. deprecated="not deprecated">
  69279. <exception name="SQLException" type="java.sql.SQLException"/>
  69280. <doc>
  69281. <![CDATA[@param split The InputSplit to read data for
  69282. @throws SQLException]]>
  69283. </doc>
  69284. </constructor>
  69285. <method name="getSelectQuery" return="java.lang.String"
  69286. abstract="false" native="false" synchronized="false"
  69287. static="false" final="false" visibility="protected"
  69288. deprecated="not deprecated">
  69289. <doc>
  69290. <![CDATA[Returns the query for selecting the records,
  69291. subclasses can override this for custom behaviour.]]>
  69292. </doc>
  69293. </method>
  69294. <doc>
  69295. <![CDATA[A RecordReader that reads records from a SQL table,
  69296. using data-driven WHERE clause splits.
  69297. Emits LongWritables containing the record number as
  69298. key and DBWritables as value.]]>
  69299. </doc>
  69300. </class>
  69301. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  69302. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  69303. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  69304. abstract="false"
  69305. static="false" final="false" visibility="public"
  69306. deprecated="not deprecated">
  69307. <constructor name="DateSplitter"
  69308. static="false" final="false" visibility="public"
  69309. deprecated="not deprecated">
  69310. </constructor>
  69311. <method name="split" return="java.util.List"
  69312. abstract="false" native="false" synchronized="false"
  69313. static="false" final="false" visibility="public"
  69314. deprecated="not deprecated">
  69315. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69316. <param name="results" type="java.sql.ResultSet"/>
  69317. <param name="colName" type="java.lang.String"/>
  69318. <exception name="SQLException" type="java.sql.SQLException"/>
  69319. </method>
  69320. <method name="dateToString" return="java.lang.String"
  69321. abstract="false" native="false" synchronized="false"
  69322. static="false" final="false" visibility="protected"
  69323. deprecated="not deprecated">
  69324. <param name="d" type="java.util.Date"/>
  69325. <doc>
  69326. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  69327. comparison operation.
  69328. @param d the date to format.
  69329. @return the string representing this date in SQL with any appropriate
  69330. quotation characters, etc.]]>
  69331. </doc>
  69332. </method>
  69333. <doc>
  69334. <![CDATA[Implement DBSplitter over date/time values.
  69335. Make use of logic from IntegerSplitter, since date/time are just longs
  69336. in Java.]]>
  69337. </doc>
  69338. </class>
  69339. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  69340. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  69341. <class name="DBConfiguration" extends="java.lang.Object"
  69342. abstract="false"
  69343. static="false" final="false" visibility="public"
  69344. deprecated="not deprecated">
  69345. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  69346. static="false" final="false" visibility="public"
  69347. deprecated="not deprecated">
  69348. </constructor>
  69349. <method name="configureDB"
  69350. abstract="false" native="false" synchronized="false"
  69351. static="true" final="false" visibility="public"
  69352. deprecated="not deprecated">
  69353. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69354. <param name="driverClass" type="java.lang.String"/>
  69355. <param name="dbUrl" type="java.lang.String"/>
  69356. <param name="userName" type="java.lang.String"/>
  69357. <param name="passwd" type="java.lang.String"/>
  69358. <doc>
  69359. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  69360. @param conf the configuration
  69361. @param driverClass JDBC Driver class name
  69362. @param dbUrl JDBC DB access URL.
  69363. @param userName DB access username
  69364. @param passwd DB access passwd]]>
  69365. </doc>
  69366. </method>
  69367. <method name="configureDB"
  69368. abstract="false" native="false" synchronized="false"
  69369. static="true" final="false" visibility="public"
  69370. deprecated="not deprecated">
  69371. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  69372. <param name="driverClass" type="java.lang.String"/>
  69373. <param name="dbUrl" type="java.lang.String"/>
  69374. <doc>
  69375. <![CDATA[Sets the DB access related fields in the JobConf.
  69376. @param job the job
  69377. @param driverClass JDBC Driver class name
  69378. @param dbUrl JDBC DB access URL.]]>
  69379. </doc>
  69380. </method>
  69381. <method name="getConnection" return="java.sql.Connection"
  69382. abstract="false" native="false" synchronized="false"
  69383. static="false" final="false" visibility="public"
  69384. deprecated="not deprecated">
  69385. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  69386. <exception name="SQLException" type="java.sql.SQLException"/>
  69387. <doc>
  69388. <![CDATA[Returns a connection object o the DB
  69389. @throws ClassNotFoundException
  69390. @throws SQLException]]>
  69391. </doc>
  69392. </method>
  69393. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69394. abstract="false" native="false" synchronized="false"
  69395. static="false" final="false" visibility="public"
  69396. deprecated="not deprecated">
  69397. </method>
  69398. <method name="getInputTableName" return="java.lang.String"
  69399. abstract="false" native="false" synchronized="false"
  69400. static="false" final="false" visibility="public"
  69401. deprecated="not deprecated">
  69402. </method>
  69403. <method name="setInputTableName"
  69404. abstract="false" native="false" synchronized="false"
  69405. static="false" final="false" visibility="public"
  69406. deprecated="not deprecated">
  69407. <param name="tableName" type="java.lang.String"/>
  69408. </method>
  69409. <method name="getInputFieldNames" return="java.lang.String[]"
  69410. abstract="false" native="false" synchronized="false"
  69411. static="false" final="false" visibility="public"
  69412. deprecated="not deprecated">
  69413. </method>
  69414. <method name="setInputFieldNames"
  69415. abstract="false" native="false" synchronized="false"
  69416. static="false" final="false" visibility="public"
  69417. deprecated="not deprecated">
  69418. <param name="fieldNames" type="java.lang.String[]"/>
  69419. </method>
  69420. <method name="getInputConditions" return="java.lang.String"
  69421. abstract="false" native="false" synchronized="false"
  69422. static="false" final="false" visibility="public"
  69423. deprecated="not deprecated">
  69424. </method>
  69425. <method name="setInputConditions"
  69426. abstract="false" native="false" synchronized="false"
  69427. static="false" final="false" visibility="public"
  69428. deprecated="not deprecated">
  69429. <param name="conditions" type="java.lang.String"/>
  69430. </method>
  69431. <method name="getInputOrderBy" return="java.lang.String"
  69432. abstract="false" native="false" synchronized="false"
  69433. static="false" final="false" visibility="public"
  69434. deprecated="not deprecated">
  69435. </method>
  69436. <method name="setInputOrderBy"
  69437. abstract="false" native="false" synchronized="false"
  69438. static="false" final="false" visibility="public"
  69439. deprecated="not deprecated">
  69440. <param name="orderby" type="java.lang.String"/>
  69441. </method>
  69442. <method name="getInputQuery" return="java.lang.String"
  69443. abstract="false" native="false" synchronized="false"
  69444. static="false" final="false" visibility="public"
  69445. deprecated="not deprecated">
  69446. </method>
  69447. <method name="setInputQuery"
  69448. abstract="false" native="false" synchronized="false"
  69449. static="false" final="false" visibility="public"
  69450. deprecated="not deprecated">
  69451. <param name="query" type="java.lang.String"/>
  69452. </method>
  69453. <method name="getInputCountQuery" return="java.lang.String"
  69454. abstract="false" native="false" synchronized="false"
  69455. static="false" final="false" visibility="public"
  69456. deprecated="not deprecated">
  69457. </method>
  69458. <method name="setInputCountQuery"
  69459. abstract="false" native="false" synchronized="false"
  69460. static="false" final="false" visibility="public"
  69461. deprecated="not deprecated">
  69462. <param name="query" type="java.lang.String"/>
  69463. </method>
  69464. <method name="setInputBoundingQuery"
  69465. abstract="false" native="false" synchronized="false"
  69466. static="false" final="false" visibility="public"
  69467. deprecated="not deprecated">
  69468. <param name="query" type="java.lang.String"/>
  69469. </method>
  69470. <method name="getInputBoundingQuery" return="java.lang.String"
  69471. abstract="false" native="false" synchronized="false"
  69472. static="false" final="false" visibility="public"
  69473. deprecated="not deprecated">
  69474. </method>
  69475. <method name="getInputClass" return="java.lang.Class"
  69476. abstract="false" native="false" synchronized="false"
  69477. static="false" final="false" visibility="public"
  69478. deprecated="not deprecated">
  69479. </method>
  69480. <method name="setInputClass"
  69481. abstract="false" native="false" synchronized="false"
  69482. static="false" final="false" visibility="public"
  69483. deprecated="not deprecated">
  69484. <param name="inputClass" type="java.lang.Class"/>
  69485. </method>
  69486. <method name="getOutputTableName" return="java.lang.String"
  69487. abstract="false" native="false" synchronized="false"
  69488. static="false" final="false" visibility="public"
  69489. deprecated="not deprecated">
  69490. </method>
  69491. <method name="setOutputTableName"
  69492. abstract="false" native="false" synchronized="false"
  69493. static="false" final="false" visibility="public"
  69494. deprecated="not deprecated">
  69495. <param name="tableName" type="java.lang.String"/>
  69496. </method>
  69497. <method name="getOutputFieldNames" return="java.lang.String[]"
  69498. abstract="false" native="false" synchronized="false"
  69499. static="false" final="false" visibility="public"
  69500. deprecated="not deprecated">
  69501. </method>
  69502. <method name="setOutputFieldNames"
  69503. abstract="false" native="false" synchronized="false"
  69504. static="false" final="false" visibility="public"
  69505. deprecated="not deprecated">
  69506. <param name="fieldNames" type="java.lang.String[]"/>
  69507. </method>
  69508. <method name="setOutputFieldCount"
  69509. abstract="false" native="false" synchronized="false"
  69510. static="false" final="false" visibility="public"
  69511. deprecated="not deprecated">
  69512. <param name="fieldCount" type="int"/>
  69513. </method>
  69514. <method name="getOutputFieldCount" return="int"
  69515. abstract="false" native="false" synchronized="false"
  69516. static="false" final="false" visibility="public"
  69517. deprecated="not deprecated">
  69518. </method>
  69519. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  69520. transient="false" volatile="false"
  69521. static="true" final="true" visibility="public"
  69522. deprecated="not deprecated">
  69523. <doc>
  69524. <![CDATA[The JDBC Driver class name]]>
  69525. </doc>
  69526. </field>
  69527. <field name="URL_PROPERTY" type="java.lang.String"
  69528. transient="false" volatile="false"
  69529. static="true" final="true" visibility="public"
  69530. deprecated="not deprecated">
  69531. <doc>
  69532. <![CDATA[JDBC Database access URL]]>
  69533. </doc>
  69534. </field>
  69535. <field name="USERNAME_PROPERTY" type="java.lang.String"
  69536. transient="false" volatile="false"
  69537. static="true" final="true" visibility="public"
  69538. deprecated="not deprecated">
  69539. <doc>
  69540. <![CDATA[User name to access the database]]>
  69541. </doc>
  69542. </field>
  69543. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  69544. transient="false" volatile="false"
  69545. static="true" final="true" visibility="public"
  69546. deprecated="not deprecated">
  69547. <doc>
  69548. <![CDATA[Password to access the database]]>
  69549. </doc>
  69550. </field>
  69551. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  69552. transient="false" volatile="false"
  69553. static="true" final="true" visibility="public"
  69554. deprecated="not deprecated">
  69555. <doc>
  69556. <![CDATA[Input table name]]>
  69557. </doc>
  69558. </field>
  69559. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  69560. transient="false" volatile="false"
  69561. static="true" final="true" visibility="public"
  69562. deprecated="not deprecated">
  69563. <doc>
  69564. <![CDATA[Field names in the Input table]]>
  69565. </doc>
  69566. </field>
  69567. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  69568. transient="false" volatile="false"
  69569. static="true" final="true" visibility="public"
  69570. deprecated="not deprecated">
  69571. <doc>
  69572. <![CDATA[WHERE clause in the input SELECT statement]]>
  69573. </doc>
  69574. </field>
  69575. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  69576. transient="false" volatile="false"
  69577. static="true" final="true" visibility="public"
  69578. deprecated="not deprecated">
  69579. <doc>
  69580. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  69581. </doc>
  69582. </field>
  69583. <field name="INPUT_QUERY" type="java.lang.String"
  69584. transient="false" volatile="false"
  69585. static="true" final="true" visibility="public"
  69586. deprecated="not deprecated">
  69587. <doc>
  69588. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  69589. </doc>
  69590. </field>
  69591. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  69592. transient="false" volatile="false"
  69593. static="true" final="true" visibility="public"
  69594. deprecated="not deprecated">
  69595. <doc>
  69596. <![CDATA[Input query to get the count of records]]>
  69597. </doc>
  69598. </field>
  69599. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  69600. transient="false" volatile="false"
  69601. static="true" final="true" visibility="public"
  69602. deprecated="not deprecated">
  69603. <doc>
  69604. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  69605. </doc>
  69606. </field>
  69607. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  69608. transient="false" volatile="false"
  69609. static="true" final="true" visibility="public"
  69610. deprecated="not deprecated">
  69611. <doc>
  69612. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  69613. </doc>
  69614. </field>
  69615. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  69616. transient="false" volatile="false"
  69617. static="true" final="true" visibility="public"
  69618. deprecated="not deprecated">
  69619. <doc>
  69620. <![CDATA[Output table name]]>
  69621. </doc>
  69622. </field>
  69623. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  69624. transient="false" volatile="false"
  69625. static="true" final="true" visibility="public"
  69626. deprecated="not deprecated">
  69627. <doc>
  69628. <![CDATA[Field names in the Output table]]>
  69629. </doc>
  69630. </field>
  69631. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  69632. transient="false" volatile="false"
  69633. static="true" final="true" visibility="public"
  69634. deprecated="not deprecated">
  69635. <doc>
  69636. <![CDATA[Number of fields in the Output table]]>
  69637. </doc>
  69638. </field>
  69639. <doc>
  69640. <![CDATA[A container for configuration property names for jobs with DB input/output.
  69641. The job can be configured using the static methods in this class,
  69642. {@link DBInputFormat}, and {@link DBOutputFormat}.
  69643. Alternatively, the properties can be set in the configuration with proper
  69644. values.
  69645. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  69646. @see DBInputFormat#setInput(Job, Class, String, String)
  69647. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  69648. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  69649. </doc>
  69650. </class>
  69651. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  69652. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  69653. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  69654. abstract="false"
  69655. static="false" final="false" visibility="public"
  69656. deprecated="not deprecated">
  69657. <implements name="org.apache.hadoop.conf.Configurable"/>
  69658. <constructor name="DBInputFormat"
  69659. static="false" final="false" visibility="public"
  69660. deprecated="not deprecated">
  69661. </constructor>
  69662. <method name="setConf"
  69663. abstract="false" native="false" synchronized="false"
  69664. static="false" final="false" visibility="public"
  69665. deprecated="not deprecated">
  69666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69667. <doc>
  69668. <![CDATA[{@inheritDoc}]]>
  69669. </doc>
  69670. </method>
  69671. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69672. abstract="false" native="false" synchronized="false"
  69673. static="false" final="false" visibility="public"
  69674. deprecated="not deprecated">
  69675. </method>
  69676. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  69677. abstract="false" native="false" synchronized="false"
  69678. static="false" final="false" visibility="public"
  69679. deprecated="not deprecated">
  69680. </method>
  69681. <method name="getConnection" return="java.sql.Connection"
  69682. abstract="false" native="false" synchronized="false"
  69683. static="false" final="false" visibility="public"
  69684. deprecated="not deprecated">
  69685. </method>
  69686. <method name="getDBProductName" return="java.lang.String"
  69687. abstract="false" native="false" synchronized="false"
  69688. static="false" final="false" visibility="public"
  69689. deprecated="not deprecated">
  69690. </method>
  69691. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69692. abstract="false" native="false" synchronized="false"
  69693. static="false" final="false" visibility="protected"
  69694. deprecated="not deprecated">
  69695. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69696. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69697. <exception name="IOException" type="java.io.IOException"/>
  69698. </method>
  69699. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69700. abstract="false" native="false" synchronized="false"
  69701. static="false" final="false" visibility="public"
  69702. deprecated="not deprecated">
  69703. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69704. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69705. <exception name="IOException" type="java.io.IOException"/>
  69706. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69707. <doc>
  69708. <![CDATA[{@inheritDoc}]]>
  69709. </doc>
  69710. </method>
  69711. <method name="getSplits" return="java.util.List"
  69712. abstract="false" native="false" synchronized="false"
  69713. static="false" final="false" visibility="public"
  69714. deprecated="not deprecated">
  69715. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69716. <exception name="IOException" type="java.io.IOException"/>
  69717. <doc>
  69718. <![CDATA[{@inheritDoc}]]>
  69719. </doc>
  69720. </method>
  69721. <method name="getCountQuery" return="java.lang.String"
  69722. abstract="false" native="false" synchronized="false"
  69723. static="false" final="false" visibility="protected"
  69724. deprecated="not deprecated">
  69725. <doc>
  69726. <![CDATA[Returns the query for getting the total number of rows,
  69727. subclasses can override this for custom behaviour.]]>
  69728. </doc>
  69729. </method>
  69730. <method name="setInput"
  69731. abstract="false" native="false" synchronized="false"
  69732. static="true" final="false" visibility="public"
  69733. deprecated="not deprecated">
  69734. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69735. <param name="inputClass" type="java.lang.Class"/>
  69736. <param name="tableName" type="java.lang.String"/>
  69737. <param name="conditions" type="java.lang.String"/>
  69738. <param name="orderBy" type="java.lang.String"/>
  69739. <param name="fieldNames" type="java.lang.String[]"/>
  69740. <doc>
  69741. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  69742. @param job The map-reduce job
  69743. @param inputClass the class object implementing DBWritable, which is the
  69744. Java object holding tuple fields.
  69745. @param tableName The table to read data from
  69746. @param conditions The condition which to select data with,
  69747. eg. '(updated > 20070101 AND length > 0)'
  69748. @param orderBy the fieldNames in the orderBy clause.
  69749. @param fieldNames The field names in the table
  69750. @see #setInput(Job, Class, String, String)]]>
  69751. </doc>
  69752. </method>
  69753. <method name="setInput"
  69754. abstract="false" native="false" synchronized="false"
  69755. static="true" final="false" visibility="public"
  69756. deprecated="not deprecated">
  69757. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69758. <param name="inputClass" type="java.lang.Class"/>
  69759. <param name="inputQuery" type="java.lang.String"/>
  69760. <param name="inputCountQuery" type="java.lang.String"/>
  69761. <doc>
  69762. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  69763. @param job The map-reduce job
  69764. @param inputClass the class object implementing DBWritable, which is the
  69765. Java object holding tuple fields.
  69766. @param inputQuery the input query to select fields. Example :
  69767. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  69768. @param inputCountQuery the input query that returns
  69769. the number of records in the table.
  69770. Example : "SELECT COUNT(f1) FROM Mytable"
  69771. @see #setInput(Job, Class, String, String, String, String...)]]>
  69772. </doc>
  69773. </method>
  69774. <method name="closeConnection"
  69775. abstract="false" native="false" synchronized="false"
  69776. static="false" final="false" visibility="protected"
  69777. deprecated="not deprecated">
  69778. </method>
  69779. <doc>
  69780. <![CDATA[A InputFormat that reads input data from an SQL table.
  69781. <p>
  69782. DBInputFormat emits LongWritables containing the record number as
  69783. key and DBWritables as value.
  69784. The SQL query, and input class can be using one of the two
  69785. setInput methods.]]>
  69786. </doc>
  69787. </class>
  69788. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  69789. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  69790. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  69791. abstract="false"
  69792. static="true" final="false" visibility="public"
  69793. deprecated="not deprecated">
  69794. <implements name="org.apache.hadoop.io.Writable"/>
  69795. <constructor name="DBInputFormat.DBInputSplit"
  69796. static="false" final="false" visibility="public"
  69797. deprecated="not deprecated">
  69798. <doc>
  69799. <![CDATA[Default Constructor]]>
  69800. </doc>
  69801. </constructor>
  69802. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  69803. static="false" final="false" visibility="public"
  69804. deprecated="not deprecated">
  69805. <doc>
  69806. <![CDATA[Convenience Constructor
  69807. @param start the index of the first row to select
  69808. @param end the index of the last row to select]]>
  69809. </doc>
  69810. </constructor>
  69811. <method name="getLocations" return="java.lang.String[]"
  69812. abstract="false" native="false" synchronized="false"
  69813. static="false" final="false" visibility="public"
  69814. deprecated="not deprecated">
  69815. <exception name="IOException" type="java.io.IOException"/>
  69816. <doc>
  69817. <![CDATA[{@inheritDoc}]]>
  69818. </doc>
  69819. </method>
  69820. <method name="getStart" return="long"
  69821. abstract="false" native="false" synchronized="false"
  69822. static="false" final="false" visibility="public"
  69823. deprecated="not deprecated">
  69824. <doc>
  69825. <![CDATA[@return The index of the first row to select]]>
  69826. </doc>
  69827. </method>
  69828. <method name="getEnd" return="long"
  69829. abstract="false" native="false" synchronized="false"
  69830. static="false" final="false" visibility="public"
  69831. deprecated="not deprecated">
  69832. <doc>
  69833. <![CDATA[@return The index of the last row to select]]>
  69834. </doc>
  69835. </method>
  69836. <method name="getLength" return="long"
  69837. abstract="false" native="false" synchronized="false"
  69838. static="false" final="false" visibility="public"
  69839. deprecated="not deprecated">
  69840. <exception name="IOException" type="java.io.IOException"/>
  69841. <doc>
  69842. <![CDATA[@return The total row count in this split]]>
  69843. </doc>
  69844. </method>
  69845. <method name="readFields"
  69846. abstract="false" native="false" synchronized="false"
  69847. static="false" final="false" visibility="public"
  69848. deprecated="not deprecated">
  69849. <param name="input" type="java.io.DataInput"/>
  69850. <exception name="IOException" type="java.io.IOException"/>
  69851. <doc>
  69852. <![CDATA[{@inheritDoc}]]>
  69853. </doc>
  69854. </method>
  69855. <method name="write"
  69856. abstract="false" native="false" synchronized="false"
  69857. static="false" final="false" visibility="public"
  69858. deprecated="not deprecated">
  69859. <param name="output" type="java.io.DataOutput"/>
  69860. <exception name="IOException" type="java.io.IOException"/>
  69861. <doc>
  69862. <![CDATA[{@inheritDoc}]]>
  69863. </doc>
  69864. </method>
  69865. <doc>
  69866. <![CDATA[A InputSplit that spans a set of rows]]>
  69867. </doc>
  69868. </class>
  69869. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  69870. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  69871. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  69872. abstract="false"
  69873. static="true" final="false" visibility="public"
  69874. deprecated="not deprecated">
  69875. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  69876. <implements name="org.apache.hadoop.io.Writable"/>
  69877. <constructor name="DBInputFormat.NullDBWritable"
  69878. static="false" final="false" visibility="public"
  69879. deprecated="not deprecated">
  69880. </constructor>
  69881. <method name="readFields"
  69882. abstract="false" native="false" synchronized="false"
  69883. static="false" final="false" visibility="public"
  69884. deprecated="not deprecated">
  69885. <param name="in" type="java.io.DataInput"/>
  69886. <exception name="IOException" type="java.io.IOException"/>
  69887. </method>
  69888. <method name="readFields"
  69889. abstract="false" native="false" synchronized="false"
  69890. static="false" final="false" visibility="public"
  69891. deprecated="not deprecated">
  69892. <param name="arg0" type="java.sql.ResultSet"/>
  69893. <exception name="SQLException" type="java.sql.SQLException"/>
  69894. </method>
  69895. <method name="write"
  69896. abstract="false" native="false" synchronized="false"
  69897. static="false" final="false" visibility="public"
  69898. deprecated="not deprecated">
  69899. <param name="out" type="java.io.DataOutput"/>
  69900. <exception name="IOException" type="java.io.IOException"/>
  69901. </method>
  69902. <method name="write"
  69903. abstract="false" native="false" synchronized="false"
  69904. static="false" final="false" visibility="public"
  69905. deprecated="not deprecated">
  69906. <param name="arg0" type="java.sql.PreparedStatement"/>
  69907. <exception name="SQLException" type="java.sql.SQLException"/>
  69908. </method>
  69909. <doc>
  69910. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  69911. </doc>
  69912. </class>
  69913. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  69914. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  69915. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  69916. abstract="false"
  69917. static="false" final="false" visibility="public"
  69918. deprecated="not deprecated">
  69919. <constructor name="DBOutputFormat"
  69920. static="false" final="false" visibility="public"
  69921. deprecated="not deprecated">
  69922. </constructor>
  69923. <method name="checkOutputSpecs"
  69924. abstract="false" native="false" synchronized="false"
  69925. static="false" final="false" visibility="public"
  69926. deprecated="not deprecated">
  69927. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69928. <exception name="IOException" type="java.io.IOException"/>
  69929. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69930. </method>
  69931. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  69932. abstract="false" native="false" synchronized="false"
  69933. static="false" final="false" visibility="public"
  69934. deprecated="not deprecated">
  69935. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69936. <exception name="IOException" type="java.io.IOException"/>
  69937. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69938. </method>
  69939. <method name="constructQuery" return="java.lang.String"
  69940. abstract="false" native="false" synchronized="false"
  69941. static="false" final="false" visibility="public"
  69942. deprecated="not deprecated">
  69943. <param name="table" type="java.lang.String"/>
  69944. <param name="fieldNames" type="java.lang.String[]"/>
  69945. <doc>
  69946. <![CDATA[Constructs the query used as the prepared statement to insert data.
  69947. @param table
  69948. the table to insert into
  69949. @param fieldNames
  69950. the fields to insert into. If field names are unknown, supply an
  69951. array of nulls.]]>
  69952. </doc>
  69953. </method>
  69954. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  69955. abstract="false" native="false" synchronized="false"
  69956. static="false" final="false" visibility="public"
  69957. deprecated="not deprecated">
  69958. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69959. <exception name="IOException" type="java.io.IOException"/>
  69960. <doc>
  69961. <![CDATA[{@inheritDoc}]]>
  69962. </doc>
  69963. </method>
  69964. <method name="setOutput"
  69965. abstract="false" native="false" synchronized="false"
  69966. static="true" final="false" visibility="public"
  69967. deprecated="not deprecated">
  69968. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69969. <param name="tableName" type="java.lang.String"/>
  69970. <param name="fieldNames" type="java.lang.String[]"/>
  69971. <exception name="IOException" type="java.io.IOException"/>
  69972. <doc>
  69973. <![CDATA[Initializes the reduce-part of the job with
  69974. the appropriate output settings
  69975. @param job The job
  69976. @param tableName The table to insert data into
  69977. @param fieldNames The field names in the table.]]>
  69978. </doc>
  69979. </method>
  69980. <method name="setOutput"
  69981. abstract="false" native="false" synchronized="false"
  69982. static="true" final="false" visibility="public"
  69983. deprecated="not deprecated">
  69984. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69985. <param name="tableName" type="java.lang.String"/>
  69986. <param name="fieldCount" type="int"/>
  69987. <exception name="IOException" type="java.io.IOException"/>
  69988. <doc>
  69989. <![CDATA[Initializes the reduce-part of the job
  69990. with the appropriate output settings
  69991. @param job The job
  69992. @param tableName The table to insert data into
  69993. @param fieldCount the number of fields in the table.]]>
  69994. </doc>
  69995. </method>
  69996. <doc>
  69997. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  69998. <p>
  69999. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  70000. key has a type extending DBWritable. Returned {@link RecordWriter}
  70001. writes <b>only the key</b> to the database with a batch SQL query.]]>
  70002. </doc>
  70003. </class>
  70004. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  70005. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  70006. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  70007. abstract="false"
  70008. static="false" final="false" visibility="public"
  70009. deprecated="not deprecated">
  70010. <constructor name="DBOutputFormat.DBRecordWriter"
  70011. static="false" final="false" visibility="public"
  70012. deprecated="not deprecated">
  70013. <exception name="SQLException" type="java.sql.SQLException"/>
  70014. </constructor>
  70015. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  70016. static="false" final="false" visibility="public"
  70017. deprecated="not deprecated">
  70018. <exception name="SQLException" type="java.sql.SQLException"/>
  70019. </constructor>
  70020. <method name="getConnection" return="java.sql.Connection"
  70021. abstract="false" native="false" synchronized="false"
  70022. static="false" final="false" visibility="public"
  70023. deprecated="not deprecated">
  70024. </method>
  70025. <method name="getStatement" return="java.sql.PreparedStatement"
  70026. abstract="false" native="false" synchronized="false"
  70027. static="false" final="false" visibility="public"
  70028. deprecated="not deprecated">
  70029. </method>
  70030. <method name="close"
  70031. abstract="false" native="false" synchronized="false"
  70032. static="false" final="false" visibility="public"
  70033. deprecated="not deprecated">
  70034. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70035. <exception name="IOException" type="java.io.IOException"/>
  70036. <doc>
  70037. <![CDATA[{@inheritDoc}]]>
  70038. </doc>
  70039. </method>
  70040. <method name="write"
  70041. abstract="false" native="false" synchronized="false"
  70042. static="false" final="false" visibility="public"
  70043. deprecated="not deprecated">
  70044. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  70045. <param name="value" type="java.lang.Object"/>
  70046. <exception name="IOException" type="java.io.IOException"/>
  70047. <doc>
  70048. <![CDATA[{@inheritDoc}]]>
  70049. </doc>
  70050. </method>
  70051. <doc>
  70052. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  70053. </doc>
  70054. </class>
  70055. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  70056. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  70057. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70058. abstract="false"
  70059. static="false" final="false" visibility="public"
  70060. deprecated="not deprecated">
  70061. <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"
  70062. static="false" final="false" visibility="public"
  70063. deprecated="not deprecated">
  70064. <exception name="SQLException" type="java.sql.SQLException"/>
  70065. <doc>
  70066. <![CDATA[@param split The InputSplit to read data for
  70067. @throws SQLException]]>
  70068. </doc>
  70069. </constructor>
  70070. <method name="executeQuery" return="java.sql.ResultSet"
  70071. abstract="false" native="false" synchronized="false"
  70072. static="false" final="false" visibility="protected"
  70073. deprecated="not deprecated">
  70074. <param name="query" type="java.lang.String"/>
  70075. <exception name="SQLException" type="java.sql.SQLException"/>
  70076. </method>
  70077. <method name="getSelectQuery" return="java.lang.String"
  70078. abstract="false" native="false" synchronized="false"
  70079. static="false" final="false" visibility="protected"
  70080. deprecated="not deprecated">
  70081. <doc>
  70082. <![CDATA[Returns the query for selecting the records,
  70083. subclasses can override this for custom behaviour.]]>
  70084. </doc>
  70085. </method>
  70086. <method name="close"
  70087. abstract="false" native="false" synchronized="false"
  70088. static="false" final="false" visibility="public"
  70089. deprecated="not deprecated">
  70090. <exception name="IOException" type="java.io.IOException"/>
  70091. <doc>
  70092. <![CDATA[{@inheritDoc}]]>
  70093. </doc>
  70094. </method>
  70095. <method name="initialize"
  70096. abstract="false" native="false" synchronized="false"
  70097. static="false" final="false" visibility="public"
  70098. deprecated="not deprecated">
  70099. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70100. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70101. <exception name="IOException" type="java.io.IOException"/>
  70102. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70103. </method>
  70104. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  70105. abstract="false" native="false" synchronized="false"
  70106. static="false" final="false" visibility="public"
  70107. deprecated="not deprecated">
  70108. <doc>
  70109. <![CDATA[{@inheritDoc}]]>
  70110. </doc>
  70111. </method>
  70112. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  70113. abstract="false" native="false" synchronized="false"
  70114. static="false" final="false" visibility="public"
  70115. deprecated="not deprecated">
  70116. <doc>
  70117. <![CDATA[{@inheritDoc}]]>
  70118. </doc>
  70119. </method>
  70120. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  70121. abstract="false" native="false" synchronized="false"
  70122. static="false" final="false" visibility="public"
  70123. deprecated="deprecated, no comment">
  70124. <doc>
  70125. <![CDATA[@deprecated]]>
  70126. </doc>
  70127. </method>
  70128. <method name="getPos" return="long"
  70129. abstract="false" native="false" synchronized="false"
  70130. static="false" final="false" visibility="public"
  70131. deprecated="deprecated, no comment">
  70132. <exception name="IOException" type="java.io.IOException"/>
  70133. <doc>
  70134. <![CDATA[@deprecated]]>
  70135. </doc>
  70136. </method>
  70137. <method name="next" return="boolean"
  70138. abstract="false" native="false" synchronized="false"
  70139. static="false" final="false" visibility="public"
  70140. deprecated="Use {@link #nextKeyValue()}">
  70141. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  70142. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  70143. <exception name="IOException" type="java.io.IOException"/>
  70144. <doc>
  70145. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  70146. </doc>
  70147. </method>
  70148. <method name="getProgress" return="float"
  70149. abstract="false" native="false" synchronized="false"
  70150. static="false" final="false" visibility="public"
  70151. deprecated="not deprecated">
  70152. <exception name="IOException" type="java.io.IOException"/>
  70153. <doc>
  70154. <![CDATA[{@inheritDoc}]]>
  70155. </doc>
  70156. </method>
  70157. <method name="nextKeyValue" return="boolean"
  70158. abstract="false" native="false" synchronized="false"
  70159. static="false" final="false" visibility="public"
  70160. deprecated="not deprecated">
  70161. <exception name="IOException" type="java.io.IOException"/>
  70162. <doc>
  70163. <![CDATA[{@inheritDoc}]]>
  70164. </doc>
  70165. </method>
  70166. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  70167. abstract="false" native="false" synchronized="false"
  70168. static="false" final="false" visibility="protected"
  70169. deprecated="not deprecated">
  70170. </method>
  70171. <method name="getFieldNames" return="java.lang.String[]"
  70172. abstract="false" native="false" synchronized="false"
  70173. static="false" final="false" visibility="protected"
  70174. deprecated="not deprecated">
  70175. </method>
  70176. <method name="getTableName" return="java.lang.String"
  70177. abstract="false" native="false" synchronized="false"
  70178. static="false" final="false" visibility="protected"
  70179. deprecated="not deprecated">
  70180. </method>
  70181. <method name="getConditions" return="java.lang.String"
  70182. abstract="false" native="false" synchronized="false"
  70183. static="false" final="false" visibility="protected"
  70184. deprecated="not deprecated">
  70185. </method>
  70186. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  70187. abstract="false" native="false" synchronized="false"
  70188. static="false" final="false" visibility="protected"
  70189. deprecated="not deprecated">
  70190. </method>
  70191. <method name="getConnection" return="java.sql.Connection"
  70192. abstract="false" native="false" synchronized="false"
  70193. static="false" final="false" visibility="protected"
  70194. deprecated="not deprecated">
  70195. </method>
  70196. <method name="getStatement" return="java.sql.PreparedStatement"
  70197. abstract="false" native="false" synchronized="false"
  70198. static="false" final="false" visibility="protected"
  70199. deprecated="not deprecated">
  70200. </method>
  70201. <method name="setStatement"
  70202. abstract="false" native="false" synchronized="false"
  70203. static="false" final="false" visibility="protected"
  70204. deprecated="not deprecated">
  70205. <param name="stmt" type="java.sql.PreparedStatement"/>
  70206. </method>
  70207. <field name="statement" type="java.sql.PreparedStatement"
  70208. transient="false" volatile="false"
  70209. static="false" final="false" visibility="protected"
  70210. deprecated="not deprecated">
  70211. </field>
  70212. <doc>
  70213. <![CDATA[A RecordReader that reads records from a SQL table.
  70214. Emits LongWritables containing the record number as
  70215. key and DBWritables as value.]]>
  70216. </doc>
  70217. </class>
  70218. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  70219. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  70220. <interface name="DBSplitter" abstract="true"
  70221. static="false" final="false" visibility="public"
  70222. deprecated="not deprecated">
  70223. <method name="split" return="java.util.List"
  70224. abstract="false" native="false" synchronized="false"
  70225. static="false" final="false" visibility="public"
  70226. deprecated="not deprecated">
  70227. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70228. <param name="results" type="java.sql.ResultSet"/>
  70229. <param name="colName" type="java.lang.String"/>
  70230. <exception name="SQLException" type="java.sql.SQLException"/>
  70231. <doc>
  70232. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  70233. with two columns (a low value, and a high value, both of the same type), determine
  70234. a set of splits that span the given values.]]>
  70235. </doc>
  70236. </method>
  70237. <doc>
  70238. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  70239. DataDrivenDBInputFormat needs to interpolate between two values that
  70240. represent the lowest and highest valued records to import. Depending
  70241. on the data-type of the column, this requires different behavior.
  70242. DBSplitter implementations should perform this for a data type or family
  70243. of data types.]]>
  70244. </doc>
  70245. </interface>
  70246. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  70247. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  70248. <interface name="DBWritable" abstract="true"
  70249. static="false" final="false" visibility="public"
  70250. deprecated="not deprecated">
  70251. <method name="write"
  70252. abstract="false" native="false" synchronized="false"
  70253. static="false" final="false" visibility="public"
  70254. deprecated="not deprecated">
  70255. <param name="statement" type="java.sql.PreparedStatement"/>
  70256. <exception name="SQLException" type="java.sql.SQLException"/>
  70257. <doc>
  70258. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  70259. @param statement the statement that the fields are put into.
  70260. @throws SQLException]]>
  70261. </doc>
  70262. </method>
  70263. <method name="readFields"
  70264. abstract="false" native="false" synchronized="false"
  70265. static="false" final="false" visibility="public"
  70266. deprecated="not deprecated">
  70267. <param name="resultSet" type="java.sql.ResultSet"/>
  70268. <exception name="SQLException" type="java.sql.SQLException"/>
  70269. <doc>
  70270. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  70271. @param resultSet the {@link ResultSet} to get the fields from.
  70272. @throws SQLException]]>
  70273. </doc>
  70274. </method>
  70275. <doc>
  70276. <![CDATA[Objects that are read from/written to a database should implement
  70277. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  70278. except that the {@link #write(PreparedStatement)} method takes a
  70279. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  70280. takes a {@link ResultSet}.
  70281. <p>
  70282. Implementations are responsible for writing the fields of the object
  70283. to PreparedStatement, and reading the fields of the object from the
  70284. ResultSet.
  70285. <p>Example:</p>
  70286. If we have the following table in the database :
  70287. <pre>
  70288. CREATE TABLE MyTable (
  70289. counter INTEGER NOT NULL,
  70290. timestamp BIGINT NOT NULL,
  70291. );
  70292. </pre>
  70293. then we can read/write the tuples from/to the table with :
  70294. <p><pre>
  70295. public class MyWritable implements Writable, DBWritable {
  70296. // Some data
  70297. private int counter;
  70298. private long timestamp;
  70299. //Writable#write() implementation
  70300. public void write(DataOutput out) throws IOException {
  70301. out.writeInt(counter);
  70302. out.writeLong(timestamp);
  70303. }
  70304. //Writable#readFields() implementation
  70305. public void readFields(DataInput in) throws IOException {
  70306. counter = in.readInt();
  70307. timestamp = in.readLong();
  70308. }
  70309. public void write(PreparedStatement statement) throws SQLException {
  70310. statement.setInt(1, counter);
  70311. statement.setLong(2, timestamp);
  70312. }
  70313. public void readFields(ResultSet resultSet) throws SQLException {
  70314. counter = resultSet.getInt(1);
  70315. timestamp = resultSet.getLong(2);
  70316. }
  70317. }
  70318. </pre></p>]]>
  70319. </doc>
  70320. </interface>
  70321. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  70322. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  70323. <class name="FloatSplitter" extends="java.lang.Object"
  70324. abstract="false"
  70325. static="false" final="false" visibility="public"
  70326. deprecated="not deprecated">
  70327. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70328. <constructor name="FloatSplitter"
  70329. static="false" final="false" visibility="public"
  70330. deprecated="not deprecated">
  70331. </constructor>
  70332. <method name="split" return="java.util.List"
  70333. abstract="false" native="false" synchronized="false"
  70334. static="false" final="false" visibility="public"
  70335. deprecated="not deprecated">
  70336. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70337. <param name="results" type="java.sql.ResultSet"/>
  70338. <param name="colName" type="java.lang.String"/>
  70339. <exception name="SQLException" type="java.sql.SQLException"/>
  70340. </method>
  70341. <doc>
  70342. <![CDATA[Implement DBSplitter over floating-point values.]]>
  70343. </doc>
  70344. </class>
  70345. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  70346. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  70347. <class name="IntegerSplitter" extends="java.lang.Object"
  70348. abstract="false"
  70349. static="false" final="false" visibility="public"
  70350. deprecated="not deprecated">
  70351. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70352. <constructor name="IntegerSplitter"
  70353. static="false" final="false" visibility="public"
  70354. deprecated="not deprecated">
  70355. </constructor>
  70356. <method name="split" return="java.util.List"
  70357. abstract="false" native="false" synchronized="false"
  70358. static="false" final="false" visibility="public"
  70359. deprecated="not deprecated">
  70360. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70361. <param name="results" type="java.sql.ResultSet"/>
  70362. <param name="colName" type="java.lang.String"/>
  70363. <exception name="SQLException" type="java.sql.SQLException"/>
  70364. </method>
  70365. <doc>
  70366. <![CDATA[Implement DBSplitter over integer values.]]>
  70367. </doc>
  70368. </class>
  70369. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  70370. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  70371. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  70372. abstract="false"
  70373. static="false" final="false" visibility="public"
  70374. deprecated="not deprecated">
  70375. <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"
  70376. static="false" final="false" visibility="public"
  70377. deprecated="not deprecated">
  70378. <exception name="SQLException" type="java.sql.SQLException"/>
  70379. </constructor>
  70380. <method name="executeQuery" return="java.sql.ResultSet"
  70381. abstract="false" native="false" synchronized="false"
  70382. static="false" final="false" visibility="protected"
  70383. deprecated="not deprecated">
  70384. <param name="query" type="java.lang.String"/>
  70385. <exception name="SQLException" type="java.sql.SQLException"/>
  70386. </method>
  70387. <doc>
  70388. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  70389. </doc>
  70390. </class>
  70391. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  70392. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  70393. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70394. abstract="false"
  70395. static="false" final="false" visibility="public"
  70396. deprecated="not deprecated">
  70397. <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"
  70398. static="false" final="false" visibility="public"
  70399. deprecated="not deprecated">
  70400. <exception name="SQLException" type="java.sql.SQLException"/>
  70401. </constructor>
  70402. <method name="executeQuery" return="java.sql.ResultSet"
  70403. abstract="false" native="false" synchronized="false"
  70404. static="false" final="false" visibility="protected"
  70405. deprecated="not deprecated">
  70406. <param name="query" type="java.lang.String"/>
  70407. <exception name="SQLException" type="java.sql.SQLException"/>
  70408. </method>
  70409. <doc>
  70410. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  70411. </doc>
  70412. </class>
  70413. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  70414. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  70415. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  70416. abstract="false"
  70417. static="false" final="false" visibility="public"
  70418. deprecated="not deprecated">
  70419. <implements name="org.apache.hadoop.conf.Configurable"/>
  70420. <constructor name="OracleDataDrivenDBInputFormat"
  70421. static="false" final="false" visibility="public"
  70422. deprecated="not deprecated">
  70423. </constructor>
  70424. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  70425. abstract="false" native="false" synchronized="false"
  70426. static="false" final="false" visibility="protected"
  70427. deprecated="not deprecated">
  70428. <param name="sqlDataType" type="int"/>
  70429. <doc>
  70430. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  70431. </doc>
  70432. </method>
  70433. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70434. abstract="false" native="false" synchronized="false"
  70435. static="false" final="false" visibility="protected"
  70436. deprecated="not deprecated">
  70437. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  70438. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70439. <exception name="IOException" type="java.io.IOException"/>
  70440. </method>
  70441. <doc>
  70442. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  70443. </doc>
  70444. </class>
  70445. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  70446. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  70447. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  70448. abstract="false"
  70449. static="false" final="false" visibility="public"
  70450. deprecated="not deprecated">
  70451. <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"
  70452. static="false" final="false" visibility="public"
  70453. deprecated="not deprecated">
  70454. <exception name="SQLException" type="java.sql.SQLException"/>
  70455. </constructor>
  70456. <doc>
  70457. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  70458. </doc>
  70459. </class>
  70460. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  70461. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  70462. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  70463. abstract="false"
  70464. static="false" final="false" visibility="public"
  70465. deprecated="not deprecated">
  70466. <constructor name="OracleDateSplitter"
  70467. static="false" final="false" visibility="public"
  70468. deprecated="not deprecated">
  70469. </constructor>
  70470. <method name="dateToString" return="java.lang.String"
  70471. abstract="false" native="false" synchronized="false"
  70472. static="false" final="false" visibility="protected"
  70473. deprecated="not deprecated">
  70474. <param name="d" type="java.util.Date"/>
  70475. </method>
  70476. <doc>
  70477. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  70478. Make use of logic from DateSplitter, since this just needs to use
  70479. some Oracle-specific functions on the formatting end when generating
  70480. InputSplits.]]>
  70481. </doc>
  70482. </class>
  70483. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  70484. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  70485. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70486. abstract="false"
  70487. static="false" final="false" visibility="public"
  70488. deprecated="not deprecated">
  70489. <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"
  70490. static="false" final="false" visibility="public"
  70491. deprecated="not deprecated">
  70492. <exception name="SQLException" type="java.sql.SQLException"/>
  70493. </constructor>
  70494. <method name="getSelectQuery" return="java.lang.String"
  70495. abstract="false" native="false" synchronized="false"
  70496. static="false" final="false" visibility="protected"
  70497. deprecated="not deprecated">
  70498. <doc>
  70499. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  70500. </doc>
  70501. </method>
  70502. <method name="setSessionTimeZone"
  70503. abstract="false" native="false" synchronized="false"
  70504. static="true" final="false" visibility="public"
  70505. deprecated="not deprecated">
  70506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70507. <param name="conn" type="java.sql.Connection"/>
  70508. <exception name="SQLException" type="java.sql.SQLException"/>
  70509. <doc>
  70510. <![CDATA[Set session time zone
  70511. @param conf The current configuration.
  70512. We read the 'oracle.sessionTimeZone' property from here.
  70513. @param conn The connection to alter the timezone properties of.]]>
  70514. </doc>
  70515. </method>
  70516. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  70517. transient="false" volatile="false"
  70518. static="true" final="true" visibility="public"
  70519. deprecated="not deprecated">
  70520. <doc>
  70521. <![CDATA[Configuration key to set to a timezone string.]]>
  70522. </doc>
  70523. </field>
  70524. <doc>
  70525. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  70526. </doc>
  70527. </class>
  70528. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  70529. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  70530. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  70531. abstract="false"
  70532. static="false" final="false" visibility="public"
  70533. deprecated="not deprecated">
  70534. <constructor name="TextSplitter"
  70535. static="false" final="false" visibility="public"
  70536. deprecated="not deprecated">
  70537. </constructor>
  70538. <method name="split" return="java.util.List"
  70539. abstract="false" native="false" synchronized="false"
  70540. static="false" final="false" visibility="public"
  70541. deprecated="not deprecated">
  70542. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70543. <param name="results" type="java.sql.ResultSet"/>
  70544. <param name="colName" type="java.lang.String"/>
  70545. <exception name="SQLException" type="java.sql.SQLException"/>
  70546. <doc>
  70547. <![CDATA[This method needs to determine the splits between two user-provided strings.
  70548. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  70549. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  70550. beginning with each letter, etc.
  70551. If a user has provided us with the strings "Ham" and "Haze", however, we need
  70552. to create splits that differ in the third letter.
  70553. The algorithm used is as follows:
  70554. Since there are 2**16 unicode characters, we interpret characters as digits in
  70555. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  70556. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  70557. low and high strings into floating-point values, we then use the BigDecimalSplitter
  70558. to establish the even split points, then map the resulting floating point values
  70559. back into strings.]]>
  70560. </doc>
  70561. </method>
  70562. <doc>
  70563. <![CDATA[Implement DBSplitter over text strings.]]>
  70564. </doc>
  70565. </class>
  70566. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  70567. </package>
  70568. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  70569. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  70570. <class name="FieldSelectionHelper" extends="java.lang.Object"
  70571. abstract="false"
  70572. static="false" final="false" visibility="public"
  70573. deprecated="not deprecated">
  70574. <constructor name="FieldSelectionHelper"
  70575. static="false" final="false" visibility="public"
  70576. deprecated="not deprecated">
  70577. </constructor>
  70578. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  70579. static="false" final="false" visibility="public"
  70580. deprecated="not deprecated">
  70581. </constructor>
  70582. <method name="parseOutputKeyValueSpec" return="int"
  70583. abstract="false" native="false" synchronized="false"
  70584. static="true" final="false" visibility="public"
  70585. deprecated="not deprecated">
  70586. <param name="keyValueSpec" type="java.lang.String"/>
  70587. <param name="keyFieldList" type="java.util.List"/>
  70588. <param name="valueFieldList" type="java.util.List"/>
  70589. </method>
  70590. <method name="specToString" return="java.lang.String"
  70591. abstract="false" native="false" synchronized="false"
  70592. static="true" final="false" visibility="public"
  70593. deprecated="not deprecated">
  70594. <param name="fieldSeparator" type="java.lang.String"/>
  70595. <param name="keyValueSpec" type="java.lang.String"/>
  70596. <param name="allValueFieldsFrom" type="int"/>
  70597. <param name="keyFieldList" type="java.util.List"/>
  70598. <param name="valueFieldList" type="java.util.List"/>
  70599. </method>
  70600. <method name="getKey" return="org.apache.hadoop.io.Text"
  70601. abstract="false" native="false" synchronized="false"
  70602. static="false" final="false" visibility="public"
  70603. deprecated="not deprecated">
  70604. </method>
  70605. <method name="getValue" return="org.apache.hadoop.io.Text"
  70606. abstract="false" native="false" synchronized="false"
  70607. static="false" final="false" visibility="public"
  70608. deprecated="not deprecated">
  70609. </method>
  70610. <method name="extractOutputKeyValue"
  70611. abstract="false" native="false" synchronized="false"
  70612. static="false" final="false" visibility="public"
  70613. deprecated="not deprecated">
  70614. <param name="key" type="java.lang.String"/>
  70615. <param name="val" type="java.lang.String"/>
  70616. <param name="fieldSep" type="java.lang.String"/>
  70617. <param name="keyFieldList" type="java.util.List"/>
  70618. <param name="valFieldList" type="java.util.List"/>
  70619. <param name="allValueFieldsFrom" type="int"/>
  70620. <param name="ignoreKey" type="boolean"/>
  70621. <param name="isMap" type="boolean"/>
  70622. </method>
  70623. <field name="emptyText" type="org.apache.hadoop.io.Text"
  70624. transient="false" volatile="false"
  70625. static="true" final="false" visibility="public"
  70626. deprecated="not deprecated">
  70627. </field>
  70628. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  70629. transient="false" volatile="false"
  70630. static="true" final="true" visibility="public"
  70631. deprecated="not deprecated">
  70632. </field>
  70633. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  70634. transient="false" volatile="false"
  70635. static="true" final="true" visibility="public"
  70636. deprecated="not deprecated">
  70637. </field>
  70638. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  70639. transient="false" volatile="false"
  70640. static="true" final="true" visibility="public"
  70641. deprecated="not deprecated">
  70642. </field>
  70643. <doc>
  70644. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  70645. field selections in a manner similar to unix cut. The input data is treated
  70646. as fields separated by a user specified separator (the default value is
  70647. "\t"). The user can specify a list of fields that form the map output keys,
  70648. and a list of fields that form the map output values. If the inputformat is
  70649. TextInputFormat, the mapper will ignore the key to the map function. and the
  70650. fields are from the value only. Otherwise, the fields are the union of those
  70651. from the key and those from the value.
  70652. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70653. The map output field list spec is under attribute
  70654. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  70655. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  70656. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  70657. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  70658. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  70659. the fields starting from field 3. The open range field spec applies value fields only.
  70660. They have no effect on the key fields.
  70661. 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,
  70662. and use fields 6,5,1,2,3,7 and above for values.
  70663. The reduce output field list spec is under attribute
  70664. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  70665. The reducer extracts output key/value pairs in a similar manner, except that
  70666. the key is never ignored.]]>
  70667. </doc>
  70668. </class>
  70669. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  70670. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  70671. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  70672. abstract="false"
  70673. static="false" final="false" visibility="public"
  70674. deprecated="not deprecated">
  70675. <constructor name="FieldSelectionMapper"
  70676. static="false" final="false" visibility="public"
  70677. deprecated="not deprecated">
  70678. </constructor>
  70679. <method name="setup"
  70680. abstract="false" native="false" synchronized="false"
  70681. static="false" final="false" visibility="public"
  70682. deprecated="not deprecated">
  70683. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  70684. <exception name="IOException" type="java.io.IOException"/>
  70685. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70686. </method>
  70687. <method name="map"
  70688. abstract="false" native="false" synchronized="false"
  70689. static="false" final="false" visibility="public"
  70690. deprecated="not deprecated">
  70691. <param name="key" type="java.lang.Object"/>
  70692. <param name="val" type="java.lang.Object"/>
  70693. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  70694. <exception name="IOException" type="java.io.IOException"/>
  70695. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70696. <doc>
  70697. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  70698. </doc>
  70699. </method>
  70700. <field name="LOG" type="org.apache.commons.logging.Log"
  70701. transient="false" volatile="false"
  70702. static="true" final="true" visibility="public"
  70703. deprecated="not deprecated">
  70704. </field>
  70705. <doc>
  70706. <![CDATA[This class implements a mapper class that can be used to perform
  70707. field selections in a manner similar to unix cut. The input data is treated
  70708. as fields separated by a user specified separator (the default value is
  70709. "\t"). The user can specify a list of fields that form the map output keys,
  70710. and a list of fields that form the map output values. If the inputformat is
  70711. TextInputFormat, the mapper will ignore the key to the map function. and the
  70712. fields are from the value only. Otherwise, the fields are the union of those
  70713. from the key and those from the value.
  70714. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70715. The map output field list spec is under attribute
  70716. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  70717. The value is expected to be like
  70718. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  70719. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  70720. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  70721. to specify a range of fields, or an open range (like 3-) specifying all
  70722. the fields starting from field 3. The open range field spec applies value
  70723. fields only. They have no effect on the key fields.
  70724. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  70725. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  70726. </doc>
  70727. </class>
  70728. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  70729. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  70730. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  70731. abstract="false"
  70732. static="false" final="false" visibility="public"
  70733. deprecated="not deprecated">
  70734. <constructor name="FieldSelectionReducer"
  70735. static="false" final="false" visibility="public"
  70736. deprecated="not deprecated">
  70737. </constructor>
  70738. <method name="setup"
  70739. abstract="false" native="false" synchronized="false"
  70740. static="false" final="false" visibility="public"
  70741. deprecated="not deprecated">
  70742. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  70743. <exception name="IOException" type="java.io.IOException"/>
  70744. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70745. </method>
  70746. <method name="reduce"
  70747. abstract="false" native="false" synchronized="false"
  70748. static="false" final="false" visibility="public"
  70749. deprecated="not deprecated">
  70750. <param name="key" type="org.apache.hadoop.io.Text"/>
  70751. <param name="values" type="java.lang.Iterable"/>
  70752. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  70753. <exception name="IOException" type="java.io.IOException"/>
  70754. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70755. </method>
  70756. <field name="LOG" type="org.apache.commons.logging.Log"
  70757. transient="false" volatile="false"
  70758. static="true" final="true" visibility="public"
  70759. deprecated="not deprecated">
  70760. </field>
  70761. <doc>
  70762. <![CDATA[This class implements a reducer class that can be used to perform field
  70763. selections in a manner similar to unix cut.
  70764. The input data is treated as fields separated by a user specified
  70765. separator (the default value is "\t"). The user can specify a list of
  70766. fields that form the reduce output keys, and a list of fields that form
  70767. the reduce output values. The fields are the union of those from the key
  70768. and those from the value.
  70769. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70770. The reduce output field list spec is under attribute
  70771. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  70772. The value is expected to be like
  70773. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  70774. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  70775. can be a simple number (e.g. 5) specifying a specific field, or a range
  70776. (like 2-5) to specify a range of fields, or an open range (like 3-)
  70777. specifying all the fields starting from field 3. The open range field
  70778. spec applies value fields only. They have no effect on the key fields.
  70779. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  70780. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  70781. </doc>
  70782. </class>
  70783. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  70784. </package>
  70785. <package name="org.apache.hadoop.mapreduce.lib.input">
  70786. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  70787. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70788. abstract="true"
  70789. static="false" final="false" visibility="public"
  70790. deprecated="not deprecated">
  70791. <constructor name="CombineFileInputFormat"
  70792. static="false" final="false" visibility="public"
  70793. deprecated="not deprecated">
  70794. <doc>
  70795. <![CDATA[default constructor]]>
  70796. </doc>
  70797. </constructor>
  70798. <method name="setMaxSplitSize"
  70799. abstract="false" native="false" synchronized="false"
  70800. static="false" final="false" visibility="protected"
  70801. deprecated="not deprecated">
  70802. <param name="maxSplitSize" type="long"/>
  70803. <doc>
  70804. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  70805. approximately equal to the specified size.]]>
  70806. </doc>
  70807. </method>
  70808. <method name="setMinSplitSizeNode"
  70809. abstract="false" native="false" synchronized="false"
  70810. static="false" final="false" visibility="protected"
  70811. deprecated="not deprecated">
  70812. <param name="minSplitSizeNode" type="long"/>
  70813. <doc>
  70814. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  70815. This applies to data that is left over after combining data on a single
  70816. node into splits that are of maximum size specified by maxSplitSize.
  70817. This leftover data will be combined into its own split if its size
  70818. exceeds minSplitSizeNode.]]>
  70819. </doc>
  70820. </method>
  70821. <method name="setMinSplitSizeRack"
  70822. abstract="false" native="false" synchronized="false"
  70823. static="false" final="false" visibility="protected"
  70824. deprecated="not deprecated">
  70825. <param name="minSplitSizeRack" type="long"/>
  70826. <doc>
  70827. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  70828. This applies to data that is left over after combining data on a single
  70829. rack into splits that are of maximum size specified by maxSplitSize.
  70830. This leftover data will be combined into its own split if its size
  70831. exceeds minSplitSizeRack.]]>
  70832. </doc>
  70833. </method>
  70834. <method name="createPool"
  70835. abstract="false" native="false" synchronized="false"
  70836. static="false" final="false" visibility="protected"
  70837. deprecated="not deprecated">
  70838. <param name="filters" type="java.util.List"/>
  70839. <doc>
  70840. <![CDATA[Create a new pool and add the filters to it.
  70841. A split cannot have files from different pools.]]>
  70842. </doc>
  70843. </method>
  70844. <method name="createPool"
  70845. abstract="false" native="false" synchronized="false"
  70846. static="false" final="false" visibility="protected"
  70847. deprecated="not deprecated">
  70848. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  70849. <doc>
  70850. <![CDATA[Create a new pool and add the filters to it.
  70851. A pathname can satisfy any one of the specified filters.
  70852. A split cannot have files from different pools.]]>
  70853. </doc>
  70854. </method>
  70855. <method name="isSplitable" return="boolean"
  70856. abstract="false" native="false" synchronized="false"
  70857. static="false" final="false" visibility="protected"
  70858. deprecated="not deprecated">
  70859. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70860. <param name="file" type="org.apache.hadoop.fs.Path"/>
  70861. </method>
  70862. <method name="getSplits" return="java.util.List"
  70863. abstract="false" native="false" synchronized="false"
  70864. static="false" final="false" visibility="public"
  70865. deprecated="not deprecated">
  70866. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70867. <exception name="IOException" type="java.io.IOException"/>
  70868. </method>
  70869. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70870. abstract="true" native="false" synchronized="false"
  70871. static="false" final="false" visibility="public"
  70872. deprecated="not deprecated">
  70873. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70874. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70875. <exception name="IOException" type="java.io.IOException"/>
  70876. <doc>
  70877. <![CDATA[This is not implemented yet.]]>
  70878. </doc>
  70879. </method>
  70880. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  70881. abstract="false" native="false" synchronized="false"
  70882. static="false" final="false" visibility="protected"
  70883. deprecated="not deprecated">
  70884. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  70885. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  70886. <exception name="IOException" type="java.io.IOException"/>
  70887. </method>
  70888. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  70889. transient="false" volatile="false"
  70890. static="true" final="true" visibility="public"
  70891. deprecated="not deprecated">
  70892. </field>
  70893. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  70894. transient="false" volatile="false"
  70895. static="true" final="true" visibility="public"
  70896. deprecated="not deprecated">
  70897. </field>
  70898. <doc>
  70899. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  70900. {@link InputFormat#getSplits(JobContext)} method.
  70901. Splits are constructed from the files under the input paths.
  70902. A split cannot have files from different pools.
  70903. Each split returned may contain blocks from different files.
  70904. If a maxSplitSize is specified, then blocks on the same node are
  70905. combined to form a single split. Blocks that are left over are
  70906. then combined with other blocks in the same rack.
  70907. If maxSplitSize is not specified, then blocks from the same rack
  70908. are combined in a single split; no attempt is made to create
  70909. node-local splits.
  70910. If the maxSplitSize is equal to the block size, then this class
  70911. is similar to the default splitting behavior in Hadoop: each
  70912. block is a locally processed split.
  70913. Subclasses implement
  70914. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  70915. to construct <code>RecordReader</code>'s for
  70916. <code>CombineFileSplit</code>'s.
  70917. @see CombineFileSplit]]>
  70918. </doc>
  70919. </class>
  70920. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  70921. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  70922. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70923. abstract="false"
  70924. static="false" final="false" visibility="public"
  70925. deprecated="not deprecated">
  70926. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  70927. static="false" final="false" visibility="public"
  70928. deprecated="not deprecated">
  70929. <exception name="IOException" type="java.io.IOException"/>
  70930. <doc>
  70931. <![CDATA[A generic RecordReader that can hand out different recordReaders
  70932. for each chunk in the CombineFileSplit.]]>
  70933. </doc>
  70934. </constructor>
  70935. <method name="initialize"
  70936. abstract="false" native="false" synchronized="false"
  70937. static="false" final="false" visibility="public"
  70938. deprecated="not deprecated">
  70939. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70940. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70941. <exception name="IOException" type="java.io.IOException"/>
  70942. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70943. </method>
  70944. <method name="nextKeyValue" return="boolean"
  70945. abstract="false" native="false" synchronized="false"
  70946. static="false" final="false" visibility="public"
  70947. deprecated="not deprecated">
  70948. <exception name="IOException" type="java.io.IOException"/>
  70949. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70950. </method>
  70951. <method name="getCurrentKey" return="java.lang.Object"
  70952. abstract="false" native="false" synchronized="false"
  70953. static="false" final="false" visibility="public"
  70954. deprecated="not deprecated">
  70955. <exception name="IOException" type="java.io.IOException"/>
  70956. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70957. </method>
  70958. <method name="getCurrentValue" return="java.lang.Object"
  70959. abstract="false" native="false" synchronized="false"
  70960. static="false" final="false" visibility="public"
  70961. deprecated="not deprecated">
  70962. <exception name="IOException" type="java.io.IOException"/>
  70963. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70964. </method>
  70965. <method name="close"
  70966. abstract="false" native="false" synchronized="false"
  70967. static="false" final="false" visibility="public"
  70968. deprecated="not deprecated">
  70969. <exception name="IOException" type="java.io.IOException"/>
  70970. </method>
  70971. <method name="getProgress" return="float"
  70972. abstract="false" native="false" synchronized="false"
  70973. static="false" final="false" visibility="public"
  70974. deprecated="not deprecated">
  70975. <exception name="IOException" type="java.io.IOException"/>
  70976. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70977. <doc>
  70978. <![CDATA[return progress based on the amount of data processed so far.]]>
  70979. </doc>
  70980. </method>
  70981. <method name="initNextRecordReader" return="boolean"
  70982. abstract="false" native="false" synchronized="false"
  70983. static="false" final="false" visibility="protected"
  70984. deprecated="not deprecated">
  70985. <exception name="IOException" type="java.io.IOException"/>
  70986. <doc>
  70987. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  70988. </doc>
  70989. </method>
  70990. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  70991. transient="false" volatile="false"
  70992. static="false" final="false" visibility="protected"
  70993. deprecated="not deprecated">
  70994. </field>
  70995. <field name="rrClass" type="java.lang.Class"
  70996. transient="false" volatile="false"
  70997. static="false" final="false" visibility="protected"
  70998. deprecated="not deprecated">
  70999. </field>
  71000. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  71001. transient="false" volatile="false"
  71002. static="false" final="false" visibility="protected"
  71003. deprecated="not deprecated">
  71004. </field>
  71005. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  71006. transient="false" volatile="false"
  71007. static="false" final="false" visibility="protected"
  71008. deprecated="not deprecated">
  71009. </field>
  71010. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  71011. transient="false" volatile="false"
  71012. static="false" final="false" visibility="protected"
  71013. deprecated="not deprecated">
  71014. </field>
  71015. <field name="idx" type="int"
  71016. transient="false" volatile="false"
  71017. static="false" final="false" visibility="protected"
  71018. deprecated="not deprecated">
  71019. </field>
  71020. <field name="progress" type="long"
  71021. transient="false" volatile="false"
  71022. static="false" final="false" visibility="protected"
  71023. deprecated="not deprecated">
  71024. </field>
  71025. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  71026. transient="false" volatile="false"
  71027. static="false" final="false" visibility="protected"
  71028. deprecated="not deprecated">
  71029. </field>
  71030. <doc>
  71031. <![CDATA[A generic RecordReader that can hand out different recordReaders
  71032. for each chunk in a {@link CombineFileSplit}.
  71033. A CombineFileSplit can combine data chunks from multiple files.
  71034. This class allows using different RecordReaders for processing
  71035. these data chunks from different files.
  71036. @see CombineFileSplit]]>
  71037. </doc>
  71038. </class>
  71039. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  71040. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  71041. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71042. abstract="false"
  71043. static="false" final="false" visibility="public"
  71044. deprecated="not deprecated">
  71045. <implements name="org.apache.hadoop.io.Writable"/>
  71046. <constructor name="CombineFileSplit"
  71047. static="false" final="false" visibility="public"
  71048. deprecated="not deprecated">
  71049. <doc>
  71050. <![CDATA[default constructor]]>
  71051. </doc>
  71052. </constructor>
  71053. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  71054. static="false" final="false" visibility="public"
  71055. deprecated="not deprecated">
  71056. </constructor>
  71057. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  71058. static="false" final="false" visibility="public"
  71059. deprecated="not deprecated">
  71060. </constructor>
  71061. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  71062. static="false" final="false" visibility="public"
  71063. deprecated="not deprecated">
  71064. <exception name="IOException" type="java.io.IOException"/>
  71065. <doc>
  71066. <![CDATA[Copy constructor]]>
  71067. </doc>
  71068. </constructor>
  71069. <method name="getLength" return="long"
  71070. abstract="false" native="false" synchronized="false"
  71071. static="false" final="false" visibility="public"
  71072. deprecated="not deprecated">
  71073. </method>
  71074. <method name="getStartOffsets" return="long[]"
  71075. abstract="false" native="false" synchronized="false"
  71076. static="false" final="false" visibility="public"
  71077. deprecated="not deprecated">
  71078. <doc>
  71079. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  71080. </doc>
  71081. </method>
  71082. <method name="getLengths" return="long[]"
  71083. abstract="false" native="false" synchronized="false"
  71084. static="false" final="false" visibility="public"
  71085. deprecated="not deprecated">
  71086. <doc>
  71087. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  71088. </doc>
  71089. </method>
  71090. <method name="getOffset" return="long"
  71091. abstract="false" native="false" synchronized="false"
  71092. static="false" final="false" visibility="public"
  71093. deprecated="not deprecated">
  71094. <param name="i" type="int"/>
  71095. <doc>
  71096. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  71097. </doc>
  71098. </method>
  71099. <method name="getLength" return="long"
  71100. abstract="false" native="false" synchronized="false"
  71101. static="false" final="false" visibility="public"
  71102. deprecated="not deprecated">
  71103. <param name="i" type="int"/>
  71104. <doc>
  71105. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  71106. </doc>
  71107. </method>
  71108. <method name="getNumPaths" return="int"
  71109. abstract="false" native="false" synchronized="false"
  71110. static="false" final="false" visibility="public"
  71111. deprecated="not deprecated">
  71112. <doc>
  71113. <![CDATA[Returns the number of Paths in the split]]>
  71114. </doc>
  71115. </method>
  71116. <method name="getPath" return="org.apache.hadoop.fs.Path"
  71117. abstract="false" native="false" synchronized="false"
  71118. static="false" final="false" visibility="public"
  71119. deprecated="not deprecated">
  71120. <param name="i" type="int"/>
  71121. <doc>
  71122. <![CDATA[Returns the i<sup>th</sup> Path]]>
  71123. </doc>
  71124. </method>
  71125. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  71126. abstract="false" native="false" synchronized="false"
  71127. static="false" final="false" visibility="public"
  71128. deprecated="not deprecated">
  71129. <doc>
  71130. <![CDATA[Returns all the Paths in the split]]>
  71131. </doc>
  71132. </method>
  71133. <method name="getLocations" return="java.lang.String[]"
  71134. abstract="false" native="false" synchronized="false"
  71135. static="false" final="false" visibility="public"
  71136. deprecated="not deprecated">
  71137. <exception name="IOException" type="java.io.IOException"/>
  71138. <doc>
  71139. <![CDATA[Returns all the Paths where this input-split resides]]>
  71140. </doc>
  71141. </method>
  71142. <method name="readFields"
  71143. abstract="false" native="false" synchronized="false"
  71144. static="false" final="false" visibility="public"
  71145. deprecated="not deprecated">
  71146. <param name="in" type="java.io.DataInput"/>
  71147. <exception name="IOException" type="java.io.IOException"/>
  71148. </method>
  71149. <method name="write"
  71150. abstract="false" native="false" synchronized="false"
  71151. static="false" final="false" visibility="public"
  71152. deprecated="not deprecated">
  71153. <param name="out" type="java.io.DataOutput"/>
  71154. <exception name="IOException" type="java.io.IOException"/>
  71155. </method>
  71156. <method name="toString" return="java.lang.String"
  71157. abstract="false" native="false" synchronized="false"
  71158. static="false" final="false" visibility="public"
  71159. deprecated="not deprecated">
  71160. </method>
  71161. <doc>
  71162. <![CDATA[A sub-collection of input files.
  71163. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  71164. a split of a file, but a split of input files into smaller sets.
  71165. A split may contain blocks from different file but all
  71166. the blocks in the same split are probably local to some rack <br>
  71167. CombineFileSplit can be used to implement {@link RecordReader}'s,
  71168. with reading one record per file.
  71169. @see FileSplit
  71170. @see CombineFileInputFormat]]>
  71171. </doc>
  71172. </class>
  71173. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  71174. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  71175. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71176. abstract="false"
  71177. static="false" final="false" visibility="public"
  71178. deprecated="not deprecated">
  71179. <constructor name="DelegatingInputFormat"
  71180. static="false" final="false" visibility="public"
  71181. deprecated="not deprecated">
  71182. </constructor>
  71183. <method name="getSplits" return="java.util.List"
  71184. abstract="false" native="false" synchronized="false"
  71185. static="false" final="false" visibility="public"
  71186. deprecated="not deprecated">
  71187. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71188. <exception name="IOException" type="java.io.IOException"/>
  71189. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71190. </method>
  71191. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71192. abstract="false" native="false" synchronized="false"
  71193. static="false" final="false" visibility="public"
  71194. deprecated="not deprecated">
  71195. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71196. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71197. <exception name="IOException" type="java.io.IOException"/>
  71198. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71199. </method>
  71200. <doc>
  71201. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  71202. InputFormats.
  71203. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  71204. </doc>
  71205. </class>
  71206. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  71207. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  71208. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71209. abstract="false"
  71210. static="false" final="false" visibility="public"
  71211. deprecated="not deprecated">
  71212. <constructor name="DelegatingMapper"
  71213. static="false" final="false" visibility="public"
  71214. deprecated="not deprecated">
  71215. </constructor>
  71216. <method name="setup"
  71217. abstract="false" native="false" synchronized="false"
  71218. static="false" final="false" visibility="protected"
  71219. deprecated="not deprecated">
  71220. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71221. <exception name="IOException" type="java.io.IOException"/>
  71222. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71223. </method>
  71224. <method name="run"
  71225. abstract="false" native="false" synchronized="false"
  71226. static="false" final="false" visibility="public"
  71227. deprecated="not deprecated">
  71228. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71229. <exception name="IOException" type="java.io.IOException"/>
  71230. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71231. </method>
  71232. <doc>
  71233. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  71234. mappers.
  71235. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  71236. </doc>
  71237. </class>
  71238. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  71239. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  71240. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71241. abstract="false"
  71242. static="false" final="false" visibility="public"
  71243. deprecated="not deprecated">
  71244. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  71245. static="false" final="false" visibility="public"
  71246. deprecated="not deprecated">
  71247. <exception name="IOException" type="java.io.IOException"/>
  71248. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71249. <doc>
  71250. <![CDATA[Constructs the DelegatingRecordReader.
  71251. @param split TaggegInputSplit object
  71252. @param context TaskAttemptContext object
  71253. @throws IOException
  71254. @throws InterruptedException]]>
  71255. </doc>
  71256. </constructor>
  71257. <method name="close"
  71258. abstract="false" native="false" synchronized="false"
  71259. static="false" final="false" visibility="public"
  71260. deprecated="not deprecated">
  71261. <exception name="IOException" type="java.io.IOException"/>
  71262. </method>
  71263. <method name="getCurrentKey" return="java.lang.Object"
  71264. abstract="false" native="false" synchronized="false"
  71265. static="false" final="false" visibility="public"
  71266. deprecated="not deprecated">
  71267. <exception name="IOException" type="java.io.IOException"/>
  71268. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71269. </method>
  71270. <method name="getCurrentValue" return="java.lang.Object"
  71271. abstract="false" native="false" synchronized="false"
  71272. static="false" final="false" visibility="public"
  71273. deprecated="not deprecated">
  71274. <exception name="IOException" type="java.io.IOException"/>
  71275. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71276. </method>
  71277. <method name="getProgress" return="float"
  71278. abstract="false" native="false" synchronized="false"
  71279. static="false" final="false" visibility="public"
  71280. deprecated="not deprecated">
  71281. <exception name="IOException" type="java.io.IOException"/>
  71282. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71283. </method>
  71284. <method name="initialize"
  71285. abstract="false" native="false" synchronized="false"
  71286. static="false" final="false" visibility="public"
  71287. deprecated="not deprecated">
  71288. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71289. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71290. <exception name="IOException" type="java.io.IOException"/>
  71291. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71292. </method>
  71293. <method name="nextKeyValue" return="boolean"
  71294. abstract="false" native="false" synchronized="false"
  71295. static="false" final="false" visibility="public"
  71296. deprecated="not deprecated">
  71297. <exception name="IOException" type="java.io.IOException"/>
  71298. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71299. </method>
  71300. <doc>
  71301. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  71302. underlying record reader in {@link TaggedInputSplit}]]>
  71303. </doc>
  71304. </class>
  71305. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  71306. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  71307. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71308. abstract="true"
  71309. static="false" final="false" visibility="public"
  71310. deprecated="not deprecated">
  71311. <constructor name="FileInputFormat"
  71312. static="false" final="false" visibility="public"
  71313. deprecated="not deprecated">
  71314. </constructor>
  71315. <method name="getFormatMinSplitSize" return="long"
  71316. abstract="false" native="false" synchronized="false"
  71317. static="false" final="false" visibility="protected"
  71318. deprecated="not deprecated">
  71319. <doc>
  71320. <![CDATA[Get the lower bound on split size imposed by the format.
  71321. @return the number of bytes of the minimal split for this format]]>
  71322. </doc>
  71323. </method>
  71324. <method name="isSplitable" return="boolean"
  71325. abstract="false" native="false" synchronized="false"
  71326. static="false" final="false" visibility="protected"
  71327. deprecated="not deprecated">
  71328. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71329. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  71330. <doc>
  71331. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  71332. stream compressed, it will not be.
  71333. <code>FileInputFormat</code> implementations can override this and return
  71334. <code>false</code> to ensure that individual input files are never split-up
  71335. so that {@link Mapper}s process entire files.
  71336. @param context the job context
  71337. @param filename the file name to check
  71338. @return is this file splitable?]]>
  71339. </doc>
  71340. </method>
  71341. <method name="setInputPathFilter"
  71342. abstract="false" native="false" synchronized="false"
  71343. static="true" final="false" visibility="public"
  71344. deprecated="not deprecated">
  71345. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71346. <param name="filter" type="java.lang.Class"/>
  71347. <doc>
  71348. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  71349. @param job the job to modify
  71350. @param filter the PathFilter class use for filtering the input paths.]]>
  71351. </doc>
  71352. </method>
  71353. <method name="setMinInputSplitSize"
  71354. abstract="false" native="false" synchronized="false"
  71355. static="true" final="false" visibility="public"
  71356. deprecated="not deprecated">
  71357. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71358. <param name="size" type="long"/>
  71359. <doc>
  71360. <![CDATA[Set the minimum input split size
  71361. @param job the job to modify
  71362. @param size the minimum size]]>
  71363. </doc>
  71364. </method>
  71365. <method name="getMinSplitSize" return="long"
  71366. abstract="false" native="false" synchronized="false"
  71367. static="true" final="false" visibility="public"
  71368. deprecated="not deprecated">
  71369. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71370. <doc>
  71371. <![CDATA[Get the minimum split size
  71372. @param job the job
  71373. @return the minimum number of bytes that can be in a split]]>
  71374. </doc>
  71375. </method>
  71376. <method name="setMaxInputSplitSize"
  71377. abstract="false" native="false" synchronized="false"
  71378. static="true" final="false" visibility="public"
  71379. deprecated="not deprecated">
  71380. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71381. <param name="size" type="long"/>
  71382. <doc>
  71383. <![CDATA[Set the maximum split size
  71384. @param job the job to modify
  71385. @param size the maximum split size]]>
  71386. </doc>
  71387. </method>
  71388. <method name="getMaxSplitSize" return="long"
  71389. abstract="false" native="false" synchronized="false"
  71390. static="true" final="false" visibility="public"
  71391. deprecated="not deprecated">
  71392. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71393. <doc>
  71394. <![CDATA[Get the maximum split size.
  71395. @param context the job to look at.
  71396. @return the maximum number of bytes a split can include]]>
  71397. </doc>
  71398. </method>
  71399. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  71400. abstract="false" native="false" synchronized="false"
  71401. static="true" final="false" visibility="public"
  71402. deprecated="not deprecated">
  71403. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71404. <doc>
  71405. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  71406. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  71407. </doc>
  71408. </method>
  71409. <method name="listStatus" return="java.util.List"
  71410. abstract="false" native="false" synchronized="false"
  71411. static="false" final="false" visibility="protected"
  71412. deprecated="not deprecated">
  71413. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71414. <exception name="IOException" type="java.io.IOException"/>
  71415. <doc>
  71416. <![CDATA[List input directories.
  71417. Subclasses may override to, e.g., select only files matching a regular
  71418. expression.
  71419. @param job the job to list input paths for
  71420. @return array of FileStatus objects
  71421. @throws IOException if zero items.]]>
  71422. </doc>
  71423. </method>
  71424. <method name="getSplits" return="java.util.List"
  71425. abstract="false" native="false" synchronized="false"
  71426. static="false" final="false" visibility="public"
  71427. deprecated="not deprecated">
  71428. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71429. <exception name="IOException" type="java.io.IOException"/>
  71430. <doc>
  71431. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  71432. </doc>
  71433. </method>
  71434. <method name="computeSplitSize" return="long"
  71435. abstract="false" native="false" synchronized="false"
  71436. static="false" final="false" visibility="protected"
  71437. deprecated="not deprecated">
  71438. <param name="blockSize" type="long"/>
  71439. <param name="minSize" type="long"/>
  71440. <param name="maxSize" type="long"/>
  71441. </method>
  71442. <method name="getBlockIndex" return="int"
  71443. abstract="false" native="false" synchronized="false"
  71444. static="false" final="false" visibility="protected"
  71445. deprecated="not deprecated">
  71446. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  71447. <param name="offset" type="long"/>
  71448. </method>
  71449. <method name="setInputPaths"
  71450. abstract="false" native="false" synchronized="false"
  71451. static="true" final="false" visibility="public"
  71452. deprecated="not deprecated">
  71453. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71454. <param name="commaSeparatedPaths" type="java.lang.String"/>
  71455. <exception name="IOException" type="java.io.IOException"/>
  71456. <doc>
  71457. <![CDATA[Sets the given comma separated paths as the list of inputs
  71458. for the map-reduce job.
  71459. @param job the job
  71460. @param commaSeparatedPaths Comma separated paths to be set as
  71461. the list of inputs for the map-reduce job.]]>
  71462. </doc>
  71463. </method>
  71464. <method name="addInputPaths"
  71465. abstract="false" native="false" synchronized="false"
  71466. static="true" final="false" visibility="public"
  71467. deprecated="not deprecated">
  71468. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71469. <param name="commaSeparatedPaths" type="java.lang.String"/>
  71470. <exception name="IOException" type="java.io.IOException"/>
  71471. <doc>
  71472. <![CDATA[Add the given comma separated paths to the list of inputs for
  71473. the map-reduce job.
  71474. @param job The job to modify
  71475. @param commaSeparatedPaths Comma separated paths to be added to
  71476. the list of inputs for the map-reduce job.]]>
  71477. </doc>
  71478. </method>
  71479. <method name="setInputPaths"
  71480. abstract="false" native="false" synchronized="false"
  71481. static="true" final="false" visibility="public"
  71482. deprecated="not deprecated">
  71483. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71484. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  71485. <exception name="IOException" type="java.io.IOException"/>
  71486. <doc>
  71487. <![CDATA[Set the array of {@link Path}s as the list of inputs
  71488. for the map-reduce job.
  71489. @param job The job to modify
  71490. @param inputPaths the {@link Path}s of the input directories/files
  71491. for the map-reduce job.]]>
  71492. </doc>
  71493. </method>
  71494. <method name="addInputPath"
  71495. abstract="false" native="false" synchronized="false"
  71496. static="true" final="false" visibility="public"
  71497. deprecated="not deprecated">
  71498. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71499. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71500. <exception name="IOException" type="java.io.IOException"/>
  71501. <doc>
  71502. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  71503. @param job The {@link Job} to modify
  71504. @param path {@link Path} to be added to the list of inputs for
  71505. the map-reduce job.]]>
  71506. </doc>
  71507. </method>
  71508. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  71509. abstract="false" native="false" synchronized="false"
  71510. static="true" final="false" visibility="public"
  71511. deprecated="not deprecated">
  71512. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71513. <doc>
  71514. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  71515. @param context The job
  71516. @return the list of input {@link Path}s for the map-reduce job.]]>
  71517. </doc>
  71518. </method>
  71519. <doc>
  71520. <![CDATA[A base class for file-based {@link InputFormat}s.
  71521. <p><code>FileInputFormat</code> is the base class for all file-based
  71522. <code>InputFormat</code>s. This provides a generic implementation of
  71523. {@link #getSplits(JobContext)}.
  71524. Subclasses of <code>FileInputFormat</code> can also override the
  71525. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  71526. not split-up and are processed as a whole by {@link Mapper}s.]]>
  71527. </doc>
  71528. </class>
  71529. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  71530. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  71531. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  71532. abstract="false"
  71533. static="true" final="true" visibility="public"
  71534. deprecated="not deprecated">
  71535. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  71536. abstract="false" native="false" synchronized="false"
  71537. static="true" final="false" visibility="public"
  71538. deprecated="not deprecated">
  71539. </method>
  71540. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  71541. abstract="false" native="false" synchronized="false"
  71542. static="true" final="false" visibility="public"
  71543. deprecated="not deprecated">
  71544. <param name="name" type="java.lang.String"/>
  71545. </method>
  71546. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  71547. transient="false" volatile="false"
  71548. static="true" final="true" visibility="public"
  71549. deprecated="not deprecated">
  71550. </field>
  71551. </class>
  71552. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  71553. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  71554. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71555. abstract="false"
  71556. static="false" final="false" visibility="public"
  71557. deprecated="not deprecated">
  71558. <implements name="org.apache.hadoop.io.Writable"/>
  71559. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  71560. static="false" final="false" visibility="public"
  71561. deprecated="not deprecated">
  71562. <doc>
  71563. <![CDATA[Constructs a split with host information
  71564. @param file the file name
  71565. @param start the position of the first byte in the file to process
  71566. @param length the number of bytes in the file to process
  71567. @param hosts the list of hosts containing the block, possibly null]]>
  71568. </doc>
  71569. </constructor>
  71570. <method name="getPath" return="org.apache.hadoop.fs.Path"
  71571. abstract="false" native="false" synchronized="false"
  71572. static="false" final="false" visibility="public"
  71573. deprecated="not deprecated">
  71574. <doc>
  71575. <![CDATA[The file containing this split's data.]]>
  71576. </doc>
  71577. </method>
  71578. <method name="getStart" return="long"
  71579. abstract="false" native="false" synchronized="false"
  71580. static="false" final="false" visibility="public"
  71581. deprecated="not deprecated">
  71582. <doc>
  71583. <![CDATA[The position of the first byte in the file to process.]]>
  71584. </doc>
  71585. </method>
  71586. <method name="getLength" return="long"
  71587. abstract="false" native="false" synchronized="false"
  71588. static="false" final="false" visibility="public"
  71589. deprecated="not deprecated">
  71590. <doc>
  71591. <![CDATA[The number of bytes in the file to process.]]>
  71592. </doc>
  71593. </method>
  71594. <method name="toString" return="java.lang.String"
  71595. abstract="false" native="false" synchronized="false"
  71596. static="false" final="false" visibility="public"
  71597. deprecated="not deprecated">
  71598. </method>
  71599. <method name="write"
  71600. abstract="false" native="false" synchronized="false"
  71601. static="false" final="false" visibility="public"
  71602. deprecated="not deprecated">
  71603. <param name="out" type="java.io.DataOutput"/>
  71604. <exception name="IOException" type="java.io.IOException"/>
  71605. </method>
  71606. <method name="readFields"
  71607. abstract="false" native="false" synchronized="false"
  71608. static="false" final="false" visibility="public"
  71609. deprecated="not deprecated">
  71610. <param name="in" type="java.io.DataInput"/>
  71611. <exception name="IOException" type="java.io.IOException"/>
  71612. </method>
  71613. <method name="getLocations" return="java.lang.String[]"
  71614. abstract="false" native="false" synchronized="false"
  71615. static="false" final="false" visibility="public"
  71616. deprecated="not deprecated">
  71617. <exception name="IOException" type="java.io.IOException"/>
  71618. </method>
  71619. <doc>
  71620. <![CDATA[A section of an input file. Returned by {@link
  71621. InputFormat#getSplits(JobContext)} and passed to
  71622. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  71623. </doc>
  71624. </class>
  71625. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  71626. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  71627. <class name="InvalidInputException" extends="java.io.IOException"
  71628. abstract="false"
  71629. static="false" final="false" visibility="public"
  71630. deprecated="not deprecated">
  71631. <constructor name="InvalidInputException" type="java.util.List"
  71632. static="false" final="false" visibility="public"
  71633. deprecated="not deprecated">
  71634. <doc>
  71635. <![CDATA[Create the exception with the given list.
  71636. @param probs the list of problems to report. this list is not copied.]]>
  71637. </doc>
  71638. </constructor>
  71639. <method name="getProblems" return="java.util.List"
  71640. abstract="false" native="false" synchronized="false"
  71641. static="false" final="false" visibility="public"
  71642. deprecated="not deprecated">
  71643. <doc>
  71644. <![CDATA[Get the complete list of the problems reported.
  71645. @return the list of problems, which must not be modified]]>
  71646. </doc>
  71647. </method>
  71648. <method name="getMessage" return="java.lang.String"
  71649. abstract="false" native="false" synchronized="false"
  71650. static="false" final="false" visibility="public"
  71651. deprecated="not deprecated">
  71652. <doc>
  71653. <![CDATA[Get a summary message of the problems found.
  71654. @return the concatenated messages from all of the problems.]]>
  71655. </doc>
  71656. </method>
  71657. <doc>
  71658. <![CDATA[This class wraps a list of problems with the input, so that the user
  71659. can get a list of problems together instead of finding and fixing them one
  71660. by one.]]>
  71661. </doc>
  71662. </class>
  71663. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  71664. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  71665. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71666. abstract="false"
  71667. static="false" final="false" visibility="public"
  71668. deprecated="not deprecated">
  71669. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  71670. static="false" final="false" visibility="public"
  71671. deprecated="not deprecated">
  71672. <exception name="IOException" type="java.io.IOException"/>
  71673. </constructor>
  71674. <method name="getKeyClass" return="java.lang.Class"
  71675. abstract="false" native="false" synchronized="false"
  71676. static="false" final="false" visibility="public"
  71677. deprecated="not deprecated">
  71678. </method>
  71679. <method name="initialize"
  71680. abstract="false" native="false" synchronized="false"
  71681. static="false" final="false" visibility="public"
  71682. deprecated="not deprecated">
  71683. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71684. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71685. <exception name="IOException" type="java.io.IOException"/>
  71686. </method>
  71687. <method name="findSeparator" return="int"
  71688. abstract="false" native="false" synchronized="false"
  71689. static="true" final="false" visibility="public"
  71690. deprecated="not deprecated">
  71691. <param name="utf" type="byte[]"/>
  71692. <param name="start" type="int"/>
  71693. <param name="length" type="int"/>
  71694. <param name="sep" type="byte"/>
  71695. </method>
  71696. <method name="setKeyValue"
  71697. abstract="false" native="false" synchronized="false"
  71698. static="true" final="false" visibility="public"
  71699. deprecated="not deprecated">
  71700. <param name="key" type="org.apache.hadoop.io.Text"/>
  71701. <param name="value" type="org.apache.hadoop.io.Text"/>
  71702. <param name="line" type="byte[]"/>
  71703. <param name="lineLen" type="int"/>
  71704. <param name="pos" type="int"/>
  71705. </method>
  71706. <method name="nextKeyValue" return="boolean"
  71707. abstract="false" native="false" synchronized="true"
  71708. static="false" final="false" visibility="public"
  71709. deprecated="not deprecated">
  71710. <exception name="IOException" type="java.io.IOException"/>
  71711. <doc>
  71712. <![CDATA[Read key/value pair in a line.]]>
  71713. </doc>
  71714. </method>
  71715. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  71716. abstract="false" native="false" synchronized="false"
  71717. static="false" final="false" visibility="public"
  71718. deprecated="not deprecated">
  71719. </method>
  71720. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  71721. abstract="false" native="false" synchronized="false"
  71722. static="false" final="false" visibility="public"
  71723. deprecated="not deprecated">
  71724. </method>
  71725. <method name="getProgress" return="float"
  71726. abstract="false" native="false" synchronized="false"
  71727. static="false" final="false" visibility="public"
  71728. deprecated="not deprecated">
  71729. <exception name="IOException" type="java.io.IOException"/>
  71730. </method>
  71731. <method name="close"
  71732. abstract="false" native="false" synchronized="true"
  71733. static="false" final="false" visibility="public"
  71734. deprecated="not deprecated">
  71735. <exception name="IOException" type="java.io.IOException"/>
  71736. </method>
  71737. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  71738. transient="false" volatile="false"
  71739. static="true" final="true" visibility="public"
  71740. deprecated="not deprecated">
  71741. </field>
  71742. <doc>
  71743. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  71744. separator character. The separator can be specified in config file
  71745. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  71746. separator is the tab character ('\t').]]>
  71747. </doc>
  71748. </class>
  71749. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  71750. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  71751. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71752. abstract="false"
  71753. static="false" final="false" visibility="public"
  71754. deprecated="not deprecated">
  71755. <constructor name="KeyValueTextInputFormat"
  71756. static="false" final="false" visibility="public"
  71757. deprecated="not deprecated">
  71758. </constructor>
  71759. <method name="isSplitable" return="boolean"
  71760. abstract="false" native="false" synchronized="false"
  71761. static="false" final="false" visibility="protected"
  71762. deprecated="not deprecated">
  71763. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71764. <param name="file" type="org.apache.hadoop.fs.Path"/>
  71765. </method>
  71766. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71767. abstract="false" native="false" synchronized="false"
  71768. static="false" final="false" visibility="public"
  71769. deprecated="not deprecated">
  71770. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71771. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71772. <exception name="IOException" type="java.io.IOException"/>
  71773. </method>
  71774. <doc>
  71775. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  71776. Either line feed or carriage-return are used to signal end of line.
  71777. Each line is divided into key and value parts by a separator byte. If no
  71778. such a byte exists, the key will be the entire line and value will be empty.]]>
  71779. </doc>
  71780. </class>
  71781. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  71782. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  71783. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71784. abstract="false"
  71785. static="false" final="false" visibility="public"
  71786. deprecated="not deprecated">
  71787. <constructor name="LineRecordReader"
  71788. static="false" final="false" visibility="public"
  71789. deprecated="not deprecated">
  71790. </constructor>
  71791. <method name="initialize"
  71792. abstract="false" native="false" synchronized="false"
  71793. static="false" final="false" visibility="public"
  71794. deprecated="not deprecated">
  71795. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71796. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71797. <exception name="IOException" type="java.io.IOException"/>
  71798. </method>
  71799. <method name="nextKeyValue" return="boolean"
  71800. abstract="false" native="false" synchronized="false"
  71801. static="false" final="false" visibility="public"
  71802. deprecated="not deprecated">
  71803. <exception name="IOException" type="java.io.IOException"/>
  71804. </method>
  71805. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  71806. abstract="false" native="false" synchronized="false"
  71807. static="false" final="false" visibility="public"
  71808. deprecated="not deprecated">
  71809. </method>
  71810. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  71811. abstract="false" native="false" synchronized="false"
  71812. static="false" final="false" visibility="public"
  71813. deprecated="not deprecated">
  71814. </method>
  71815. <method name="getProgress" return="float"
  71816. abstract="false" native="false" synchronized="false"
  71817. static="false" final="false" visibility="public"
  71818. deprecated="not deprecated">
  71819. <exception name="IOException" type="java.io.IOException"/>
  71820. <doc>
  71821. <![CDATA[Get the progress within the split]]>
  71822. </doc>
  71823. </method>
  71824. <method name="close"
  71825. abstract="false" native="false" synchronized="true"
  71826. static="false" final="false" visibility="public"
  71827. deprecated="not deprecated">
  71828. <exception name="IOException" type="java.io.IOException"/>
  71829. </method>
  71830. <doc>
  71831. <![CDATA[Treats keys as offset in file and value as line.]]>
  71832. </doc>
  71833. </class>
  71834. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  71835. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  71836. <class name="MultipleInputs" extends="java.lang.Object"
  71837. abstract="false"
  71838. static="false" final="false" visibility="public"
  71839. deprecated="not deprecated">
  71840. <constructor name="MultipleInputs"
  71841. static="false" final="false" visibility="public"
  71842. deprecated="not deprecated">
  71843. </constructor>
  71844. <method name="addInputPath"
  71845. abstract="false" native="false" synchronized="false"
  71846. static="true" final="false" visibility="public"
  71847. deprecated="not deprecated">
  71848. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71849. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71850. <param name="inputFormatClass" type="java.lang.Class"/>
  71851. <doc>
  71852. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  71853. inputs for the map-reduce job.
  71854. @param job The {@link Job}
  71855. @param path {@link Path} to be added to the list of inputs for the job
  71856. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  71857. </doc>
  71858. </method>
  71859. <method name="addInputPath"
  71860. abstract="false" native="false" synchronized="false"
  71861. static="true" final="false" visibility="public"
  71862. deprecated="not deprecated">
  71863. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71864. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71865. <param name="inputFormatClass" type="java.lang.Class"/>
  71866. <param name="mapperClass" type="java.lang.Class"/>
  71867. <doc>
  71868. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  71869. {@link Mapper} to the list of inputs for the map-reduce job.
  71870. @param job The {@link Job}
  71871. @param path {@link Path} to be added to the list of inputs for the job
  71872. @param inputFormatClass {@link InputFormat} class to use for this path
  71873. @param mapperClass {@link Mapper} class to use for this path]]>
  71874. </doc>
  71875. </method>
  71876. <field name="DIR_FORMATS" type="java.lang.String"
  71877. transient="false" volatile="false"
  71878. static="true" final="true" visibility="public"
  71879. deprecated="not deprecated">
  71880. </field>
  71881. <field name="DIR_MAPPERS" type="java.lang.String"
  71882. transient="false" volatile="false"
  71883. static="true" final="true" visibility="public"
  71884. deprecated="not deprecated">
  71885. </field>
  71886. <doc>
  71887. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  71888. a different {@link InputFormat} and {@link Mapper} for each path]]>
  71889. </doc>
  71890. </class>
  71891. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  71892. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  71893. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71894. abstract="false"
  71895. static="false" final="false" visibility="public"
  71896. deprecated="not deprecated">
  71897. <constructor name="NLineInputFormat"
  71898. static="false" final="false" visibility="public"
  71899. deprecated="not deprecated">
  71900. </constructor>
  71901. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71902. abstract="false" native="false" synchronized="false"
  71903. static="false" final="false" visibility="public"
  71904. deprecated="not deprecated">
  71905. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71906. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71907. <exception name="IOException" type="java.io.IOException"/>
  71908. </method>
  71909. <method name="getSplits" return="java.util.List"
  71910. abstract="false" native="false" synchronized="false"
  71911. static="false" final="false" visibility="public"
  71912. deprecated="not deprecated">
  71913. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71914. <exception name="IOException" type="java.io.IOException"/>
  71915. <doc>
  71916. <![CDATA[Logically splits the set of input files for the job, splits N lines
  71917. of the input as one split.
  71918. @see FileInputFormat#getSplits(JobContext)]]>
  71919. </doc>
  71920. </method>
  71921. <method name="getSplitsForFile" return="java.util.List"
  71922. abstract="false" native="false" synchronized="false"
  71923. static="true" final="false" visibility="public"
  71924. deprecated="not deprecated">
  71925. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  71926. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71927. <param name="numLinesPerSplit" type="int"/>
  71928. <exception name="IOException" type="java.io.IOException"/>
  71929. </method>
  71930. <method name="createFileSplit" return="org.apache.hadoop.mapreduce.lib.input.FileSplit"
  71931. abstract="false" native="false" synchronized="false"
  71932. static="true" final="false" visibility="protected"
  71933. deprecated="not deprecated">
  71934. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  71935. <param name="begin" type="long"/>
  71936. <param name="length" type="long"/>
  71937. <doc>
  71938. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  71939. (and consumes) at least one character out of its upper split
  71940. boundary. So to make sure that each mapper gets N lines, we
  71941. move back the upper split limits of each split
  71942. by one character here.
  71943. @param fileName Path of file
  71944. @param begin the position of the first byte in the file to process
  71945. @param length number of bytes in InputSplit
  71946. @return FileSplit]]>
  71947. </doc>
  71948. </method>
  71949. <method name="setNumLinesPerSplit"
  71950. abstract="false" native="false" synchronized="false"
  71951. static="true" final="false" visibility="public"
  71952. deprecated="not deprecated">
  71953. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71954. <param name="numLines" type="int"/>
  71955. <doc>
  71956. <![CDATA[Set the number of lines per split
  71957. @param job the job to modify
  71958. @param numLines the number of lines per split]]>
  71959. </doc>
  71960. </method>
  71961. <method name="getNumLinesPerSplit" return="int"
  71962. abstract="false" native="false" synchronized="false"
  71963. static="true" final="false" visibility="public"
  71964. deprecated="not deprecated">
  71965. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71966. <doc>
  71967. <![CDATA[Get the number of lines per split
  71968. @param job the job
  71969. @return the number of lines per split]]>
  71970. </doc>
  71971. </method>
  71972. <field name="LINES_PER_MAP" type="java.lang.String"
  71973. transient="false" volatile="false"
  71974. static="true" final="true" visibility="public"
  71975. deprecated="not deprecated">
  71976. </field>
  71977. <doc>
  71978. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  71979. In many "pleasantly" parallel applications, each process/mapper
  71980. processes the same input file (s), but with computations are
  71981. controlled by different parameters.(Referred to as "parameter sweeps").
  71982. One way to achieve this, is to specify a set of parameters
  71983. (one set per line) as input in a control file
  71984. (which is the input path to the map-reduce application,
  71985. where as the input dataset is specified
  71986. via a config variable in JobConf.).
  71987. The NLineInputFormat can be used in such applications, that splits
  71988. the input file such that by default, one line is fed as
  71989. a value to one map task, and key is the offset.
  71990. i.e. (k,v) is (LongWritable, Text).
  71991. The location hints will span the whole mapred cluster.]]>
  71992. </doc>
  71993. </class>
  71994. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  71995. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  71996. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  71997. abstract="false"
  71998. static="false" final="false" visibility="public"
  71999. deprecated="not deprecated">
  72000. <constructor name="SequenceFileAsBinaryInputFormat"
  72001. static="false" final="false" visibility="public"
  72002. deprecated="not deprecated">
  72003. </constructor>
  72004. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72005. abstract="false" native="false" synchronized="false"
  72006. static="false" final="false" visibility="public"
  72007. deprecated="not deprecated">
  72008. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72009. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72010. <exception name="IOException" type="java.io.IOException"/>
  72011. </method>
  72012. <doc>
  72013. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  72014. format.]]>
  72015. </doc>
  72016. </class>
  72017. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  72018. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  72019. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72020. abstract="false"
  72021. static="true" final="false" visibility="public"
  72022. deprecated="not deprecated">
  72023. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  72024. static="false" final="false" visibility="public"
  72025. deprecated="not deprecated">
  72026. </constructor>
  72027. <method name="initialize"
  72028. abstract="false" native="false" synchronized="false"
  72029. static="false" final="false" visibility="public"
  72030. deprecated="not deprecated">
  72031. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72032. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72033. <exception name="IOException" type="java.io.IOException"/>
  72034. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72035. </method>
  72036. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  72037. abstract="false" native="false" synchronized="false"
  72038. static="false" final="false" visibility="public"
  72039. deprecated="not deprecated">
  72040. <exception name="IOException" type="java.io.IOException"/>
  72041. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72042. </method>
  72043. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  72044. abstract="false" native="false" synchronized="false"
  72045. static="false" final="false" visibility="public"
  72046. deprecated="not deprecated">
  72047. <exception name="IOException" type="java.io.IOException"/>
  72048. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72049. </method>
  72050. <method name="getKeyClassName" return="java.lang.String"
  72051. abstract="false" native="false" synchronized="false"
  72052. static="false" final="false" visibility="public"
  72053. deprecated="not deprecated">
  72054. <doc>
  72055. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  72056. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  72057. </doc>
  72058. </method>
  72059. <method name="getValueClassName" return="java.lang.String"
  72060. abstract="false" native="false" synchronized="false"
  72061. static="false" final="false" visibility="public"
  72062. deprecated="not deprecated">
  72063. <doc>
  72064. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  72065. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  72066. </doc>
  72067. </method>
  72068. <method name="nextKeyValue" return="boolean"
  72069. abstract="false" native="false" synchronized="true"
  72070. static="false" final="false" visibility="public"
  72071. deprecated="not deprecated">
  72072. <exception name="IOException" type="java.io.IOException"/>
  72073. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72074. <doc>
  72075. <![CDATA[Read raw bytes from a SequenceFile.]]>
  72076. </doc>
  72077. </method>
  72078. <method name="close"
  72079. abstract="false" native="false" synchronized="false"
  72080. static="false" final="false" visibility="public"
  72081. deprecated="not deprecated">
  72082. <exception name="IOException" type="java.io.IOException"/>
  72083. </method>
  72084. <method name="getProgress" return="float"
  72085. abstract="false" native="false" synchronized="false"
  72086. static="false" final="false" visibility="public"
  72087. deprecated="not deprecated">
  72088. <exception name="IOException" type="java.io.IOException"/>
  72089. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72090. <doc>
  72091. <![CDATA[Return the progress within the input split
  72092. @return 0.0 to 1.0 of the input byte range]]>
  72093. </doc>
  72094. </method>
  72095. <doc>
  72096. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  72097. </doc>
  72098. </class>
  72099. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  72100. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  72101. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72102. abstract="false"
  72103. static="false" final="false" visibility="public"
  72104. deprecated="not deprecated">
  72105. <constructor name="SequenceFileAsTextInputFormat"
  72106. static="false" final="false" visibility="public"
  72107. deprecated="not deprecated">
  72108. </constructor>
  72109. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72110. abstract="false" native="false" synchronized="false"
  72111. static="false" final="false" visibility="public"
  72112. deprecated="not deprecated">
  72113. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72114. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72115. <exception name="IOException" type="java.io.IOException"/>
  72116. </method>
  72117. <doc>
  72118. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  72119. SequenceFileAsTextRecordReader which converts the input keys and values
  72120. to their String forms by calling toString() method.]]>
  72121. </doc>
  72122. </class>
  72123. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  72124. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  72125. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72126. abstract="false"
  72127. static="false" final="false" visibility="public"
  72128. deprecated="not deprecated">
  72129. <constructor name="SequenceFileAsTextRecordReader"
  72130. static="false" final="false" visibility="public"
  72131. deprecated="not deprecated">
  72132. <exception name="IOException" type="java.io.IOException"/>
  72133. </constructor>
  72134. <method name="initialize"
  72135. abstract="false" native="false" synchronized="false"
  72136. static="false" final="false" visibility="public"
  72137. deprecated="not deprecated">
  72138. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72139. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72140. <exception name="IOException" type="java.io.IOException"/>
  72141. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72142. </method>
  72143. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  72144. abstract="false" native="false" synchronized="false"
  72145. static="false" final="false" visibility="public"
  72146. deprecated="not deprecated">
  72147. <exception name="IOException" type="java.io.IOException"/>
  72148. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72149. </method>
  72150. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  72151. abstract="false" native="false" synchronized="false"
  72152. static="false" final="false" visibility="public"
  72153. deprecated="not deprecated">
  72154. <exception name="IOException" type="java.io.IOException"/>
  72155. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72156. </method>
  72157. <method name="nextKeyValue" return="boolean"
  72158. abstract="false" native="false" synchronized="true"
  72159. static="false" final="false" visibility="public"
  72160. deprecated="not deprecated">
  72161. <exception name="IOException" type="java.io.IOException"/>
  72162. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72163. <doc>
  72164. <![CDATA[Read key/value pair in a line.]]>
  72165. </doc>
  72166. </method>
  72167. <method name="getProgress" return="float"
  72168. abstract="false" native="false" synchronized="false"
  72169. static="false" final="false" visibility="public"
  72170. deprecated="not deprecated">
  72171. <exception name="IOException" type="java.io.IOException"/>
  72172. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72173. </method>
  72174. <method name="close"
  72175. abstract="false" native="false" synchronized="true"
  72176. static="false" final="false" visibility="public"
  72177. deprecated="not deprecated">
  72178. <exception name="IOException" type="java.io.IOException"/>
  72179. </method>
  72180. <doc>
  72181. <![CDATA[This class converts the input keys and values to their String forms by
  72182. calling toString() method. This class to SequenceFileAsTextInputFormat
  72183. class is as LineRecordReader class to TextInputFormat class.]]>
  72184. </doc>
  72185. </class>
  72186. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  72187. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  72188. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72189. abstract="false"
  72190. static="false" final="false" visibility="public"
  72191. deprecated="not deprecated">
  72192. <constructor name="SequenceFileInputFilter"
  72193. static="false" final="false" visibility="public"
  72194. deprecated="not deprecated">
  72195. </constructor>
  72196. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72197. abstract="false" native="false" synchronized="false"
  72198. static="false" final="false" visibility="public"
  72199. deprecated="not deprecated">
  72200. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72201. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72202. <exception name="IOException" type="java.io.IOException"/>
  72203. <doc>
  72204. <![CDATA[Create a record reader for the given split
  72205. @param split file split
  72206. @param context the task-attempt context
  72207. @return RecordReader]]>
  72208. </doc>
  72209. </method>
  72210. <method name="setFilterClass"
  72211. abstract="false" native="false" synchronized="false"
  72212. static="true" final="false" visibility="public"
  72213. deprecated="not deprecated">
  72214. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72215. <param name="filterClass" type="java.lang.Class"/>
  72216. <doc>
  72217. <![CDATA[set the filter class
  72218. @param job The job
  72219. @param filterClass filter class]]>
  72220. </doc>
  72221. </method>
  72222. <field name="LOG" type="org.apache.commons.logging.Log"
  72223. transient="false" volatile="false"
  72224. static="true" final="true" visibility="public"
  72225. deprecated="not deprecated">
  72226. </field>
  72227. <field name="FILTER_CLASS" type="java.lang.String"
  72228. transient="false" volatile="false"
  72229. static="true" final="true" visibility="public"
  72230. deprecated="not deprecated">
  72231. </field>
  72232. <field name="FILTER_FREQUENCY" type="java.lang.String"
  72233. transient="false" volatile="false"
  72234. static="true" final="true" visibility="public"
  72235. deprecated="not deprecated">
  72236. </field>
  72237. <field name="FILTER_REGEX" type="java.lang.String"
  72238. transient="false" volatile="false"
  72239. static="true" final="true" visibility="public"
  72240. deprecated="not deprecated">
  72241. </field>
  72242. <doc>
  72243. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  72244. The sample is decided by the filter class set by the job.]]>
  72245. </doc>
  72246. </class>
  72247. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  72248. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  72249. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  72250. static="true" final="false" visibility="public"
  72251. deprecated="not deprecated">
  72252. <implements name="org.apache.hadoop.conf.Configurable"/>
  72253. <method name="accept" return="boolean"
  72254. abstract="false" native="false" synchronized="false"
  72255. static="false" final="false" visibility="public"
  72256. deprecated="not deprecated">
  72257. <param name="key" type="java.lang.Object"/>
  72258. <doc>
  72259. <![CDATA[filter function
  72260. Decide if a record should be filtered or not
  72261. @param key record key
  72262. @return true if a record is accepted; return false otherwise]]>
  72263. </doc>
  72264. </method>
  72265. <doc>
  72266. <![CDATA[filter interface]]>
  72267. </doc>
  72268. </interface>
  72269. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  72270. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  72271. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  72272. abstract="true"
  72273. static="true" final="false" visibility="public"
  72274. deprecated="not deprecated">
  72275. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  72276. <constructor name="SequenceFileInputFilter.FilterBase"
  72277. static="false" final="false" visibility="public"
  72278. deprecated="not deprecated">
  72279. </constructor>
  72280. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72281. abstract="false" native="false" synchronized="false"
  72282. static="false" final="false" visibility="public"
  72283. deprecated="not deprecated">
  72284. </method>
  72285. <doc>
  72286. <![CDATA[base class for Filters]]>
  72287. </doc>
  72288. </class>
  72289. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  72290. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  72291. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72292. abstract="false"
  72293. static="true" final="false" visibility="public"
  72294. deprecated="not deprecated">
  72295. <constructor name="SequenceFileInputFilter.MD5Filter"
  72296. static="false" final="false" visibility="public"
  72297. deprecated="not deprecated">
  72298. </constructor>
  72299. <method name="setFrequency"
  72300. abstract="false" native="false" synchronized="false"
  72301. static="true" final="false" visibility="public"
  72302. deprecated="not deprecated">
  72303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72304. <param name="frequency" type="int"/>
  72305. <doc>
  72306. <![CDATA[set the filtering frequency in configuration
  72307. @param conf configuration
  72308. @param frequency filtering frequency]]>
  72309. </doc>
  72310. </method>
  72311. <method name="setConf"
  72312. abstract="false" native="false" synchronized="false"
  72313. static="false" final="false" visibility="public"
  72314. deprecated="not deprecated">
  72315. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72316. <doc>
  72317. <![CDATA[configure the filter according to configuration
  72318. @param conf configuration]]>
  72319. </doc>
  72320. </method>
  72321. <method name="accept" return="boolean"
  72322. abstract="false" native="false" synchronized="false"
  72323. static="false" final="false" visibility="public"
  72324. deprecated="not deprecated">
  72325. <param name="key" type="java.lang.Object"/>
  72326. <doc>
  72327. <![CDATA[Filtering method
  72328. If MD5(key) % frequency==0, return true; otherwise return false
  72329. @see Filter#accept(Object)]]>
  72330. </doc>
  72331. </method>
  72332. <field name="MD5_LEN" type="int"
  72333. transient="false" volatile="false"
  72334. static="true" final="true" visibility="public"
  72335. deprecated="not deprecated">
  72336. </field>
  72337. <doc>
  72338. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  72339. key against a filtering frequency <i>f</i>. The filtering criteria is
  72340. MD5(key) % f == 0.]]>
  72341. </doc>
  72342. </class>
  72343. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  72344. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  72345. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72346. abstract="false"
  72347. static="true" final="false" visibility="public"
  72348. deprecated="not deprecated">
  72349. <constructor name="SequenceFileInputFilter.PercentFilter"
  72350. static="false" final="false" visibility="public"
  72351. deprecated="not deprecated">
  72352. </constructor>
  72353. <method name="setFrequency"
  72354. abstract="false" native="false" synchronized="false"
  72355. static="true" final="false" visibility="public"
  72356. deprecated="not deprecated">
  72357. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72358. <param name="frequency" type="int"/>
  72359. <doc>
  72360. <![CDATA[set the frequency and stores it in conf
  72361. @param conf configuration
  72362. @param frequency filtering frequencey]]>
  72363. </doc>
  72364. </method>
  72365. <method name="setConf"
  72366. abstract="false" native="false" synchronized="false"
  72367. static="false" final="false" visibility="public"
  72368. deprecated="not deprecated">
  72369. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72370. <doc>
  72371. <![CDATA[configure the filter by checking the configuration
  72372. @param conf configuration]]>
  72373. </doc>
  72374. </method>
  72375. <method name="accept" return="boolean"
  72376. abstract="false" native="false" synchronized="false"
  72377. static="false" final="false" visibility="public"
  72378. deprecated="not deprecated">
  72379. <param name="key" type="java.lang.Object"/>
  72380. <doc>
  72381. <![CDATA[Filtering method
  72382. If record# % frequency==0, return true; otherwise return false
  72383. @see Filter#accept(Object)]]>
  72384. </doc>
  72385. </method>
  72386. <doc>
  72387. <![CDATA[This class returns a percentage of records
  72388. The percentage is determined by a filtering frequency <i>f</i> using
  72389. the criteria record# % f == 0.
  72390. For example, if the frequency is 10, one out of 10 records is returned.]]>
  72391. </doc>
  72392. </class>
  72393. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  72394. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  72395. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72396. abstract="false"
  72397. static="true" final="false" visibility="public"
  72398. deprecated="not deprecated">
  72399. <constructor name="SequenceFileInputFilter.RegexFilter"
  72400. static="false" final="false" visibility="public"
  72401. deprecated="not deprecated">
  72402. </constructor>
  72403. <method name="setPattern"
  72404. abstract="false" native="false" synchronized="false"
  72405. static="true" final="false" visibility="public"
  72406. deprecated="not deprecated">
  72407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72408. <param name="regex" type="java.lang.String"/>
  72409. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  72410. <doc>
  72411. <![CDATA[Define the filtering regex and stores it in conf
  72412. @param conf where the regex is set
  72413. @param regex regex used as a filter]]>
  72414. </doc>
  72415. </method>
  72416. <method name="setConf"
  72417. abstract="false" native="false" synchronized="false"
  72418. static="false" final="false" visibility="public"
  72419. deprecated="not deprecated">
  72420. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72421. <doc>
  72422. <![CDATA[configure the Filter by checking the configuration]]>
  72423. </doc>
  72424. </method>
  72425. <method name="accept" return="boolean"
  72426. abstract="false" native="false" synchronized="false"
  72427. static="false" final="false" visibility="public"
  72428. deprecated="not deprecated">
  72429. <param name="key" type="java.lang.Object"/>
  72430. <doc>
  72431. <![CDATA[Filtering method
  72432. If key matches the regex, return true; otherwise return false
  72433. @see Filter#accept(Object)]]>
  72434. </doc>
  72435. </method>
  72436. <doc>
  72437. <![CDATA[Records filter by matching key to regex]]>
  72438. </doc>
  72439. </class>
  72440. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  72441. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  72442. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72443. abstract="false"
  72444. static="false" final="false" visibility="public"
  72445. deprecated="not deprecated">
  72446. <constructor name="SequenceFileInputFormat"
  72447. static="false" final="false" visibility="public"
  72448. deprecated="not deprecated">
  72449. </constructor>
  72450. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72451. abstract="false" native="false" synchronized="false"
  72452. static="false" final="false" visibility="public"
  72453. deprecated="not deprecated">
  72454. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72455. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72456. <exception name="IOException" type="java.io.IOException"/>
  72457. </method>
  72458. <method name="getFormatMinSplitSize" return="long"
  72459. abstract="false" native="false" synchronized="false"
  72460. static="false" final="false" visibility="protected"
  72461. deprecated="not deprecated">
  72462. </method>
  72463. <method name="listStatus" return="java.util.List"
  72464. abstract="false" native="false" synchronized="false"
  72465. static="false" final="false" visibility="protected"
  72466. deprecated="not deprecated">
  72467. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72468. <exception name="IOException" type="java.io.IOException"/>
  72469. </method>
  72470. <doc>
  72471. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  72472. </doc>
  72473. </class>
  72474. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  72475. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  72476. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72477. abstract="false"
  72478. static="false" final="false" visibility="public"
  72479. deprecated="not deprecated">
  72480. <constructor name="SequenceFileRecordReader"
  72481. static="false" final="false" visibility="public"
  72482. deprecated="not deprecated">
  72483. </constructor>
  72484. <method name="initialize"
  72485. abstract="false" native="false" synchronized="false"
  72486. static="false" final="false" visibility="public"
  72487. deprecated="not deprecated">
  72488. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72489. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72490. <exception name="IOException" type="java.io.IOException"/>
  72491. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72492. </method>
  72493. <method name="nextKeyValue" return="boolean"
  72494. abstract="false" native="false" synchronized="false"
  72495. static="false" final="false" visibility="public"
  72496. deprecated="not deprecated">
  72497. <exception name="IOException" type="java.io.IOException"/>
  72498. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72499. </method>
  72500. <method name="getCurrentKey" return="java.lang.Object"
  72501. abstract="false" native="false" synchronized="false"
  72502. static="false" final="false" visibility="public"
  72503. deprecated="not deprecated">
  72504. </method>
  72505. <method name="getCurrentValue" return="java.lang.Object"
  72506. abstract="false" native="false" synchronized="false"
  72507. static="false" final="false" visibility="public"
  72508. deprecated="not deprecated">
  72509. </method>
  72510. <method name="getProgress" return="float"
  72511. abstract="false" native="false" synchronized="false"
  72512. static="false" final="false" visibility="public"
  72513. deprecated="not deprecated">
  72514. <exception name="IOException" type="java.io.IOException"/>
  72515. <doc>
  72516. <![CDATA[Return the progress within the input split
  72517. @return 0.0 to 1.0 of the input byte range]]>
  72518. </doc>
  72519. </method>
  72520. <method name="close"
  72521. abstract="false" native="false" synchronized="true"
  72522. static="false" final="false" visibility="public"
  72523. deprecated="not deprecated">
  72524. <exception name="IOException" type="java.io.IOException"/>
  72525. </method>
  72526. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  72527. transient="false" volatile="false"
  72528. static="false" final="false" visibility="protected"
  72529. deprecated="not deprecated">
  72530. </field>
  72531. <doc>
  72532. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  72533. </doc>
  72534. </class>
  72535. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  72536. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  72537. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72538. abstract="false"
  72539. static="false" final="false" visibility="public"
  72540. deprecated="not deprecated">
  72541. <constructor name="TextInputFormat"
  72542. static="false" final="false" visibility="public"
  72543. deprecated="not deprecated">
  72544. </constructor>
  72545. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72546. abstract="false" native="false" synchronized="false"
  72547. static="false" final="false" visibility="public"
  72548. deprecated="not deprecated">
  72549. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72550. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72551. </method>
  72552. <method name="isSplitable" return="boolean"
  72553. abstract="false" native="false" synchronized="false"
  72554. static="false" final="false" visibility="protected"
  72555. deprecated="not deprecated">
  72556. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72557. <param name="file" type="org.apache.hadoop.fs.Path"/>
  72558. </method>
  72559. <doc>
  72560. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  72561. Either linefeed or carriage-return are used to signal end of line. Keys are
  72562. the position in the file, and values are the line of text..]]>
  72563. </doc>
  72564. </class>
  72565. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  72566. </package>
  72567. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  72568. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  72569. <class name="ControlledJob" extends="java.lang.Object"
  72570. abstract="false"
  72571. static="false" final="false" visibility="public"
  72572. deprecated="not deprecated">
  72573. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  72574. static="false" final="false" visibility="public"
  72575. deprecated="not deprecated">
  72576. <exception name="IOException" type="java.io.IOException"/>
  72577. <doc>
  72578. <![CDATA[Construct a job.
  72579. @param job a mapreduce job to be executed.
  72580. @param dependingJobs an array of jobs the current job depends on]]>
  72581. </doc>
  72582. </constructor>
  72583. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  72584. static="false" final="false" visibility="public"
  72585. deprecated="not deprecated">
  72586. <exception name="IOException" type="java.io.IOException"/>
  72587. <doc>
  72588. <![CDATA[Construct a job.
  72589. @param conf mapred job configuration representing a job to be executed.
  72590. @throws IOException]]>
  72591. </doc>
  72592. </constructor>
  72593. <method name="toString" return="java.lang.String"
  72594. abstract="false" native="false" synchronized="false"
  72595. static="false" final="false" visibility="public"
  72596. deprecated="not deprecated">
  72597. </method>
  72598. <method name="getJobName" return="java.lang.String"
  72599. abstract="false" native="false" synchronized="false"
  72600. static="false" final="false" visibility="public"
  72601. deprecated="not deprecated">
  72602. <doc>
  72603. <![CDATA[@return the job name of this job]]>
  72604. </doc>
  72605. </method>
  72606. <method name="setJobName"
  72607. abstract="false" native="false" synchronized="false"
  72608. static="false" final="false" visibility="public"
  72609. deprecated="not deprecated">
  72610. <param name="jobName" type="java.lang.String"/>
  72611. <doc>
  72612. <![CDATA[Set the job name for this job.
  72613. @param jobName the job name]]>
  72614. </doc>
  72615. </method>
  72616. <method name="getJobID" return="java.lang.String"
  72617. abstract="false" native="false" synchronized="false"
  72618. static="false" final="false" visibility="public"
  72619. deprecated="not deprecated">
  72620. <doc>
  72621. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  72622. </doc>
  72623. </method>
  72624. <method name="setJobID"
  72625. abstract="false" native="false" synchronized="false"
  72626. static="false" final="false" visibility="public"
  72627. deprecated="not deprecated">
  72628. <param name="id" type="java.lang.String"/>
  72629. <doc>
  72630. <![CDATA[Set the job ID for this job.
  72631. @param id the job ID]]>
  72632. </doc>
  72633. </method>
  72634. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  72635. abstract="false" native="false" synchronized="false"
  72636. static="false" final="false" visibility="public"
  72637. deprecated="not deprecated">
  72638. <doc>
  72639. <![CDATA[@return the mapred ID of this job as assigned by the
  72640. mapred framework.]]>
  72641. </doc>
  72642. </method>
  72643. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  72644. abstract="false" native="false" synchronized="true"
  72645. static="false" final="false" visibility="public"
  72646. deprecated="not deprecated">
  72647. <doc>
  72648. <![CDATA[@return the mapreduce job]]>
  72649. </doc>
  72650. </method>
  72651. <method name="setJob"
  72652. abstract="false" native="false" synchronized="true"
  72653. static="false" final="false" visibility="public"
  72654. deprecated="not deprecated">
  72655. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72656. <doc>
  72657. <![CDATA[Set the mapreduce job
  72658. @param job the mapreduce job for this job.]]>
  72659. </doc>
  72660. </method>
  72661. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72662. abstract="false" native="false" synchronized="true"
  72663. static="false" final="false" visibility="public"
  72664. deprecated="not deprecated">
  72665. <doc>
  72666. <![CDATA[@return the state of this job]]>
  72667. </doc>
  72668. </method>
  72669. <method name="setJobState"
  72670. abstract="false" native="false" synchronized="true"
  72671. static="false" final="false" visibility="protected"
  72672. deprecated="not deprecated">
  72673. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  72674. <doc>
  72675. <![CDATA[Set the state for this job.
  72676. @param state the new state for this job.]]>
  72677. </doc>
  72678. </method>
  72679. <method name="getMessage" return="java.lang.String"
  72680. abstract="false" native="false" synchronized="true"
  72681. static="false" final="false" visibility="public"
  72682. deprecated="not deprecated">
  72683. <doc>
  72684. <![CDATA[@return the message of this job]]>
  72685. </doc>
  72686. </method>
  72687. <method name="setMessage"
  72688. abstract="false" native="false" synchronized="true"
  72689. static="false" final="false" visibility="public"
  72690. deprecated="not deprecated">
  72691. <param name="message" type="java.lang.String"/>
  72692. <doc>
  72693. <![CDATA[Set the message for this job.
  72694. @param message the message for this job.]]>
  72695. </doc>
  72696. </method>
  72697. <method name="getDependentJobs" return="java.util.List"
  72698. abstract="false" native="false" synchronized="false"
  72699. static="false" final="false" visibility="public"
  72700. deprecated="not deprecated">
  72701. <doc>
  72702. <![CDATA[@return the depending jobs of this job]]>
  72703. </doc>
  72704. </method>
  72705. <method name="addDependingJob" return="boolean"
  72706. abstract="false" native="false" synchronized="true"
  72707. static="false" final="false" visibility="public"
  72708. deprecated="not deprecated">
  72709. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  72710. <doc>
  72711. <![CDATA[Add a job to this jobs' dependency list.
  72712. Dependent jobs can only be added while a Job
  72713. is waiting to run, not during or afterwards.
  72714. @param dependingJob Job that this Job depends on.
  72715. @return <tt>true</tt> if the Job was added.]]>
  72716. </doc>
  72717. </method>
  72718. <method name="isCompleted" return="boolean"
  72719. abstract="false" native="false" synchronized="true"
  72720. static="false" final="false" visibility="public"
  72721. deprecated="not deprecated">
  72722. <doc>
  72723. <![CDATA[@return true if this job is in a complete state]]>
  72724. </doc>
  72725. </method>
  72726. <method name="isReady" return="boolean"
  72727. abstract="false" native="false" synchronized="true"
  72728. static="false" final="false" visibility="public"
  72729. deprecated="not deprecated">
  72730. <doc>
  72731. <![CDATA[@return true if this job is in READY state]]>
  72732. </doc>
  72733. </method>
  72734. <method name="killJob"
  72735. abstract="false" native="false" synchronized="false"
  72736. static="false" final="false" visibility="public"
  72737. deprecated="not deprecated">
  72738. <exception name="IOException" type="java.io.IOException"/>
  72739. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72740. </method>
  72741. <method name="failJob"
  72742. abstract="false" native="false" synchronized="true"
  72743. static="false" final="false" visibility="public"
  72744. deprecated="not deprecated">
  72745. <param name="message" type="java.lang.String"/>
  72746. <exception name="IOException" type="java.io.IOException"/>
  72747. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72748. </method>
  72749. <method name="submit"
  72750. abstract="false" native="false" synchronized="true"
  72751. static="false" final="false" visibility="protected"
  72752. deprecated="not deprecated">
  72753. <doc>
  72754. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  72755. is successful, FAILED otherwise.]]>
  72756. </doc>
  72757. </method>
  72758. <field name="CREATE_DIR" type="java.lang.String"
  72759. transient="false" volatile="false"
  72760. static="true" final="true" visibility="public"
  72761. deprecated="not deprecated">
  72762. </field>
  72763. <doc>
  72764. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  72765. the states of the depending jobs and updates the state of this job.
  72766. A job starts in the WAITING state. If it does not have any depending jobs,
  72767. or all of the depending jobs are in SUCCESS state, then the job state
  72768. will become READY. If any depending jobs fail, the job will fail too.
  72769. When in READY state, the job can be submitted to Hadoop for execution, with
  72770. the state changing into RUNNING state. From RUNNING state, the job
  72771. can get into SUCCESS or FAILED state, depending
  72772. the status of the job execution.]]>
  72773. </doc>
  72774. </class>
  72775. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  72776. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  72777. <class name="ControlledJob.State" extends="java.lang.Enum"
  72778. abstract="false"
  72779. static="true" final="true" visibility="public"
  72780. deprecated="not deprecated">
  72781. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  72782. abstract="false" native="false" synchronized="false"
  72783. static="true" final="false" visibility="public"
  72784. deprecated="not deprecated">
  72785. </method>
  72786. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72787. abstract="false" native="false" synchronized="false"
  72788. static="true" final="false" visibility="public"
  72789. deprecated="not deprecated">
  72790. <param name="name" type="java.lang.String"/>
  72791. </method>
  72792. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72793. transient="false" volatile="false"
  72794. static="true" final="true" visibility="public"
  72795. deprecated="not deprecated">
  72796. </field>
  72797. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72798. transient="false" volatile="false"
  72799. static="true" final="true" visibility="public"
  72800. deprecated="not deprecated">
  72801. </field>
  72802. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72803. transient="false" volatile="false"
  72804. static="true" final="true" visibility="public"
  72805. deprecated="not deprecated">
  72806. </field>
  72807. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72808. transient="false" volatile="false"
  72809. static="true" final="true" visibility="public"
  72810. deprecated="not deprecated">
  72811. </field>
  72812. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72813. transient="false" volatile="false"
  72814. static="true" final="true" visibility="public"
  72815. deprecated="not deprecated">
  72816. </field>
  72817. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72818. transient="false" volatile="false"
  72819. static="true" final="true" visibility="public"
  72820. deprecated="not deprecated">
  72821. </field>
  72822. </class>
  72823. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  72824. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  72825. <class name="JobControl" extends="java.lang.Object"
  72826. abstract="false"
  72827. static="false" final="false" visibility="public"
  72828. deprecated="not deprecated">
  72829. <implements name="java.lang.Runnable"/>
  72830. <constructor name="JobControl" type="java.lang.String"
  72831. static="false" final="false" visibility="public"
  72832. deprecated="not deprecated">
  72833. <doc>
  72834. <![CDATA[Construct a job control for a group of jobs.
  72835. @param groupName a name identifying this group]]>
  72836. </doc>
  72837. </constructor>
  72838. <method name="getWaitingJobList" return="java.util.List"
  72839. abstract="false" native="false" synchronized="false"
  72840. static="false" final="false" visibility="public"
  72841. deprecated="not deprecated">
  72842. <doc>
  72843. <![CDATA[@return the jobs in the waiting state]]>
  72844. </doc>
  72845. </method>
  72846. <method name="getRunningJobList" return="java.util.List"
  72847. abstract="false" native="false" synchronized="false"
  72848. static="false" final="false" visibility="public"
  72849. deprecated="not deprecated">
  72850. <doc>
  72851. <![CDATA[@return the jobs in the running state]]>
  72852. </doc>
  72853. </method>
  72854. <method name="getReadyJobsList" return="java.util.List"
  72855. abstract="false" native="false" synchronized="false"
  72856. static="false" final="false" visibility="public"
  72857. deprecated="not deprecated">
  72858. <doc>
  72859. <![CDATA[@return the jobs in the ready state]]>
  72860. </doc>
  72861. </method>
  72862. <method name="getSuccessfulJobList" return="java.util.List"
  72863. abstract="false" native="false" synchronized="false"
  72864. static="false" final="false" visibility="public"
  72865. deprecated="not deprecated">
  72866. <doc>
  72867. <![CDATA[@return the jobs in the success state]]>
  72868. </doc>
  72869. </method>
  72870. <method name="getFailedJobList" return="java.util.List"
  72871. abstract="false" native="false" synchronized="false"
  72872. static="false" final="false" visibility="public"
  72873. deprecated="not deprecated">
  72874. </method>
  72875. <method name="addJob" return="java.lang.String"
  72876. abstract="false" native="false" synchronized="true"
  72877. static="false" final="false" visibility="public"
  72878. deprecated="not deprecated">
  72879. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  72880. <doc>
  72881. <![CDATA[Add a new job.
  72882. @param aJob the new job]]>
  72883. </doc>
  72884. </method>
  72885. <method name="addJobCollection"
  72886. abstract="false" native="false" synchronized="false"
  72887. static="false" final="false" visibility="public"
  72888. deprecated="not deprecated">
  72889. <param name="jobs" type="java.util.Collection"/>
  72890. <doc>
  72891. <![CDATA[Add a collection of jobs
  72892. @param jobs]]>
  72893. </doc>
  72894. </method>
  72895. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72896. abstract="false" native="false" synchronized="false"
  72897. static="false" final="false" visibility="public"
  72898. deprecated="not deprecated">
  72899. <doc>
  72900. <![CDATA[@return the thread state]]>
  72901. </doc>
  72902. </method>
  72903. <method name="stop"
  72904. abstract="false" native="false" synchronized="false"
  72905. static="false" final="false" visibility="public"
  72906. deprecated="not deprecated">
  72907. <doc>
  72908. <![CDATA[set the thread state to STOPPING so that the
  72909. thread will stop when it wakes up.]]>
  72910. </doc>
  72911. </method>
  72912. <method name="suspend"
  72913. abstract="false" native="false" synchronized="false"
  72914. static="false" final="false" visibility="public"
  72915. deprecated="not deprecated">
  72916. <doc>
  72917. <![CDATA[suspend the running thread]]>
  72918. </doc>
  72919. </method>
  72920. <method name="resume"
  72921. abstract="false" native="false" synchronized="false"
  72922. static="false" final="false" visibility="public"
  72923. deprecated="not deprecated">
  72924. <doc>
  72925. <![CDATA[resume the suspended thread]]>
  72926. </doc>
  72927. </method>
  72928. <method name="allFinished" return="boolean"
  72929. abstract="false" native="false" synchronized="true"
  72930. static="false" final="false" visibility="public"
  72931. deprecated="not deprecated">
  72932. </method>
  72933. <method name="run"
  72934. abstract="false" native="false" synchronized="false"
  72935. static="false" final="false" visibility="public"
  72936. deprecated="not deprecated">
  72937. <doc>
  72938. <![CDATA[The main loop for the thread.
  72939. The loop does the following:
  72940. Check the states of the running jobs
  72941. Update the states of waiting jobs
  72942. Submit the jobs in ready state]]>
  72943. </doc>
  72944. </method>
  72945. <doc>
  72946. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  72947. It tracks the states of the jobs by placing them into different tables
  72948. according to their states.
  72949. This class provides APIs for the client app to add a job to the group
  72950. and to get the jobs in the group in different states. When a job is
  72951. added, an ID unique to the group is assigned to the job.
  72952. This class has a thread that submits jobs when they become ready,
  72953. monitors the states of the running jobs, and updates the states of jobs
  72954. based on the state changes of their depending jobs states. The class
  72955. provides APIs for suspending/resuming the thread, and
  72956. for stopping the thread.]]>
  72957. </doc>
  72958. </class>
  72959. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  72960. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  72961. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  72962. abstract="false"
  72963. static="true" final="true" visibility="public"
  72964. deprecated="not deprecated">
  72965. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  72966. abstract="false" native="false" synchronized="false"
  72967. static="true" final="false" visibility="public"
  72968. deprecated="not deprecated">
  72969. </method>
  72970. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72971. abstract="false" native="false" synchronized="false"
  72972. static="true" final="false" visibility="public"
  72973. deprecated="not deprecated">
  72974. <param name="name" type="java.lang.String"/>
  72975. </method>
  72976. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72977. transient="false" volatile="false"
  72978. static="true" final="true" visibility="public"
  72979. deprecated="not deprecated">
  72980. </field>
  72981. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72982. transient="false" volatile="false"
  72983. static="true" final="true" visibility="public"
  72984. deprecated="not deprecated">
  72985. </field>
  72986. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72987. transient="false" volatile="false"
  72988. static="true" final="true" visibility="public"
  72989. deprecated="not deprecated">
  72990. </field>
  72991. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72992. transient="false" volatile="false"
  72993. static="true" final="true" visibility="public"
  72994. deprecated="not deprecated">
  72995. </field>
  72996. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72997. transient="false" volatile="false"
  72998. static="true" final="true" visibility="public"
  72999. deprecated="not deprecated">
  73000. </field>
  73001. </class>
  73002. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  73003. </package>
  73004. <package name="org.apache.hadoop.mapreduce.lib.map">
  73005. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  73006. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73007. abstract="false"
  73008. static="false" final="false" visibility="public"
  73009. deprecated="not deprecated">
  73010. <constructor name="InverseMapper"
  73011. static="false" final="false" visibility="public"
  73012. deprecated="not deprecated">
  73013. </constructor>
  73014. <method name="map"
  73015. abstract="false" native="false" synchronized="false"
  73016. static="false" final="false" visibility="public"
  73017. deprecated="not deprecated">
  73018. <param name="key" type="java.lang.Object"/>
  73019. <param name="value" type="java.lang.Object"/>
  73020. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73021. <exception name="IOException" type="java.io.IOException"/>
  73022. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73023. <doc>
  73024. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  73025. </doc>
  73026. </method>
  73027. <doc>
  73028. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  73029. </doc>
  73030. </class>
  73031. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  73032. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  73033. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73034. abstract="false"
  73035. static="false" final="false" visibility="public"
  73036. deprecated="not deprecated">
  73037. <constructor name="MultithreadedMapper"
  73038. static="false" final="false" visibility="public"
  73039. deprecated="not deprecated">
  73040. </constructor>
  73041. <method name="getNumberOfThreads" return="int"
  73042. abstract="false" native="false" synchronized="false"
  73043. static="true" final="false" visibility="public"
  73044. deprecated="not deprecated">
  73045. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73046. <doc>
  73047. <![CDATA[The number of threads in the thread pool that will run the map function.
  73048. @param job the job
  73049. @return the number of threads]]>
  73050. </doc>
  73051. </method>
  73052. <method name="setNumberOfThreads"
  73053. abstract="false" native="false" synchronized="false"
  73054. static="true" final="false" visibility="public"
  73055. deprecated="not deprecated">
  73056. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73057. <param name="threads" type="int"/>
  73058. <doc>
  73059. <![CDATA[Set the number of threads in the pool for running maps.
  73060. @param job the job to modify
  73061. @param threads the new number of threads]]>
  73062. </doc>
  73063. </method>
  73064. <method name="getMapperClass" return="java.lang.Class"
  73065. abstract="false" native="false" synchronized="false"
  73066. static="true" final="false" visibility="public"
  73067. deprecated="not deprecated">
  73068. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73069. <doc>
  73070. <![CDATA[Get the application's mapper class.
  73071. @param <K1> the map's input key type
  73072. @param <V1> the map's input value type
  73073. @param <K2> the map's output key type
  73074. @param <V2> the map's output value type
  73075. @param job the job
  73076. @return the mapper class to run]]>
  73077. </doc>
  73078. </method>
  73079. <method name="setMapperClass"
  73080. abstract="false" native="false" synchronized="false"
  73081. static="true" final="false" visibility="public"
  73082. deprecated="not deprecated">
  73083. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73084. <param name="cls" type="java.lang.Class"/>
  73085. <doc>
  73086. <![CDATA[Set the application's mapper class.
  73087. @param <K1> the map input key type
  73088. @param <V1> the map input value type
  73089. @param <K2> the map output key type
  73090. @param <V2> the map output value type
  73091. @param job the job to modify
  73092. @param cls the class to use as the mapper]]>
  73093. </doc>
  73094. </method>
  73095. <method name="run"
  73096. abstract="false" native="false" synchronized="false"
  73097. static="false" final="false" visibility="public"
  73098. deprecated="not deprecated">
  73099. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73100. <exception name="IOException" type="java.io.IOException"/>
  73101. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73102. <doc>
  73103. <![CDATA[Run the application's maps using a thread pool.]]>
  73104. </doc>
  73105. </method>
  73106. <doc>
  73107. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  73108. <p>
  73109. It can be used instead of the default implementation,
  73110. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  73111. bound in order to improve throughput.
  73112. <p>
  73113. Mapper implementations using this MapRunnable must be thread-safe.
  73114. <p>
  73115. The Map-Reduce job has to be configured with the mapper to use via
  73116. {@link #setMapperClass(Configuration, Class)} and
  73117. the number of thread the thread-pool can use with the
  73118. {@link #getNumberOfThreads(Configuration) method. The default
  73119. value is 10 threads.
  73120. <p>]]>
  73121. </doc>
  73122. </class>
  73123. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  73124. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  73125. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73126. abstract="false"
  73127. static="false" final="false" visibility="public"
  73128. deprecated="not deprecated">
  73129. <constructor name="TokenCounterMapper"
  73130. static="false" final="false" visibility="public"
  73131. deprecated="not deprecated">
  73132. </constructor>
  73133. <method name="map"
  73134. abstract="false" native="false" synchronized="false"
  73135. static="false" final="false" visibility="public"
  73136. deprecated="not deprecated">
  73137. <param name="key" type="java.lang.Object"/>
  73138. <param name="value" type="org.apache.hadoop.io.Text"/>
  73139. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73140. <exception name="IOException" type="java.io.IOException"/>
  73141. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73142. </method>
  73143. <doc>
  73144. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  73145. </doc>
  73146. </class>
  73147. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  73148. </package>
  73149. <package name="org.apache.hadoop.mapreduce.lib.output">
  73150. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  73151. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  73152. abstract="false"
  73153. static="false" final="false" visibility="public"
  73154. deprecated="not deprecated">
  73155. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  73156. static="false" final="false" visibility="public"
  73157. deprecated="not deprecated">
  73158. <exception name="IOException" type="java.io.IOException"/>
  73159. <doc>
  73160. <![CDATA[Create a file output committer
  73161. @param outputPath the job's output path
  73162. @param context the task's context
  73163. @throws IOException]]>
  73164. </doc>
  73165. </constructor>
  73166. <method name="setupJob"
  73167. abstract="false" native="false" synchronized="false"
  73168. static="false" final="false" visibility="public"
  73169. deprecated="not deprecated">
  73170. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73171. <exception name="IOException" type="java.io.IOException"/>
  73172. <doc>
  73173. <![CDATA[Create the temporary directory that is the root of all of the task
  73174. work directories.
  73175. @param context the job's context]]>
  73176. </doc>
  73177. </method>
  73178. <method name="commitJob"
  73179. abstract="false" native="false" synchronized="false"
  73180. static="false" final="false" visibility="public"
  73181. deprecated="not deprecated">
  73182. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73183. <exception name="IOException" type="java.io.IOException"/>
  73184. <doc>
  73185. <![CDATA[Delete the temporary directory, including all of the work directories.
  73186. This is called for all jobs whose final run state is SUCCEEDED
  73187. @param context the job's context.]]>
  73188. </doc>
  73189. </method>
  73190. <method name="cleanupJob"
  73191. abstract="false" native="false" synchronized="false"
  73192. static="false" final="false" visibility="public"
  73193. deprecated="not deprecated">
  73194. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73195. <exception name="IOException" type="java.io.IOException"/>
  73196. </method>
  73197. <method name="abortJob"
  73198. abstract="false" native="false" synchronized="false"
  73199. static="false" final="false" visibility="public"
  73200. deprecated="not deprecated">
  73201. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73202. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  73203. <exception name="IOException" type="java.io.IOException"/>
  73204. <doc>
  73205. <![CDATA[Delete the temporary directory, including all of the work directories.
  73206. @param context the job's context
  73207. @param state final run state of the job, should be FAILED or KILLED]]>
  73208. </doc>
  73209. </method>
  73210. <method name="setupTask"
  73211. abstract="false" native="false" synchronized="false"
  73212. static="false" final="false" visibility="public"
  73213. deprecated="not deprecated">
  73214. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73215. <exception name="IOException" type="java.io.IOException"/>
  73216. <doc>
  73217. <![CDATA[No task setup required.]]>
  73218. </doc>
  73219. </method>
  73220. <method name="commitTask"
  73221. abstract="false" native="false" synchronized="false"
  73222. static="false" final="false" visibility="public"
  73223. deprecated="not deprecated">
  73224. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73225. <exception name="IOException" type="java.io.IOException"/>
  73226. <doc>
  73227. <![CDATA[Move the files from the work directory to the job output directory
  73228. @param context the task context]]>
  73229. </doc>
  73230. </method>
  73231. <method name="abortTask"
  73232. abstract="false" native="false" synchronized="false"
  73233. static="false" final="false" visibility="public"
  73234. deprecated="not deprecated">
  73235. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73236. <doc>
  73237. <![CDATA[Delete the work directory]]>
  73238. </doc>
  73239. </method>
  73240. <method name="needsTaskCommit" return="boolean"
  73241. abstract="false" native="false" synchronized="false"
  73242. static="false" final="false" visibility="public"
  73243. deprecated="not deprecated">
  73244. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73245. <exception name="IOException" type="java.io.IOException"/>
  73246. <doc>
  73247. <![CDATA[Did this task write any files in the work directory?
  73248. @param context the task's context]]>
  73249. </doc>
  73250. </method>
  73251. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  73252. abstract="false" native="false" synchronized="false"
  73253. static="false" final="false" visibility="public"
  73254. deprecated="not deprecated">
  73255. <exception name="IOException" type="java.io.IOException"/>
  73256. <doc>
  73257. <![CDATA[Get the directory that the task should write results into
  73258. @return the work directory
  73259. @throws IOException]]>
  73260. </doc>
  73261. </method>
  73262. <field name="TEMP_DIR_NAME" type="java.lang.String"
  73263. transient="false" volatile="false"
  73264. static="true" final="true" visibility="protected"
  73265. deprecated="not deprecated">
  73266. <doc>
  73267. <![CDATA[Temporary directory name]]>
  73268. </doc>
  73269. </field>
  73270. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  73271. transient="false" volatile="false"
  73272. static="true" final="true" visibility="public"
  73273. deprecated="not deprecated">
  73274. </field>
  73275. <doc>
  73276. <![CDATA[An {@link OutputCommitter} that commits files specified
  73277. in job output directory i.e. ${mapred.output.dir}.]]>
  73278. </doc>
  73279. </class>
  73280. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  73281. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  73282. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73283. abstract="true"
  73284. static="false" final="false" visibility="public"
  73285. deprecated="not deprecated">
  73286. <constructor name="FileOutputFormat"
  73287. static="false" final="false" visibility="public"
  73288. deprecated="not deprecated">
  73289. </constructor>
  73290. <method name="setCompressOutput"
  73291. abstract="false" native="false" synchronized="false"
  73292. static="true" final="false" visibility="public"
  73293. deprecated="not deprecated">
  73294. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73295. <param name="compress" type="boolean"/>
  73296. <doc>
  73297. <![CDATA[Set whether the output of the job is compressed.
  73298. @param job the job to modify
  73299. @param compress should the output of the job be compressed?]]>
  73300. </doc>
  73301. </method>
  73302. <method name="getCompressOutput" return="boolean"
  73303. abstract="false" native="false" synchronized="false"
  73304. static="true" final="false" visibility="public"
  73305. deprecated="not deprecated">
  73306. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73307. <doc>
  73308. <![CDATA[Is the job output compressed?
  73309. @param job the Job to look in
  73310. @return <code>true</code> if the job output should be compressed,
  73311. <code>false</code> otherwise]]>
  73312. </doc>
  73313. </method>
  73314. <method name="setOutputCompressorClass"
  73315. abstract="false" native="false" synchronized="false"
  73316. static="true" final="false" visibility="public"
  73317. deprecated="not deprecated">
  73318. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73319. <param name="codecClass" type="java.lang.Class"/>
  73320. <doc>
  73321. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  73322. @param job the job to modify
  73323. @param codecClass the {@link CompressionCodec} to be used to
  73324. compress the job outputs]]>
  73325. </doc>
  73326. </method>
  73327. <method name="getOutputCompressorClass" return="java.lang.Class"
  73328. abstract="false" native="false" synchronized="false"
  73329. static="true" final="false" visibility="public"
  73330. deprecated="not deprecated">
  73331. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73332. <param name="defaultValue" type="java.lang.Class"/>
  73333. <doc>
  73334. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  73335. @param job the {@link Job} to look in
  73336. @param defaultValue the {@link CompressionCodec} to return if not set
  73337. @return the {@link CompressionCodec} to be used to compress the
  73338. job outputs
  73339. @throws IllegalArgumentException if the class was specified, but not found]]>
  73340. </doc>
  73341. </method>
  73342. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73343. abstract="true" native="false" synchronized="false"
  73344. static="false" final="false" visibility="public"
  73345. deprecated="not deprecated">
  73346. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73347. <exception name="IOException" type="java.io.IOException"/>
  73348. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73349. </method>
  73350. <method name="checkOutputSpecs"
  73351. abstract="false" native="false" synchronized="false"
  73352. static="false" final="false" visibility="public"
  73353. deprecated="not deprecated">
  73354. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73355. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  73356. <exception name="IOException" type="java.io.IOException"/>
  73357. </method>
  73358. <method name="setOutputPath"
  73359. abstract="false" native="false" synchronized="false"
  73360. static="true" final="false" visibility="public"
  73361. deprecated="not deprecated">
  73362. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73363. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  73364. <doc>
  73365. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  73366. @param job The job to modify
  73367. @param outputDir the {@link Path} of the output directory for
  73368. the map-reduce job.]]>
  73369. </doc>
  73370. </method>
  73371. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  73372. abstract="false" native="false" synchronized="false"
  73373. static="true" final="false" visibility="public"
  73374. deprecated="not deprecated">
  73375. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73376. <doc>
  73377. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  73378. @return the {@link Path} to the output directory for the map-reduce job.
  73379. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  73380. </doc>
  73381. </method>
  73382. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  73383. abstract="false" native="false" synchronized="false"
  73384. static="true" final="false" visibility="public"
  73385. deprecated="not deprecated">
  73386. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  73387. <exception name="IOException" type="java.io.IOException"/>
  73388. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73389. <doc>
  73390. <![CDATA[Get the {@link Path} to the task's temporary output directory
  73391. for the map-reduce job
  73392. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  73393. <p>Some applications need to create/write-to side-files, which differ from
  73394. the actual job-outputs.
  73395. <p>In such cases there could be issues with 2 instances of the same TIP
  73396. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  73397. same file (path) on HDFS. Hence the application-writer will have to pick
  73398. unique names per task-attempt (e.g. using the attemptid, say
  73399. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  73400. <p>To get around this the Map-Reduce framework helps the application-writer
  73401. out by maintaining a special
  73402. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  73403. sub-directory for each task-attempt on HDFS where the output of the
  73404. task-attempt goes. On successful completion of the task-attempt the files
  73405. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  73406. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  73407. framework discards the sub-directory of unsuccessful task-attempts. This
  73408. is completely transparent to the application.</p>
  73409. <p>The application-writer can take advantage of this by creating any
  73410. side-files required in a work directory during execution
  73411. of his task i.e. via
  73412. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  73413. the framework will move them out similarly - thus she doesn't have to pick
  73414. unique paths per task-attempt.</p>
  73415. <p>The entire discussion holds true for maps of jobs with
  73416. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  73417. goes directly to HDFS.</p>
  73418. @return the {@link Path} to the task's temporary output directory
  73419. for the map-reduce job.]]>
  73420. </doc>
  73421. </method>
  73422. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  73423. abstract="false" native="false" synchronized="false"
  73424. static="true" final="false" visibility="public"
  73425. deprecated="not deprecated">
  73426. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  73427. <param name="name" type="java.lang.String"/>
  73428. <param name="extension" type="java.lang.String"/>
  73429. <exception name="IOException" type="java.io.IOException"/>
  73430. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73431. <doc>
  73432. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  73433. the task within the job output directory.
  73434. <p>The path can be used to create custom files from within the map and
  73435. reduce tasks. The path name will be unique for each task. The path parent
  73436. will be the job output directory.</p>ls
  73437. <p>This method uses the {@link #getUniqueFile} method to make the file name
  73438. unique for the task.</p>
  73439. @param context the context for the task.
  73440. @param name the name for the file.
  73441. @param extension the extension for the file
  73442. @return a unique path accross all tasks of the job.]]>
  73443. </doc>
  73444. </method>
  73445. <method name="getUniqueFile" return="java.lang.String"
  73446. abstract="false" native="false" synchronized="true"
  73447. static="true" final="false" visibility="public"
  73448. deprecated="not deprecated">
  73449. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73450. <param name="name" type="java.lang.String"/>
  73451. <param name="extension" type="java.lang.String"/>
  73452. <doc>
  73453. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  73454. @param context the task that is calling this
  73455. @param name the base filename
  73456. @param extension the filename extension
  73457. @return a string like $name-[mr]-$id$extension]]>
  73458. </doc>
  73459. </method>
  73460. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  73461. abstract="false" native="false" synchronized="false"
  73462. static="false" final="false" visibility="public"
  73463. deprecated="not deprecated">
  73464. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73465. <param name="extension" type="java.lang.String"/>
  73466. <exception name="IOException" type="java.io.IOException"/>
  73467. <doc>
  73468. <![CDATA[Get the default path and filename for the output format.
  73469. @param context the task context
  73470. @param extension an extension to add to the filename
  73471. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  73472. @throws IOException]]>
  73473. </doc>
  73474. </method>
  73475. <method name="getOutputName" return="java.lang.String"
  73476. abstract="false" native="false" synchronized="false"
  73477. static="true" final="false" visibility="protected"
  73478. deprecated="not deprecated">
  73479. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73480. <doc>
  73481. <![CDATA[Get the base output name for the output file.]]>
  73482. </doc>
  73483. </method>
  73484. <method name="setOutputName"
  73485. abstract="false" native="false" synchronized="false"
  73486. static="true" final="false" visibility="protected"
  73487. deprecated="not deprecated">
  73488. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73489. <param name="name" type="java.lang.String"/>
  73490. <doc>
  73491. <![CDATA[Set the base output name for output file to be created.]]>
  73492. </doc>
  73493. </method>
  73494. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73495. abstract="false" native="false" synchronized="true"
  73496. static="false" final="false" visibility="public"
  73497. deprecated="not deprecated">
  73498. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73499. <exception name="IOException" type="java.io.IOException"/>
  73500. </method>
  73501. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  73502. transient="false" volatile="false"
  73503. static="true" final="true" visibility="protected"
  73504. deprecated="not deprecated">
  73505. </field>
  73506. <field name="PART" type="java.lang.String"
  73507. transient="false" volatile="false"
  73508. static="true" final="true" visibility="protected"
  73509. deprecated="not deprecated">
  73510. </field>
  73511. <doc>
  73512. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  73513. </doc>
  73514. </class>
  73515. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  73516. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  73517. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  73518. abstract="false"
  73519. static="true" final="true" visibility="public"
  73520. deprecated="not deprecated">
  73521. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  73522. abstract="false" native="false" synchronized="false"
  73523. static="true" final="false" visibility="public"
  73524. deprecated="not deprecated">
  73525. </method>
  73526. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  73527. abstract="false" native="false" synchronized="false"
  73528. static="true" final="false" visibility="public"
  73529. deprecated="not deprecated">
  73530. <param name="name" type="java.lang.String"/>
  73531. </method>
  73532. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  73533. transient="false" volatile="false"
  73534. static="true" final="true" visibility="public"
  73535. deprecated="not deprecated">
  73536. </field>
  73537. </class>
  73538. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  73539. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  73540. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73541. abstract="false"
  73542. static="false" final="false" visibility="public"
  73543. deprecated="not deprecated">
  73544. <constructor name="FilterOutputFormat"
  73545. static="false" final="false" visibility="public"
  73546. deprecated="not deprecated">
  73547. </constructor>
  73548. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  73549. static="false" final="false" visibility="public"
  73550. deprecated="not deprecated">
  73551. <doc>
  73552. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  73553. @param baseOut the underlying OutputFormat]]>
  73554. </doc>
  73555. </constructor>
  73556. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73557. abstract="false" native="false" synchronized="false"
  73558. static="false" final="false" visibility="public"
  73559. deprecated="not deprecated">
  73560. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73561. <exception name="IOException" type="java.io.IOException"/>
  73562. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73563. </method>
  73564. <method name="checkOutputSpecs"
  73565. abstract="false" native="false" synchronized="false"
  73566. static="false" final="false" visibility="public"
  73567. deprecated="not deprecated">
  73568. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73569. <exception name="IOException" type="java.io.IOException"/>
  73570. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73571. </method>
  73572. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73573. abstract="false" native="false" synchronized="false"
  73574. static="false" final="false" visibility="public"
  73575. deprecated="not deprecated">
  73576. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73577. <exception name="IOException" type="java.io.IOException"/>
  73578. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73579. </method>
  73580. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  73581. transient="false" volatile="false"
  73582. static="false" final="false" visibility="protected"
  73583. deprecated="not deprecated">
  73584. </field>
  73585. <doc>
  73586. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  73587. </doc>
  73588. </class>
  73589. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  73590. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  73591. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  73592. abstract="false"
  73593. static="true" final="false" visibility="public"
  73594. deprecated="not deprecated">
  73595. <constructor name="FilterOutputFormat.FilterRecordWriter"
  73596. static="false" final="false" visibility="public"
  73597. deprecated="not deprecated">
  73598. </constructor>
  73599. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  73600. static="false" final="false" visibility="public"
  73601. deprecated="not deprecated">
  73602. </constructor>
  73603. <method name="write"
  73604. abstract="false" native="false" synchronized="false"
  73605. static="false" final="false" visibility="public"
  73606. deprecated="not deprecated">
  73607. <param name="key" type="java.lang.Object"/>
  73608. <param name="value" type="java.lang.Object"/>
  73609. <exception name="IOException" type="java.io.IOException"/>
  73610. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73611. </method>
  73612. <method name="close"
  73613. abstract="false" native="false" synchronized="false"
  73614. static="false" final="false" visibility="public"
  73615. deprecated="not deprecated">
  73616. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73617. <exception name="IOException" type="java.io.IOException"/>
  73618. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73619. </method>
  73620. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  73621. transient="false" volatile="false"
  73622. static="false" final="false" visibility="protected"
  73623. deprecated="not deprecated">
  73624. </field>
  73625. <doc>
  73626. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  73627. class that extends the {@link RecordWriter}.]]>
  73628. </doc>
  73629. </class>
  73630. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  73631. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  73632. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  73633. abstract="false"
  73634. static="false" final="false" visibility="public"
  73635. deprecated="not deprecated">
  73636. <constructor name="LazyOutputFormat"
  73637. static="false" final="false" visibility="public"
  73638. deprecated="not deprecated">
  73639. </constructor>
  73640. <method name="setOutputFormatClass"
  73641. abstract="false" native="false" synchronized="false"
  73642. static="true" final="false" visibility="public"
  73643. deprecated="not deprecated">
  73644. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73645. <param name="theClass" type="java.lang.Class"/>
  73646. <doc>
  73647. <![CDATA[Set the underlying output format for LazyOutputFormat.
  73648. @param job the {@link Job} to modify
  73649. @param theClass the underlying class]]>
  73650. </doc>
  73651. </method>
  73652. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73653. abstract="false" native="false" synchronized="false"
  73654. static="false" final="false" visibility="public"
  73655. deprecated="not deprecated">
  73656. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73657. <exception name="IOException" type="java.io.IOException"/>
  73658. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73659. </method>
  73660. <method name="checkOutputSpecs"
  73661. abstract="false" native="false" synchronized="false"
  73662. static="false" final="false" visibility="public"
  73663. deprecated="not deprecated">
  73664. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73665. <exception name="IOException" type="java.io.IOException"/>
  73666. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73667. </method>
  73668. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73669. abstract="false" native="false" synchronized="false"
  73670. static="false" final="false" visibility="public"
  73671. deprecated="not deprecated">
  73672. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73673. <exception name="IOException" type="java.io.IOException"/>
  73674. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73675. </method>
  73676. <field name="OUTPUT_FORMAT" type="java.lang.String"
  73677. transient="false" volatile="false"
  73678. static="true" final="false" visibility="public"
  73679. deprecated="not deprecated">
  73680. </field>
  73681. <doc>
  73682. <![CDATA[A Convenience class that creates output lazily.]]>
  73683. </doc>
  73684. </class>
  73685. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  73686. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  73687. <class name="MultipleOutputs" extends="java.lang.Object"
  73688. abstract="false"
  73689. static="false" final="false" visibility="public"
  73690. deprecated="not deprecated">
  73691. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  73692. static="false" final="false" visibility="public"
  73693. deprecated="not deprecated">
  73694. <doc>
  73695. <![CDATA[Creates and initializes multiple outputs support,
  73696. it should be instantiated in the Mapper/Reducer setup method.
  73697. @param context the TaskInputOutputContext object]]>
  73698. </doc>
  73699. </constructor>
  73700. <method name="addNamedOutput"
  73701. abstract="false" native="false" synchronized="false"
  73702. static="true" final="false" visibility="public"
  73703. deprecated="not deprecated">
  73704. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73705. <param name="namedOutput" type="java.lang.String"/>
  73706. <param name="outputFormatClass" type="java.lang.Class"/>
  73707. <param name="keyClass" type="java.lang.Class"/>
  73708. <param name="valueClass" type="java.lang.Class"/>
  73709. <doc>
  73710. <![CDATA[Adds a named output for the job.
  73711. <p/>
  73712. @param job job to add the named output
  73713. @param namedOutput named output name, it has to be a word, letters
  73714. and numbers only, cannot be the word 'part' as
  73715. that is reserved for the default output.
  73716. @param outputFormatClass OutputFormat class.
  73717. @param keyClass key class
  73718. @param valueClass value class]]>
  73719. </doc>
  73720. </method>
  73721. <method name="setCountersEnabled"
  73722. abstract="false" native="false" synchronized="false"
  73723. static="true" final="false" visibility="public"
  73724. deprecated="not deprecated">
  73725. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73726. <param name="enabled" type="boolean"/>
  73727. <doc>
  73728. <![CDATA[Enables or disables counters for the named outputs.
  73729. The counters group is the {@link MultipleOutputs} class name.
  73730. The names of the counters are the same as the named outputs. These
  73731. counters count the number records written to each output name.
  73732. By default these counters are disabled.
  73733. @param job job to enable counters
  73734. @param enabled indicates if the counters will be enabled or not.]]>
  73735. </doc>
  73736. </method>
  73737. <method name="getCountersEnabled" return="boolean"
  73738. abstract="false" native="false" synchronized="false"
  73739. static="true" final="false" visibility="public"
  73740. deprecated="not deprecated">
  73741. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73742. <doc>
  73743. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  73744. By default these counters are disabled.
  73745. @param job the job
  73746. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  73747. </doc>
  73748. </method>
  73749. <method name="write"
  73750. abstract="false" native="false" synchronized="false"
  73751. static="false" final="false" visibility="public"
  73752. deprecated="not deprecated">
  73753. <param name="namedOutput" type="java.lang.String"/>
  73754. <param name="key" type="java.lang.Object"/>
  73755. <param name="value" type="java.lang.Object"/>
  73756. <exception name="IOException" type="java.io.IOException"/>
  73757. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73758. <doc>
  73759. <![CDATA[Write key and value to the namedOutput.
  73760. Output path is a unique file generated for the namedOutput.
  73761. For example, {namedOutput}-(m|r)-{part-number}
  73762. @param namedOutput the named output name
  73763. @param key the key
  73764. @param value the value]]>
  73765. </doc>
  73766. </method>
  73767. <method name="write"
  73768. abstract="false" native="false" synchronized="false"
  73769. static="false" final="false" visibility="public"
  73770. deprecated="not deprecated">
  73771. <param name="namedOutput" type="java.lang.String"/>
  73772. <param name="key" type="java.lang.Object"/>
  73773. <param name="value" type="java.lang.Object"/>
  73774. <param name="baseOutputPath" type="java.lang.String"/>
  73775. <exception name="IOException" type="java.io.IOException"/>
  73776. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73777. <doc>
  73778. <![CDATA[Write key and value to baseOutputPath using the namedOutput.
  73779. @param namedOutput the named output name
  73780. @param key the key
  73781. @param value the value
  73782. @param baseOutputPath base-output path to write the record to.
  73783. Note: Framework will generate unique filename for the baseOutputPath]]>
  73784. </doc>
  73785. </method>
  73786. <method name="write"
  73787. abstract="false" native="false" synchronized="false"
  73788. static="false" final="false" visibility="public"
  73789. deprecated="not deprecated">
  73790. <param name="key" type="java.lang.Object"/>
  73791. <param name="value" type="java.lang.Object"/>
  73792. <param name="baseOutputPath" type="java.lang.String"/>
  73793. <exception name="IOException" type="java.io.IOException"/>
  73794. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73795. <doc>
  73796. <![CDATA[Write key value to an output file name.
  73797. Gets the record writer from job's output format.
  73798. Job's output format should be a FileOutputFormat.
  73799. @param key the key
  73800. @param value the value
  73801. @param baseOutputPath base-output path to write the record to.
  73802. Note: Framework will generate unique filename for the baseOutputPath]]>
  73803. </doc>
  73804. </method>
  73805. <method name="close"
  73806. abstract="false" native="false" synchronized="false"
  73807. static="false" final="false" visibility="public"
  73808. deprecated="not deprecated">
  73809. <exception name="IOException" type="java.io.IOException"/>
  73810. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73811. <doc>
  73812. <![CDATA[Closes all the opened outputs.
  73813. This should be called from cleanup method of map/reduce task.
  73814. If overridden subclasses must invoke <code>super.close()</code> at the
  73815. end of their <code>close()</code>]]>
  73816. </doc>
  73817. </method>
  73818. <doc>
  73819. <![CDATA[The MultipleOutputs class simplifies writing output data
  73820. to multiple outputs
  73821. <p>
  73822. Case one: writing to additional outputs other than the job default output.
  73823. Each additional output, or named output, may be configured with its own
  73824. <code>OutputFormat</code>, with its own key class and with its own value
  73825. class.
  73826. <p>
  73827. Case two: to write data to different files provided by user
  73828. </p>
  73829. <p>
  73830. MultipleOutputs supports counters, by default they are disabled. The
  73831. counters group is the {@link MultipleOutputs} class name. The names of the
  73832. counters are the same as the output name. These count the number records
  73833. written to each output name.
  73834. </p>
  73835. Usage pattern for job submission:
  73836. <pre>
  73837. Job job = new Job();
  73838. FileInputFormat.setInputPath(job, inDir);
  73839. FileOutputFormat.setOutputPath(job, outDir);
  73840. job.setMapperClass(MOMap.class);
  73841. job.setReducerClass(MOReduce.class);
  73842. ...
  73843. // Defines additional single text based output 'text' for the job
  73844. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  73845. LongWritable.class, Text.class);
  73846. // Defines additional sequence-file based output 'sequence' for the job
  73847. MultipleOutputs.addNamedOutput(job, "seq",
  73848. SequenceFileOutputFormat.class,
  73849. LongWritable.class, Text.class);
  73850. ...
  73851. job.waitForCompletion(true);
  73852. ...
  73853. </pre>
  73854. <p>
  73855. Usage in Reducer:
  73856. <pre>
  73857. <K, V> String generateFileName(K k, V v) {
  73858. return k.toString() + "_" + v.toString();
  73859. }
  73860. public class MOReduce extends
  73861. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  73862. private MultipleOutputs mos;
  73863. public void setup(Context context) {
  73864. ...
  73865. mos = new MultipleOutputs(context);
  73866. }
  73867. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  73868. Context context)
  73869. throws IOException {
  73870. ...
  73871. mos.write("text", , key, new Text("Hello"));
  73872. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  73873. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  73874. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  73875. ...
  73876. }
  73877. public void cleanup(Context) throws IOException {
  73878. mos.close();
  73879. ...
  73880. }
  73881. }
  73882. </pre>]]>
  73883. </doc>
  73884. </class>
  73885. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  73886. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  73887. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73888. abstract="false"
  73889. static="false" final="false" visibility="public"
  73890. deprecated="not deprecated">
  73891. <constructor name="NullOutputFormat"
  73892. static="false" final="false" visibility="public"
  73893. deprecated="not deprecated">
  73894. </constructor>
  73895. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73896. abstract="false" native="false" synchronized="false"
  73897. static="false" final="false" visibility="public"
  73898. deprecated="not deprecated">
  73899. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73900. </method>
  73901. <method name="checkOutputSpecs"
  73902. abstract="false" native="false" synchronized="false"
  73903. static="false" final="false" visibility="public"
  73904. deprecated="not deprecated">
  73905. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73906. </method>
  73907. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73908. abstract="false" native="false" synchronized="false"
  73909. static="false" final="false" visibility="public"
  73910. deprecated="not deprecated">
  73911. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73912. </method>
  73913. <doc>
  73914. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  73915. </doc>
  73916. </class>
  73917. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  73918. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  73919. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  73920. abstract="false"
  73921. static="false" final="false" visibility="public"
  73922. deprecated="not deprecated">
  73923. <constructor name="SequenceFileAsBinaryOutputFormat"
  73924. static="false" final="false" visibility="public"
  73925. deprecated="not deprecated">
  73926. </constructor>
  73927. <method name="setSequenceFileOutputKeyClass"
  73928. abstract="false" native="false" synchronized="false"
  73929. static="true" final="false" visibility="public"
  73930. deprecated="not deprecated">
  73931. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73932. <param name="theClass" type="java.lang.Class"/>
  73933. <doc>
  73934. <![CDATA[Set the key class for the {@link SequenceFile}
  73935. <p>This allows the user to specify the key class to be different
  73936. from the actual class ({@link BytesWritable}) used for writing </p>
  73937. @param job the {@link Job} to modify
  73938. @param theClass the SequenceFile output key class.]]>
  73939. </doc>
  73940. </method>
  73941. <method name="setSequenceFileOutputValueClass"
  73942. abstract="false" native="false" synchronized="false"
  73943. static="true" final="false" visibility="public"
  73944. deprecated="not deprecated">
  73945. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73946. <param name="theClass" type="java.lang.Class"/>
  73947. <doc>
  73948. <![CDATA[Set the value class for the {@link SequenceFile}
  73949. <p>This allows the user to specify the value class to be different
  73950. from the actual class ({@link BytesWritable}) used for writing </p>
  73951. @param job the {@link Job} to modify
  73952. @param theClass the SequenceFile output key class.]]>
  73953. </doc>
  73954. </method>
  73955. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  73956. abstract="false" native="false" synchronized="false"
  73957. static="true" final="false" visibility="public"
  73958. deprecated="not deprecated">
  73959. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73960. <doc>
  73961. <![CDATA[Get the key class for the {@link SequenceFile}
  73962. @return the key class of the {@link SequenceFile}]]>
  73963. </doc>
  73964. </method>
  73965. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  73966. abstract="false" native="false" synchronized="false"
  73967. static="true" final="false" visibility="public"
  73968. deprecated="not deprecated">
  73969. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73970. <doc>
  73971. <![CDATA[Get the value class for the {@link SequenceFile}
  73972. @return the value class of the {@link SequenceFile}]]>
  73973. </doc>
  73974. </method>
  73975. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73976. abstract="false" native="false" synchronized="false"
  73977. static="false" final="false" visibility="public"
  73978. deprecated="not deprecated">
  73979. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73980. <exception name="IOException" type="java.io.IOException"/>
  73981. </method>
  73982. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  73983. abstract="false" native="false" synchronized="false"
  73984. static="false" final="false" visibility="protected"
  73985. deprecated="not deprecated">
  73986. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73987. <param name="keyClass" type="java.lang.Class"/>
  73988. <param name="valueClass" type="java.lang.Class"/>
  73989. <exception name="IOException" type="java.io.IOException"/>
  73990. </method>
  73991. <method name="checkOutputSpecs"
  73992. abstract="false" native="false" synchronized="false"
  73993. static="false" final="false" visibility="public"
  73994. deprecated="not deprecated">
  73995. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73996. <exception name="IOException" type="java.io.IOException"/>
  73997. </method>
  73998. <field name="KEY_CLASS" type="java.lang.String"
  73999. transient="false" volatile="false"
  74000. static="true" final="false" visibility="public"
  74001. deprecated="not deprecated">
  74002. </field>
  74003. <field name="VALUE_CLASS" type="java.lang.String"
  74004. transient="false" volatile="false"
  74005. static="true" final="false" visibility="public"
  74006. deprecated="not deprecated">
  74007. </field>
  74008. <doc>
  74009. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  74010. values to {@link SequenceFile}s in binary(raw) format]]>
  74011. </doc>
  74012. </class>
  74013. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  74014. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  74015. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  74016. abstract="false"
  74017. static="true" final="false" visibility="public"
  74018. deprecated="not deprecated">
  74019. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  74020. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  74021. static="false" final="false" visibility="public"
  74022. deprecated="not deprecated">
  74023. </constructor>
  74024. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  74025. static="false" final="false" visibility="public"
  74026. deprecated="not deprecated">
  74027. </constructor>
  74028. <method name="reset"
  74029. abstract="false" native="false" synchronized="false"
  74030. static="false" final="false" visibility="public"
  74031. deprecated="not deprecated">
  74032. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  74033. </method>
  74034. <method name="writeUncompressedBytes"
  74035. abstract="false" native="false" synchronized="false"
  74036. static="false" final="false" visibility="public"
  74037. deprecated="not deprecated">
  74038. <param name="outStream" type="java.io.DataOutputStream"/>
  74039. <exception name="IOException" type="java.io.IOException"/>
  74040. </method>
  74041. <method name="writeCompressedBytes"
  74042. abstract="false" native="false" synchronized="false"
  74043. static="false" final="false" visibility="public"
  74044. deprecated="not deprecated">
  74045. <param name="outStream" type="java.io.DataOutputStream"/>
  74046. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  74047. <exception name="IOException" type="java.io.IOException"/>
  74048. </method>
  74049. <method name="getSize" return="int"
  74050. abstract="false" native="false" synchronized="false"
  74051. static="false" final="false" visibility="public"
  74052. deprecated="not deprecated">
  74053. </method>
  74054. <doc>
  74055. <![CDATA[Inner class used for appendRaw]]>
  74056. </doc>
  74057. </class>
  74058. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  74059. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  74060. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  74061. abstract="false"
  74062. static="false" final="false" visibility="public"
  74063. deprecated="not deprecated">
  74064. <constructor name="SequenceFileOutputFormat"
  74065. static="false" final="false" visibility="public"
  74066. deprecated="not deprecated">
  74067. </constructor>
  74068. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74069. abstract="false" native="false" synchronized="false"
  74070. static="false" final="false" visibility="public"
  74071. deprecated="not deprecated">
  74072. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74073. <exception name="IOException" type="java.io.IOException"/>
  74074. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74075. </method>
  74076. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  74077. abstract="false" native="false" synchronized="false"
  74078. static="true" final="false" visibility="public"
  74079. deprecated="not deprecated">
  74080. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74081. <doc>
  74082. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  74083. @param job the {@link Job}
  74084. @return the {@link CompressionType} for the output {@link SequenceFile},
  74085. defaulting to {@link CompressionType#RECORD}]]>
  74086. </doc>
  74087. </method>
  74088. <method name="setOutputCompressionType"
  74089. abstract="false" native="false" synchronized="false"
  74090. static="true" final="false" visibility="public"
  74091. deprecated="not deprecated">
  74092. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74093. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  74094. <doc>
  74095. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  74096. @param job the {@link Job} to modify
  74097. @param style the {@link CompressionType} for the output
  74098. {@link SequenceFile}]]>
  74099. </doc>
  74100. </method>
  74101. <doc>
  74102. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  74103. </doc>
  74104. </class>
  74105. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  74106. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  74107. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  74108. abstract="false"
  74109. static="false" final="false" visibility="public"
  74110. deprecated="not deprecated">
  74111. <constructor name="TextOutputFormat"
  74112. static="false" final="false" visibility="public"
  74113. deprecated="not deprecated">
  74114. </constructor>
  74115. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74116. abstract="false" native="false" synchronized="false"
  74117. static="false" final="false" visibility="public"
  74118. deprecated="not deprecated">
  74119. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74120. <exception name="IOException" type="java.io.IOException"/>
  74121. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74122. </method>
  74123. <doc>
  74124. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  74125. </doc>
  74126. </class>
  74127. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  74128. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  74129. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  74130. abstract="false"
  74131. static="true" final="false" visibility="protected"
  74132. deprecated="not deprecated">
  74133. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  74134. static="false" final="false" visibility="public"
  74135. deprecated="not deprecated">
  74136. </constructor>
  74137. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  74138. static="false" final="false" visibility="public"
  74139. deprecated="not deprecated">
  74140. </constructor>
  74141. <method name="write"
  74142. abstract="false" native="false" synchronized="true"
  74143. static="false" final="false" visibility="public"
  74144. deprecated="not deprecated">
  74145. <param name="key" type="java.lang.Object"/>
  74146. <param name="value" type="java.lang.Object"/>
  74147. <exception name="IOException" type="java.io.IOException"/>
  74148. </method>
  74149. <method name="close"
  74150. abstract="false" native="false" synchronized="true"
  74151. static="false" final="false" visibility="public"
  74152. deprecated="not deprecated">
  74153. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74154. <exception name="IOException" type="java.io.IOException"/>
  74155. </method>
  74156. <field name="out" type="java.io.DataOutputStream"
  74157. transient="false" volatile="false"
  74158. static="false" final="false" visibility="protected"
  74159. deprecated="not deprecated">
  74160. </field>
  74161. </class>
  74162. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  74163. </package>
  74164. <package name="org.apache.hadoop.mapreduce.lib.partition">
  74165. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  74166. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74167. abstract="false"
  74168. static="false" final="false" visibility="public"
  74169. deprecated="not deprecated">
  74170. <implements name="org.apache.hadoop.conf.Configurable"/>
  74171. <constructor name="BinaryPartitioner"
  74172. static="false" final="false" visibility="public"
  74173. deprecated="not deprecated">
  74174. </constructor>
  74175. <method name="setOffsets"
  74176. abstract="false" native="false" synchronized="false"
  74177. static="true" final="false" visibility="public"
  74178. deprecated="not deprecated">
  74179. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74180. <param name="left" type="int"/>
  74181. <param name="right" type="int"/>
  74182. <doc>
  74183. <![CDATA[Set the subarray to be used for partitioning to
  74184. <code>bytes[left:(right+1)]</code> in Python syntax.
  74185. @param conf configuration object
  74186. @param left left Python-style offset
  74187. @param right right Python-style offset]]>
  74188. </doc>
  74189. </method>
  74190. <method name="setLeftOffset"
  74191. abstract="false" native="false" synchronized="false"
  74192. static="true" final="false" visibility="public"
  74193. deprecated="not deprecated">
  74194. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74195. <param name="offset" type="int"/>
  74196. <doc>
  74197. <![CDATA[Set the subarray to be used for partitioning to
  74198. <code>bytes[offset:]</code> in Python syntax.
  74199. @param conf configuration object
  74200. @param offset left Python-style offset]]>
  74201. </doc>
  74202. </method>
  74203. <method name="setRightOffset"
  74204. abstract="false" native="false" synchronized="false"
  74205. static="true" final="false" visibility="public"
  74206. deprecated="not deprecated">
  74207. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74208. <param name="offset" type="int"/>
  74209. <doc>
  74210. <![CDATA[Set the subarray to be used for partitioning to
  74211. <code>bytes[:(offset+1)]</code> in Python syntax.
  74212. @param conf configuration object
  74213. @param offset right Python-style offset]]>
  74214. </doc>
  74215. </method>
  74216. <method name="setConf"
  74217. abstract="false" native="false" synchronized="false"
  74218. static="false" final="false" visibility="public"
  74219. deprecated="not deprecated">
  74220. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74221. </method>
  74222. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74223. abstract="false" native="false" synchronized="false"
  74224. static="false" final="false" visibility="public"
  74225. deprecated="not deprecated">
  74226. </method>
  74227. <method name="getPartition" return="int"
  74228. abstract="false" native="false" synchronized="false"
  74229. static="false" final="false" visibility="public"
  74230. deprecated="not deprecated">
  74231. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  74232. <param name="value" type="java.lang.Object"/>
  74233. <param name="numPartitions" type="int"/>
  74234. <doc>
  74235. <![CDATA[Use (the specified slice of the array returned by)
  74236. {@link BinaryComparable#getBytes()} to partition.]]>
  74237. </doc>
  74238. </method>
  74239. <doc>
  74240. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  74241. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  74242. <p>The subarray to be used for the partitioning can be defined by means
  74243. of the following properties:
  74244. <ul>
  74245. <li>
  74246. <i>mapred.binary.partitioner.left.offset</i>:
  74247. left offset in array (0 by default)
  74248. </li>
  74249. <li>
  74250. <i>mapred.binary.partitioner.right.offset</i>:
  74251. right offset in array (-1 by default)
  74252. </li>
  74253. </ul>
  74254. Like in Python, both negative and positive offsets are allowed, but
  74255. the meaning is slightly different. In case of an array of length 5,
  74256. for instance, the possible offsets are:
  74257. <pre><code>
  74258. +---+---+---+---+---+
  74259. | B | B | B | B | B |
  74260. +---+---+---+---+---+
  74261. 0 1 2 3 4
  74262. -5 -4 -3 -2 -1
  74263. </code></pre>
  74264. The first row of numbers gives the position of the offsets 0...5 in
  74265. the array; the second row gives the corresponding negative offsets.
  74266. Contrary to Python, the specified subarray has byte <code>i</code>
  74267. and <code>j</code> as first and last element, repectively, when
  74268. <code>i</code> and <code>j</code> are the left and right offset.
  74269. <p>For Hadoop programs written in Java, it is advisable to use one of
  74270. the following static convenience methods for setting the offsets:
  74271. <ul>
  74272. <li>{@link #setOffsets}</li>
  74273. <li>{@link #setLeftOffset}</li>
  74274. <li>{@link #setRightOffset}</li>
  74275. </ul></p>]]>
  74276. </doc>
  74277. </class>
  74278. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  74279. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  74280. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74281. abstract="false"
  74282. static="false" final="false" visibility="public"
  74283. deprecated="not deprecated">
  74284. <constructor name="HashPartitioner"
  74285. static="false" final="false" visibility="public"
  74286. deprecated="not deprecated">
  74287. </constructor>
  74288. <method name="getPartition" return="int"
  74289. abstract="false" native="false" synchronized="false"
  74290. static="false" final="false" visibility="public"
  74291. deprecated="not deprecated">
  74292. <param name="key" type="java.lang.Object"/>
  74293. <param name="value" type="java.lang.Object"/>
  74294. <param name="numReduceTasks" type="int"/>
  74295. <doc>
  74296. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  74297. </doc>
  74298. </method>
  74299. <doc>
  74300. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  74301. </doc>
  74302. </class>
  74303. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  74304. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  74305. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  74306. abstract="false"
  74307. static="false" final="false" visibility="public"
  74308. deprecated="not deprecated">
  74309. <implements name="org.apache.hadoop.util.Tool"/>
  74310. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  74311. static="false" final="false" visibility="public"
  74312. deprecated="not deprecated">
  74313. </constructor>
  74314. <method name="writePartitionFile"
  74315. abstract="false" native="false" synchronized="false"
  74316. static="true" final="false" visibility="public"
  74317. deprecated="not deprecated">
  74318. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74319. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74320. <exception name="IOException" type="java.io.IOException"/>
  74321. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  74322. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74323. <doc>
  74324. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  74325. Queries the sampler for a sample keyset, sorts by the output key
  74326. comparator, selects the keys for each rank, and writes to the destination
  74327. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  74328. </doc>
  74329. </method>
  74330. <method name="run" return="int"
  74331. abstract="false" native="false" synchronized="false"
  74332. static="false" final="false" visibility="public"
  74333. deprecated="not deprecated">
  74334. <param name="args" type="java.lang.String[]"/>
  74335. <exception name="Exception" type="java.lang.Exception"/>
  74336. <doc>
  74337. <![CDATA[Driver for InputSampler from the command line.
  74338. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  74339. </doc>
  74340. </method>
  74341. <method name="main"
  74342. abstract="false" native="false" synchronized="false"
  74343. static="true" final="false" visibility="public"
  74344. deprecated="not deprecated">
  74345. <param name="args" type="java.lang.String[]"/>
  74346. <exception name="Exception" type="java.lang.Exception"/>
  74347. </method>
  74348. <doc>
  74349. <![CDATA[Utility for collecting samples and writing a partition file for
  74350. {@link TotalOrderPartitioner}.]]>
  74351. </doc>
  74352. </class>
  74353. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  74354. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  74355. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  74356. abstract="false"
  74357. static="true" final="false" visibility="public"
  74358. deprecated="not deprecated">
  74359. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74360. <constructor name="InputSampler.IntervalSampler" type="double"
  74361. static="false" final="false" visibility="public"
  74362. deprecated="not deprecated">
  74363. <doc>
  74364. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  74365. @param freq The frequency with which records will be emitted.]]>
  74366. </doc>
  74367. </constructor>
  74368. <constructor name="InputSampler.IntervalSampler" type="double, int"
  74369. static="false" final="false" visibility="public"
  74370. deprecated="not deprecated">
  74371. <doc>
  74372. <![CDATA[Create a new IntervalSampler.
  74373. @param freq The frequency with which records will be emitted.
  74374. @param maxSplitsSampled The maximum number of splits to examine.
  74375. @see #getSample]]>
  74376. </doc>
  74377. </constructor>
  74378. <method name="getSample" return="java.lang.Object[]"
  74379. abstract="false" native="false" synchronized="false"
  74380. static="false" final="false" visibility="public"
  74381. deprecated="not deprecated">
  74382. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74383. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74384. <exception name="IOException" type="java.io.IOException"/>
  74385. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74386. <doc>
  74387. <![CDATA[For each split sampled, emit when the ratio of the number of records
  74388. retained to the total record count is less than the specified
  74389. frequency.]]>
  74390. </doc>
  74391. </method>
  74392. <doc>
  74393. <![CDATA[Sample from s splits at regular intervals.
  74394. Useful for sorted data.]]>
  74395. </doc>
  74396. </class>
  74397. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  74398. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  74399. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  74400. abstract="false"
  74401. static="true" final="false" visibility="public"
  74402. deprecated="not deprecated">
  74403. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74404. <constructor name="InputSampler.RandomSampler" type="double, int"
  74405. static="false" final="false" visibility="public"
  74406. deprecated="not deprecated">
  74407. <doc>
  74408. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  74409. This will read every split at the client, which is very expensive.
  74410. @param freq Probability with which a key will be chosen.
  74411. @param numSamples Total number of samples to obtain from all selected
  74412. splits.]]>
  74413. </doc>
  74414. </constructor>
  74415. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  74416. static="false" final="false" visibility="public"
  74417. deprecated="not deprecated">
  74418. <doc>
  74419. <![CDATA[Create a new RandomSampler.
  74420. @param freq Probability with which a key will be chosen.
  74421. @param numSamples Total number of samples to obtain from all selected
  74422. splits.
  74423. @param maxSplitsSampled The maximum number of splits to examine.]]>
  74424. </doc>
  74425. </constructor>
  74426. <method name="getSample" return="java.lang.Object[]"
  74427. abstract="false" native="false" synchronized="false"
  74428. static="false" final="false" visibility="public"
  74429. deprecated="not deprecated">
  74430. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74431. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74432. <exception name="IOException" type="java.io.IOException"/>
  74433. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74434. <doc>
  74435. <![CDATA[Randomize the split order, then take the specified number of keys from
  74436. each split sampled, where each key is selected with the specified
  74437. probability and possibly replaced by a subsequently selected key when
  74438. the quota of keys from that split is satisfied.]]>
  74439. </doc>
  74440. </method>
  74441. <doc>
  74442. <![CDATA[Sample from random points in the input.
  74443. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  74444. each split.]]>
  74445. </doc>
  74446. </class>
  74447. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  74448. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  74449. <interface name="InputSampler.Sampler" abstract="true"
  74450. static="true" final="false" visibility="public"
  74451. deprecated="not deprecated">
  74452. <method name="getSample" return="java.lang.Object[]"
  74453. abstract="false" native="false" synchronized="false"
  74454. static="false" final="false" visibility="public"
  74455. deprecated="not deprecated">
  74456. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74457. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74458. <exception name="IOException" type="java.io.IOException"/>
  74459. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74460. <doc>
  74461. <![CDATA[For a given job, collect and return a subset of the keys from the
  74462. input data.]]>
  74463. </doc>
  74464. </method>
  74465. <doc>
  74466. <![CDATA[Interface to sample using an
  74467. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  74468. </doc>
  74469. </interface>
  74470. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  74471. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  74472. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  74473. abstract="false"
  74474. static="true" final="false" visibility="public"
  74475. deprecated="not deprecated">
  74476. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74477. <constructor name="InputSampler.SplitSampler" type="int"
  74478. static="false" final="false" visibility="public"
  74479. deprecated="not deprecated">
  74480. <doc>
  74481. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  74482. Takes the first numSamples / numSplits records from each split.
  74483. @param numSamples Total number of samples to obtain from all selected
  74484. splits.]]>
  74485. </doc>
  74486. </constructor>
  74487. <constructor name="InputSampler.SplitSampler" type="int, int"
  74488. static="false" final="false" visibility="public"
  74489. deprecated="not deprecated">
  74490. <doc>
  74491. <![CDATA[Create a new SplitSampler.
  74492. @param numSamples Total number of samples to obtain from all selected
  74493. splits.
  74494. @param maxSplitsSampled The maximum number of splits to examine.]]>
  74495. </doc>
  74496. </constructor>
  74497. <method name="getSample" return="java.lang.Object[]"
  74498. abstract="false" native="false" synchronized="false"
  74499. static="false" final="false" visibility="public"
  74500. deprecated="not deprecated">
  74501. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74502. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74503. <exception name="IOException" type="java.io.IOException"/>
  74504. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74505. <doc>
  74506. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  74507. </doc>
  74508. </method>
  74509. <doc>
  74510. <![CDATA[Samples the first n records from s splits.
  74511. Inexpensive way to sample random data.]]>
  74512. </doc>
  74513. </class>
  74514. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  74515. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  74516. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  74517. abstract="false"
  74518. static="false" final="false" visibility="public"
  74519. deprecated="not deprecated">
  74520. <implements name="org.apache.hadoop.conf.Configurable"/>
  74521. <constructor name="KeyFieldBasedComparator"
  74522. static="false" final="false" visibility="public"
  74523. deprecated="not deprecated">
  74524. </constructor>
  74525. <method name="setConf"
  74526. abstract="false" native="false" synchronized="false"
  74527. static="false" final="false" visibility="public"
  74528. deprecated="not deprecated">
  74529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74530. </method>
  74531. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74532. abstract="false" native="false" synchronized="false"
  74533. static="false" final="false" visibility="public"
  74534. deprecated="not deprecated">
  74535. </method>
  74536. <method name="compare" return="int"
  74537. abstract="false" native="false" synchronized="false"
  74538. static="false" final="false" visibility="public"
  74539. deprecated="not deprecated">
  74540. <param name="b1" type="byte[]"/>
  74541. <param name="s1" type="int"/>
  74542. <param name="l1" type="int"/>
  74543. <param name="b2" type="byte[]"/>
  74544. <param name="s2" type="int"/>
  74545. <param name="l2" type="int"/>
  74546. </method>
  74547. <method name="setKeyFieldComparatorOptions"
  74548. abstract="false" native="false" synchronized="false"
  74549. static="true" final="false" visibility="public"
  74550. deprecated="not deprecated">
  74551. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74552. <param name="keySpec" type="java.lang.String"/>
  74553. <doc>
  74554. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  74555. @param keySpec the key specification of the form -k pos1[,pos2], where,
  74556. pos is of the form f[.c][opts], where f is the number
  74557. of the key field to use, and c is the number of the first character from
  74558. the beginning of the field. Fields and character posns are numbered
  74559. starting with 1; a character position of zero in pos2 indicates the
  74560. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74561. (the beginning of the field); if omitted from pos2, it defaults to 0
  74562. (the end of the field). opts are ordering options. The supported options
  74563. are:
  74564. -n, (Sort numerically)
  74565. -r, (Reverse the result of comparison)]]>
  74566. </doc>
  74567. </method>
  74568. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  74569. abstract="false" native="false" synchronized="false"
  74570. static="true" final="false" visibility="public"
  74571. deprecated="not deprecated">
  74572. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74573. <doc>
  74574. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  74575. </doc>
  74576. </method>
  74577. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  74578. transient="false" volatile="false"
  74579. static="true" final="false" visibility="public"
  74580. deprecated="not deprecated">
  74581. </field>
  74582. <doc>
  74583. <![CDATA[This comparator implementation provides a subset of the features provided
  74584. by the Unix/GNU Sort. In particular, the supported features are:
  74585. -n, (Sort numerically)
  74586. -r, (Reverse the result of comparison)
  74587. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  74588. of the field to use, and c is the number of the first character from the
  74589. beginning of the field. Fields and character posns are numbered starting
  74590. with 1; a character position of zero in pos2 indicates the field's last
  74591. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  74592. of the field); if omitted from pos2, it defaults to 0 (the end of the
  74593. field). opts are ordering options (any of 'nr' as described above).
  74594. We assume that the fields in the key are separated by
  74595. mapreduce.map.output.key.field.separator.]]>
  74596. </doc>
  74597. </class>
  74598. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  74599. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  74600. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74601. abstract="false"
  74602. static="false" final="false" visibility="public"
  74603. deprecated="not deprecated">
  74604. <implements name="org.apache.hadoop.conf.Configurable"/>
  74605. <constructor name="KeyFieldBasedPartitioner"
  74606. static="false" final="false" visibility="public"
  74607. deprecated="not deprecated">
  74608. </constructor>
  74609. <method name="setConf"
  74610. abstract="false" native="false" synchronized="false"
  74611. static="false" final="false" visibility="public"
  74612. deprecated="not deprecated">
  74613. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74614. </method>
  74615. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74616. abstract="false" native="false" synchronized="false"
  74617. static="false" final="false" visibility="public"
  74618. deprecated="not deprecated">
  74619. </method>
  74620. <method name="getPartition" return="int"
  74621. abstract="false" native="false" synchronized="false"
  74622. static="false" final="false" visibility="public"
  74623. deprecated="not deprecated">
  74624. <param name="key" type="java.lang.Object"/>
  74625. <param name="value" type="java.lang.Object"/>
  74626. <param name="numReduceTasks" type="int"/>
  74627. </method>
  74628. <method name="hashCode" return="int"
  74629. abstract="false" native="false" synchronized="false"
  74630. static="false" final="false" visibility="protected"
  74631. deprecated="not deprecated">
  74632. <param name="b" type="byte[]"/>
  74633. <param name="start" type="int"/>
  74634. <param name="end" type="int"/>
  74635. <param name="currentHash" type="int"/>
  74636. </method>
  74637. <method name="getPartition" return="int"
  74638. abstract="false" native="false" synchronized="false"
  74639. static="false" final="false" visibility="protected"
  74640. deprecated="not deprecated">
  74641. <param name="hash" type="int"/>
  74642. <param name="numReduceTasks" type="int"/>
  74643. </method>
  74644. <method name="setKeyFieldPartitionerOptions"
  74645. abstract="false" native="false" synchronized="false"
  74646. static="false" final="false" visibility="public"
  74647. deprecated="not deprecated">
  74648. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74649. <param name="keySpec" type="java.lang.String"/>
  74650. <doc>
  74651. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  74652. {@link Partitioner}
  74653. @param keySpec the key specification of the form -k pos1[,pos2], where,
  74654. pos is of the form f[.c][opts], where f is the number
  74655. of the key field to use, and c is the number of the first character from
  74656. the beginning of the field. Fields and character posns are numbered
  74657. starting with 1; a character position of zero in pos2 indicates the
  74658. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74659. (the beginning of the field); if omitted from pos2, it defaults to 0
  74660. (the end of the field).]]>
  74661. </doc>
  74662. </method>
  74663. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  74664. abstract="false" native="false" synchronized="false"
  74665. static="false" final="false" visibility="public"
  74666. deprecated="not deprecated">
  74667. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74668. <doc>
  74669. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  74670. </doc>
  74671. </method>
  74672. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  74673. transient="false" volatile="false"
  74674. static="true" final="false" visibility="public"
  74675. deprecated="not deprecated">
  74676. </field>
  74677. <doc>
  74678. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  74679. {@link KeyFieldBasedComparator}.
  74680. The key specification supported is of the form -k pos1[,pos2], where,
  74681. pos is of the form f[.c][opts], where f is the number
  74682. of the key field to use, and c is the number of the first character from
  74683. the beginning of the field. Fields and character posns are numbered
  74684. starting with 1; a character position of zero in pos2 indicates the
  74685. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74686. (the beginning of the field); if omitted from pos2, it defaults to 0
  74687. (the end of the field).]]>
  74688. </doc>
  74689. </class>
  74690. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  74691. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  74692. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74693. abstract="false"
  74694. static="false" final="false" visibility="public"
  74695. deprecated="not deprecated">
  74696. <implements name="org.apache.hadoop.conf.Configurable"/>
  74697. <constructor name="TotalOrderPartitioner"
  74698. static="false" final="false" visibility="public"
  74699. deprecated="not deprecated">
  74700. </constructor>
  74701. <method name="setConf"
  74702. abstract="false" native="false" synchronized="false"
  74703. static="false" final="false" visibility="public"
  74704. deprecated="not deprecated">
  74705. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74706. <doc>
  74707. <![CDATA[Read in the partition file and build indexing data structures.
  74708. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  74709. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  74710. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  74711. will be built. Otherwise, keys will be located using a binary search of
  74712. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  74713. defined for this job. The input file must be sorted with the same
  74714. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  74715. </doc>
  74716. </method>
  74717. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74718. abstract="false" native="false" synchronized="false"
  74719. static="false" final="false" visibility="public"
  74720. deprecated="not deprecated">
  74721. </method>
  74722. <method name="getPartition" return="int"
  74723. abstract="false" native="false" synchronized="false"
  74724. static="false" final="false" visibility="public"
  74725. deprecated="not deprecated">
  74726. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  74727. <param name="value" type="java.lang.Object"/>
  74728. <param name="numPartitions" type="int"/>
  74729. </method>
  74730. <method name="setPartitionFile"
  74731. abstract="false" native="false" synchronized="false"
  74732. static="true" final="false" visibility="public"
  74733. deprecated="not deprecated">
  74734. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74735. <param name="p" type="org.apache.hadoop.fs.Path"/>
  74736. <doc>
  74737. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  74738. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  74739. keys in the SequenceFile.]]>
  74740. </doc>
  74741. </method>
  74742. <method name="getPartitionFile" return="java.lang.String"
  74743. abstract="false" native="false" synchronized="false"
  74744. static="true" final="false" visibility="public"
  74745. deprecated="not deprecated">
  74746. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74747. <doc>
  74748. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  74749. @see #setPartitionFile(Configuration, Path)]]>
  74750. </doc>
  74751. </method>
  74752. <field name="DEFAULT_PATH" type="java.lang.String"
  74753. transient="false" volatile="false"
  74754. static="true" final="true" visibility="public"
  74755. deprecated="not deprecated">
  74756. </field>
  74757. <field name="PARTITIONER_PATH" type="java.lang.String"
  74758. transient="false" volatile="false"
  74759. static="true" final="true" visibility="public"
  74760. deprecated="not deprecated">
  74761. </field>
  74762. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  74763. transient="false" volatile="false"
  74764. static="true" final="true" visibility="public"
  74765. deprecated="not deprecated">
  74766. </field>
  74767. <field name="NATURAL_ORDER" type="java.lang.String"
  74768. transient="false" volatile="false"
  74769. static="true" final="true" visibility="public"
  74770. deprecated="not deprecated">
  74771. </field>
  74772. <doc>
  74773. <![CDATA[Partitioner effecting a total order by reading split points from
  74774. an externally generated source.]]>
  74775. </doc>
  74776. </class>
  74777. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  74778. </package>
  74779. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  74780. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  74781. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  74782. abstract="false"
  74783. static="false" final="false" visibility="public"
  74784. deprecated="not deprecated">
  74785. <constructor name="IntSumReducer"
  74786. static="false" final="false" visibility="public"
  74787. deprecated="not deprecated">
  74788. </constructor>
  74789. <method name="reduce"
  74790. abstract="false" native="false" synchronized="false"
  74791. static="false" final="false" visibility="public"
  74792. deprecated="not deprecated">
  74793. <param name="key" type="java.lang.Object"/>
  74794. <param name="values" type="java.lang.Iterable"/>
  74795. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  74796. <exception name="IOException" type="java.io.IOException"/>
  74797. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74798. </method>
  74799. </class>
  74800. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  74801. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  74802. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  74803. abstract="false"
  74804. static="false" final="false" visibility="public"
  74805. deprecated="not deprecated">
  74806. <constructor name="LongSumReducer"
  74807. static="false" final="false" visibility="public"
  74808. deprecated="not deprecated">
  74809. </constructor>
  74810. <method name="reduce"
  74811. abstract="false" native="false" synchronized="false"
  74812. static="false" final="false" visibility="public"
  74813. deprecated="not deprecated">
  74814. <param name="key" type="java.lang.Object"/>
  74815. <param name="values" type="java.lang.Iterable"/>
  74816. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  74817. <exception name="IOException" type="java.io.IOException"/>
  74818. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74819. </method>
  74820. </class>
  74821. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  74822. </package>
  74823. <package name="org.apache.hadoop.mapreduce.security">
  74824. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  74825. <class name="SecureShuffleUtils" extends="java.lang.Object"
  74826. abstract="false"
  74827. static="false" final="false" visibility="public"
  74828. deprecated="not deprecated">
  74829. <constructor name="SecureShuffleUtils"
  74830. static="false" final="false" visibility="public"
  74831. deprecated="not deprecated">
  74832. </constructor>
  74833. <method name="generateHash" return="java.lang.String"
  74834. abstract="false" native="false" synchronized="false"
  74835. static="true" final="false" visibility="public"
  74836. deprecated="not deprecated">
  74837. <param name="msg" type="byte[]"/>
  74838. <param name="key" type="javax.crypto.SecretKey"/>
  74839. <doc>
  74840. <![CDATA[Base64 encoded hash of msg
  74841. @param msg]]>
  74842. </doc>
  74843. </method>
  74844. <method name="hashFromString" return="java.lang.String"
  74845. abstract="false" native="false" synchronized="false"
  74846. static="true" final="false" visibility="public"
  74847. deprecated="not deprecated">
  74848. <param name="enc_str" type="java.lang.String"/>
  74849. <param name="key" type="javax.crypto.SecretKey"/>
  74850. <exception name="IOException" type="java.io.IOException"/>
  74851. <doc>
  74852. <![CDATA[Aux util to calculate hash of a String
  74853. @param enc_str
  74854. @param key
  74855. @return Base64 encodedHash
  74856. @throws IOException]]>
  74857. </doc>
  74858. </method>
  74859. <method name="verifyReply"
  74860. abstract="false" native="false" synchronized="false"
  74861. static="true" final="false" visibility="public"
  74862. deprecated="not deprecated">
  74863. <param name="base64Hash" type="java.lang.String"/>
  74864. <param name="msg" type="java.lang.String"/>
  74865. <param name="key" type="javax.crypto.SecretKey"/>
  74866. <exception name="IOException" type="java.io.IOException"/>
  74867. <doc>
  74868. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  74869. @param base64Hash (Base64 encoded hash)
  74870. @param msg
  74871. @throws IOException if not the same]]>
  74872. </doc>
  74873. </method>
  74874. <method name="buildMsgFrom" return="java.lang.String"
  74875. abstract="false" native="false" synchronized="false"
  74876. static="true" final="false" visibility="public"
  74877. deprecated="not deprecated">
  74878. <param name="url" type="java.net.URL"/>
  74879. <doc>
  74880. <![CDATA[Shuffle specific utils - build string for encoding from URL
  74881. @param url
  74882. @return string for encoding]]>
  74883. </doc>
  74884. </method>
  74885. <method name="buildMsgFrom" return="java.lang.String"
  74886. abstract="false" native="false" synchronized="false"
  74887. static="true" final="false" visibility="public"
  74888. deprecated="not deprecated">
  74889. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  74890. <doc>
  74891. <![CDATA[Shuffle specific utils - build string for encoding from URL
  74892. @param request
  74893. @return string for encoding]]>
  74894. </doc>
  74895. </method>
  74896. <method name="toHex" return="java.lang.String"
  74897. abstract="false" native="false" synchronized="false"
  74898. static="true" final="false" visibility="public"
  74899. deprecated="not deprecated">
  74900. <param name="ba" type="byte[]"/>
  74901. <doc>
  74902. <![CDATA[byte array to Hex String
  74903. @param ba
  74904. @return string with HEX value of the key]]>
  74905. </doc>
  74906. </method>
  74907. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  74908. transient="false" volatile="false"
  74909. static="true" final="true" visibility="public"
  74910. deprecated="not deprecated">
  74911. </field>
  74912. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  74913. transient="false" volatile="false"
  74914. static="true" final="true" visibility="public"
  74915. deprecated="not deprecated">
  74916. </field>
  74917. <doc>
  74918. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  74919. </doc>
  74920. </class>
  74921. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  74922. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  74923. <class name="TokenCache" extends="java.lang.Object"
  74924. abstract="false"
  74925. static="false" final="false" visibility="public"
  74926. deprecated="not deprecated">
  74927. <constructor name="TokenCache"
  74928. static="false" final="false" visibility="public"
  74929. deprecated="not deprecated">
  74930. </constructor>
  74931. <method name="getSecretKey" return="byte[]"
  74932. abstract="false" native="false" synchronized="false"
  74933. static="true" final="false" visibility="public"
  74934. deprecated="not deprecated">
  74935. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74936. <param name="alias" type="org.apache.hadoop.io.Text"/>
  74937. <doc>
  74938. <![CDATA[auxiliary method to get user's secret keys..
  74939. @param alias
  74940. @return secret key from the storage]]>
  74941. </doc>
  74942. </method>
  74943. <method name="obtainTokensForNamenodes"
  74944. abstract="false" native="false" synchronized="false"
  74945. static="true" final="false" visibility="public"
  74946. deprecated="not deprecated">
  74947. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74948. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  74949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74950. <exception name="IOException" type="java.io.IOException"/>
  74951. <doc>
  74952. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  74953. corresponding to the paths passed.
  74954. @param ps array of paths
  74955. @param conf configuration
  74956. @throws IOException]]>
  74957. </doc>
  74958. </method>
  74959. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  74960. abstract="false" native="false" synchronized="false"
  74961. static="true" final="false" visibility="public"
  74962. deprecated="not deprecated">
  74963. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74964. <param name="namenode" type="java.lang.String"/>
  74965. <doc>
  74966. <![CDATA[@param namenode
  74967. @return delegation token]]>
  74968. </doc>
  74969. </method>
  74970. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  74971. abstract="false" native="false" synchronized="false"
  74972. static="true" final="false" visibility="public"
  74973. deprecated="not deprecated">
  74974. <param name="jobTokenFile" type="java.lang.String"/>
  74975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74976. <exception name="IOException" type="java.io.IOException"/>
  74977. <doc>
  74978. <![CDATA[load job token from a file
  74979. @param conf
  74980. @throws IOException]]>
  74981. </doc>
  74982. </method>
  74983. <method name="setJobToken"
  74984. abstract="false" native="false" synchronized="false"
  74985. static="true" final="false" visibility="public"
  74986. deprecated="not deprecated">
  74987. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  74988. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74989. <doc>
  74990. <![CDATA[store job token
  74991. @param t]]>
  74992. </doc>
  74993. </method>
  74994. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  74995. abstract="false" native="false" synchronized="false"
  74996. static="true" final="false" visibility="public"
  74997. deprecated="not deprecated">
  74998. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74999. <doc>
  75000. <![CDATA[@return job token]]>
  75001. </doc>
  75002. </method>
  75003. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  75004. transient="false" volatile="false"
  75005. static="true" final="true" visibility="public"
  75006. deprecated="not deprecated">
  75007. <doc>
  75008. <![CDATA[file name used on HDFS for generated job token]]>
  75009. </doc>
  75010. </field>
  75011. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  75012. transient="false" volatile="false"
  75013. static="true" final="true" visibility="public"
  75014. deprecated="not deprecated">
  75015. <doc>
  75016. <![CDATA[conf setting for job tokens cache file name]]>
  75017. </doc>
  75018. </field>
  75019. <doc>
  75020. <![CDATA[This class provides user facing APIs for transferring secrets from
  75021. the job client to the tasks.
  75022. The secrets can be stored just before submission of jobs and read during
  75023. the task execution.]]>
  75024. </doc>
  75025. </class>
  75026. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  75027. </package>
  75028. <package name="org.apache.hadoop.mapreduce.security.token">
  75029. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  75030. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  75031. abstract="false"
  75032. static="false" final="false" visibility="public"
  75033. deprecated="not deprecated">
  75034. <constructor name="DelegationTokenRenewal"
  75035. static="false" final="false" visibility="public"
  75036. deprecated="not deprecated">
  75037. </constructor>
  75038. <method name="registerDelegationTokensForRenewal"
  75039. abstract="false" native="false" synchronized="true"
  75040. static="true" final="false" visibility="public"
  75041. deprecated="not deprecated">
  75042. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  75043. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  75044. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75045. <exception name="IOException" type="java.io.IOException"/>
  75046. </method>
  75047. <method name="close"
  75048. abstract="false" native="false" synchronized="false"
  75049. static="true" final="false" visibility="public"
  75050. deprecated="not deprecated">
  75051. <doc>
  75052. <![CDATA[removing all tokens renewals]]>
  75053. </doc>
  75054. </method>
  75055. <method name="removeDelegationTokenRenewalForJob"
  75056. abstract="false" native="false" synchronized="false"
  75057. static="true" final="false" visibility="public"
  75058. deprecated="not deprecated">
  75059. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  75060. <doc>
  75061. <![CDATA[removing DT for completed jobs
  75062. @param jobId]]>
  75063. </doc>
  75064. </method>
  75065. <field name="SCHEME" type="java.lang.String"
  75066. transient="false" volatile="false"
  75067. static="true" final="true" visibility="public"
  75068. deprecated="not deprecated">
  75069. </field>
  75070. </class>
  75071. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  75072. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  75073. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  75074. abstract="false"
  75075. static="false" final="false" visibility="public"
  75076. deprecated="not deprecated">
  75077. <constructor name="JobTokenIdentifier"
  75078. static="false" final="false" visibility="public"
  75079. deprecated="not deprecated">
  75080. <doc>
  75081. <![CDATA[Default constructor]]>
  75082. </doc>
  75083. </constructor>
  75084. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  75085. static="false" final="false" visibility="public"
  75086. deprecated="not deprecated">
  75087. <doc>
  75088. <![CDATA[Create a job token identifier from a jobid
  75089. @param jobid the jobid to use]]>
  75090. </doc>
  75091. </constructor>
  75092. <method name="getKind" return="org.apache.hadoop.io.Text"
  75093. abstract="false" native="false" synchronized="false"
  75094. static="false" final="false" visibility="public"
  75095. deprecated="not deprecated">
  75096. <doc>
  75097. <![CDATA[{@inheritDoc}]]>
  75098. </doc>
  75099. </method>
  75100. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  75101. abstract="false" native="false" synchronized="false"
  75102. static="false" final="false" visibility="public"
  75103. deprecated="not deprecated">
  75104. <doc>
  75105. <![CDATA[{@inheritDoc}]]>
  75106. </doc>
  75107. </method>
  75108. <method name="getJobId" return="org.apache.hadoop.io.Text"
  75109. abstract="false" native="false" synchronized="false"
  75110. static="false" final="false" visibility="public"
  75111. deprecated="not deprecated">
  75112. <doc>
  75113. <![CDATA[Get the jobid
  75114. @return the jobid]]>
  75115. </doc>
  75116. </method>
  75117. <method name="readFields"
  75118. abstract="false" native="false" synchronized="false"
  75119. static="false" final="false" visibility="public"
  75120. deprecated="not deprecated">
  75121. <param name="in" type="java.io.DataInput"/>
  75122. <exception name="IOException" type="java.io.IOException"/>
  75123. <doc>
  75124. <![CDATA[{@inheritDoc}]]>
  75125. </doc>
  75126. </method>
  75127. <method name="write"
  75128. abstract="false" native="false" synchronized="false"
  75129. static="false" final="false" visibility="public"
  75130. deprecated="not deprecated">
  75131. <param name="out" type="java.io.DataOutput"/>
  75132. <exception name="IOException" type="java.io.IOException"/>
  75133. <doc>
  75134. <![CDATA[{@inheritDoc}]]>
  75135. </doc>
  75136. </method>
  75137. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  75138. transient="false" volatile="false"
  75139. static="true" final="true" visibility="public"
  75140. deprecated="not deprecated">
  75141. </field>
  75142. <doc>
  75143. <![CDATA[The token identifier for job token]]>
  75144. </doc>
  75145. </class>
  75146. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  75147. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  75148. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  75149. abstract="false"
  75150. static="true" final="false" visibility="public"
  75151. deprecated="not deprecated">
  75152. <constructor name="JobTokenIdentifier.Renewer"
  75153. static="false" final="false" visibility="public"
  75154. deprecated="not deprecated">
  75155. </constructor>
  75156. <method name="getKind" return="org.apache.hadoop.io.Text"
  75157. abstract="false" native="false" synchronized="false"
  75158. static="false" final="false" visibility="protected"
  75159. deprecated="not deprecated">
  75160. </method>
  75161. </class>
  75162. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  75163. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  75164. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  75165. abstract="false"
  75166. static="false" final="false" visibility="public"
  75167. deprecated="not deprecated">
  75168. <constructor name="JobTokenSecretManager"
  75169. static="false" final="false" visibility="public"
  75170. deprecated="not deprecated">
  75171. <doc>
  75172. <![CDATA[Default constructor]]>
  75173. </doc>
  75174. </constructor>
  75175. <method name="createSecretKey" return="javax.crypto.SecretKey"
  75176. abstract="false" native="false" synchronized="false"
  75177. static="true" final="false" visibility="public"
  75178. deprecated="not deprecated">
  75179. <param name="key" type="byte[]"/>
  75180. <doc>
  75181. <![CDATA[Convert the byte[] to a secret key
  75182. @param key the byte[] to create the secret key from
  75183. @return the secret key]]>
  75184. </doc>
  75185. </method>
  75186. <method name="computeHash" return="byte[]"
  75187. abstract="false" native="false" synchronized="false"
  75188. static="true" final="false" visibility="public"
  75189. deprecated="not deprecated">
  75190. <param name="msg" type="byte[]"/>
  75191. <param name="key" type="javax.crypto.SecretKey"/>
  75192. <doc>
  75193. <![CDATA[Compute the HMAC hash of the message using the key
  75194. @param msg the message to hash
  75195. @param key the key to use
  75196. @return the computed hash]]>
  75197. </doc>
  75198. </method>
  75199. <method name="createPassword" return="byte[]"
  75200. abstract="false" native="false" synchronized="false"
  75201. static="false" final="false" visibility="public"
  75202. deprecated="not deprecated">
  75203. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  75204. <doc>
  75205. <![CDATA[Create a new password/secret for the given job token identifier.
  75206. @param identifier the job token identifier
  75207. @return token password/secret]]>
  75208. </doc>
  75209. </method>
  75210. <method name="addTokenForJob"
  75211. abstract="false" native="false" synchronized="false"
  75212. static="false" final="false" visibility="public"
  75213. deprecated="not deprecated">
  75214. <param name="jobId" type="java.lang.String"/>
  75215. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  75216. <doc>
  75217. <![CDATA[Add the job token of a job to cache
  75218. @param jobId the job that owns the token
  75219. @param token the job token]]>
  75220. </doc>
  75221. </method>
  75222. <method name="removeTokenForJob"
  75223. abstract="false" native="false" synchronized="false"
  75224. static="false" final="false" visibility="public"
  75225. deprecated="not deprecated">
  75226. <param name="jobId" type="java.lang.String"/>
  75227. <doc>
  75228. <![CDATA[Remove the cached job token of a job from cache
  75229. @param jobId the job whose token is to be removed]]>
  75230. </doc>
  75231. </method>
  75232. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  75233. abstract="false" native="false" synchronized="false"
  75234. static="false" final="false" visibility="public"
  75235. deprecated="not deprecated">
  75236. <param name="jobId" type="java.lang.String"/>
  75237. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  75238. <doc>
  75239. <![CDATA[Look up the token password/secret for the given jobId.
  75240. @param jobId the jobId to look up
  75241. @return token password/secret as SecretKey
  75242. @throws InvalidToken]]>
  75243. </doc>
  75244. </method>
  75245. <method name="retrievePassword" return="byte[]"
  75246. abstract="false" native="false" synchronized="false"
  75247. static="false" final="false" visibility="public"
  75248. deprecated="not deprecated">
  75249. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  75250. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  75251. <doc>
  75252. <![CDATA[Look up the token password/secret for the given job token identifier.
  75253. @param identifier the job token identifier to look up
  75254. @return token password/secret as byte[]
  75255. @throws InvalidToken]]>
  75256. </doc>
  75257. </method>
  75258. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  75259. abstract="false" native="false" synchronized="false"
  75260. static="false" final="false" visibility="public"
  75261. deprecated="not deprecated">
  75262. <doc>
  75263. <![CDATA[Create an empty job token identifier
  75264. @return a newly created empty job token identifier]]>
  75265. </doc>
  75266. </method>
  75267. <doc>
  75268. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  75269. </doc>
  75270. </class>
  75271. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  75272. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  75273. <class name="JobTokenSelector" extends="java.lang.Object"
  75274. abstract="false"
  75275. static="false" final="false" visibility="public"
  75276. deprecated="not deprecated">
  75277. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  75278. <constructor name="JobTokenSelector"
  75279. static="false" final="false" visibility="public"
  75280. deprecated="not deprecated">
  75281. </constructor>
  75282. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  75283. abstract="false" native="false" synchronized="false"
  75284. static="false" final="false" visibility="public"
  75285. deprecated="not deprecated">
  75286. <param name="service" type="org.apache.hadoop.io.Text"/>
  75287. <param name="tokens" type="java.util.Collection"/>
  75288. </method>
  75289. <doc>
  75290. <![CDATA[Look through tokens to find the first job token that matches the service
  75291. and return it.]]>
  75292. </doc>
  75293. </class>
  75294. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  75295. </package>
  75296. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  75297. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  75298. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  75299. abstract="false"
  75300. static="false" final="false" visibility="public"
  75301. deprecated="not deprecated">
  75302. <constructor name="DelegationTokenIdentifier"
  75303. static="false" final="false" visibility="public"
  75304. deprecated="not deprecated">
  75305. <doc>
  75306. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  75307. </doc>
  75308. </constructor>
  75309. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  75310. static="false" final="false" visibility="public"
  75311. deprecated="not deprecated">
  75312. <doc>
  75313. <![CDATA[Create a new delegation token identifier
  75314. @param owner the effective username of the token owner
  75315. @param renewer the username of the renewer
  75316. @param realUser the real username of the token owner]]>
  75317. </doc>
  75318. </constructor>
  75319. <method name="getKind" return="org.apache.hadoop.io.Text"
  75320. abstract="false" native="false" synchronized="false"
  75321. static="false" final="false" visibility="public"
  75322. deprecated="not deprecated">
  75323. </method>
  75324. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  75325. transient="false" volatile="false"
  75326. static="true" final="true" visibility="public"
  75327. deprecated="not deprecated">
  75328. </field>
  75329. <doc>
  75330. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  75331. </doc>
  75332. </class>
  75333. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  75334. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  75335. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  75336. abstract="false"
  75337. static="false" final="false" visibility="public"
  75338. deprecated="not deprecated">
  75339. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  75340. static="false" final="false" visibility="public"
  75341. deprecated="not deprecated">
  75342. <doc>
  75343. <![CDATA[Create a secret manager
  75344. @param delegationKeyUpdateInterval the number of seconds for rolling new
  75345. secret keys.
  75346. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  75347. tokens
  75348. @param delegationTokenRenewInterval how often the tokens must be renewed
  75349. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  75350. for expired tokens]]>
  75351. </doc>
  75352. </constructor>
  75353. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  75354. abstract="false" native="false" synchronized="false"
  75355. static="false" final="false" visibility="public"
  75356. deprecated="not deprecated">
  75357. </method>
  75358. <doc>
  75359. <![CDATA[A MapReduce specific delegation token secret manager.
  75360. The secret manager is responsible for generating and accepting the password
  75361. for each token.]]>
  75362. </doc>
  75363. </class>
  75364. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  75365. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  75366. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  75367. abstract="false"
  75368. static="false" final="false" visibility="public"
  75369. deprecated="not deprecated">
  75370. <constructor name="DelegationTokenSelector"
  75371. static="false" final="false" visibility="public"
  75372. deprecated="not deprecated">
  75373. </constructor>
  75374. <doc>
  75375. <![CDATA[A delegation token that is specialized for MapReduce]]>
  75376. </doc>
  75377. </class>
  75378. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  75379. </package>
  75380. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  75381. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  75382. <class name="TaskTracker" extends="java.lang.Object"
  75383. abstract="false"
  75384. static="false" final="false" visibility="public"
  75385. deprecated="not deprecated">
  75386. <constructor name="TaskTracker" type="java.lang.String"
  75387. static="false" final="false" visibility="public"
  75388. deprecated="not deprecated">
  75389. <doc>
  75390. <![CDATA[Create a new {@link TaskTracker}.
  75391. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  75392. </doc>
  75393. </constructor>
  75394. <method name="getTrackerName" return="java.lang.String"
  75395. abstract="false" native="false" synchronized="false"
  75396. static="false" final="false" visibility="public"
  75397. deprecated="not deprecated">
  75398. <doc>
  75399. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  75400. @return the unique identifier for the <code>TaskTracker</code>]]>
  75401. </doc>
  75402. </method>
  75403. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  75404. abstract="false" native="false" synchronized="false"
  75405. static="false" final="false" visibility="public"
  75406. deprecated="not deprecated">
  75407. <doc>
  75408. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  75409. @return the current <code>TaskTrackerStatus</code> of the
  75410. <code>TaskTracker</code>]]>
  75411. </doc>
  75412. </method>
  75413. <method name="setStatus"
  75414. abstract="false" native="false" synchronized="false"
  75415. static="false" final="false" visibility="public"
  75416. deprecated="not deprecated">
  75417. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  75418. <doc>
  75419. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  75420. @param status the current <code>TaskTrackerStatus</code> of the
  75421. <code>TaskTracker</code>]]>
  75422. </doc>
  75423. </method>
  75424. <method name="getAvailableSlots" return="int"
  75425. abstract="false" native="false" synchronized="false"
  75426. static="false" final="false" visibility="public"
  75427. deprecated="not deprecated">
  75428. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75429. <doc>
  75430. <![CDATA[Get the number of currently available slots on this tasktracker for the
  75431. given type of the task.
  75432. @param taskType the {@link TaskType} to check for number of available slots
  75433. @return the number of currently available slots for the given
  75434. <code>taskType</code>]]>
  75435. </doc>
  75436. </method>
  75437. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  75438. abstract="false" native="false" synchronized="false"
  75439. static="false" final="false" visibility="public"
  75440. deprecated="not deprecated">
  75441. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75442. <doc>
  75443. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  75444. @param taskType {@link TaskType} of the task
  75445. @return the task for which the fallow slot(s) are held,
  75446. <code>null</code> if there are no fallow slots]]>
  75447. </doc>
  75448. </method>
  75449. <method name="reserveSlots"
  75450. abstract="false" native="false" synchronized="false"
  75451. static="false" final="false" visibility="public"
  75452. deprecated="not deprecated">
  75453. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75454. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  75455. <param name="numSlots" type="int"/>
  75456. <doc>
  75457. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  75458. @param taskType {@link TaskType} of the task
  75459. @param job the job for which slots on this <code>TaskTracker</code>
  75460. are to be reserved
  75461. @param numSlots number of slots to be reserved]]>
  75462. </doc>
  75463. </method>
  75464. <method name="unreserveSlots"
  75465. abstract="false" native="false" synchronized="false"
  75466. static="false" final="false" visibility="public"
  75467. deprecated="not deprecated">
  75468. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75469. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  75470. <doc>
  75471. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  75472. <code>taskType</code>.
  75473. @param taskType {@link TaskType} of the task
  75474. @param job job whose slots are being un-reserved]]>
  75475. </doc>
  75476. </method>
  75477. <method name="cancelAllReservations"
  75478. abstract="false" native="false" synchronized="false"
  75479. static="false" final="false" visibility="public"
  75480. deprecated="not deprecated">
  75481. <doc>
  75482. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  75483. by the JobTracker.
  75484. The method assumes that the lock on the {@link JobTracker} is obtained
  75485. by the caller.]]>
  75486. </doc>
  75487. </method>
  75488. <doc>
  75489. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  75490. the {@link JobTracker}.]]>
  75491. </doc>
  75492. </class>
  75493. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  75494. </package>
  75495. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  75496. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  75497. <class name="JVMInfo" extends="java.lang.Object"
  75498. abstract="false"
  75499. static="false" final="false" visibility="public"
  75500. deprecated="not deprecated">
  75501. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  75502. static="false" final="false" visibility="public"
  75503. deprecated="not deprecated">
  75504. </constructor>
  75505. <method name="getLogLocation" return="java.io.File"
  75506. abstract="false" native="false" synchronized="false"
  75507. static="false" final="false" visibility="public"
  75508. deprecated="not deprecated">
  75509. </method>
  75510. <method name="getAllAttempts" return="java.util.List"
  75511. abstract="false" native="false" synchronized="false"
  75512. static="false" final="false" visibility="public"
  75513. deprecated="not deprecated">
  75514. </method>
  75515. </class>
  75516. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  75517. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  75518. <class name="Localizer" extends="java.lang.Object"
  75519. abstract="false"
  75520. static="false" final="false" visibility="public"
  75521. deprecated="not deprecated">
  75522. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  75523. static="false" final="false" visibility="public"
  75524. deprecated="not deprecated">
  75525. <doc>
  75526. <![CDATA[Create a Localizer instance
  75527. @param fileSys
  75528. @param lDirs]]>
  75529. </doc>
  75530. </constructor>
  75531. <method name="initializeUserDirs"
  75532. abstract="false" native="false" synchronized="false"
  75533. static="false" final="false" visibility="public"
  75534. deprecated="not deprecated">
  75535. <param name="user" type="java.lang.String"/>
  75536. <exception name="IOException" type="java.io.IOException"/>
  75537. <doc>
  75538. <![CDATA[Initialize the local directories for a particular user on this TT. This
  75539. involves creation and setting permissions of the following directories
  75540. <ul>
  75541. <li>$mapred.local.dir/taskTracker/$user</li>
  75542. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  75543. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  75544. </ul>
  75545. @param user
  75546. @throws IOException]]>
  75547. </doc>
  75548. </method>
  75549. <method name="initializeAttemptDirs"
  75550. abstract="false" native="false" synchronized="false"
  75551. static="false" final="false" visibility="public"
  75552. deprecated="not deprecated">
  75553. <param name="user" type="java.lang.String"/>
  75554. <param name="jobId" type="java.lang.String"/>
  75555. <param name="attemptId" type="java.lang.String"/>
  75556. <exception name="IOException" type="java.io.IOException"/>
  75557. <doc>
  75558. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  75559. LinuxTaskController is in use, child might wish to balance load across
  75560. disks but cannot itself create attempt directory because of the fact that
  75561. job directory is writable only by the TT.
  75562. @param user
  75563. @param jobId
  75564. @param attemptId
  75565. @throws IOException]]>
  75566. </doc>
  75567. </method>
  75568. <doc>
  75569. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  75570. </doc>
  75571. </class>
  75572. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  75573. </package>
  75574. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  75575. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  75576. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75577. abstract="false"
  75578. static="false" final="false" visibility="public"
  75579. deprecated="not deprecated">
  75580. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  75581. static="false" final="false" visibility="public"
  75582. deprecated="not deprecated">
  75583. <doc>
  75584. <![CDATA[Create the event to delete job log directory.
  75585. @param jobid
  75586. The {@link JobID} whose logs should be deleted.]]>
  75587. </doc>
  75588. </constructor>
  75589. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75590. abstract="false" native="false" synchronized="false"
  75591. static="false" final="false" visibility="public"
  75592. deprecated="not deprecated">
  75593. <doc>
  75594. <![CDATA[Get the jobid.
  75595. @return object of {@link JobID}]]>
  75596. </doc>
  75597. </method>
  75598. <doc>
  75599. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  75600. </doc>
  75601. </class>
  75602. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  75603. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  75604. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75605. abstract="false"
  75606. static="false" final="false" visibility="public"
  75607. deprecated="not deprecated">
  75608. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  75609. static="false" final="false" visibility="public"
  75610. deprecated="not deprecated">
  75611. <doc>
  75612. <![CDATA[Create the event for job completion.
  75613. @param jobid
  75614. The completed {@link JobID} .
  75615. @param jobCompletionTime
  75616. The job completion time.
  75617. @param retainHours
  75618. The number of hours for which the job logs should be retained]]>
  75619. </doc>
  75620. </constructor>
  75621. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75622. abstract="false" native="false" synchronized="false"
  75623. static="false" final="false" visibility="public"
  75624. deprecated="not deprecated">
  75625. <doc>
  75626. <![CDATA[Get the job id.
  75627. @return object of {@link JobID}]]>
  75628. </doc>
  75629. </method>
  75630. <method name="getJobCompletionTime" return="long"
  75631. abstract="false" native="false" synchronized="false"
  75632. static="false" final="false" visibility="public"
  75633. deprecated="not deprecated">
  75634. <doc>
  75635. <![CDATA[Get the job completion time-stamp in milli-seconds.
  75636. @return job completion time.]]>
  75637. </doc>
  75638. </method>
  75639. <method name="getRetainHours" return="int"
  75640. abstract="false" native="false" synchronized="false"
  75641. static="false" final="false" visibility="public"
  75642. deprecated="not deprecated">
  75643. <doc>
  75644. <![CDATA[Get the number of hours for which job logs should be retained.
  75645. @return retainHours]]>
  75646. </doc>
  75647. </method>
  75648. <doc>
  75649. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  75650. </doc>
  75651. </class>
  75652. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  75653. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  75654. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75655. abstract="false"
  75656. static="false" final="false" visibility="public"
  75657. deprecated="not deprecated">
  75658. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  75659. static="false" final="false" visibility="public"
  75660. deprecated="not deprecated">
  75661. <doc>
  75662. <![CDATA[Create the event to inform the job has started.
  75663. @param jobid
  75664. The {@link JobID} which started]]>
  75665. </doc>
  75666. </constructor>
  75667. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75668. abstract="false" native="false" synchronized="false"
  75669. static="false" final="false" visibility="public"
  75670. deprecated="not deprecated">
  75671. <doc>
  75672. <![CDATA[Get the job id.
  75673. @return object of {@link JobID}]]>
  75674. </doc>
  75675. </method>
  75676. <doc>
  75677. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  75678. </doc>
  75679. </class>
  75680. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  75681. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  75682. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75683. abstract="false"
  75684. static="false" final="false" visibility="public"
  75685. deprecated="not deprecated">
  75686. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  75687. static="false" final="false" visibility="public"
  75688. deprecated="not deprecated">
  75689. <doc>
  75690. <![CDATA[Create the event to inform that the jvm has finished.
  75691. @param jvmInfo
  75692. The finished {@link JVMInfo}]]>
  75693. </doc>
  75694. </constructor>
  75695. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  75696. abstract="false" native="false" synchronized="false"
  75697. static="false" final="false" visibility="public"
  75698. deprecated="not deprecated">
  75699. <doc>
  75700. <![CDATA[Get the jvm info.
  75701. @return object of {@link JVMInfo}]]>
  75702. </doc>
  75703. </method>
  75704. <doc>
  75705. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  75706. </doc>
  75707. </class>
  75708. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  75709. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  75710. <class name="UserLogEvent" extends="java.lang.Object"
  75711. abstract="true"
  75712. static="false" final="false" visibility="public"
  75713. deprecated="not deprecated">
  75714. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75715. static="false" final="false" visibility="protected"
  75716. deprecated="not deprecated">
  75717. </constructor>
  75718. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75719. abstract="false" native="false" synchronized="false"
  75720. static="false" final="false" visibility="public"
  75721. deprecated="not deprecated">
  75722. <doc>
  75723. <![CDATA[Return the {@link EventType}.
  75724. @return the {@link EventType}.]]>
  75725. </doc>
  75726. </method>
  75727. <doc>
  75728. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  75729. {@link UserLogManager} to inform about an event.]]>
  75730. </doc>
  75731. </class>
  75732. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  75733. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  75734. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  75735. abstract="false"
  75736. static="true" final="true" visibility="public"
  75737. deprecated="not deprecated">
  75738. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  75739. abstract="false" native="false" synchronized="false"
  75740. static="true" final="false" visibility="public"
  75741. deprecated="not deprecated">
  75742. </method>
  75743. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75744. abstract="false" native="false" synchronized="false"
  75745. static="true" final="false" visibility="public"
  75746. deprecated="not deprecated">
  75747. <param name="name" type="java.lang.String"/>
  75748. </method>
  75749. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75750. transient="false" volatile="false"
  75751. static="true" final="true" visibility="public"
  75752. deprecated="not deprecated">
  75753. </field>
  75754. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75755. transient="false" volatile="false"
  75756. static="true" final="true" visibility="public"
  75757. deprecated="not deprecated">
  75758. </field>
  75759. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75760. transient="false" volatile="false"
  75761. static="true" final="true" visibility="public"
  75762. deprecated="not deprecated">
  75763. </field>
  75764. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75765. transient="false" volatile="false"
  75766. static="true" final="true" visibility="public"
  75767. deprecated="not deprecated">
  75768. </field>
  75769. </class>
  75770. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  75771. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  75772. <class name="UserLogManager" extends="java.lang.Object"
  75773. abstract="false"
  75774. static="false" final="false" visibility="public"
  75775. deprecated="not deprecated">
  75776. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  75777. static="false" final="false" visibility="public"
  75778. deprecated="not deprecated">
  75779. <exception name="IOException" type="java.io.IOException"/>
  75780. <doc>
  75781. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  75782. It should be explicitly started using {@link #start()} to start functioning
  75783. @param conf The {@link Configuration}
  75784. @param taskController The task controller to delete the log files
  75785. @throws IOException]]>
  75786. </doc>
  75787. </constructor>
  75788. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  75789. static="false" final="false" visibility="public"
  75790. deprecated="not deprecated">
  75791. <exception name="IOException" type="java.io.IOException"/>
  75792. <doc>
  75793. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  75794. This constructor is there mainly for unit tests.
  75795. @param conf The {@link Configuration}
  75796. @throws IOException]]>
  75797. </doc>
  75798. </constructor>
  75799. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  75800. abstract="false" native="false" synchronized="false"
  75801. static="false" final="false" visibility="public"
  75802. deprecated="not deprecated">
  75803. <doc>
  75804. <![CDATA[Get the taskController for deleting logs.
  75805. @return the TaskController]]>
  75806. </doc>
  75807. </method>
  75808. <method name="start"
  75809. abstract="false" native="false" synchronized="false"
  75810. static="false" final="false" visibility="public"
  75811. deprecated="not deprecated">
  75812. <doc>
  75813. <![CDATA[Starts managing the logs]]>
  75814. </doc>
  75815. </method>
  75816. <method name="monitor"
  75817. abstract="false" native="false" synchronized="false"
  75818. static="false" final="false" visibility="protected"
  75819. deprecated="not deprecated">
  75820. <exception name="Exception" type="java.lang.Exception"/>
  75821. </method>
  75822. <method name="processEvent"
  75823. abstract="false" native="false" synchronized="false"
  75824. static="false" final="false" visibility="protected"
  75825. deprecated="not deprecated">
  75826. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  75827. <exception name="IOException" type="java.io.IOException"/>
  75828. </method>
  75829. <method name="clearOldUserLogs"
  75830. abstract="false" native="false" synchronized="false"
  75831. static="false" final="false" visibility="public"
  75832. deprecated="not deprecated">
  75833. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75834. <exception name="IOException" type="java.io.IOException"/>
  75835. <doc>
  75836. <![CDATA[Called during TaskTracker restart/re-init.
  75837. @param conf
  75838. TT's conf
  75839. @throws IOException]]>
  75840. </doc>
  75841. </method>
  75842. <method name="addLogEvent"
  75843. abstract="false" native="false" synchronized="false"
  75844. static="false" final="false" visibility="public"
  75845. deprecated="not deprecated">
  75846. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  75847. <doc>
  75848. <![CDATA[Add the {@link UserLogEvent} for processing.
  75849. @param event]]>
  75850. </doc>
  75851. </method>
  75852. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  75853. abstract="false" native="false" synchronized="false"
  75854. static="false" final="false" visibility="public"
  75855. deprecated="not deprecated">
  75856. <doc>
  75857. <![CDATA[Get {@link UserLogCleaner}.
  75858. This method is called only from unit tests.
  75859. @return {@link UserLogCleaner}]]>
  75860. </doc>
  75861. </method>
  75862. <doc>
  75863. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  75864. </doc>
  75865. </class>
  75866. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  75867. </package>
  75868. <package name="org.apache.hadoop.mapreduce.split">
  75869. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  75870. <class name="JobSplit" extends="java.lang.Object"
  75871. abstract="false"
  75872. static="false" final="false" visibility="public"
  75873. deprecated="not deprecated">
  75874. <constructor name="JobSplit"
  75875. static="false" final="false" visibility="public"
  75876. deprecated="not deprecated">
  75877. </constructor>
  75878. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  75879. transient="false" volatile="false"
  75880. static="true" final="true" visibility="public"
  75881. deprecated="not deprecated">
  75882. </field>
  75883. <doc>
  75884. <![CDATA[This class groups the fundamental classes associated with
  75885. reading/writing splits. The split information is divided into
  75886. two parts based on the consumer of the information. The two
  75887. parts are the split meta information, and the raw split
  75888. information. The first part is consumed by the JobTracker to
  75889. create the tasks' locality data structures. The second part is
  75890. used by the maps at runtime to know what to do!
  75891. These pieces of information are written to two separate files.
  75892. The metainformation file is slurped by the JobTracker during
  75893. job initialization. A map task gets the meta information during
  75894. the launch and it reads the raw split bytes directly from the
  75895. file.]]>
  75896. </doc>
  75897. </class>
  75898. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  75899. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  75900. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  75901. abstract="false"
  75902. static="true" final="false" visibility="public"
  75903. deprecated="not deprecated">
  75904. <implements name="org.apache.hadoop.io.Writable"/>
  75905. <constructor name="JobSplit.SplitMetaInfo"
  75906. static="false" final="false" visibility="public"
  75907. deprecated="not deprecated">
  75908. </constructor>
  75909. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  75910. static="false" final="false" visibility="public"
  75911. deprecated="not deprecated">
  75912. </constructor>
  75913. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  75914. static="false" final="false" visibility="public"
  75915. deprecated="not deprecated">
  75916. <exception name="IOException" type="java.io.IOException"/>
  75917. </constructor>
  75918. <method name="getLocations" return="java.lang.String[]"
  75919. abstract="false" native="false" synchronized="false"
  75920. static="false" final="false" visibility="public"
  75921. deprecated="not deprecated">
  75922. </method>
  75923. <method name="getStartOffset" return="long"
  75924. abstract="false" native="false" synchronized="false"
  75925. static="false" final="false" visibility="public"
  75926. deprecated="not deprecated">
  75927. </method>
  75928. <method name="getInputDataLength" return="long"
  75929. abstract="false" native="false" synchronized="false"
  75930. static="false" final="false" visibility="public"
  75931. deprecated="not deprecated">
  75932. </method>
  75933. <method name="setInputDataLocations"
  75934. abstract="false" native="false" synchronized="false"
  75935. static="false" final="false" visibility="public"
  75936. deprecated="not deprecated">
  75937. <param name="locations" type="java.lang.String[]"/>
  75938. </method>
  75939. <method name="setInputDataLength"
  75940. abstract="false" native="false" synchronized="false"
  75941. static="false" final="false" visibility="public"
  75942. deprecated="not deprecated">
  75943. <param name="length" type="long"/>
  75944. </method>
  75945. <method name="readFields"
  75946. abstract="false" native="false" synchronized="false"
  75947. static="false" final="false" visibility="public"
  75948. deprecated="not deprecated">
  75949. <param name="in" type="java.io.DataInput"/>
  75950. <exception name="IOException" type="java.io.IOException"/>
  75951. </method>
  75952. <method name="write"
  75953. abstract="false" native="false" synchronized="false"
  75954. static="false" final="false" visibility="public"
  75955. deprecated="not deprecated">
  75956. <param name="out" type="java.io.DataOutput"/>
  75957. <exception name="IOException" type="java.io.IOException"/>
  75958. </method>
  75959. <method name="toString" return="java.lang.String"
  75960. abstract="false" native="false" synchronized="false"
  75961. static="false" final="false" visibility="public"
  75962. deprecated="not deprecated">
  75963. </method>
  75964. <doc>
  75965. <![CDATA[This represents the meta information about the task split.
  75966. The main fields are
  75967. - start offset in actual split
  75968. - data length that will be processed in this split
  75969. - hosts on which this split is local]]>
  75970. </doc>
  75971. </class>
  75972. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  75973. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  75974. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  75975. abstract="false"
  75976. static="true" final="false" visibility="public"
  75977. deprecated="not deprecated">
  75978. <constructor name="JobSplit.TaskSplitIndex"
  75979. static="false" final="false" visibility="public"
  75980. deprecated="not deprecated">
  75981. </constructor>
  75982. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  75983. static="false" final="false" visibility="public"
  75984. deprecated="not deprecated">
  75985. </constructor>
  75986. <method name="getStartOffset" return="long"
  75987. abstract="false" native="false" synchronized="false"
  75988. static="false" final="false" visibility="public"
  75989. deprecated="not deprecated">
  75990. </method>
  75991. <method name="getSplitLocation" return="java.lang.String"
  75992. abstract="false" native="false" synchronized="false"
  75993. static="false" final="false" visibility="public"
  75994. deprecated="not deprecated">
  75995. </method>
  75996. <method name="readFields"
  75997. abstract="false" native="false" synchronized="false"
  75998. static="false" final="false" visibility="public"
  75999. deprecated="not deprecated">
  76000. <param name="in" type="java.io.DataInput"/>
  76001. <exception name="IOException" type="java.io.IOException"/>
  76002. </method>
  76003. <method name="write"
  76004. abstract="false" native="false" synchronized="false"
  76005. static="false" final="false" visibility="public"
  76006. deprecated="not deprecated">
  76007. <param name="out" type="java.io.DataOutput"/>
  76008. <exception name="IOException" type="java.io.IOException"/>
  76009. </method>
  76010. <doc>
  76011. <![CDATA[This represents the meta information about the task split that the
  76012. task gets]]>
  76013. </doc>
  76014. </class>
  76015. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  76016. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  76017. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  76018. abstract="false"
  76019. static="true" final="false" visibility="public"
  76020. deprecated="not deprecated">
  76021. <constructor name="JobSplit.TaskSplitMetaInfo"
  76022. static="false" final="false" visibility="public"
  76023. deprecated="not deprecated">
  76024. </constructor>
  76025. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  76026. static="false" final="false" visibility="public"
  76027. deprecated="not deprecated">
  76028. </constructor>
  76029. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  76030. static="false" final="false" visibility="public"
  76031. deprecated="not deprecated">
  76032. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76033. <exception name="IOException" type="java.io.IOException"/>
  76034. </constructor>
  76035. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  76036. static="false" final="false" visibility="public"
  76037. deprecated="not deprecated">
  76038. </constructor>
  76039. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  76040. abstract="false" native="false" synchronized="false"
  76041. static="false" final="false" visibility="public"
  76042. deprecated="not deprecated">
  76043. </method>
  76044. <method name="getSplitLocation" return="java.lang.String"
  76045. abstract="false" native="false" synchronized="false"
  76046. static="false" final="false" visibility="public"
  76047. deprecated="not deprecated">
  76048. </method>
  76049. <method name="getInputDataLength" return="long"
  76050. abstract="false" native="false" synchronized="false"
  76051. static="false" final="false" visibility="public"
  76052. deprecated="not deprecated">
  76053. </method>
  76054. <method name="getLocations" return="java.lang.String[]"
  76055. abstract="false" native="false" synchronized="false"
  76056. static="false" final="false" visibility="public"
  76057. deprecated="not deprecated">
  76058. </method>
  76059. <method name="getStartOffset" return="long"
  76060. abstract="false" native="false" synchronized="false"
  76061. static="false" final="false" visibility="public"
  76062. deprecated="not deprecated">
  76063. </method>
  76064. <doc>
  76065. <![CDATA[This represents the meta information about the task split that the
  76066. JobTracker creates]]>
  76067. </doc>
  76068. </class>
  76069. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  76070. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  76071. <class name="JobSplitWriter" extends="java.lang.Object"
  76072. abstract="false"
  76073. static="false" final="false" visibility="public"
  76074. deprecated="not deprecated">
  76075. <constructor name="JobSplitWriter"
  76076. static="false" final="false" visibility="public"
  76077. deprecated="not deprecated">
  76078. </constructor>
  76079. <method name="createSplitFiles"
  76080. abstract="false" native="false" synchronized="false"
  76081. static="true" final="false" visibility="public"
  76082. deprecated="not deprecated">
  76083. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76084. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76085. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76086. <param name="splits" type="java.util.List"/>
  76087. <exception name="IOException" type="java.io.IOException"/>
  76088. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76089. </method>
  76090. <method name="createSplitFiles"
  76091. abstract="false" native="false" synchronized="false"
  76092. static="true" final="false" visibility="public"
  76093. deprecated="not deprecated">
  76094. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76095. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76096. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76097. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  76098. <exception name="IOException" type="java.io.IOException"/>
  76099. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76100. </method>
  76101. <method name="createSplitFiles"
  76102. abstract="false" native="false" synchronized="false"
  76103. static="true" final="false" visibility="public"
  76104. deprecated="not deprecated">
  76105. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76106. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76107. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76108. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  76109. <exception name="IOException" type="java.io.IOException"/>
  76110. </method>
  76111. <doc>
  76112. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  76113. and the raw bytes parts)]]>
  76114. </doc>
  76115. </class>
  76116. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  76117. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  76118. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  76119. abstract="false"
  76120. static="false" final="false" visibility="public"
  76121. deprecated="not deprecated">
  76122. <constructor name="SplitMetaInfoReader"
  76123. static="false" final="false" visibility="public"
  76124. deprecated="not deprecated">
  76125. </constructor>
  76126. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  76127. abstract="false" native="false" synchronized="false"
  76128. static="true" final="false" visibility="public"
  76129. deprecated="not deprecated">
  76130. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76131. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76132. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76133. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76134. <exception name="IOException" type="java.io.IOException"/>
  76135. </method>
  76136. <doc>
  76137. <![CDATA[A (internal) utility that reads the split meta info and creates
  76138. split meta info objects]]>
  76139. </doc>
  76140. </class>
  76141. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  76142. </package>
  76143. <package name="org.apache.hadoop.tools">
  76144. <!-- start class org.apache.hadoop.tools.DistCh -->
  76145. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  76146. abstract="false"
  76147. static="false" final="false" visibility="public"
  76148. deprecated="not deprecated">
  76149. <method name="run" return="int"
  76150. abstract="false" native="false" synchronized="false"
  76151. static="false" final="false" visibility="public"
  76152. deprecated="not deprecated">
  76153. <param name="args" type="java.lang.String[]"/>
  76154. <exception name="Exception" type="java.lang.Exception"/>
  76155. <doc>
  76156. <![CDATA[This is the main driver for recursively changing files properties.]]>
  76157. </doc>
  76158. </method>
  76159. <method name="main"
  76160. abstract="false" native="false" synchronized="false"
  76161. static="true" final="false" visibility="public"
  76162. deprecated="not deprecated">
  76163. <param name="args" type="java.lang.String[]"/>
  76164. <exception name="Exception" type="java.lang.Exception"/>
  76165. </method>
  76166. <doc>
  76167. <![CDATA[A Map-reduce program to recursively change files properties
  76168. such as owner, group and permission.]]>
  76169. </doc>
  76170. </class>
  76171. <!-- end class org.apache.hadoop.tools.DistCh -->
  76172. <!-- start class org.apache.hadoop.tools.DistCp -->
  76173. <class name="DistCp" extends="java.lang.Object"
  76174. abstract="false"
  76175. static="false" final="false" visibility="public"
  76176. deprecated="not deprecated">
  76177. <implements name="org.apache.hadoop.util.Tool"/>
  76178. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  76179. static="false" final="false" visibility="public"
  76180. deprecated="not deprecated">
  76181. </constructor>
  76182. <method name="setConf"
  76183. abstract="false" native="false" synchronized="false"
  76184. static="false" final="false" visibility="public"
  76185. deprecated="not deprecated">
  76186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76187. </method>
  76188. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76189. abstract="false" native="false" synchronized="false"
  76190. static="false" final="false" visibility="public"
  76191. deprecated="not deprecated">
  76192. </method>
  76193. <method name="copy"
  76194. abstract="false" native="false" synchronized="false"
  76195. static="true" final="false" visibility="public"
  76196. deprecated="not deprecated">
  76197. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76198. <param name="srcPath" type="java.lang.String"/>
  76199. <param name="destPath" type="java.lang.String"/>
  76200. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  76201. <param name="srcAsList" type="boolean"/>
  76202. <param name="ignoreReadFailures" type="boolean"/>
  76203. <exception name="IOException" type="java.io.IOException"/>
  76204. </method>
  76205. <method name="run" return="int"
  76206. abstract="false" native="false" synchronized="false"
  76207. static="false" final="false" visibility="public"
  76208. deprecated="not deprecated">
  76209. <param name="args" type="java.lang.String[]"/>
  76210. <doc>
  76211. <![CDATA[This is the main driver for recursively copying directories
  76212. across file systems. It takes at least two cmdline parameters. A source
  76213. URL and a destination URL. It then essentially does an "ls -lR" on the
  76214. source URL, and writes the output in a round-robin manner to all the map
  76215. input files. The mapper actually copies the files allotted to it. The
  76216. reduce is empty.]]>
  76217. </doc>
  76218. </method>
  76219. <method name="main"
  76220. abstract="false" native="false" synchronized="false"
  76221. static="true" 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. </method>
  76226. <method name="getRandomId" return="java.lang.String"
  76227. abstract="false" native="false" synchronized="false"
  76228. static="true" final="false" visibility="public"
  76229. deprecated="not deprecated">
  76230. </method>
  76231. <field name="LOG" type="org.apache.commons.logging.Log"
  76232. transient="false" volatile="false"
  76233. static="true" final="true" visibility="public"
  76234. deprecated="not deprecated">
  76235. </field>
  76236. <doc>
  76237. <![CDATA[A Map-reduce program to recursively copy directories between
  76238. different file-systems.]]>
  76239. </doc>
  76240. </class>
  76241. <!-- end class org.apache.hadoop.tools.DistCp -->
  76242. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  76243. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  76244. abstract="false"
  76245. static="true" final="false" visibility="public"
  76246. deprecated="not deprecated">
  76247. <field name="ERROR_CODE" type="int"
  76248. transient="false" volatile="false"
  76249. static="true" final="true" visibility="public"
  76250. deprecated="not deprecated">
  76251. <doc>
  76252. <![CDATA[Error code for this exception]]>
  76253. </doc>
  76254. </field>
  76255. <doc>
  76256. <![CDATA[An exception class for duplicated source files.]]>
  76257. </doc>
  76258. </class>
  76259. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  76260. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  76261. <class name="HadoopArchives" extends="java.lang.Object"
  76262. abstract="false"
  76263. static="false" final="false" visibility="public"
  76264. deprecated="not deprecated">
  76265. <implements name="org.apache.hadoop.util.Tool"/>
  76266. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  76267. static="false" final="false" visibility="public"
  76268. deprecated="not deprecated">
  76269. </constructor>
  76270. <method name="setConf"
  76271. abstract="false" native="false" synchronized="false"
  76272. static="false" final="false" visibility="public"
  76273. deprecated="not deprecated">
  76274. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76275. </method>
  76276. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76277. abstract="false" native="false" synchronized="false"
  76278. static="false" final="false" visibility="public"
  76279. deprecated="not deprecated">
  76280. </method>
  76281. <method name="run" return="int"
  76282. abstract="false" native="false" synchronized="false"
  76283. static="false" final="false" visibility="public"
  76284. deprecated="not deprecated">
  76285. <param name="args" type="java.lang.String[]"/>
  76286. <exception name="Exception" type="java.lang.Exception"/>
  76287. <doc>
  76288. <![CDATA[the main driver for creating the archives
  76289. it takes at least three command line parameters. The parent path,
  76290. The src and the dest. It does an lsr on the source paths.
  76291. The mapper created archuves and the reducer creates
  76292. the archive index.]]>
  76293. </doc>
  76294. </method>
  76295. <method name="main"
  76296. abstract="false" native="false" synchronized="false"
  76297. static="true" final="false" visibility="public"
  76298. deprecated="not deprecated">
  76299. <param name="args" type="java.lang.String[]"/>
  76300. <doc>
  76301. <![CDATA[the main functions]]>
  76302. </doc>
  76303. </method>
  76304. <field name="VERSION" type="int"
  76305. transient="false" volatile="false"
  76306. static="true" final="true" visibility="public"
  76307. deprecated="not deprecated">
  76308. </field>
  76309. <doc>
  76310. <![CDATA[a archive creation utility.
  76311. This class provides methods that can be used
  76312. to create hadoop archives. For understanding of
  76313. Hadoop archives look at {@link HarFileSystem}.]]>
  76314. </doc>
  76315. </class>
  76316. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  76317. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  76318. <class name="Logalyzer" extends="java.lang.Object"
  76319. abstract="false"
  76320. static="false" final="false" visibility="public"
  76321. deprecated="not deprecated">
  76322. <constructor name="Logalyzer"
  76323. static="false" final="false" visibility="public"
  76324. deprecated="not deprecated">
  76325. </constructor>
  76326. <method name="doArchive"
  76327. abstract="false" native="false" synchronized="false"
  76328. static="false" final="false" visibility="public"
  76329. deprecated="not deprecated">
  76330. <param name="logListURI" type="java.lang.String"/>
  76331. <param name="archiveDirectory" type="java.lang.String"/>
  76332. <exception name="IOException" type="java.io.IOException"/>
  76333. <doc>
  76334. <![CDATA[doArchive: Workhorse function to archive log-files.
  76335. @param logListURI : The uri which will serve list of log-files to archive.
  76336. @param archiveDirectory : The directory to store archived logfiles.
  76337. @throws IOException]]>
  76338. </doc>
  76339. </method>
  76340. <method name="doAnalyze"
  76341. abstract="false" native="false" synchronized="false"
  76342. static="false" final="false" visibility="public"
  76343. deprecated="not deprecated">
  76344. <param name="inputFilesDirectory" type="java.lang.String"/>
  76345. <param name="outputDirectory" type="java.lang.String"/>
  76346. <param name="grepPattern" type="java.lang.String"/>
  76347. <param name="sortColumns" type="java.lang.String"/>
  76348. <param name="columnSeparator" type="java.lang.String"/>
  76349. <exception name="IOException" type="java.io.IOException"/>
  76350. <doc>
  76351. <![CDATA[doAnalyze:
  76352. @param inputFilesDirectory : Directory containing the files to be analyzed.
  76353. @param outputDirectory : Directory to store analysis (output).
  76354. @param grepPattern : Pattern to *grep* for.
  76355. @param sortColumns : Sort specification for output.
  76356. @param columnSeparator : Column separator.
  76357. @throws IOException]]>
  76358. </doc>
  76359. </method>
  76360. <method name="main"
  76361. abstract="false" native="false" synchronized="false"
  76362. static="true" final="false" visibility="public"
  76363. deprecated="not deprecated">
  76364. <param name="args" type="java.lang.String[]"/>
  76365. </method>
  76366. <doc>
  76367. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  76368. <p>
  76369. This tool supports archiving and anaylzing (sort/grep) of log-files.
  76370. It takes as input
  76371. a) Input uri which will serve uris of the logs to be archived.
  76372. b) Output directory (not mandatory).
  76373. b) Directory on dfs to archive the logs.
  76374. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  76375. Usage:
  76376. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  76377. <p>]]>
  76378. </doc>
  76379. </class>
  76380. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  76381. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  76382. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  76383. abstract="false"
  76384. static="true" final="false" visibility="public"
  76385. deprecated="not deprecated">
  76386. <implements name="org.apache.hadoop.conf.Configurable"/>
  76387. <constructor name="Logalyzer.LogComparator"
  76388. static="false" final="false" visibility="public"
  76389. deprecated="not deprecated">
  76390. </constructor>
  76391. <method name="setConf"
  76392. abstract="false" native="false" synchronized="false"
  76393. static="false" final="false" visibility="public"
  76394. deprecated="not deprecated">
  76395. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76396. </method>
  76397. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76398. abstract="false" native="false" synchronized="false"
  76399. static="false" final="false" visibility="public"
  76400. deprecated="not deprecated">
  76401. </method>
  76402. <method name="compare" return="int"
  76403. abstract="false" native="false" synchronized="false"
  76404. static="false" final="false" visibility="public"
  76405. deprecated="not deprecated">
  76406. <param name="b1" type="byte[]"/>
  76407. <param name="s1" type="int"/>
  76408. <param name="l1" type="int"/>
  76409. <param name="b2" type="byte[]"/>
  76410. <param name="s2" type="int"/>
  76411. <param name="l2" type="int"/>
  76412. </method>
  76413. <doc>
  76414. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  76415. </doc>
  76416. </class>
  76417. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  76418. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  76419. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  76420. abstract="false"
  76421. static="true" final="false" visibility="public"
  76422. deprecated="not deprecated">
  76423. <implements name="org.apache.hadoop.mapred.Mapper"/>
  76424. <constructor name="Logalyzer.LogRegexMapper"
  76425. static="false" final="false" visibility="public"
  76426. deprecated="not deprecated">
  76427. </constructor>
  76428. <method name="configure"
  76429. abstract="false" native="false" synchronized="false"
  76430. static="false" final="false" visibility="public"
  76431. deprecated="not deprecated">
  76432. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  76433. </method>
  76434. <method name="map"
  76435. abstract="false" native="false" synchronized="false"
  76436. static="false" final="false" visibility="public"
  76437. deprecated="not deprecated">
  76438. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  76439. <param name="value" type="org.apache.hadoop.io.Text"/>
  76440. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  76441. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  76442. <exception name="IOException" type="java.io.IOException"/>
  76443. </method>
  76444. <doc>
  76445. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  76446. </doc>
  76447. </class>
  76448. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  76449. </package>
  76450. <package name="org.apache.hadoop.tools.rumen">
  76451. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  76452. <class name="AbstractClusterStory" extends="java.lang.Object"
  76453. abstract="true"
  76454. static="false" final="false" visibility="public"
  76455. deprecated="not deprecated">
  76456. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  76457. <constructor name="AbstractClusterStory"
  76458. static="false" final="false" visibility="public"
  76459. deprecated="not deprecated">
  76460. </constructor>
  76461. <method name="getMachines" return="java.util.Set"
  76462. abstract="false" native="false" synchronized="false"
  76463. static="false" final="false" visibility="public"
  76464. deprecated="not deprecated">
  76465. </method>
  76466. <method name="getRacks" return="java.util.Set"
  76467. abstract="false" native="false" synchronized="true"
  76468. static="false" final="false" visibility="public"
  76469. deprecated="not deprecated">
  76470. </method>
  76471. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  76472. abstract="false" native="false" synchronized="true"
  76473. static="false" final="false" visibility="public"
  76474. deprecated="not deprecated">
  76475. <param name="expected" type="int"/>
  76476. <param name="random" type="java.util.Random"/>
  76477. </method>
  76478. <method name="buildMachineNodeMap"
  76479. abstract="false" native="false" synchronized="true"
  76480. static="false" final="false" visibility="protected"
  76481. deprecated="not deprecated">
  76482. </method>
  76483. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  76484. abstract="false" native="false" synchronized="false"
  76485. static="false" final="false" visibility="public"
  76486. deprecated="not deprecated">
  76487. <param name="name" type="java.lang.String"/>
  76488. </method>
  76489. <method name="distance" return="int"
  76490. abstract="false" native="false" synchronized="false"
  76491. static="false" final="false" visibility="public"
  76492. deprecated="not deprecated">
  76493. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  76494. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  76495. </method>
  76496. <method name="buildRackNodeMap"
  76497. abstract="false" native="false" synchronized="true"
  76498. static="false" final="false" visibility="protected"
  76499. deprecated="not deprecated">
  76500. </method>
  76501. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  76502. abstract="false" native="false" synchronized="false"
  76503. static="false" final="false" visibility="public"
  76504. deprecated="not deprecated">
  76505. <param name="name" type="java.lang.String"/>
  76506. </method>
  76507. <method name="getMaximumDistance" return="int"
  76508. abstract="false" native="false" synchronized="false"
  76509. static="false" final="false" visibility="public"
  76510. deprecated="not deprecated">
  76511. </method>
  76512. <method name="parseTopologyTree"
  76513. abstract="false" native="false" synchronized="true"
  76514. static="false" final="false" visibility="protected"
  76515. deprecated="not deprecated">
  76516. </method>
  76517. <field name="machineNodes" type="java.util.Set"
  76518. transient="false" volatile="false"
  76519. static="false" final="false" visibility="protected"
  76520. deprecated="not deprecated">
  76521. </field>
  76522. <field name="rackNodes" type="java.util.Set"
  76523. transient="false" volatile="false"
  76524. static="false" final="false" visibility="protected"
  76525. deprecated="not deprecated">
  76526. </field>
  76527. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  76528. transient="false" volatile="false"
  76529. static="false" final="false" visibility="protected"
  76530. deprecated="not deprecated">
  76531. </field>
  76532. <field name="mNodeMap" type="java.util.Map"
  76533. transient="false" volatile="false"
  76534. static="false" final="false" visibility="protected"
  76535. deprecated="not deprecated">
  76536. </field>
  76537. <field name="rNodeMap" type="java.util.Map"
  76538. transient="false" volatile="false"
  76539. static="false" final="false" visibility="protected"
  76540. deprecated="not deprecated">
  76541. </field>
  76542. <field name="maximumDistance" type="int"
  76543. transient="false" volatile="false"
  76544. static="false" final="false" visibility="protected"
  76545. deprecated="not deprecated">
  76546. </field>
  76547. <doc>
  76548. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  76549. {@link ClusterStory} by parsing the topology tree.]]>
  76550. </doc>
  76551. </class>
  76552. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  76553. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  76554. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  76555. abstract="false"
  76556. static="false" final="false" visibility="public"
  76557. deprecated="not deprecated">
  76558. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  76559. static="false" final="false" visibility="public"
  76560. deprecated="not deprecated">
  76561. <doc>
  76562. <![CDATA[@param cdf
  76563. builds a CDFRandomValue engine around this
  76564. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  76565. </doc>
  76566. </constructor>
  76567. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  76568. static="false" final="false" visibility="public"
  76569. deprecated="not deprecated">
  76570. <doc>
  76571. <![CDATA[@param cdf
  76572. builds a CDFRandomValue engine around this
  76573. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  76574. @param seed
  76575. the random number generator seed]]>
  76576. </doc>
  76577. </constructor>
  76578. <method name="valueAt" return="long"
  76579. abstract="false" native="false" synchronized="false"
  76580. static="false" final="false" visibility="public"
  76581. deprecated="not deprecated">
  76582. <param name="probability" type="double"/>
  76583. <doc>
  76584. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  76585. epistomological minimum resp. maximum. This is probably okay for the
  76586. minimum, because that likely represents a task where everything went well,
  76587. but for the maximum we may want to develop a way of extrapolating past the
  76588. maximum.]]>
  76589. </doc>
  76590. </method>
  76591. </class>
  76592. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  76593. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  76594. <class name="CDFRandomGenerator" extends="java.lang.Object"
  76595. abstract="true"
  76596. static="false" final="false" visibility="public"
  76597. deprecated="not deprecated">
  76598. <method name="initializeTables"
  76599. abstract="false" native="false" synchronized="false"
  76600. static="false" final="true" visibility="protected"
  76601. deprecated="not deprecated">
  76602. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  76603. </method>
  76604. <method name="floorIndex" return="int"
  76605. abstract="false" native="false" synchronized="false"
  76606. static="false" final="false" visibility="protected"
  76607. deprecated="not deprecated">
  76608. <param name="probe" type="double"/>
  76609. </method>
  76610. <method name="getRankingAt" return="double"
  76611. abstract="false" native="false" synchronized="false"
  76612. static="false" final="false" visibility="protected"
  76613. deprecated="not deprecated">
  76614. <param name="index" type="int"/>
  76615. </method>
  76616. <method name="getDatumAt" return="long"
  76617. abstract="false" native="false" synchronized="false"
  76618. static="false" final="false" visibility="protected"
  76619. deprecated="not deprecated">
  76620. <param name="index" type="int"/>
  76621. </method>
  76622. <method name="randomValue" return="long"
  76623. abstract="false" native="false" synchronized="false"
  76624. static="false" final="false" visibility="public"
  76625. deprecated="not deprecated">
  76626. </method>
  76627. <method name="valueAt" return="long"
  76628. abstract="true" native="false" synchronized="false"
  76629. static="false" final="false" visibility="public"
  76630. deprecated="not deprecated">
  76631. <param name="probability" type="double"/>
  76632. </method>
  76633. <doc>
  76634. <![CDATA[An instance of this class generates random values that confirm to the
  76635. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  76636. approximation of the "real" CDF. We therefore have a choice of interpolation
  76637. rules.
  76638. A concrete subclass of this abstract class will implement valueAt(double)
  76639. using a class-dependent interpolation rule.]]>
  76640. </doc>
  76641. </class>
  76642. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  76643. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  76644. <interface name="ClusterStory" abstract="true"
  76645. static="false" final="false" visibility="public"
  76646. deprecated="not deprecated">
  76647. <method name="getMachines" return="java.util.Set"
  76648. abstract="false" native="false" synchronized="false"
  76649. static="false" final="false" visibility="public"
  76650. deprecated="not deprecated">
  76651. <doc>
  76652. <![CDATA[Get all machines of the cluster.
  76653. @return A read-only set that contains all machines of the cluster.]]>
  76654. </doc>
  76655. </method>
  76656. <method name="getRacks" return="java.util.Set"
  76657. abstract="false" native="false" synchronized="false"
  76658. static="false" final="false" visibility="public"
  76659. deprecated="not deprecated">
  76660. <doc>
  76661. <![CDATA[Get all racks of the cluster.
  76662. @return A read-only set that contains all racks of the cluster.]]>
  76663. </doc>
  76664. </method>
  76665. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  76666. abstract="false" native="false" synchronized="false"
  76667. static="false" final="false" visibility="public"
  76668. deprecated="not deprecated">
  76669. <doc>
  76670. <![CDATA[Get the cluster topology tree.
  76671. @return The root node of the cluster topology tree.]]>
  76672. </doc>
  76673. </method>
  76674. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  76675. abstract="false" native="false" synchronized="false"
  76676. static="false" final="false" visibility="public"
  76677. deprecated="not deprecated">
  76678. <param name="expected" type="int"/>
  76679. <param name="random" type="java.util.Random"/>
  76680. <doc>
  76681. <![CDATA[Select a random set of machines.
  76682. @param expected The expected sample size.
  76683. @param random Random number generator to use.
  76684. @return An array of up to expected number of {@link MachineNode}s.]]>
  76685. </doc>
  76686. </method>
  76687. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  76688. abstract="false" native="false" synchronized="false"
  76689. static="false" final="false" visibility="public"
  76690. deprecated="not deprecated">
  76691. <param name="name" type="java.lang.String"/>
  76692. <doc>
  76693. <![CDATA[Get {@link MachineNode} by its host name.
  76694. @return The {@link MachineNode} with the same name. Or null if not found.]]>
  76695. </doc>
  76696. </method>
  76697. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  76698. abstract="false" native="false" synchronized="false"
  76699. static="false" final="false" visibility="public"
  76700. deprecated="not deprecated">
  76701. <param name="name" type="java.lang.String"/>
  76702. <doc>
  76703. <![CDATA[Get {@link RackNode} by its name.
  76704. @return The {@link RackNode} with the same name. Or null if not found.]]>
  76705. </doc>
  76706. </method>
  76707. <method name="distance" return="int"
  76708. abstract="false" native="false" synchronized="false"
  76709. static="false" final="false" visibility="public"
  76710. deprecated="not deprecated">
  76711. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  76712. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  76713. <doc>
  76714. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  76715. is loosely defined as the length of the longer path for either a or b to
  76716. reach their common ancestor.
  76717. @param a
  76718. @param b
  76719. @return The distance between {@link Node} a and {@link Node} b.]]>
  76720. </doc>
  76721. </method>
  76722. <method name="getMaximumDistance" return="int"
  76723. abstract="false" native="false" synchronized="false"
  76724. static="false" final="false" visibility="public"
  76725. deprecated="not deprecated">
  76726. <doc>
  76727. <![CDATA[Get the maximum distance possible between any two nodes.
  76728. @return the maximum distance possible between any two nodes.]]>
  76729. </doc>
  76730. </method>
  76731. <doc>
  76732. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  76733. including nodes, network topology, and slot configurations.]]>
  76734. </doc>
  76735. </interface>
  76736. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  76737. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  76738. <class name="ClusterTopologyReader" extends="java.lang.Object"
  76739. abstract="false"
  76740. static="false" final="false" visibility="public"
  76741. deprecated="not deprecated">
  76742. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  76743. static="false" final="false" visibility="public"
  76744. deprecated="not deprecated">
  76745. <exception name="IOException" type="java.io.IOException"/>
  76746. <doc>
  76747. <![CDATA[Constructor.
  76748. @param path
  76749. Path to the JSON-encoded topology file, possibly compressed.
  76750. @param conf
  76751. @throws IOException]]>
  76752. </doc>
  76753. </constructor>
  76754. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  76755. static="false" final="false" visibility="public"
  76756. deprecated="not deprecated">
  76757. <exception name="IOException" type="java.io.IOException"/>
  76758. <doc>
  76759. <![CDATA[Constructor.
  76760. @param input
  76761. The input stream for the JSON-encoded topology data.]]>
  76762. </doc>
  76763. </constructor>
  76764. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  76765. abstract="false" native="false" synchronized="false"
  76766. static="false" final="false" visibility="public"
  76767. deprecated="not deprecated">
  76768. <doc>
  76769. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  76770. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  76771. </doc>
  76772. </method>
  76773. <doc>
  76774. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  76775. {@link LoggedNetworkTopology} object.]]>
  76776. </doc>
  76777. </class>
  76778. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  76779. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  76780. <interface name="DeepCompare" abstract="true"
  76781. static="false" final="false" visibility="public"
  76782. deprecated="not deprecated">
  76783. <method name="deepCompare"
  76784. abstract="false" native="false" synchronized="false"
  76785. static="false" final="false" visibility="public"
  76786. deprecated="not deprecated">
  76787. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76788. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76789. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76790. <doc>
  76791. <![CDATA[@param other
  76792. the other comparand that's being compared to me
  76793. @param myLocation
  76794. the path that got to me. In the root, myLocation is null. To
  76795. process the scalar {@code foo} field of the root we will make a
  76796. recursive call with a {@link TreePath} whose {@code fieldName} is
  76797. {@code "bar"} and whose {@code index} is -1 and whose {@code
  76798. parent} is {@code null}. To process the plural {@code bar} field
  76799. of the root we will make a recursive call with a {@link TreePath}
  76800. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  76801. whose {@code parent} is also {@code null}.
  76802. @throws DeepInequalityException]]>
  76803. </doc>
  76804. </method>
  76805. <doc>
  76806. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  76807. not order] with another instance. They do a deep compare. If there is any
  76808. semantically significant difference, an implementer throws an Exception to be
  76809. thrown with a chain of causes describing the chain of field references and
  76810. indices that get you to the miscompared point.]]>
  76811. </doc>
  76812. </interface>
  76813. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  76814. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  76815. <class name="DeepInequalityException" extends="java.lang.Exception"
  76816. abstract="false"
  76817. static="false" final="false" visibility="public"
  76818. deprecated="not deprecated">
  76819. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  76820. static="false" final="false" visibility="public"
  76821. deprecated="not deprecated">
  76822. <doc>
  76823. <![CDATA[@param message
  76824. an exception message
  76825. @param path
  76826. the path that gets from the root to the inequality
  76827. This is the constructor that I intend to have used for this
  76828. exception.]]>
  76829. </doc>
  76830. </constructor>
  76831. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  76832. static="false" final="false" visibility="public"
  76833. deprecated="not deprecated">
  76834. <doc>
  76835. <![CDATA[@param message
  76836. an exception message
  76837. @param path
  76838. the path that gets from the root to the inequality
  76839. This is the constructor that I intend to have used for this
  76840. exception.]]>
  76841. </doc>
  76842. </constructor>
  76843. <doc>
  76844. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  76845. when we run the]]>
  76846. </doc>
  76847. </class>
  76848. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  76849. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  76850. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  76851. abstract="false"
  76852. static="false" final="false" visibility="public"
  76853. deprecated="not deprecated">
  76854. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  76855. <constructor name="DefaultInputDemuxer"
  76856. static="false" final="false" visibility="public"
  76857. deprecated="not deprecated">
  76858. </constructor>
  76859. <method name="bindTo"
  76860. abstract="false" native="false" synchronized="false"
  76861. static="false" final="false" visibility="public"
  76862. deprecated="not deprecated">
  76863. <param name="path" type="org.apache.hadoop.fs.Path"/>
  76864. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76865. <exception name="IOException" type="java.io.IOException"/>
  76866. </method>
  76867. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  76868. abstract="false" native="false" synchronized="false"
  76869. static="false" final="false" visibility="public"
  76870. deprecated="not deprecated">
  76871. <exception name="IOException" type="java.io.IOException"/>
  76872. </method>
  76873. <method name="close"
  76874. abstract="false" native="false" synchronized="false"
  76875. static="false" final="false" visibility="public"
  76876. deprecated="not deprecated">
  76877. <exception name="IOException" type="java.io.IOException"/>
  76878. </method>
  76879. <doc>
  76880. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  76881. each file and returns back the input stream. If the input is compressed, it
  76882. would return a decompression stream.]]>
  76883. </doc>
  76884. </class>
  76885. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  76886. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  76887. <class name="DefaultOutputter" extends="java.lang.Object"
  76888. abstract="false"
  76889. static="false" final="false" visibility="public"
  76890. deprecated="not deprecated">
  76891. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  76892. <constructor name="DefaultOutputter"
  76893. static="false" final="false" visibility="public"
  76894. deprecated="not deprecated">
  76895. </constructor>
  76896. <method name="init"
  76897. abstract="false" native="false" synchronized="false"
  76898. static="false" final="false" visibility="public"
  76899. deprecated="not deprecated">
  76900. <param name="path" type="org.apache.hadoop.fs.Path"/>
  76901. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76902. <exception name="IOException" type="java.io.IOException"/>
  76903. </method>
  76904. <method name="output"
  76905. abstract="false" native="false" synchronized="false"
  76906. static="false" final="false" visibility="public"
  76907. deprecated="not deprecated">
  76908. <param name="object" type="java.lang.Object"/>
  76909. <exception name="IOException" type="java.io.IOException"/>
  76910. </method>
  76911. <method name="close"
  76912. abstract="false" native="false" synchronized="false"
  76913. static="false" final="false" visibility="public"
  76914. deprecated="not deprecated">
  76915. <exception name="IOException" type="java.io.IOException"/>
  76916. </method>
  76917. <doc>
  76918. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  76919. will be applied if the path has the right suffix.]]>
  76920. </doc>
  76921. </class>
  76922. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  76923. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  76924. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  76925. abstract="false"
  76926. static="false" final="false" visibility="public"
  76927. deprecated="not deprecated">
  76928. <implements name="java.io.Closeable"/>
  76929. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  76930. static="false" final="false" visibility="public"
  76931. deprecated="not deprecated">
  76932. <exception name="IOException" type="java.io.IOException"/>
  76933. <doc>
  76934. <![CDATA[Constructor.
  76935. @param reader
  76936. the {@link JobTraceReader} that's being protected
  76937. @param skewBufferLength
  76938. [the number of late jobs that can preced a later out-of-order
  76939. earlier job
  76940. @throws IOException]]>
  76941. </doc>
  76942. </constructor>
  76943. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  76944. static="false" final="false" visibility="public"
  76945. deprecated="not deprecated">
  76946. <exception name="IOException" type="java.io.IOException"/>
  76947. </constructor>
  76948. <method name="close"
  76949. abstract="false" native="false" synchronized="false"
  76950. static="false" final="false" visibility="public"
  76951. deprecated="not deprecated">
  76952. <exception name="IOException" type="java.io.IOException"/>
  76953. </method>
  76954. </class>
  76955. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  76956. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  76957. <class name="EventType" extends="java.lang.Enum"
  76958. abstract="false"
  76959. static="false" final="true" visibility="public"
  76960. deprecated="not deprecated">
  76961. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  76962. abstract="false" native="false" synchronized="false"
  76963. static="true" final="false" visibility="public"
  76964. deprecated="not deprecated">
  76965. </method>
  76966. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  76967. abstract="false" native="false" synchronized="false"
  76968. static="true" final="false" visibility="public"
  76969. deprecated="not deprecated">
  76970. <param name="name" type="java.lang.String"/>
  76971. </method>
  76972. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  76973. transient="false" volatile="false"
  76974. static="true" final="true" visibility="public"
  76975. deprecated="not deprecated">
  76976. </field>
  76977. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  76978. transient="false" volatile="false"
  76979. static="true" final="true" visibility="public"
  76980. deprecated="not deprecated">
  76981. </field>
  76982. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  76983. transient="false" volatile="false"
  76984. static="true" final="true" visibility="public"
  76985. deprecated="not deprecated">
  76986. </field>
  76987. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  76988. transient="false" volatile="false"
  76989. static="true" final="true" visibility="public"
  76990. deprecated="not deprecated">
  76991. </field>
  76992. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  76993. transient="false" volatile="false"
  76994. static="true" final="true" visibility="public"
  76995. deprecated="not deprecated">
  76996. </field>
  76997. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  76998. transient="false" volatile="false"
  76999. static="true" final="true" visibility="public"
  77000. deprecated="not deprecated">
  77001. </field>
  77002. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77003. transient="false" volatile="false"
  77004. static="true" final="true" visibility="public"
  77005. deprecated="not deprecated">
  77006. </field>
  77007. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  77008. transient="false" volatile="false"
  77009. static="true" final="true" visibility="public"
  77010. deprecated="not deprecated">
  77011. </field>
  77012. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77013. transient="false" volatile="false"
  77014. static="true" final="true" visibility="public"
  77015. deprecated="not deprecated">
  77016. </field>
  77017. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77018. transient="false" volatile="false"
  77019. static="true" final="true" visibility="public"
  77020. deprecated="not deprecated">
  77021. </field>
  77022. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77023. transient="false" volatile="false"
  77024. static="true" final="true" visibility="public"
  77025. deprecated="not deprecated">
  77026. </field>
  77027. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  77028. transient="false" volatile="false"
  77029. static="true" final="true" visibility="public"
  77030. deprecated="not deprecated">
  77031. </field>
  77032. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77033. transient="false" volatile="false"
  77034. static="true" final="true" visibility="public"
  77035. deprecated="not deprecated">
  77036. </field>
  77037. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77038. transient="false" volatile="false"
  77039. static="true" final="true" visibility="public"
  77040. deprecated="not deprecated">
  77041. </field>
  77042. <field name="MAP_ATTEMPT_FAILED" 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="MAP_ATTEMPT_KILLED" 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="REDUCE_ATTEMPT_STARTED" 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="REDUCE_ATTEMPT_FINISHED" 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="REDUCE_ATTEMPT_FAILED" 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="REDUCE_ATTEMPT_KILLED" 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="SETUP_ATTEMPT_STARTED" 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="SETUP_ATTEMPT_FINISHED" 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="SETUP_ATTEMPT_FAILED" 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="SETUP_ATTEMPT_KILLED" 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="CLEANUP_ATTEMPT_STARTED" 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="CLEANUP_ATTEMPT_FINISHED" 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="CLEANUP_ATTEMPT_FAILED" 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="CLEANUP_ATTEMPT_KILLED" 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. </class>
  77113. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  77114. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  77115. <class name="Hadoop20JHParser" extends="java.lang.Object"
  77116. abstract="false"
  77117. static="false" final="false" visibility="public"
  77118. deprecated="not deprecated">
  77119. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  77120. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  77121. static="false" final="false" visibility="public"
  77122. deprecated="not deprecated">
  77123. <exception name="IOException" type="java.io.IOException"/>
  77124. </constructor>
  77125. <method name="canParse" return="boolean"
  77126. abstract="false" native="false" synchronized="false"
  77127. static="true" final="false" visibility="public"
  77128. deprecated="not deprecated">
  77129. <param name="input" type="java.io.InputStream"/>
  77130. <exception name="IOException" type="java.io.IOException"/>
  77131. <doc>
  77132. <![CDATA[Can this parser parse the input?
  77133. @param input
  77134. @return Whether this parser can parse the input.
  77135. @throws IOException
  77136. We will deem a stream to be a good 0.20 job history stream if the
  77137. first line is exactly "Meta VERSION=\"1\" ."]]>
  77138. </doc>
  77139. </method>
  77140. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  77141. abstract="false" native="false" synchronized="false"
  77142. static="false" final="false" visibility="public"
  77143. deprecated="not deprecated">
  77144. </method>
  77145. <method name="close"
  77146. abstract="false" native="false" synchronized="false"
  77147. static="false" final="false" visibility="public"
  77148. deprecated="not deprecated">
  77149. <exception name="IOException" type="java.io.IOException"/>
  77150. </method>
  77151. <doc>
  77152. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  77153. </doc>
  77154. </class>
  77155. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  77156. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  77157. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  77158. abstract="false"
  77159. static="false" final="false" visibility="public"
  77160. deprecated="not deprecated">
  77161. <implements name="org.apache.hadoop.util.Tool"/>
  77162. <constructor name="HadoopLogsAnalyzer"
  77163. static="false" final="false" visibility="public"
  77164. deprecated="not deprecated">
  77165. </constructor>
  77166. <method name="run" return="int"
  77167. abstract="false" native="false" synchronized="false"
  77168. static="false" final="false" visibility="public"
  77169. deprecated="not deprecated">
  77170. <param name="args" type="java.lang.String[]"/>
  77171. <exception name="IOException" type="java.io.IOException"/>
  77172. </method>
  77173. <method name="main"
  77174. abstract="false" native="false" synchronized="false"
  77175. static="true" final="false" visibility="public"
  77176. deprecated="not deprecated">
  77177. <param name="args" type="java.lang.String[]"/>
  77178. <doc>
  77179. <![CDATA[@param args
  77180. Last arg is the input file. That file can be a directory, in which
  77181. case you get all the files in sorted order. We will decompress
  77182. files whose nmes end in .gz .
  77183. switches: -c collect line types.
  77184. -d debug mode
  77185. -delays print out the delays [interval between job submit time and
  77186. launch time]
  77187. -runtimes print out the job runtimes
  77188. -spreads print out the ratio of 10%ile and 90%ile, of both the
  77189. successful map task attempt run times and the the successful
  77190. reduce task attempt run times
  77191. -tasktimes prints out individual task time distributions
  77192. collects all the line types and prints the first example of each
  77193. one]]>
  77194. </doc>
  77195. </method>
  77196. <doc>
  77197. <![CDATA[This is the main class for rumen log mining functionality.
  77198. It reads a directory of job tracker logs, and computes various information
  77199. about it. See {@code usage()}, below.]]>
  77200. </doc>
  77201. </class>
  77202. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  77203. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  77204. <interface name="HistoryEvent" abstract="true"
  77205. static="false" final="false" visibility="public"
  77206. deprecated="not deprecated">
  77207. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77208. abstract="false" native="false" synchronized="false"
  77209. static="false" final="false" visibility="public"
  77210. deprecated="not deprecated">
  77211. <doc>
  77212. <![CDATA[Return this event's type.]]>
  77213. </doc>
  77214. </method>
  77215. </interface>
  77216. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  77217. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  77218. <interface name="InputDemuxer" abstract="true"
  77219. static="false" final="false" visibility="public"
  77220. deprecated="not deprecated">
  77221. <implements name="java.io.Closeable"/>
  77222. <method name="bindTo"
  77223. abstract="false" native="false" synchronized="false"
  77224. static="false" final="false" visibility="public"
  77225. deprecated="not deprecated">
  77226. <param name="path" type="org.apache.hadoop.fs.Path"/>
  77227. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77228. <exception name="IOException" type="java.io.IOException"/>
  77229. <doc>
  77230. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  77231. @param path
  77232. The path to the find it should bind to.
  77233. @param conf
  77234. Configuration
  77235. @throws IOException
  77236. Returns true when the binding succeeds. If the file can be read
  77237. but is in the wrong format, returns false. IOException is
  77238. reserved for read errors.]]>
  77239. </doc>
  77240. </method>
  77241. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  77242. abstract="false" native="false" synchronized="false"
  77243. static="false" final="false" visibility="public"
  77244. deprecated="not deprecated">
  77245. <exception name="IOException" type="java.io.IOException"/>
  77246. <doc>
  77247. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  77248. history file or job conf file name. The input object should be closed
  77249. before calling getNext() again. The old input object would be invalid after
  77250. calling getNext() again.
  77251. @return the next <name, input> pair.]]>
  77252. </doc>
  77253. </method>
  77254. <doc>
  77255. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  77256. streams.]]>
  77257. </doc>
  77258. </interface>
  77259. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  77260. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  77261. <class name="JhCounter" extends="java.lang.Object"
  77262. abstract="false"
  77263. static="false" final="false" visibility="public"
  77264. deprecated="not deprecated">
  77265. <constructor name="JhCounter"
  77266. static="false" final="false" visibility="public"
  77267. deprecated="not deprecated">
  77268. </constructor>
  77269. <field name="name" type="java.lang.String"
  77270. transient="false" volatile="false"
  77271. static="false" final="false" visibility="public"
  77272. deprecated="not deprecated">
  77273. </field>
  77274. <field name="displayName" type="java.lang.String"
  77275. transient="false" volatile="false"
  77276. static="false" final="false" visibility="public"
  77277. deprecated="not deprecated">
  77278. </field>
  77279. <field name="value" type="long"
  77280. transient="false" volatile="false"
  77281. static="false" final="false" visibility="public"
  77282. deprecated="not deprecated">
  77283. </field>
  77284. </class>
  77285. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  77286. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  77287. <class name="JhCounterGroup" extends="java.lang.Object"
  77288. abstract="false"
  77289. static="false" final="false" visibility="public"
  77290. deprecated="not deprecated">
  77291. <constructor name="JhCounterGroup"
  77292. static="false" final="false" visibility="public"
  77293. deprecated="not deprecated">
  77294. </constructor>
  77295. <field name="name" type="java.lang.String"
  77296. transient="false" volatile="false"
  77297. static="false" final="false" visibility="public"
  77298. deprecated="not deprecated">
  77299. </field>
  77300. <field name="displayName" type="java.lang.String"
  77301. transient="false" volatile="false"
  77302. static="false" final="false" visibility="public"
  77303. deprecated="not deprecated">
  77304. </field>
  77305. <field name="counts" type="java.util.List"
  77306. transient="false" volatile="false"
  77307. static="false" final="false" visibility="public"
  77308. deprecated="not deprecated">
  77309. </field>
  77310. </class>
  77311. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  77312. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  77313. <class name="JhCounters" extends="java.lang.Object"
  77314. abstract="false"
  77315. static="false" final="false" visibility="public"
  77316. deprecated="not deprecated">
  77317. <field name="name" type="java.lang.String"
  77318. transient="false" volatile="false"
  77319. static="false" final="false" visibility="public"
  77320. deprecated="not deprecated">
  77321. </field>
  77322. <field name="groups" type="java.util.List"
  77323. transient="false" volatile="false"
  77324. static="false" final="false" visibility="public"
  77325. deprecated="not deprecated">
  77326. </field>
  77327. </class>
  77328. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  77329. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  77330. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  77331. abstract="false"
  77332. static="false" final="false" visibility="public"
  77333. deprecated="not deprecated">
  77334. </class>
  77335. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  77336. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  77337. <class name="JobBuilder" extends="java.lang.Object"
  77338. abstract="false"
  77339. static="false" final="false" visibility="public"
  77340. deprecated="not deprecated">
  77341. <constructor name="JobBuilder" type="java.lang.String"
  77342. static="false" final="false" visibility="public"
  77343. deprecated="not deprecated">
  77344. </constructor>
  77345. <method name="getJobID" return="java.lang.String"
  77346. abstract="false" native="false" synchronized="false"
  77347. static="false" final="false" visibility="public"
  77348. deprecated="not deprecated">
  77349. </method>
  77350. <method name="process"
  77351. abstract="false" native="false" synchronized="false"
  77352. static="false" final="false" visibility="public"
  77353. deprecated="not deprecated">
  77354. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77355. <doc>
  77356. <![CDATA[Process one {@link HistoryEvent}
  77357. @param event
  77358. The {@link HistoryEvent} to be processed.]]>
  77359. </doc>
  77360. </method>
  77361. <method name="process"
  77362. abstract="false" native="false" synchronized="false"
  77363. static="false" final="false" visibility="public"
  77364. deprecated="not deprecated">
  77365. <param name="conf" type="java.util.Properties"/>
  77366. <doc>
  77367. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  77368. to be called once. It is okay to process a conf before, during or after the
  77369. events.
  77370. @param conf
  77371. The job conf properties to be added.]]>
  77372. </doc>
  77373. </method>
  77374. <method name="build" return="org.apache.hadoop.tools.rumen.ParsedJob"
  77375. abstract="false" native="false" synchronized="false"
  77376. static="false" final="false" visibility="public"
  77377. deprecated="not deprecated">
  77378. <doc>
  77379. <![CDATA[Request the builder to build the final object. Once called, the
  77380. {@link JobBuilder} would accept no more events or job-conf properties.
  77381. @return Parsed {@link ParsedJob} object.]]>
  77382. </doc>
  77383. </method>
  77384. <doc>
  77385. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  77386. {@link HistoryEvent}s.]]>
  77387. </doc>
  77388. </class>
  77389. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  77390. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  77391. <class name="JobConfigurationParser" extends="java.lang.Object"
  77392. abstract="false"
  77393. static="false" final="false" visibility="public"
  77394. deprecated="not deprecated">
  77395. <constructor name="JobConfigurationParser"
  77396. static="false" final="false" visibility="public"
  77397. deprecated="not deprecated">
  77398. </constructor>
  77399. <doc>
  77400. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  77401. extracts configuration properties. It parses the file using a
  77402. stream-parser and thus is more memory efficient. [This optimization may be
  77403. postponed for a future release]]]>
  77404. </doc>
  77405. </class>
  77406. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  77407. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  77408. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  77409. abstract="false"
  77410. static="false" final="true" visibility="public"
  77411. deprecated="not deprecated">
  77412. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  77413. abstract="false" native="false" synchronized="false"
  77414. static="true" final="false" visibility="public"
  77415. deprecated="not deprecated">
  77416. </method>
  77417. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77418. abstract="false" native="false" synchronized="false"
  77419. static="true" final="false" visibility="public"
  77420. deprecated="not deprecated">
  77421. <param name="name" type="java.lang.String"/>
  77422. </method>
  77423. <method name="getCandidates" return="java.lang.String[]"
  77424. abstract="false" native="false" synchronized="false"
  77425. static="false" final="false" visibility="public"
  77426. deprecated="not deprecated">
  77427. </method>
  77428. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77429. transient="false" volatile="false"
  77430. static="true" final="true" visibility="public"
  77431. deprecated="not deprecated">
  77432. </field>
  77433. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77434. transient="false" volatile="false"
  77435. static="true" final="true" visibility="public"
  77436. deprecated="not deprecated">
  77437. </field>
  77438. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77439. transient="false" volatile="false"
  77440. static="true" final="true" visibility="public"
  77441. deprecated="not deprecated">
  77442. </field>
  77443. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77444. transient="false" volatile="false"
  77445. static="true" final="true" visibility="public"
  77446. deprecated="not deprecated">
  77447. </field>
  77448. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77449. transient="false" volatile="false"
  77450. static="true" final="true" visibility="public"
  77451. deprecated="not deprecated">
  77452. </field>
  77453. </class>
  77454. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  77455. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  77456. <class name="JobFinishedEvent" extends="java.lang.Object"
  77457. abstract="false"
  77458. static="false" final="false" visibility="public"
  77459. deprecated="not deprecated">
  77460. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77461. <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"
  77462. static="false" final="false" visibility="public"
  77463. deprecated="not deprecated">
  77464. <doc>
  77465. <![CDATA[Create an event to record successful job completion
  77466. @param id Job ID
  77467. @param finishTime Finish time of the job
  77468. @param finishedMaps The number of finished maps
  77469. @param finishedReduces The number of finished reduces
  77470. @param failedMaps The number of failed maps
  77471. @param failedReduces The number of failed reduces
  77472. @param mapCounters Map Counters for the job
  77473. @param reduceCounters Reduce Counters for the job
  77474. @param totalCounters Total Counters for the job]]>
  77475. </doc>
  77476. </constructor>
  77477. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77478. abstract="false" native="false" synchronized="false"
  77479. static="false" final="false" visibility="public"
  77480. deprecated="not deprecated">
  77481. </method>
  77482. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  77483. abstract="false" native="false" synchronized="false"
  77484. static="false" final="false" visibility="public"
  77485. deprecated="not deprecated">
  77486. <doc>
  77487. <![CDATA[Get the Job ID]]>
  77488. </doc>
  77489. </method>
  77490. <method name="getFinishTime" return="long"
  77491. abstract="false" native="false" synchronized="false"
  77492. static="false" final="false" visibility="public"
  77493. deprecated="not deprecated">
  77494. <doc>
  77495. <![CDATA[Get the job finish time]]>
  77496. </doc>
  77497. </method>
  77498. <method name="getFinishedMaps" return="int"
  77499. abstract="false" native="false" synchronized="false"
  77500. static="false" final="false" visibility="public"
  77501. deprecated="not deprecated">
  77502. <doc>
  77503. <![CDATA[Get the number of finished maps for the job]]>
  77504. </doc>
  77505. </method>
  77506. <method name="getFinishedReduces" return="int"
  77507. abstract="false" native="false" synchronized="false"
  77508. static="false" final="false" visibility="public"
  77509. deprecated="not deprecated">
  77510. <doc>
  77511. <![CDATA[Get the number of finished reducers for the job]]>
  77512. </doc>
  77513. </method>
  77514. <method name="getFailedMaps" return="int"
  77515. abstract="false" native="false" synchronized="false"
  77516. static="false" final="false" visibility="public"
  77517. deprecated="not deprecated">
  77518. <doc>
  77519. <![CDATA[Get the number of failed maps for the job]]>
  77520. </doc>
  77521. </method>
  77522. <method name="getFailedReduces" return="int"
  77523. abstract="false" native="false" synchronized="false"
  77524. static="false" final="false" visibility="public"
  77525. deprecated="not deprecated">
  77526. <doc>
  77527. <![CDATA[Get the number of failed reducers for the job]]>
  77528. </doc>
  77529. </method>
  77530. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  77531. abstract="false" native="false" synchronized="false"
  77532. static="false" final="false" visibility="public"
  77533. deprecated="not deprecated">
  77534. <doc>
  77535. <![CDATA[Get the counters for the job]]>
  77536. </doc>
  77537. </method>
  77538. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  77539. abstract="false" native="false" synchronized="false"
  77540. static="false" final="false" visibility="public"
  77541. deprecated="not deprecated">
  77542. <doc>
  77543. <![CDATA[Get the Map counters for the job]]>
  77544. </doc>
  77545. </method>
  77546. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  77547. abstract="false" native="false" synchronized="false"
  77548. static="false" final="false" visibility="public"
  77549. deprecated="not deprecated">
  77550. <doc>
  77551. <![CDATA[Get the reduce counters for the job]]>
  77552. </doc>
  77553. </method>
  77554. <doc>
  77555. <![CDATA[Event to record successful completion of job]]>
  77556. </doc>
  77557. </class>
  77558. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  77559. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  77560. <interface name="JobHistoryParser" abstract="true"
  77561. static="false" final="false" visibility="public"
  77562. deprecated="not deprecated">
  77563. <implements name="java.io.Closeable"/>
  77564. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  77565. abstract="false" native="false" synchronized="false"
  77566. static="false" final="false" visibility="public"
  77567. deprecated="not deprecated">
  77568. <exception name="IOException" type="java.io.IOException"/>
  77569. <doc>
  77570. <![CDATA[Get the next {@link HistoryEvent}
  77571. @return the next {@link HistoryEvent}. If no more events left, return null.
  77572. @throws IOException]]>
  77573. </doc>
  77574. </method>
  77575. <doc>
  77576. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  77577. </doc>
  77578. </interface>
  77579. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  77580. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  77581. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  77582. abstract="false"
  77583. static="false" final="false" visibility="public"
  77584. deprecated="not deprecated">
  77585. <constructor name="JobHistoryParserFactory"
  77586. static="false" final="false" visibility="public"
  77587. deprecated="not deprecated">
  77588. </constructor>
  77589. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  77590. abstract="false" native="false" synchronized="false"
  77591. static="true" final="false" visibility="public"
  77592. deprecated="not deprecated">
  77593. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  77594. <exception name="IOException" type="java.io.IOException"/>
  77595. </method>
  77596. <doc>
  77597. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  77598. determine the version of job history and return a proper parser.]]>
  77599. </doc>
  77600. </class>
  77601. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  77602. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  77603. <class name="JobHistoryParserFactory.VersionDetector" extends="java.lang.Enum"
  77604. abstract="false"
  77605. static="true" final="false" visibility="public"
  77606. deprecated="not deprecated">
  77607. <method name="values" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector[]"
  77608. abstract="false" native="false" synchronized="false"
  77609. static="true" final="false" visibility="public"
  77610. deprecated="not deprecated">
  77611. </method>
  77612. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  77613. abstract="false" native="false" synchronized="false"
  77614. static="true" final="false" visibility="public"
  77615. deprecated="not deprecated">
  77616. <param name="name" type="java.lang.String"/>
  77617. </method>
  77618. <field name="Hadoop20" type="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  77619. transient="false" volatile="false"
  77620. static="true" final="true" visibility="public"
  77621. deprecated="not deprecated">
  77622. </field>
  77623. </class>
  77624. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  77625. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  77626. <class name="JobHistoryUtils" extends="java.lang.Object"
  77627. abstract="false"
  77628. static="false" final="false" visibility="public"
  77629. deprecated="not deprecated">
  77630. <constructor name="JobHistoryUtils"
  77631. static="false" final="false" visibility="public"
  77632. deprecated="not deprecated">
  77633. </constructor>
  77634. </class>
  77635. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  77636. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  77637. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  77638. abstract="false"
  77639. static="false" final="false" visibility="public"
  77640. deprecated="not deprecated">
  77641. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77642. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  77643. static="false" final="false" visibility="public"
  77644. deprecated="not deprecated">
  77645. <doc>
  77646. <![CDATA[Create a event to record the submit and launch time of a job
  77647. @param id Job Id
  77648. @param submitTime Submit time of the job
  77649. @param launchTime Launch time of the job]]>
  77650. </doc>
  77651. </constructor>
  77652. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77653. abstract="false" native="false" synchronized="false"
  77654. static="false" final="false" visibility="public"
  77655. deprecated="not deprecated">
  77656. <doc>
  77657. <![CDATA[Get the Job ID]]>
  77658. </doc>
  77659. </method>
  77660. <method name="getSubmitTime" return="long"
  77661. abstract="false" native="false" synchronized="false"
  77662. static="false" final="false" visibility="public"
  77663. deprecated="not deprecated">
  77664. <doc>
  77665. <![CDATA[Get the Job submit time]]>
  77666. </doc>
  77667. </method>
  77668. <method name="getLaunchTime" return="long"
  77669. abstract="false" native="false" synchronized="false"
  77670. static="false" final="false" visibility="public"
  77671. deprecated="not deprecated">
  77672. <doc>
  77673. <![CDATA[Get the Job launch time]]>
  77674. </doc>
  77675. </method>
  77676. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77677. abstract="false" native="false" synchronized="false"
  77678. static="false" final="false" visibility="public"
  77679. deprecated="not deprecated">
  77680. </method>
  77681. <doc>
  77682. <![CDATA[Event to record changes in the submit and launch time of
  77683. a job]]>
  77684. </doc>
  77685. </class>
  77686. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  77687. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  77688. <class name="JobInitedEvent" extends="java.lang.Object"
  77689. abstract="false"
  77690. static="false" final="false" visibility="public"
  77691. deprecated="not deprecated">
  77692. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77693. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  77694. static="false" final="false" visibility="public"
  77695. deprecated="not deprecated">
  77696. <doc>
  77697. <![CDATA[Create an event to record job initialization
  77698. @param id
  77699. @param launchTime
  77700. @param totalMaps
  77701. @param totalReduces
  77702. @param jobStatus]]>
  77703. </doc>
  77704. </constructor>
  77705. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77706. abstract="false" native="false" synchronized="false"
  77707. static="false" final="false" visibility="public"
  77708. deprecated="not deprecated">
  77709. <doc>
  77710. <![CDATA[Get the job ID]]>
  77711. </doc>
  77712. </method>
  77713. <method name="getLaunchTime" return="long"
  77714. abstract="false" native="false" synchronized="false"
  77715. static="false" final="false" visibility="public"
  77716. deprecated="not deprecated">
  77717. <doc>
  77718. <![CDATA[Get the launch time]]>
  77719. </doc>
  77720. </method>
  77721. <method name="getTotalMaps" return="int"
  77722. abstract="false" native="false" synchronized="false"
  77723. static="false" final="false" visibility="public"
  77724. deprecated="not deprecated">
  77725. <doc>
  77726. <![CDATA[Get the total number of maps]]>
  77727. </doc>
  77728. </method>
  77729. <method name="getTotalReduces" return="int"
  77730. abstract="false" native="false" synchronized="false"
  77731. static="false" final="false" visibility="public"
  77732. deprecated="not deprecated">
  77733. <doc>
  77734. <![CDATA[Get the total number of reduces]]>
  77735. </doc>
  77736. </method>
  77737. <method name="getStatus" return="java.lang.String"
  77738. abstract="false" native="false" synchronized="false"
  77739. static="false" final="false" visibility="public"
  77740. deprecated="not deprecated">
  77741. <doc>
  77742. <![CDATA[Get the status]]>
  77743. </doc>
  77744. </method>
  77745. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77746. abstract="false" native="false" synchronized="false"
  77747. static="false" final="false" visibility="public"
  77748. deprecated="not deprecated">
  77749. <doc>
  77750. <![CDATA[Get the event type]]>
  77751. </doc>
  77752. </method>
  77753. <doc>
  77754. <![CDATA[Event to record the initialization of a job]]>
  77755. </doc>
  77756. </class>
  77757. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  77758. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  77759. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  77760. abstract="false"
  77761. static="false" final="false" visibility="public"
  77762. deprecated="not deprecated">
  77763. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77764. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  77765. static="false" final="false" visibility="public"
  77766. deprecated="not deprecated">
  77767. <doc>
  77768. <![CDATA[Generate an event to record changes in Job priority
  77769. @param id Job Id
  77770. @param priority The new priority of the job]]>
  77771. </doc>
  77772. </constructor>
  77773. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77774. abstract="false" native="false" synchronized="false"
  77775. static="false" final="false" visibility="public"
  77776. deprecated="not deprecated">
  77777. <doc>
  77778. <![CDATA[Get the Job ID]]>
  77779. </doc>
  77780. </method>
  77781. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  77782. abstract="false" native="false" synchronized="false"
  77783. static="false" final="false" visibility="public"
  77784. deprecated="not deprecated">
  77785. <doc>
  77786. <![CDATA[Get the job priority]]>
  77787. </doc>
  77788. </method>
  77789. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77790. abstract="false" native="false" synchronized="false"
  77791. static="false" final="false" visibility="public"
  77792. deprecated="not deprecated">
  77793. <doc>
  77794. <![CDATA[Get the event type]]>
  77795. </doc>
  77796. </method>
  77797. <doc>
  77798. <![CDATA[Event to record the change of priority of a job]]>
  77799. </doc>
  77800. </class>
  77801. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  77802. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  77803. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  77804. abstract="false"
  77805. static="false" final="false" visibility="public"
  77806. deprecated="not deprecated">
  77807. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77808. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  77809. static="false" final="false" visibility="public"
  77810. deprecated="not deprecated">
  77811. <doc>
  77812. <![CDATA[Create an event to record the change in the Job Status
  77813. @param id Job ID
  77814. @param jobStatus The new job status]]>
  77815. </doc>
  77816. </constructor>
  77817. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77818. abstract="false" native="false" synchronized="false"
  77819. static="false" final="false" visibility="public"
  77820. deprecated="not deprecated">
  77821. <doc>
  77822. <![CDATA[Get the Job Id]]>
  77823. </doc>
  77824. </method>
  77825. <method name="getStatus" return="java.lang.String"
  77826. abstract="false" native="false" synchronized="false"
  77827. static="false" final="false" visibility="public"
  77828. deprecated="not deprecated">
  77829. <doc>
  77830. <![CDATA[Get the event status]]>
  77831. </doc>
  77832. </method>
  77833. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77834. abstract="false" native="false" synchronized="false"
  77835. static="false" final="false" visibility="public"
  77836. deprecated="not deprecated">
  77837. <doc>
  77838. <![CDATA[Get the event type]]>
  77839. </doc>
  77840. </method>
  77841. <doc>
  77842. <![CDATA[Event to record the change of status for a job]]>
  77843. </doc>
  77844. </class>
  77845. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  77846. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  77847. <interface name="JobStory" abstract="true"
  77848. static="false" final="false" visibility="public"
  77849. deprecated="not deprecated">
  77850. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  77851. abstract="false" native="false" synchronized="false"
  77852. static="false" final="false" visibility="public"
  77853. deprecated="not deprecated">
  77854. <doc>
  77855. <![CDATA[Get the {@link JobConf} for the job.
  77856. @return the <code>JobConf</code> for the job]]>
  77857. </doc>
  77858. </method>
  77859. <method name="getName" return="java.lang.String"
  77860. abstract="false" native="false" synchronized="false"
  77861. static="false" final="false" visibility="public"
  77862. deprecated="not deprecated">
  77863. <doc>
  77864. <![CDATA[Get the job name.
  77865. @return the job name]]>
  77866. </doc>
  77867. </method>
  77868. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  77869. abstract="false" native="false" synchronized="false"
  77870. static="false" final="false" visibility="public"
  77871. deprecated="not deprecated">
  77872. <doc>
  77873. <![CDATA[Get the job ID
  77874. @return the job ID]]>
  77875. </doc>
  77876. </method>
  77877. <method name="getUser" return="java.lang.String"
  77878. abstract="false" native="false" synchronized="false"
  77879. static="false" final="false" visibility="public"
  77880. deprecated="not deprecated">
  77881. <doc>
  77882. <![CDATA[Get the user who ran the job.
  77883. @return the user who ran the job]]>
  77884. </doc>
  77885. </method>
  77886. <method name="getSubmissionTime" return="long"
  77887. abstract="false" native="false" synchronized="false"
  77888. static="false" final="false" visibility="public"
  77889. deprecated="not deprecated">
  77890. <doc>
  77891. <![CDATA[Get the job submission time.
  77892. @return the job submission time]]>
  77893. </doc>
  77894. </method>
  77895. <method name="getNumberMaps" return="int"
  77896. abstract="false" native="false" synchronized="false"
  77897. static="false" final="false" visibility="public"
  77898. deprecated="not deprecated">
  77899. <doc>
  77900. <![CDATA[Get the number of maps in the {@link JobStory}.
  77901. @return the number of maps in the <code>Job</code>]]>
  77902. </doc>
  77903. </method>
  77904. <method name="getNumberReduces" return="int"
  77905. abstract="false" native="false" synchronized="false"
  77906. static="false" final="false" visibility="public"
  77907. deprecated="not deprecated">
  77908. <doc>
  77909. <![CDATA[Get the number of reduce in the {@link JobStory}.
  77910. @return the number of reduces in the <code>Job</code>]]>
  77911. </doc>
  77912. </method>
  77913. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  77914. abstract="false" native="false" synchronized="false"
  77915. static="false" final="false" visibility="public"
  77916. deprecated="not deprecated">
  77917. <doc>
  77918. <![CDATA[Get the input splits for the job.
  77919. @return the input splits for the job]]>
  77920. </doc>
  77921. </method>
  77922. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  77923. abstract="false" native="false" synchronized="false"
  77924. static="false" final="false" visibility="public"
  77925. deprecated="not deprecated">
  77926. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  77927. <param name="taskNumber" type="int"/>
  77928. <doc>
  77929. <![CDATA[Get {@link TaskInfo} for a given task.
  77930. @param taskType {@link TaskType} of the task
  77931. @param taskNumber Partition number of the task
  77932. @return the <code>TaskInfo</code> for the given task]]>
  77933. </doc>
  77934. </method>
  77935. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77936. abstract="false" native="false" synchronized="false"
  77937. static="false" final="false" visibility="public"
  77938. deprecated="not deprecated">
  77939. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  77940. <param name="taskNumber" type="int"/>
  77941. <param name="taskAttemptNumber" type="int"/>
  77942. <doc>
  77943. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  77944. impact of locality (e.g. not needed to make scheduling decisions).
  77945. @param taskType {@link TaskType} of the task-attempt
  77946. @param taskNumber Partition number of the task-attempt
  77947. @param taskAttemptNumber Attempt number of the task
  77948. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  77949. </doc>
  77950. </method>
  77951. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77952. abstract="false" native="false" synchronized="false"
  77953. static="false" final="false" visibility="public"
  77954. deprecated="not deprecated">
  77955. <param name="taskNumber" type="int"/>
  77956. <param name="taskAttemptNumber" type="int"/>
  77957. <param name="locality" type="int"/>
  77958. <doc>
  77959. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  77960. of locality.
  77961. @param taskNumber Partition number of the task-attempt
  77962. @param taskAttemptNumber Attempt number of the task
  77963. @param locality Data locality of the task as scheduled in simulation
  77964. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  77965. </doc>
  77966. </method>
  77967. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77968. abstract="false" native="false" synchronized="false"
  77969. static="false" final="false" visibility="public"
  77970. deprecated="not deprecated">
  77971. <doc>
  77972. <![CDATA[Get the outcome of the job execution.
  77973. @return The outcome of the job execution.]]>
  77974. </doc>
  77975. </method>
  77976. <method name="getQueueName" return="java.lang.String"
  77977. abstract="false" native="false" synchronized="false"
  77978. static="false" final="false" visibility="public"
  77979. deprecated="not deprecated">
  77980. <doc>
  77981. <![CDATA[Get the queue where the job is submitted.
  77982. @return the queue where the job is submitted.]]>
  77983. </doc>
  77984. </method>
  77985. <doc>
  77986. <![CDATA[{@link JobStory} represents the runtime information available for a
  77987. completed Map-Reduce job.]]>
  77988. </doc>
  77989. </interface>
  77990. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  77991. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  77992. <interface name="JobStoryProducer" abstract="true"
  77993. static="false" final="false" visibility="public"
  77994. deprecated="not deprecated">
  77995. <implements name="java.io.Closeable"/>
  77996. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  77997. abstract="false" native="false" synchronized="false"
  77998. static="false" final="false" visibility="public"
  77999. deprecated="not deprecated">
  78000. <exception name="IOException" type="java.io.IOException"/>
  78001. <doc>
  78002. <![CDATA[Get the next job.
  78003. @return The next job. Or null if no more job is available.
  78004. @throws IOException]]>
  78005. </doc>
  78006. </method>
  78007. <doc>
  78008. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  78009. </doc>
  78010. </interface>
  78011. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  78012. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  78013. <class name="JobSubmittedEvent" extends="java.lang.Object"
  78014. abstract="false"
  78015. static="false" final="false" visibility="public"
  78016. deprecated="not deprecated">
  78017. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78018. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  78019. static="false" final="false" visibility="public"
  78020. deprecated="Use
  78021. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78022. Map, String)}
  78023. instead.">
  78024. <doc>
  78025. <![CDATA[@deprecated Use
  78026. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78027. Map, String)}
  78028. instead.]]>
  78029. </doc>
  78030. </constructor>
  78031. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  78032. static="false" final="false" visibility="public"
  78033. deprecated="Use
  78034. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78035. Map, String)}
  78036. instead.">
  78037. <doc>
  78038. <![CDATA[@deprecated Use
  78039. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78040. Map, String)}
  78041. instead.]]>
  78042. </doc>
  78043. </constructor>
  78044. <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"
  78045. static="false" final="false" visibility="public"
  78046. deprecated="not deprecated">
  78047. <doc>
  78048. <![CDATA[Create an event to record job submission
  78049. @param id The job Id of the job
  78050. @param jobName Name of the job
  78051. @param userName Name of the user who submitted the job
  78052. @param submitTime Time of submission
  78053. @param jobConfPath Path of the Job Configuration file
  78054. @param jobACLs The configured acls for the job.
  78055. @param queue job queue name]]>
  78056. </doc>
  78057. </constructor>
  78058. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  78059. abstract="false" native="false" synchronized="false"
  78060. static="false" final="false" visibility="public"
  78061. deprecated="not deprecated">
  78062. <doc>
  78063. <![CDATA[Get the Job Id]]>
  78064. </doc>
  78065. </method>
  78066. <method name="getJobName" return="java.lang.String"
  78067. abstract="false" native="false" synchronized="false"
  78068. static="false" final="false" visibility="public"
  78069. deprecated="not deprecated">
  78070. <doc>
  78071. <![CDATA[Get the Job name]]>
  78072. </doc>
  78073. </method>
  78074. <method name="getUserName" return="java.lang.String"
  78075. abstract="false" native="false" synchronized="false"
  78076. static="false" final="false" visibility="public"
  78077. deprecated="not deprecated">
  78078. <doc>
  78079. <![CDATA[Get the user name]]>
  78080. </doc>
  78081. </method>
  78082. <method name="getSubmitTime" return="long"
  78083. abstract="false" native="false" synchronized="false"
  78084. static="false" final="false" visibility="public"
  78085. deprecated="not deprecated">
  78086. <doc>
  78087. <![CDATA[Get the submit time]]>
  78088. </doc>
  78089. </method>
  78090. <method name="getJobConfPath" return="java.lang.String"
  78091. abstract="false" native="false" synchronized="false"
  78092. static="false" final="false" visibility="public"
  78093. deprecated="not deprecated">
  78094. <doc>
  78095. <![CDATA[Get the Path for the Job Configuration file]]>
  78096. </doc>
  78097. </method>
  78098. <method name="getJobAcls" return="java.util.Map"
  78099. abstract="false" native="false" synchronized="false"
  78100. static="false" final="false" visibility="public"
  78101. deprecated="not deprecated">
  78102. <doc>
  78103. <![CDATA[Get the acls configured for the job]]>
  78104. </doc>
  78105. </method>
  78106. <method name="getJobQueueName" return="java.lang.String"
  78107. abstract="false" native="false" synchronized="false"
  78108. static="false" final="false" visibility="public"
  78109. deprecated="not deprecated">
  78110. </method>
  78111. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78112. abstract="false" native="false" synchronized="false"
  78113. static="false" final="false" visibility="public"
  78114. deprecated="not deprecated">
  78115. <doc>
  78116. <![CDATA[Get the event type]]>
  78117. </doc>
  78118. </method>
  78119. <doc>
  78120. <![CDATA[Event to record the submission of a job]]>
  78121. </doc>
  78122. </class>
  78123. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  78124. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  78125. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  78126. abstract="false"
  78127. static="false" final="false" visibility="public"
  78128. deprecated="not deprecated">
  78129. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  78130. static="false" final="false" visibility="public"
  78131. deprecated="not deprecated">
  78132. <exception name="IOException" type="java.io.IOException"/>
  78133. <doc>
  78134. <![CDATA[Constructor.
  78135. @param path
  78136. Path to the JSON trace file, possibly compressed.
  78137. @param conf
  78138. @throws IOException]]>
  78139. </doc>
  78140. </constructor>
  78141. <constructor name="JobTraceReader" type="java.io.InputStream"
  78142. static="false" final="false" visibility="public"
  78143. deprecated="not deprecated">
  78144. <exception name="IOException" type="java.io.IOException"/>
  78145. <doc>
  78146. <![CDATA[Constructor.
  78147. @param input
  78148. The input stream for the JSON trace.]]>
  78149. </doc>
  78150. </constructor>
  78151. <doc>
  78152. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  78153. </doc>
  78154. </class>
  78155. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  78156. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  78157. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  78158. abstract="false"
  78159. static="false" final="false" visibility="public"
  78160. deprecated="not deprecated">
  78161. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78162. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  78163. static="false" final="false" visibility="public"
  78164. deprecated="not deprecated">
  78165. <doc>
  78166. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  78167. @param id Job ID
  78168. @param finishTime Finish time of the job
  78169. @param finishedMaps Number of finished maps
  78170. @param finishedReduces Number of finished reduces
  78171. @param status Status of the job]]>
  78172. </doc>
  78173. </constructor>
  78174. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  78175. abstract="false" native="false" synchronized="false"
  78176. static="false" final="false" visibility="public"
  78177. deprecated="not deprecated">
  78178. <doc>
  78179. <![CDATA[Get the Job ID]]>
  78180. </doc>
  78181. </method>
  78182. <method name="getFinishTime" return="long"
  78183. abstract="false" native="false" synchronized="false"
  78184. static="false" final="false" visibility="public"
  78185. deprecated="not deprecated">
  78186. <doc>
  78187. <![CDATA[Get the job finish time]]>
  78188. </doc>
  78189. </method>
  78190. <method name="getFinishedMaps" return="int"
  78191. abstract="false" native="false" synchronized="false"
  78192. static="false" final="false" visibility="public"
  78193. deprecated="not deprecated">
  78194. <doc>
  78195. <![CDATA[Get the number of finished maps]]>
  78196. </doc>
  78197. </method>
  78198. <method name="getFinishedReduces" return="int"
  78199. abstract="false" native="false" synchronized="false"
  78200. static="false" final="false" visibility="public"
  78201. deprecated="not deprecated">
  78202. <doc>
  78203. <![CDATA[Get the number of finished reduces]]>
  78204. </doc>
  78205. </method>
  78206. <method name="getStatus" return="java.lang.String"
  78207. abstract="false" native="false" synchronized="false"
  78208. static="false" final="false" visibility="public"
  78209. deprecated="not deprecated">
  78210. <doc>
  78211. <![CDATA[Get the status]]>
  78212. </doc>
  78213. </method>
  78214. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78215. abstract="false" native="false" synchronized="false"
  78216. static="false" final="false" visibility="public"
  78217. deprecated="not deprecated">
  78218. <doc>
  78219. <![CDATA[Get the event type]]>
  78220. </doc>
  78221. </method>
  78222. <doc>
  78223. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  78224. </doc>
  78225. </class>
  78226. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  78227. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  78228. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  78229. abstract="false"
  78230. static="false" final="false" visibility="public"
  78231. deprecated="not deprecated">
  78232. <implements name="java.io.Closeable"/>
  78233. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  78234. static="false" final="false" visibility="public"
  78235. deprecated="not deprecated">
  78236. <exception name="IOException" type="java.io.IOException"/>
  78237. </constructor>
  78238. <method name="write"
  78239. abstract="false" native="false" synchronized="false"
  78240. static="false" final="false" visibility="public"
  78241. deprecated="not deprecated">
  78242. <param name="object" type="java.lang.Object"/>
  78243. <exception name="IOException" type="java.io.IOException"/>
  78244. </method>
  78245. <method name="close"
  78246. abstract="false" native="false" synchronized="false"
  78247. static="false" final="false" visibility="public"
  78248. deprecated="not deprecated">
  78249. <exception name="IOException" type="java.io.IOException"/>
  78250. </method>
  78251. <doc>
  78252. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  78253. @param <T> The type of the objects to be written.]]>
  78254. </doc>
  78255. </class>
  78256. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  78257. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  78258. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  78259. abstract="false"
  78260. static="false" final="false" visibility="public"
  78261. deprecated="not deprecated">
  78262. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78263. <constructor name="LoggedDiscreteCDF"
  78264. static="false" final="false" visibility="public"
  78265. deprecated="not deprecated">
  78266. </constructor>
  78267. <method name="getMinimum" return="long"
  78268. abstract="false" native="false" synchronized="false"
  78269. static="false" final="false" visibility="public"
  78270. deprecated="not deprecated">
  78271. </method>
  78272. <method name="getRankings" return="java.util.List"
  78273. abstract="false" native="false" synchronized="false"
  78274. static="false" final="false" visibility="public"
  78275. deprecated="not deprecated">
  78276. </method>
  78277. <method name="getMaximum" return="long"
  78278. abstract="false" native="false" synchronized="false"
  78279. static="false" final="false" visibility="public"
  78280. deprecated="not deprecated">
  78281. </method>
  78282. <method name="getNumberValues" return="long"
  78283. abstract="false" native="false" synchronized="false"
  78284. static="false" final="false" visibility="public"
  78285. deprecated="not deprecated">
  78286. </method>
  78287. <method name="deepCompare"
  78288. abstract="false" native="false" synchronized="false"
  78289. static="false" final="false" visibility="public"
  78290. deprecated="not deprecated">
  78291. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78292. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78293. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78294. </method>
  78295. <doc>
  78296. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  78297. distribution function, with this class set up to meet the requirements of the
  78298. Jackson JSON parser/generator.
  78299. All of the public methods are simply accessors for the instance variables we
  78300. want to write out in the JSON files.]]>
  78301. </doc>
  78302. </class>
  78303. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  78304. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  78305. <class name="LoggedJob" extends="java.lang.Object"
  78306. abstract="false"
  78307. static="false" final="false" visibility="public"
  78308. deprecated="not deprecated">
  78309. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78310. <method name="getJobProperties" return="java.util.Properties"
  78311. abstract="false" native="false" synchronized="false"
  78312. static="false" final="false" visibility="public"
  78313. deprecated="not deprecated">
  78314. <doc>
  78315. <![CDATA[Get the configuration properties of the job.]]>
  78316. </doc>
  78317. </method>
  78318. <method name="setUnknownAttribute"
  78319. abstract="false" native="false" synchronized="false"
  78320. static="false" final="false" visibility="public"
  78321. deprecated="not deprecated">
  78322. <param name="attributeName" type="java.lang.String"/>
  78323. <param name="ignored" type="java.lang.Object"/>
  78324. </method>
  78325. <method name="getUser" return="java.lang.String"
  78326. abstract="false" native="false" synchronized="false"
  78327. static="false" final="false" visibility="public"
  78328. deprecated="not deprecated">
  78329. </method>
  78330. <method name="getJobID" return="java.lang.String"
  78331. abstract="false" native="false" synchronized="false"
  78332. static="false" final="false" visibility="public"
  78333. deprecated="not deprecated">
  78334. </method>
  78335. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78336. abstract="false" native="false" synchronized="false"
  78337. static="false" final="false" visibility="public"
  78338. deprecated="not deprecated">
  78339. </method>
  78340. <method name="getComputonsPerMapInputByte" return="long"
  78341. abstract="false" native="false" synchronized="false"
  78342. static="false" final="false" visibility="public"
  78343. deprecated="not deprecated">
  78344. </method>
  78345. <method name="getComputonsPerMapOutputByte" return="long"
  78346. abstract="false" native="false" synchronized="false"
  78347. static="false" final="false" visibility="public"
  78348. deprecated="not deprecated">
  78349. </method>
  78350. <method name="getComputonsPerReduceInputByte" return="long"
  78351. abstract="false" native="false" synchronized="false"
  78352. static="false" final="false" visibility="public"
  78353. deprecated="not deprecated">
  78354. </method>
  78355. <method name="getComputonsPerReduceOutputByte" return="long"
  78356. abstract="false" native="false" synchronized="false"
  78357. static="false" final="false" visibility="public"
  78358. deprecated="not deprecated">
  78359. </method>
  78360. <method name="getSubmitTime" return="long"
  78361. abstract="false" native="false" synchronized="false"
  78362. static="false" final="false" visibility="public"
  78363. deprecated="not deprecated">
  78364. </method>
  78365. <method name="getLaunchTime" return="long"
  78366. abstract="false" native="false" synchronized="false"
  78367. static="false" final="false" visibility="public"
  78368. deprecated="not deprecated">
  78369. </method>
  78370. <method name="getFinishTime" return="long"
  78371. abstract="false" native="false" synchronized="false"
  78372. static="false" final="false" visibility="public"
  78373. deprecated="not deprecated">
  78374. </method>
  78375. <method name="getHeapMegabytes" return="int"
  78376. abstract="false" native="false" synchronized="false"
  78377. static="false" final="false" visibility="public"
  78378. deprecated="not deprecated">
  78379. </method>
  78380. <method name="getTotalMaps" return="int"
  78381. abstract="false" native="false" synchronized="false"
  78382. static="false" final="false" visibility="public"
  78383. deprecated="not deprecated">
  78384. </method>
  78385. <method name="getTotalReduces" return="int"
  78386. abstract="false" native="false" synchronized="false"
  78387. static="false" final="false" visibility="public"
  78388. deprecated="not deprecated">
  78389. </method>
  78390. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78391. abstract="false" native="false" synchronized="false"
  78392. static="false" final="false" visibility="public"
  78393. deprecated="not deprecated">
  78394. </method>
  78395. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78396. abstract="false" native="false" synchronized="false"
  78397. static="false" final="false" visibility="public"
  78398. deprecated="not deprecated">
  78399. </method>
  78400. <method name="getDirectDependantJobs" return="java.util.List"
  78401. abstract="false" native="false" synchronized="false"
  78402. static="false" final="false" visibility="public"
  78403. deprecated="not deprecated">
  78404. </method>
  78405. <method name="getMapTasks" return="java.util.List"
  78406. abstract="false" native="false" synchronized="false"
  78407. static="false" final="false" visibility="public"
  78408. deprecated="not deprecated">
  78409. </method>
  78410. <method name="getReduceTasks" return="java.util.List"
  78411. abstract="false" native="false" synchronized="false"
  78412. static="false" final="false" visibility="public"
  78413. deprecated="not deprecated">
  78414. </method>
  78415. <method name="getOtherTasks" return="java.util.List"
  78416. abstract="false" native="false" synchronized="false"
  78417. static="false" final="false" visibility="public"
  78418. deprecated="not deprecated">
  78419. </method>
  78420. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  78421. abstract="false" native="false" synchronized="false"
  78422. static="false" final="false" visibility="public"
  78423. deprecated="not deprecated">
  78424. </method>
  78425. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  78426. abstract="false" native="false" synchronized="false"
  78427. static="false" final="false" visibility="public"
  78428. deprecated="not deprecated">
  78429. </method>
  78430. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  78431. abstract="false" native="false" synchronized="false"
  78432. static="false" final="false" visibility="public"
  78433. deprecated="not deprecated">
  78434. </method>
  78435. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  78436. abstract="false" native="false" synchronized="false"
  78437. static="false" final="false" visibility="public"
  78438. deprecated="not deprecated">
  78439. </method>
  78440. <method name="getMapperTriesToSucceed" return="double[]"
  78441. abstract="false" native="false" synchronized="false"
  78442. static="false" final="false" visibility="public"
  78443. deprecated="not deprecated">
  78444. </method>
  78445. <method name="getFailedMapperFraction" return="double"
  78446. abstract="false" native="false" synchronized="false"
  78447. static="false" final="false" visibility="public"
  78448. deprecated="not deprecated">
  78449. </method>
  78450. <method name="getRelativeTime" return="long"
  78451. abstract="false" native="false" synchronized="false"
  78452. static="false" final="false" visibility="public"
  78453. deprecated="not deprecated">
  78454. </method>
  78455. <method name="getQueue" return="java.lang.String"
  78456. abstract="false" native="false" synchronized="false"
  78457. static="false" final="false" visibility="public"
  78458. deprecated="not deprecated">
  78459. <doc>
  78460. <![CDATA[@return job queue name if it is available in job history file or
  78461. job history conf file. Returns null otherwise.]]>
  78462. </doc>
  78463. </method>
  78464. <method name="getJobName" return="java.lang.String"
  78465. abstract="false" native="false" synchronized="false"
  78466. static="false" final="false" visibility="public"
  78467. deprecated="not deprecated">
  78468. </method>
  78469. <method name="getClusterMapMB" return="int"
  78470. abstract="false" native="false" synchronized="false"
  78471. static="false" final="false" visibility="public"
  78472. deprecated="not deprecated">
  78473. </method>
  78474. <method name="getClusterReduceMB" return="int"
  78475. abstract="false" native="false" synchronized="false"
  78476. static="false" final="false" visibility="public"
  78477. deprecated="not deprecated">
  78478. </method>
  78479. <method name="getJobMapMB" return="int"
  78480. abstract="false" native="false" synchronized="false"
  78481. static="false" final="false" visibility="public"
  78482. deprecated="not deprecated">
  78483. </method>
  78484. <method name="getJobReduceMB" return="int"
  78485. abstract="false" native="false" synchronized="false"
  78486. static="false" final="false" visibility="public"
  78487. deprecated="not deprecated">
  78488. </method>
  78489. <method name="deepCompare"
  78490. abstract="false" native="false" synchronized="false"
  78491. static="false" final="false" visibility="public"
  78492. deprecated="not deprecated">
  78493. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78494. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78495. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78496. </method>
  78497. <doc>
  78498. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  78499. details of this class set up to meet the requirements of the Jackson JSON
  78500. parser/generator.
  78501. All of the public methods are simply accessors for the instance variables we
  78502. want to write out in the JSON files.]]>
  78503. </doc>
  78504. </class>
  78505. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  78506. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  78507. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  78508. abstract="false"
  78509. static="true" final="true" visibility="public"
  78510. deprecated="not deprecated">
  78511. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  78512. abstract="false" native="false" synchronized="false"
  78513. static="true" final="false" visibility="public"
  78514. deprecated="not deprecated">
  78515. </method>
  78516. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78517. abstract="false" native="false" synchronized="false"
  78518. static="true" final="false" visibility="public"
  78519. deprecated="not deprecated">
  78520. <param name="name" type="java.lang.String"/>
  78521. </method>
  78522. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78523. transient="false" volatile="false"
  78524. static="true" final="true" visibility="public"
  78525. deprecated="not deprecated">
  78526. </field>
  78527. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78528. transient="false" volatile="false"
  78529. static="true" final="true" visibility="public"
  78530. deprecated="not deprecated">
  78531. </field>
  78532. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78533. transient="false" volatile="false"
  78534. static="true" final="true" visibility="public"
  78535. deprecated="not deprecated">
  78536. </field>
  78537. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78538. transient="false" volatile="false"
  78539. static="true" final="true" visibility="public"
  78540. deprecated="not deprecated">
  78541. </field>
  78542. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78543. transient="false" volatile="false"
  78544. static="true" final="true" visibility="public"
  78545. deprecated="not deprecated">
  78546. </field>
  78547. </class>
  78548. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  78549. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  78550. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  78551. abstract="false"
  78552. static="true" final="true" visibility="public"
  78553. deprecated="not deprecated">
  78554. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  78555. abstract="false" native="false" synchronized="false"
  78556. static="true" final="false" visibility="public"
  78557. deprecated="not deprecated">
  78558. </method>
  78559. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78560. abstract="false" native="false" synchronized="false"
  78561. static="true" final="false" visibility="public"
  78562. deprecated="not deprecated">
  78563. <param name="name" type="java.lang.String"/>
  78564. </method>
  78565. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78566. transient="false" volatile="false"
  78567. static="true" final="true" visibility="public"
  78568. deprecated="not deprecated">
  78569. </field>
  78570. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78571. transient="false" volatile="false"
  78572. static="true" final="true" visibility="public"
  78573. deprecated="not deprecated">
  78574. </field>
  78575. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78576. transient="false" volatile="false"
  78577. static="true" final="true" visibility="public"
  78578. deprecated="not deprecated">
  78579. </field>
  78580. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78581. transient="false" volatile="false"
  78582. static="true" final="true" visibility="public"
  78583. deprecated="not deprecated">
  78584. </field>
  78585. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78586. transient="false" volatile="false"
  78587. static="true" final="true" visibility="public"
  78588. deprecated="not deprecated">
  78589. </field>
  78590. </class>
  78591. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  78592. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  78593. <class name="LoggedLocation" extends="java.lang.Object"
  78594. abstract="false"
  78595. static="false" final="false" visibility="public"
  78596. deprecated="not deprecated">
  78597. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78598. <constructor name="LoggedLocation"
  78599. static="false" final="false" visibility="public"
  78600. deprecated="not deprecated">
  78601. </constructor>
  78602. <method name="getLayers" return="java.util.List"
  78603. abstract="false" native="false" synchronized="false"
  78604. static="false" final="false" visibility="public"
  78605. deprecated="not deprecated">
  78606. </method>
  78607. <method name="setUnknownAttribute"
  78608. abstract="false" native="false" synchronized="false"
  78609. static="false" final="false" visibility="public"
  78610. deprecated="not deprecated">
  78611. <param name="attributeName" type="java.lang.String"/>
  78612. <param name="ignored" type="java.lang.Object"/>
  78613. </method>
  78614. <method name="deepCompare"
  78615. abstract="false" native="false" synchronized="false"
  78616. static="false" final="false" visibility="public"
  78617. deprecated="not deprecated">
  78618. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78619. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78620. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78621. </method>
  78622. <doc>
  78623. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  78624. network, represented as a series of membership names, broadest first.
  78625. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  78626. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  78627. would be represented with a ArrayList of two layers, with two {@link String}
  78628. s being {@code "rack1"} and {@code "node1"}.
  78629. The details of this class are set up to meet the requirements of the Jackson
  78630. JSON parser/generator.
  78631. All of the public methods are simply accessors for the instance variables we
  78632. want to write out in the JSON files.]]>
  78633. </doc>
  78634. </class>
  78635. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  78636. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  78637. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  78638. abstract="false"
  78639. static="false" final="false" visibility="public"
  78640. deprecated="not deprecated">
  78641. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78642. <constructor name="LoggedNetworkTopology"
  78643. static="false" final="false" visibility="public"
  78644. deprecated="not deprecated">
  78645. </constructor>
  78646. <method name="setUnknownAttribute"
  78647. abstract="false" native="false" synchronized="false"
  78648. static="false" final="false" visibility="public"
  78649. deprecated="not deprecated">
  78650. <param name="attributeName" type="java.lang.String"/>
  78651. <param name="ignored" type="java.lang.Object"/>
  78652. </method>
  78653. <method name="getName" return="java.lang.String"
  78654. abstract="false" native="false" synchronized="false"
  78655. static="false" final="false" visibility="public"
  78656. deprecated="not deprecated">
  78657. </method>
  78658. <method name="getChildren" return="java.util.List"
  78659. abstract="false" native="false" synchronized="false"
  78660. static="false" final="false" visibility="public"
  78661. deprecated="not deprecated">
  78662. </method>
  78663. <method name="deepCompare"
  78664. abstract="false" native="false" synchronized="false"
  78665. static="false" final="false" visibility="public"
  78666. deprecated="not deprecated">
  78667. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78668. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78669. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78670. </method>
  78671. <doc>
  78672. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  78673. hierarchy of hosts. The current version requires the tree to have all leaves
  78674. at the same level.
  78675. All of the public methods are simply accessors for the instance variables we
  78676. want to write out in the JSON files.]]>
  78677. </doc>
  78678. </class>
  78679. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  78680. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  78681. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  78682. abstract="false"
  78683. static="false" final="false" visibility="public"
  78684. deprecated="not deprecated">
  78685. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78686. <constructor name="LoggedSingleRelativeRanking"
  78687. static="false" final="false" visibility="public"
  78688. deprecated="not deprecated">
  78689. </constructor>
  78690. <method name="setUnknownAttribute"
  78691. abstract="false" native="false" synchronized="false"
  78692. static="false" final="false" visibility="public"
  78693. deprecated="not deprecated">
  78694. <param name="attributeName" type="java.lang.String"/>
  78695. <param name="ignored" type="java.lang.Object"/>
  78696. </method>
  78697. <method name="getRelativeRanking" return="double"
  78698. abstract="false" native="false" synchronized="false"
  78699. static="false" final="false" visibility="public"
  78700. deprecated="not deprecated">
  78701. </method>
  78702. <method name="getDatum" return="long"
  78703. abstract="false" native="false" synchronized="false"
  78704. static="false" final="false" visibility="public"
  78705. deprecated="not deprecated">
  78706. </method>
  78707. <method name="deepCompare"
  78708. abstract="false" native="false" synchronized="false"
  78709. static="false" final="false" visibility="public"
  78710. deprecated="not deprecated">
  78711. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78712. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78713. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78714. </method>
  78715. <doc>
  78716. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  78717. single point in a discrete CDF.
  78718. All of the public methods are simply accessors for the instance variables we
  78719. want to write out in the JSON files.]]>
  78720. </doc>
  78721. </class>
  78722. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  78723. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  78724. <class name="LoggedTask" extends="java.lang.Object"
  78725. abstract="false"
  78726. static="false" final="false" visibility="public"
  78727. deprecated="not deprecated">
  78728. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78729. <method name="setUnknownAttribute"
  78730. abstract="false" native="false" synchronized="false"
  78731. static="false" final="false" visibility="public"
  78732. deprecated="not deprecated">
  78733. <param name="attributeName" type="java.lang.String"/>
  78734. <param name="ignored" type="java.lang.Object"/>
  78735. </method>
  78736. <method name="getInputBytes" return="long"
  78737. abstract="false" native="false" synchronized="false"
  78738. static="false" final="false" visibility="public"
  78739. deprecated="not deprecated">
  78740. </method>
  78741. <method name="getInputRecords" return="long"
  78742. abstract="false" native="false" synchronized="false"
  78743. static="false" final="false" visibility="public"
  78744. deprecated="not deprecated">
  78745. </method>
  78746. <method name="getOutputBytes" return="long"
  78747. abstract="false" native="false" synchronized="false"
  78748. static="false" final="false" visibility="public"
  78749. deprecated="not deprecated">
  78750. </method>
  78751. <method name="getOutputRecords" return="long"
  78752. abstract="false" native="false" synchronized="false"
  78753. static="false" final="false" visibility="public"
  78754. deprecated="not deprecated">
  78755. </method>
  78756. <method name="getTaskID" return="java.lang.String"
  78757. abstract="false" native="false" synchronized="false"
  78758. static="false" final="false" visibility="public"
  78759. deprecated="not deprecated">
  78760. </method>
  78761. <method name="getStartTime" return="long"
  78762. abstract="false" native="false" synchronized="false"
  78763. static="false" final="false" visibility="public"
  78764. deprecated="not deprecated">
  78765. </method>
  78766. <method name="getFinishTime" return="long"
  78767. abstract="false" native="false" synchronized="false"
  78768. static="false" final="false" visibility="public"
  78769. deprecated="not deprecated">
  78770. </method>
  78771. <method name="getAttempts" return="java.util.List"
  78772. abstract="false" native="false" synchronized="false"
  78773. static="false" final="false" visibility="public"
  78774. deprecated="not deprecated">
  78775. </method>
  78776. <method name="getPreferredLocations" return="java.util.List"
  78777. abstract="false" native="false" synchronized="false"
  78778. static="false" final="false" visibility="public"
  78779. deprecated="not deprecated">
  78780. </method>
  78781. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78782. abstract="false" native="false" synchronized="false"
  78783. static="false" final="false" visibility="public"
  78784. deprecated="not deprecated">
  78785. </method>
  78786. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78787. abstract="false" native="false" synchronized="false"
  78788. static="false" final="false" visibility="public"
  78789. deprecated="not deprecated">
  78790. </method>
  78791. <method name="incorporateCounters"
  78792. abstract="false" native="false" synchronized="false"
  78793. static="false" final="false" visibility="public"
  78794. deprecated="not deprecated">
  78795. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  78796. </method>
  78797. <method name="deepCompare"
  78798. abstract="false" native="false" synchronized="false"
  78799. static="false" final="false" visibility="public"
  78800. deprecated="not deprecated">
  78801. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78802. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78803. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78804. </method>
  78805. <doc>
  78806. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  78807. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  78808. and its runtime.
  78809. All of the public methods are simply accessors for the instance variables we
  78810. want to write out in the JSON files.]]>
  78811. </doc>
  78812. </class>
  78813. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  78814. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  78815. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  78816. abstract="false"
  78817. static="false" final="false" visibility="public"
  78818. deprecated="not deprecated">
  78819. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78820. <method name="setUnknownAttribute"
  78821. abstract="false" native="false" synchronized="false"
  78822. static="false" final="false" visibility="public"
  78823. deprecated="not deprecated">
  78824. <param name="attributeName" type="java.lang.String"/>
  78825. <param name="ignored" type="java.lang.Object"/>
  78826. </method>
  78827. <method name="getShuffleFinished" return="long"
  78828. abstract="false" native="false" synchronized="false"
  78829. static="false" final="false" visibility="public"
  78830. deprecated="not deprecated">
  78831. </method>
  78832. <method name="getSortFinished" return="long"
  78833. abstract="false" native="false" synchronized="false"
  78834. static="false" final="false" visibility="public"
  78835. deprecated="not deprecated">
  78836. </method>
  78837. <method name="getAttemptID" return="java.lang.String"
  78838. abstract="false" native="false" synchronized="false"
  78839. static="false" final="false" visibility="public"
  78840. deprecated="not deprecated">
  78841. </method>
  78842. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78843. abstract="false" native="false" synchronized="false"
  78844. static="false" final="false" visibility="public"
  78845. deprecated="not deprecated">
  78846. </method>
  78847. <method name="getStartTime" return="long"
  78848. abstract="false" native="false" synchronized="false"
  78849. static="false" final="false" visibility="public"
  78850. deprecated="not deprecated">
  78851. </method>
  78852. <method name="getFinishTime" return="long"
  78853. abstract="false" native="false" synchronized="false"
  78854. static="false" final="false" visibility="public"
  78855. deprecated="not deprecated">
  78856. </method>
  78857. <method name="getHostName" return="java.lang.String"
  78858. abstract="false" native="false" synchronized="false"
  78859. static="false" final="false" visibility="public"
  78860. deprecated="not deprecated">
  78861. </method>
  78862. <method name="getHdfsBytesRead" return="long"
  78863. abstract="false" native="false" synchronized="false"
  78864. static="false" final="false" visibility="public"
  78865. deprecated="not deprecated">
  78866. </method>
  78867. <method name="getHdfsBytesWritten" return="long"
  78868. abstract="false" native="false" synchronized="false"
  78869. static="false" final="false" visibility="public"
  78870. deprecated="not deprecated">
  78871. </method>
  78872. <method name="getFileBytesRead" return="long"
  78873. abstract="false" native="false" synchronized="false"
  78874. static="false" final="false" visibility="public"
  78875. deprecated="not deprecated">
  78876. </method>
  78877. <method name="getFileBytesWritten" return="long"
  78878. abstract="false" native="false" synchronized="false"
  78879. static="false" final="false" visibility="public"
  78880. deprecated="not deprecated">
  78881. </method>
  78882. <method name="getMapInputRecords" return="long"
  78883. abstract="false" native="false" synchronized="false"
  78884. static="false" final="false" visibility="public"
  78885. deprecated="not deprecated">
  78886. </method>
  78887. <method name="getMapOutputBytes" return="long"
  78888. abstract="false" native="false" synchronized="false"
  78889. static="false" final="false" visibility="public"
  78890. deprecated="not deprecated">
  78891. </method>
  78892. <method name="getMapOutputRecords" return="long"
  78893. abstract="false" native="false" synchronized="false"
  78894. static="false" final="false" visibility="public"
  78895. deprecated="not deprecated">
  78896. </method>
  78897. <method name="getCombineInputRecords" 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="getReduceInputGroups" 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="getReduceInputRecords" return="long"
  78908. abstract="false" native="false" synchronized="false"
  78909. static="false" final="false" visibility="public"
  78910. deprecated="not deprecated">
  78911. </method>
  78912. <method name="getReduceShuffleBytes" return="long"
  78913. abstract="false" native="false" synchronized="false"
  78914. static="false" final="false" visibility="public"
  78915. deprecated="not deprecated">
  78916. </method>
  78917. <method name="getReduceOutputRecords" 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="getSpilledRecords" 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="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  78928. abstract="false" native="false" synchronized="false"
  78929. static="false" final="false" visibility="public"
  78930. deprecated="not deprecated">
  78931. </method>
  78932. <method name="getMapInputBytes" 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="incorporateCounters"
  78938. abstract="false" native="false" synchronized="false"
  78939. static="false" final="false" visibility="public"
  78940. deprecated="not deprecated">
  78941. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  78942. </method>
  78943. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  78944. abstract="false" native="false" synchronized="false"
  78945. static="false" final="false" visibility="public"
  78946. deprecated="not deprecated">
  78947. </method>
  78948. <method name="deepCompare"
  78949. abstract="false" native="false" synchronized="false"
  78950. static="false" final="false" visibility="public"
  78951. deprecated="not deprecated">
  78952. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78953. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78954. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78955. </method>
  78956. <doc>
  78957. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  78958. hadoop job. Note that a task can have several attempts.
  78959. All of the public methods are simply accessors for the instance variables we
  78960. want to write out in the JSON files.]]>
  78961. </doc>
  78962. </class>
  78963. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  78964. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  78965. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  78966. abstract="false"
  78967. static="false" final="true" visibility="public"
  78968. deprecated="not deprecated">
  78969. <method name="equals" return="boolean"
  78970. abstract="false" native="false" synchronized="false"
  78971. static="false" final="false" visibility="public"
  78972. deprecated="not deprecated">
  78973. <param name="obj" type="java.lang.Object"/>
  78974. </method>
  78975. <method name="hashCode" return="int"
  78976. abstract="false" native="false" synchronized="false"
  78977. static="false" final="false" visibility="public"
  78978. deprecated="not deprecated">
  78979. </method>
  78980. <method name="getMemory" return="long"
  78981. abstract="false" native="false" synchronized="false"
  78982. static="false" final="false" visibility="public"
  78983. deprecated="not deprecated">
  78984. <doc>
  78985. <![CDATA[Get the available physical RAM of the node.
  78986. @return The available physical RAM of the node, in KB.]]>
  78987. </doc>
  78988. </method>
  78989. <method name="getMapSlots" return="int"
  78990. abstract="false" native="false" synchronized="false"
  78991. static="false" final="false" visibility="public"
  78992. deprecated="not deprecated">
  78993. <doc>
  78994. <![CDATA[Get the number of map slots of the node.
  78995. @return The number of map slots of the node.]]>
  78996. </doc>
  78997. </method>
  78998. <method name="getReduceSlots" return="int"
  78999. abstract="false" native="false" synchronized="false"
  79000. static="false" final="false" visibility="public"
  79001. deprecated="not deprecated">
  79002. <doc>
  79003. <![CDATA[Get the number of reduce slots of the node.
  79004. @return The number of reduce slots fo the node.]]>
  79005. </doc>
  79006. </method>
  79007. <method name="getMemoryPerMapSlot" return="long"
  79008. abstract="false" native="false" synchronized="false"
  79009. static="false" final="false" visibility="public"
  79010. deprecated="not deprecated">
  79011. <doc>
  79012. <![CDATA[Get the amount of RAM reserved for each map slot.
  79013. @return the amount of RAM reserved for each map slot, in KB.]]>
  79014. </doc>
  79015. </method>
  79016. <method name="getMemoryPerReduceSlot" return="long"
  79017. abstract="false" native="false" synchronized="false"
  79018. static="false" final="false" visibility="public"
  79019. deprecated="not deprecated">
  79020. <doc>
  79021. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  79022. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  79023. </doc>
  79024. </method>
  79025. <method name="getNumCores" return="int"
  79026. abstract="false" native="false" synchronized="false"
  79027. static="false" final="false" visibility="public"
  79028. deprecated="not deprecated">
  79029. <doc>
  79030. <![CDATA[Get the number of cores of the node.
  79031. @return the number of cores of the node.]]>
  79032. </doc>
  79033. </method>
  79034. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  79035. abstract="false" native="false" synchronized="false"
  79036. static="false" final="false" visibility="public"
  79037. deprecated="not deprecated">
  79038. <doc>
  79039. <![CDATA[Get the rack node that the machine belongs to.
  79040. @return The rack node that the machine belongs to. Returns null if the
  79041. machine does not belong to any rack.]]>
  79042. </doc>
  79043. </method>
  79044. <method name="addChild" return="boolean"
  79045. abstract="false" native="false" synchronized="true"
  79046. static="false" final="false" visibility="public"
  79047. deprecated="not deprecated">
  79048. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79049. </method>
  79050. <doc>
  79051. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  79052. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  79053. </doc>
  79054. </class>
  79055. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  79056. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  79057. <class name="MachineNode.Builder" extends="java.lang.Object"
  79058. abstract="false"
  79059. static="true" final="true" visibility="public"
  79060. deprecated="not deprecated">
  79061. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  79062. static="false" final="false" visibility="public"
  79063. deprecated="not deprecated">
  79064. <doc>
  79065. <![CDATA[Start building a new NodeInfo object.
  79066. @param name
  79067. Unique name of the node. Typically the fully qualified domain
  79068. name.]]>
  79069. </doc>
  79070. </constructor>
  79071. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79072. abstract="false" native="false" synchronized="false"
  79073. static="false" final="false" visibility="public"
  79074. deprecated="not deprecated">
  79075. <param name="memory" type="long"/>
  79076. <doc>
  79077. <![CDATA[Set the physical memory of the node.
  79078. @param memory Available RAM in KB.]]>
  79079. </doc>
  79080. </method>
  79081. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79082. abstract="false" native="false" synchronized="false"
  79083. static="false" final="false" visibility="public"
  79084. deprecated="not deprecated">
  79085. <param name="mapSlots" type="int"/>
  79086. <doc>
  79087. <![CDATA[Set the number of map slot for the node.
  79088. @param mapSlots The number of map slots for the node.]]>
  79089. </doc>
  79090. </method>
  79091. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79092. abstract="false" native="false" synchronized="false"
  79093. static="false" final="false" visibility="public"
  79094. deprecated="not deprecated">
  79095. <param name="reduceSlots" type="int"/>
  79096. <doc>
  79097. <![CDATA[Set the number of reduce slot for the node.
  79098. @param reduceSlots The number of reduce slots for the node.]]>
  79099. </doc>
  79100. </method>
  79101. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79102. abstract="false" native="false" synchronized="false"
  79103. static="false" final="false" visibility="public"
  79104. deprecated="not deprecated">
  79105. <param name="memoryPerMapSlot" type="long"/>
  79106. <doc>
  79107. <![CDATA[Set the amount of RAM reserved for each map slot.
  79108. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  79109. </doc>
  79110. </method>
  79111. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79112. abstract="false" native="false" synchronized="false"
  79113. static="false" final="false" visibility="public"
  79114. deprecated="not deprecated">
  79115. <param name="memoryPerReduceSlot" type="long"/>
  79116. <doc>
  79117. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  79118. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  79119. </doc>
  79120. </method>
  79121. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79122. abstract="false" native="false" synchronized="false"
  79123. static="false" final="false" visibility="public"
  79124. deprecated="not deprecated">
  79125. <param name="numCores" type="int"/>
  79126. <doc>
  79127. <![CDATA[Set the number of cores for the node.
  79128. @param numCores Number of cores for the node.]]>
  79129. </doc>
  79130. </method>
  79131. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79132. abstract="false" native="false" synchronized="false"
  79133. static="false" final="false" visibility="public"
  79134. deprecated="not deprecated">
  79135. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  79136. <doc>
  79137. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  79138. @param ref The reference {@link MachineNode} object.]]>
  79139. </doc>
  79140. </method>
  79141. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  79142. abstract="false" native="false" synchronized="false"
  79143. static="false" final="false" visibility="public"
  79144. deprecated="not deprecated">
  79145. <doc>
  79146. <![CDATA[Build the {@link MachineNode} object.
  79147. @return The {@link MachineNode} object being built.]]>
  79148. </doc>
  79149. </method>
  79150. <doc>
  79151. <![CDATA[Builder for a NodeInfo object]]>
  79152. </doc>
  79153. </class>
  79154. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  79155. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  79156. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  79157. abstract="false"
  79158. static="false" final="false" visibility="public"
  79159. deprecated="not deprecated">
  79160. <constructor name="MapAttempt20LineHistoryEventEmitter"
  79161. static="false" final="false" visibility="protected"
  79162. deprecated="not deprecated">
  79163. </constructor>
  79164. </class>
  79165. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  79166. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  79167. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  79168. abstract="false"
  79169. static="false" final="false" visibility="public"
  79170. deprecated="not deprecated">
  79171. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79172. <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"
  79173. static="false" final="false" visibility="public"
  79174. deprecated="not deprecated">
  79175. <doc>
  79176. <![CDATA[Create an event for successful completion of map attempts
  79177. @param id Task Attempt ID
  79178. @param taskType Type of the task
  79179. @param taskStatus Status of the task
  79180. @param mapFinishTime Finish time of the map phase
  79181. @param finishTime Finish time of the attempt
  79182. @param hostname Name of the host where the map executed
  79183. @param state State string for the attempt
  79184. @param counters Counters for the attempt]]>
  79185. </doc>
  79186. </constructor>
  79187. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79188. abstract="false" native="false" synchronized="false"
  79189. static="false" final="false" visibility="public"
  79190. deprecated="not deprecated">
  79191. <doc>
  79192. <![CDATA[Get the task ID]]>
  79193. </doc>
  79194. </method>
  79195. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  79196. abstract="false" native="false" synchronized="false"
  79197. static="false" final="false" visibility="public"
  79198. deprecated="not deprecated">
  79199. <doc>
  79200. <![CDATA[Get the attempt id]]>
  79201. </doc>
  79202. </method>
  79203. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79204. abstract="false" native="false" synchronized="false"
  79205. static="false" final="false" visibility="public"
  79206. deprecated="not deprecated">
  79207. <doc>
  79208. <![CDATA[Get the task type]]>
  79209. </doc>
  79210. </method>
  79211. <method name="getTaskStatus" return="java.lang.String"
  79212. abstract="false" native="false" synchronized="false"
  79213. static="false" final="false" visibility="public"
  79214. deprecated="not deprecated">
  79215. <doc>
  79216. <![CDATA[Get the task status]]>
  79217. </doc>
  79218. </method>
  79219. <method name="getMapFinishTime" return="long"
  79220. abstract="false" native="false" synchronized="false"
  79221. static="false" final="false" visibility="public"
  79222. deprecated="not deprecated">
  79223. <doc>
  79224. <![CDATA[Get the map phase finish time]]>
  79225. </doc>
  79226. </method>
  79227. <method name="getFinishTime" return="long"
  79228. abstract="false" native="false" synchronized="false"
  79229. static="false" final="false" visibility="public"
  79230. deprecated="not deprecated">
  79231. <doc>
  79232. <![CDATA[Get the attempt finish time]]>
  79233. </doc>
  79234. </method>
  79235. <method name="getHostname" return="java.lang.String"
  79236. abstract="false" native="false" synchronized="false"
  79237. static="false" final="false" visibility="public"
  79238. deprecated="not deprecated">
  79239. <doc>
  79240. <![CDATA[Get the host name]]>
  79241. </doc>
  79242. </method>
  79243. <method name="getState" return="java.lang.String"
  79244. abstract="false" native="false" synchronized="false"
  79245. static="false" final="false" visibility="public"
  79246. deprecated="not deprecated">
  79247. <doc>
  79248. <![CDATA[Get the state string]]>
  79249. </doc>
  79250. </method>
  79251. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  79252. abstract="false" native="false" synchronized="false"
  79253. static="false" final="false" visibility="public"
  79254. deprecated="not deprecated">
  79255. <doc>
  79256. <![CDATA[Get the counters]]>
  79257. </doc>
  79258. </method>
  79259. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79260. abstract="false" native="false" synchronized="false"
  79261. static="false" final="false" visibility="public"
  79262. deprecated="not deprecated">
  79263. <doc>
  79264. <![CDATA[Get the event type]]>
  79265. </doc>
  79266. </method>
  79267. <doc>
  79268. <![CDATA[Event to record successful completion of a map attempt]]>
  79269. </doc>
  79270. </class>
  79271. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  79272. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  79273. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79274. abstract="false"
  79275. static="false" final="false" visibility="public"
  79276. deprecated="not deprecated">
  79277. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  79278. static="false" final="false" visibility="public"
  79279. deprecated="not deprecated">
  79280. </constructor>
  79281. <method name="getRuntime" return="long"
  79282. abstract="false" native="false" synchronized="false"
  79283. static="false" final="false" visibility="public"
  79284. deprecated="not deprecated">
  79285. </method>
  79286. <method name="getMapRuntime" return="long"
  79287. abstract="false" native="false" synchronized="false"
  79288. static="false" final="false" visibility="public"
  79289. deprecated="not deprecated">
  79290. <doc>
  79291. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  79292. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  79293. </doc>
  79294. </method>
  79295. <doc>
  79296. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  79297. map task attempt.]]>
  79298. </doc>
  79299. </class>
  79300. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  79301. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  79302. <class name="Node" extends="java.lang.Object"
  79303. abstract="false"
  79304. static="false" final="false" visibility="public"
  79305. deprecated="not deprecated">
  79306. <implements name="java.lang.Comparable"/>
  79307. <constructor name="Node" type="java.lang.String, int"
  79308. static="false" final="false" visibility="public"
  79309. deprecated="not deprecated">
  79310. <doc>
  79311. <![CDATA[@param name
  79312. A unique name to identify a node in the cluster.
  79313. @param level
  79314. The level of the node in the cluster]]>
  79315. </doc>
  79316. </constructor>
  79317. <method name="getName" return="java.lang.String"
  79318. abstract="false" native="false" synchronized="false"
  79319. static="false" final="false" visibility="public"
  79320. deprecated="not deprecated">
  79321. <doc>
  79322. <![CDATA[Get the name of the node.
  79323. @return The name of the node.]]>
  79324. </doc>
  79325. </method>
  79326. <method name="getLevel" return="int"
  79327. abstract="false" native="false" synchronized="false"
  79328. static="false" final="false" visibility="public"
  79329. deprecated="not deprecated">
  79330. <doc>
  79331. <![CDATA[Get the level of the node.
  79332. @return The level of the node.]]>
  79333. </doc>
  79334. </method>
  79335. <method name="addChild" return="boolean"
  79336. abstract="false" native="false" synchronized="true"
  79337. static="false" final="false" visibility="public"
  79338. deprecated="not deprecated">
  79339. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79340. <doc>
  79341. <![CDATA[Add a child node to this node.
  79342. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  79343. @return Boolean indicating whether the node is successfully added.]]>
  79344. </doc>
  79345. </method>
  79346. <method name="hasChildren" return="boolean"
  79347. abstract="false" native="false" synchronized="true"
  79348. static="false" final="false" visibility="public"
  79349. deprecated="not deprecated">
  79350. <doc>
  79351. <![CDATA[Does this node have any children?
  79352. @return Boolean indicate whether this node has any children.]]>
  79353. </doc>
  79354. </method>
  79355. <method name="getChildren" return="java.util.Set"
  79356. abstract="false" native="false" synchronized="true"
  79357. static="false" final="false" visibility="public"
  79358. deprecated="not deprecated">
  79359. <doc>
  79360. <![CDATA[Get the children of this node.
  79361. @return The children of this node. If no child, an empty set will be
  79362. returned. The returned set is read-only.]]>
  79363. </doc>
  79364. </method>
  79365. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  79366. abstract="false" native="false" synchronized="false"
  79367. static="false" final="false" visibility="public"
  79368. deprecated="not deprecated">
  79369. <doc>
  79370. <![CDATA[Get the parent node.
  79371. @return the parent node. If root node, return null.]]>
  79372. </doc>
  79373. </method>
  79374. <method name="hashCode" return="int"
  79375. abstract="false" native="false" synchronized="false"
  79376. static="false" final="false" visibility="public"
  79377. deprecated="not deprecated">
  79378. </method>
  79379. <method name="equals" return="boolean"
  79380. abstract="false" native="false" synchronized="false"
  79381. static="false" final="false" visibility="public"
  79382. deprecated="not deprecated">
  79383. <param name="obj" type="java.lang.Object"/>
  79384. </method>
  79385. <method name="toString" return="java.lang.String"
  79386. abstract="false" native="false" synchronized="false"
  79387. static="false" final="false" visibility="public"
  79388. deprecated="not deprecated">
  79389. </method>
  79390. <method name="compareTo" return="int"
  79391. abstract="false" native="false" synchronized="false"
  79392. static="false" final="false" visibility="public"
  79393. deprecated="not deprecated">
  79394. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  79395. </method>
  79396. <doc>
  79397. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  79398. {@link MachineNode}, or a {@link RackNode}, etc.]]>
  79399. </doc>
  79400. </class>
  79401. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  79402. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  79403. <interface name="Outputter" abstract="true"
  79404. static="false" final="false" visibility="public"
  79405. deprecated="not deprecated">
  79406. <implements name="java.io.Closeable"/>
  79407. <method name="init"
  79408. abstract="false" native="false" synchronized="false"
  79409. static="false" final="false" visibility="public"
  79410. deprecated="not deprecated">
  79411. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79413. <exception name="IOException" type="java.io.IOException"/>
  79414. <doc>
  79415. <![CDATA[Initialize the {@link Outputter} to a specific path.
  79416. @param path The {@link Path} to the output file.
  79417. @param conf Configuration
  79418. @throws IOException]]>
  79419. </doc>
  79420. </method>
  79421. <method name="output"
  79422. abstract="false" native="false" synchronized="false"
  79423. static="false" final="false" visibility="public"
  79424. deprecated="not deprecated">
  79425. <param name="object" type="java.lang.Object"/>
  79426. <exception name="IOException" type="java.io.IOException"/>
  79427. <doc>
  79428. <![CDATA[Output an object.
  79429. @param object The objecte.
  79430. @throws IOException]]>
  79431. </doc>
  79432. </method>
  79433. <doc>
  79434. <![CDATA[Interface to output a sequence of objects of type T.]]>
  79435. </doc>
  79436. </interface>
  79437. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  79438. <!-- start class org.apache.hadoop.tools.rumen.ParsedJob -->
  79439. <class name="ParsedJob" extends="org.apache.hadoop.tools.rumen.LoggedJob"
  79440. abstract="false"
  79441. static="false" final="false" visibility="public"
  79442. deprecated="not deprecated">
  79443. <method name="obtainTotalCounters" return="java.util.Map"
  79444. abstract="false" native="false" synchronized="false"
  79445. static="false" final="false" visibility="public"
  79446. deprecated="not deprecated">
  79447. <doc>
  79448. <![CDATA[@return the job total counters]]>
  79449. </doc>
  79450. </method>
  79451. <method name="obtainMapCounters" return="java.util.Map"
  79452. abstract="false" native="false" synchronized="false"
  79453. static="false" final="false" visibility="public"
  79454. deprecated="not deprecated">
  79455. <doc>
  79456. <![CDATA[@return the job level map tasks' counters]]>
  79457. </doc>
  79458. </method>
  79459. <method name="obtainReduceCounters" return="java.util.Map"
  79460. abstract="false" native="false" synchronized="false"
  79461. static="false" final="false" visibility="public"
  79462. deprecated="not deprecated">
  79463. <doc>
  79464. <![CDATA[@return the job level reduce tasks' counters]]>
  79465. </doc>
  79466. </method>
  79467. <method name="obtainJobConfpath" return="java.lang.String"
  79468. abstract="false" native="false" synchronized="false"
  79469. static="false" final="false" visibility="public"
  79470. deprecated="not deprecated">
  79471. <doc>
  79472. <![CDATA[@return the job conf path in staging dir on hdfs]]>
  79473. </doc>
  79474. </method>
  79475. <method name="obtainJobAcls" return="java.util.Map"
  79476. abstract="false" native="false" synchronized="false"
  79477. static="false" final="false" visibility="public"
  79478. deprecated="not deprecated">
  79479. <doc>
  79480. <![CDATA[@return the job acls]]>
  79481. </doc>
  79482. </method>
  79483. <method name="obtainMapTasks" return="java.util.List"
  79484. abstract="false" native="false" synchronized="false"
  79485. static="false" final="false" visibility="public"
  79486. deprecated="not deprecated">
  79487. <doc>
  79488. <![CDATA[@return the list of map tasks of this job]]>
  79489. </doc>
  79490. </method>
  79491. <method name="obtainReduceTasks" return="java.util.List"
  79492. abstract="false" native="false" synchronized="false"
  79493. static="false" final="false" visibility="public"
  79494. deprecated="not deprecated">
  79495. <doc>
  79496. <![CDATA[@return the list of reduce tasks of this job]]>
  79497. </doc>
  79498. </method>
  79499. <method name="obtainOtherTasks" return="java.util.List"
  79500. abstract="false" native="false" synchronized="false"
  79501. static="false" final="false" visibility="public"
  79502. deprecated="not deprecated">
  79503. <doc>
  79504. <![CDATA[@return the list of other tasks of this job]]>
  79505. </doc>
  79506. </method>
  79507. <doc>
  79508. <![CDATA[This is a wrapper class around {@link LoggedJob}. This provides also the
  79509. extra information about the job obtained from job history which is not
  79510. written to the JSON trace file.]]>
  79511. </doc>
  79512. </class>
  79513. <!-- end class org.apache.hadoop.tools.rumen.ParsedJob -->
  79514. <!-- start class org.apache.hadoop.tools.rumen.ParsedTask -->
  79515. <class name="ParsedTask" extends="org.apache.hadoop.tools.rumen.LoggedTask"
  79516. abstract="false"
  79517. static="false" final="false" visibility="public"
  79518. deprecated="not deprecated">
  79519. <method name="incorporateCounters"
  79520. abstract="false" native="false" synchronized="false"
  79521. static="false" final="false" visibility="public"
  79522. deprecated="not deprecated">
  79523. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79524. </method>
  79525. <method name="putCounters"
  79526. abstract="false" native="false" synchronized="false"
  79527. static="false" final="false" visibility="public"
  79528. deprecated="not deprecated">
  79529. <param name="counters" type="java.util.Map"/>
  79530. <doc>
  79531. <![CDATA[Set the task counters]]>
  79532. </doc>
  79533. </method>
  79534. <method name="obtainCounters" return="java.util.Map"
  79535. abstract="false" native="false" synchronized="false"
  79536. static="false" final="false" visibility="public"
  79537. deprecated="not deprecated">
  79538. <doc>
  79539. <![CDATA[@return the task counters]]>
  79540. </doc>
  79541. </method>
  79542. <method name="putDiagnosticInfo"
  79543. abstract="false" native="false" synchronized="false"
  79544. static="false" final="false" visibility="public"
  79545. deprecated="not deprecated">
  79546. <param name="msg" type="java.lang.String"/>
  79547. <doc>
  79548. <![CDATA[Set the task diagnostic-info]]>
  79549. </doc>
  79550. </method>
  79551. <method name="obtainDiagnosticInfo" return="java.lang.String"
  79552. abstract="false" native="false" synchronized="false"
  79553. static="false" final="false" visibility="public"
  79554. deprecated="not deprecated">
  79555. <doc>
  79556. <![CDATA[@return the diagnostic-info of this task.
  79557. If the task is successful, returns null.]]>
  79558. </doc>
  79559. </method>
  79560. <method name="putFailedDueToAttemptId"
  79561. abstract="false" native="false" synchronized="false"
  79562. static="false" final="false" visibility="public"
  79563. deprecated="not deprecated">
  79564. <param name="attempt" type="java.lang.String"/>
  79565. <doc>
  79566. <![CDATA[Set the failed-due-to-attemptId info of this task.]]>
  79567. </doc>
  79568. </method>
  79569. <method name="obtainFailedDueToAttemptId" return="java.lang.String"
  79570. abstract="false" native="false" synchronized="false"
  79571. static="false" final="false" visibility="public"
  79572. deprecated="not deprecated">
  79573. <doc>
  79574. <![CDATA[@return the failed-due-to-attemptId info of this task.
  79575. If the task is successful, returns null.]]>
  79576. </doc>
  79577. </method>
  79578. <method name="obtainTaskAttempts" return="java.util.List"
  79579. abstract="false" native="false" synchronized="false"
  79580. static="false" final="false" visibility="public"
  79581. deprecated="not deprecated">
  79582. </method>
  79583. <doc>
  79584. <![CDATA[This is a wrapper class around {@link LoggedTask}. This provides also the
  79585. extra information about the task obtained from job history which is not
  79586. written to the JSON trace file.]]>
  79587. </doc>
  79588. </class>
  79589. <!-- end class org.apache.hadoop.tools.rumen.ParsedTask -->
  79590. <!-- start class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  79591. <class name="ParsedTaskAttempt" extends="org.apache.hadoop.tools.rumen.LoggedTaskAttempt"
  79592. abstract="false"
  79593. static="false" final="false" visibility="public"
  79594. deprecated="not deprecated">
  79595. <method name="incorporateCounters"
  79596. abstract="false" native="false" synchronized="false"
  79597. static="false" final="false" visibility="public"
  79598. deprecated="not deprecated">
  79599. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79600. <doc>
  79601. <![CDATA[incorporate event counters]]>
  79602. </doc>
  79603. </method>
  79604. <method name="putCounters"
  79605. abstract="false" native="false" synchronized="false"
  79606. static="false" final="false" visibility="public"
  79607. deprecated="not deprecated">
  79608. <param name="counters" type="java.util.Map"/>
  79609. <doc>
  79610. <![CDATA[Set the task attempt counters]]>
  79611. </doc>
  79612. </method>
  79613. <method name="obtainCounters" return="java.util.Map"
  79614. abstract="false" native="false" synchronized="false"
  79615. static="false" final="false" visibility="public"
  79616. deprecated="not deprecated">
  79617. <doc>
  79618. <![CDATA[@return the task attempt counters]]>
  79619. </doc>
  79620. </method>
  79621. <method name="putDiagnosticInfo"
  79622. abstract="false" native="false" synchronized="false"
  79623. static="false" final="false" visibility="public"
  79624. deprecated="not deprecated">
  79625. <param name="msg" type="java.lang.String"/>
  79626. <doc>
  79627. <![CDATA[Set the task attempt diagnostic-info]]>
  79628. </doc>
  79629. </method>
  79630. <method name="obtainDiagnosticInfo" return="java.lang.String"
  79631. abstract="false" native="false" synchronized="false"
  79632. static="false" final="false" visibility="public"
  79633. deprecated="not deprecated">
  79634. <doc>
  79635. <![CDATA[@return the diagnostic-info of this task attempt.
  79636. If the attempt is successful, returns null.]]>
  79637. </doc>
  79638. </method>
  79639. <method name="obtainTrackerName" 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 tracker name where the attempt was run.]]>
  79645. </doc>
  79646. </method>
  79647. <method name="obtainHttpPort" return="java.lang.Integer"
  79648. abstract="false" native="false" synchronized="false"
  79649. static="false" final="false" visibility="public"
  79650. deprecated="not deprecated">
  79651. <doc>
  79652. <![CDATA[@return http port if set. Returns null otherwise.]]>
  79653. </doc>
  79654. </method>
  79655. <method name="obtainStateString" return="java.lang.String"
  79656. abstract="false" native="false" synchronized="false"
  79657. static="false" final="false" visibility="public"
  79658. deprecated="not deprecated">
  79659. <doc>
  79660. <![CDATA[@return state string of the task attempt.]]>
  79661. </doc>
  79662. </method>
  79663. <doc>
  79664. <![CDATA[This is a wrapper class around {@link LoggedTaskAttempt}. This provides
  79665. also the extra information about the task attempt obtained from
  79666. job history which is not written to the JSON trace file.]]>
  79667. </doc>
  79668. </class>
  79669. <!-- end class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  79670. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  79671. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  79672. abstract="false"
  79673. static="false" final="false" visibility="public"
  79674. deprecated="not deprecated">
  79675. <constructor name="Pre21JobHistoryConstants"
  79676. static="false" final="false" visibility="public"
  79677. deprecated="not deprecated">
  79678. </constructor>
  79679. </class>
  79680. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  79681. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  79682. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  79683. abstract="false"
  79684. static="true" final="true" visibility="public"
  79685. deprecated="not deprecated">
  79686. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  79687. abstract="false" native="false" synchronized="false"
  79688. static="true" final="false" visibility="public"
  79689. deprecated="not deprecated">
  79690. </method>
  79691. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79692. abstract="false" native="false" synchronized="false"
  79693. static="true" final="false" visibility="public"
  79694. deprecated="not deprecated">
  79695. <param name="name" type="java.lang.String"/>
  79696. </method>
  79697. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79698. transient="false" volatile="false"
  79699. static="true" final="true" visibility="public"
  79700. deprecated="not deprecated">
  79701. </field>
  79702. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79703. transient="false" volatile="false"
  79704. static="true" final="true" visibility="public"
  79705. deprecated="not deprecated">
  79706. </field>
  79707. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79708. transient="false" volatile="false"
  79709. static="true" final="true" visibility="public"
  79710. deprecated="not deprecated">
  79711. </field>
  79712. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79713. transient="false" volatile="false"
  79714. static="true" final="true" visibility="public"
  79715. deprecated="not deprecated">
  79716. </field>
  79717. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79718. transient="false" volatile="false"
  79719. static="true" final="true" visibility="public"
  79720. deprecated="not deprecated">
  79721. </field>
  79722. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79723. transient="false" volatile="false"
  79724. static="true" final="true" visibility="public"
  79725. deprecated="not deprecated">
  79726. </field>
  79727. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79728. transient="false" volatile="false"
  79729. static="true" final="true" visibility="public"
  79730. deprecated="not deprecated">
  79731. </field>
  79732. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79733. transient="false" volatile="false"
  79734. static="true" final="true" visibility="public"
  79735. deprecated="not deprecated">
  79736. </field>
  79737. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79738. transient="false" volatile="false"
  79739. static="true" final="true" visibility="public"
  79740. deprecated="not deprecated">
  79741. </field>
  79742. <doc>
  79743. <![CDATA[This enum contains some of the values commonly used by history log events.
  79744. since values in history can only be strings - Values.name() is used in
  79745. most places in history file.]]>
  79746. </doc>
  79747. </class>
  79748. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  79749. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  79750. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  79751. abstract="false"
  79752. static="false" final="true" visibility="public"
  79753. deprecated="not deprecated">
  79754. <constructor name="RackNode" type="java.lang.String, int"
  79755. static="false" final="false" visibility="public"
  79756. deprecated="not deprecated">
  79757. </constructor>
  79758. <method name="addChild" return="boolean"
  79759. abstract="false" native="false" synchronized="true"
  79760. static="false" final="false" visibility="public"
  79761. deprecated="not deprecated">
  79762. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79763. </method>
  79764. <method name="getMachinesInRack" return="java.util.Set"
  79765. abstract="false" native="false" synchronized="false"
  79766. static="false" final="false" visibility="public"
  79767. deprecated="not deprecated">
  79768. <doc>
  79769. <![CDATA[Get the machine nodes that belong to the rack.
  79770. @return The machine nodes that belong to the rack.]]>
  79771. </doc>
  79772. </method>
  79773. <doc>
  79774. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  79775. </doc>
  79776. </class>
  79777. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  79778. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  79779. <class name="RandomSeedGenerator" extends="java.lang.Object"
  79780. abstract="false"
  79781. static="false" final="false" visibility="public"
  79782. deprecated="not deprecated">
  79783. <constructor name="RandomSeedGenerator"
  79784. static="false" final="false" visibility="public"
  79785. deprecated="not deprecated">
  79786. </constructor>
  79787. <method name="getSeed" return="long"
  79788. abstract="false" native="false" synchronized="false"
  79789. static="true" final="false" visibility="public"
  79790. deprecated="not deprecated">
  79791. <param name="streamId" type="java.lang.String"/>
  79792. <param name="masterSeed" type="long"/>
  79793. <doc>
  79794. <![CDATA[Generates a new random seed.
  79795. @param streamId a string identifying the stream of random numbers
  79796. @param masterSeed higher level master random seed
  79797. @return the random seed. Different (streamId, masterSeed) pairs result in
  79798. (vastly) different random seeds.]]>
  79799. </doc>
  79800. </method>
  79801. <doc>
  79802. <![CDATA[The purpose of this class is to generate new random seeds from a master
  79803. seed. This is needed to make the Random().next*() calls in rumen and mumak
  79804. deterministic so that mumak simulations become deterministically replayable.
  79805. In these tools we need many independent streams of random numbers, some of
  79806. which are created dynamically. We seed these streams with the sub-seeds
  79807. returned by RandomSeedGenerator.
  79808. For a slightly more complicated approach to generating multiple streams of
  79809. random numbers with better theoretical guarantees, see
  79810. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  79811. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  79812. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  79813. http://www.iro.umontreal.ca/~lecuyer/papers.html
  79814. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  79815. </doc>
  79816. </class>
  79817. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  79818. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  79819. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  79820. abstract="false"
  79821. static="false" final="false" visibility="public"
  79822. deprecated="not deprecated">
  79823. </class>
  79824. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  79825. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  79826. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  79827. abstract="false"
  79828. static="false" final="false" visibility="public"
  79829. deprecated="not deprecated">
  79830. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79831. <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"
  79832. static="false" final="false" visibility="public"
  79833. deprecated="not deprecated">
  79834. <doc>
  79835. <![CDATA[Create an event to record completion of a reduce attempt
  79836. @param id Attempt Id
  79837. @param taskType Type of task
  79838. @param taskStatus Status of the task
  79839. @param shuffleFinishTime Finish time of the shuffle phase
  79840. @param sortFinishTime Finish time of the sort phase
  79841. @param finishTime Finish time of the attempt
  79842. @param hostname Name of the host where the attempt executed
  79843. @param state State of the attempt
  79844. @param counters Counters for the attempt]]>
  79845. </doc>
  79846. </constructor>
  79847. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79848. abstract="false" native="false" synchronized="false"
  79849. static="false" final="false" visibility="public"
  79850. deprecated="not deprecated">
  79851. <doc>
  79852. <![CDATA[Get the Task ID]]>
  79853. </doc>
  79854. </method>
  79855. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  79856. abstract="false" native="false" synchronized="false"
  79857. static="false" final="false" visibility="public"
  79858. deprecated="not deprecated">
  79859. <doc>
  79860. <![CDATA[Get the attempt id]]>
  79861. </doc>
  79862. </method>
  79863. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79864. abstract="false" native="false" synchronized="false"
  79865. static="false" final="false" visibility="public"
  79866. deprecated="not deprecated">
  79867. <doc>
  79868. <![CDATA[Get the task type]]>
  79869. </doc>
  79870. </method>
  79871. <method name="getTaskStatus" return="java.lang.String"
  79872. abstract="false" native="false" synchronized="false"
  79873. static="false" final="false" visibility="public"
  79874. deprecated="not deprecated">
  79875. <doc>
  79876. <![CDATA[Get the task status]]>
  79877. </doc>
  79878. </method>
  79879. <method name="getSortFinishTime" return="long"
  79880. abstract="false" native="false" synchronized="false"
  79881. static="false" final="false" visibility="public"
  79882. deprecated="not deprecated">
  79883. <doc>
  79884. <![CDATA[Get the finish time of the sort phase]]>
  79885. </doc>
  79886. </method>
  79887. <method name="getShuffleFinishTime" return="long"
  79888. abstract="false" native="false" synchronized="false"
  79889. static="false" final="false" visibility="public"
  79890. deprecated="not deprecated">
  79891. <doc>
  79892. <![CDATA[Get the finish time of the shuffle phase]]>
  79893. </doc>
  79894. </method>
  79895. <method name="getFinishTime" return="long"
  79896. abstract="false" native="false" synchronized="false"
  79897. static="false" final="false" visibility="public"
  79898. deprecated="not deprecated">
  79899. <doc>
  79900. <![CDATA[Get the finish time of the attempt]]>
  79901. </doc>
  79902. </method>
  79903. <method name="getHostname" return="java.lang.String"
  79904. abstract="false" native="false" synchronized="false"
  79905. static="false" final="false" visibility="public"
  79906. deprecated="not deprecated">
  79907. <doc>
  79908. <![CDATA[Get the name of the host where the attempt ran]]>
  79909. </doc>
  79910. </method>
  79911. <method name="getState" return="java.lang.String"
  79912. abstract="false" native="false" synchronized="false"
  79913. static="false" final="false" visibility="public"
  79914. deprecated="not deprecated">
  79915. <doc>
  79916. <![CDATA[Get the state string]]>
  79917. </doc>
  79918. </method>
  79919. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  79920. abstract="false" native="false" synchronized="false"
  79921. static="false" final="false" visibility="public"
  79922. deprecated="not deprecated">
  79923. <doc>
  79924. <![CDATA[Get the counters for the attempt]]>
  79925. </doc>
  79926. </method>
  79927. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79928. abstract="false" native="false" synchronized="false"
  79929. static="false" final="false" visibility="public"
  79930. deprecated="not deprecated">
  79931. <doc>
  79932. <![CDATA[Get the event type]]>
  79933. </doc>
  79934. </method>
  79935. <doc>
  79936. <![CDATA[Event to record successful completion of a reduce attempt]]>
  79937. </doc>
  79938. </class>
  79939. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  79940. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  79941. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79942. abstract="false"
  79943. static="false" final="false" visibility="public"
  79944. deprecated="not deprecated">
  79945. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  79946. static="false" final="false" visibility="public"
  79947. deprecated="not deprecated">
  79948. </constructor>
  79949. <method name="getReduceRuntime" 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 runtime for the <b>reduce</b> phase of the reduce task-attempt.
  79955. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  79956. </doc>
  79957. </method>
  79958. <method name="getShuffleRuntime" return="long"
  79959. abstract="false" native="false" synchronized="false"
  79960. static="false" final="false" visibility="public"
  79961. deprecated="not deprecated">
  79962. <doc>
  79963. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  79964. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  79965. </doc>
  79966. </method>
  79967. <method name="getMergeRuntime" return="long"
  79968. abstract="false" native="false" synchronized="false"
  79969. static="false" final="false" visibility="public"
  79970. deprecated="not deprecated">
  79971. <doc>
  79972. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  79973. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  79974. </doc>
  79975. </method>
  79976. <method name="getRuntime" return="long"
  79977. abstract="false" native="false" synchronized="false"
  79978. static="false" final="false" visibility="public"
  79979. deprecated="not deprecated">
  79980. </method>
  79981. <doc>
  79982. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  79983. reduce task attempt.]]>
  79984. </doc>
  79985. </class>
  79986. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  79987. <!-- start class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  79988. <class name="ResourceUsageMetrics" extends="java.lang.Object"
  79989. abstract="false"
  79990. static="false" final="false" visibility="public"
  79991. deprecated="not deprecated">
  79992. <implements name="org.apache.hadoop.io.Writable"/>
  79993. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  79994. <constructor name="ResourceUsageMetrics"
  79995. static="false" final="false" visibility="public"
  79996. deprecated="not deprecated">
  79997. </constructor>
  79998. <method name="getCumulativeCpuUsage" return="long"
  79999. abstract="false" native="false" synchronized="false"
  80000. static="false" final="false" visibility="public"
  80001. deprecated="not deprecated">
  80002. <doc>
  80003. <![CDATA[Get the cumulative CPU usage.]]>
  80004. </doc>
  80005. </method>
  80006. <method name="setCumulativeCpuUsage"
  80007. abstract="false" native="false" synchronized="false"
  80008. static="false" final="false" visibility="public"
  80009. deprecated="not deprecated">
  80010. <param name="usage" type="long"/>
  80011. <doc>
  80012. <![CDATA[Set the cumulative CPU usage.]]>
  80013. </doc>
  80014. </method>
  80015. <method name="getVirtualMemoryUsage" return="long"
  80016. abstract="false" native="false" synchronized="false"
  80017. static="false" final="false" visibility="public"
  80018. deprecated="not deprecated">
  80019. <doc>
  80020. <![CDATA[Get the virtual memory usage.]]>
  80021. </doc>
  80022. </method>
  80023. <method name="setVirtualMemoryUsage"
  80024. abstract="false" native="false" synchronized="false"
  80025. static="false" final="false" visibility="public"
  80026. deprecated="not deprecated">
  80027. <param name="usage" type="long"/>
  80028. <doc>
  80029. <![CDATA[Set the virtual memory usage.]]>
  80030. </doc>
  80031. </method>
  80032. <method name="getPhysicalMemoryUsage" return="long"
  80033. abstract="false" native="false" synchronized="false"
  80034. static="false" final="false" visibility="public"
  80035. deprecated="not deprecated">
  80036. <doc>
  80037. <![CDATA[Get the physical memory usage.]]>
  80038. </doc>
  80039. </method>
  80040. <method name="setPhysicalMemoryUsage"
  80041. abstract="false" native="false" synchronized="false"
  80042. static="false" final="false" visibility="public"
  80043. deprecated="not deprecated">
  80044. <param name="usage" type="long"/>
  80045. <doc>
  80046. <![CDATA[Set the physical memory usage.]]>
  80047. </doc>
  80048. </method>
  80049. <method name="getHeapUsage" return="long"
  80050. abstract="false" native="false" synchronized="false"
  80051. static="false" final="false" visibility="public"
  80052. deprecated="not deprecated">
  80053. <doc>
  80054. <![CDATA[Get the total heap usage.]]>
  80055. </doc>
  80056. </method>
  80057. <method name="setHeapUsage"
  80058. abstract="false" native="false" synchronized="false"
  80059. static="false" final="false" visibility="public"
  80060. deprecated="not deprecated">
  80061. <param name="usage" type="long"/>
  80062. <doc>
  80063. <![CDATA[Set the total heap usage.]]>
  80064. </doc>
  80065. </method>
  80066. <method name="size" return="int"
  80067. abstract="false" native="false" synchronized="false"
  80068. static="false" final="false" visibility="public"
  80069. deprecated="not deprecated">
  80070. <doc>
  80071. <![CDATA[Returns the size of the serialized data]]>
  80072. </doc>
  80073. </method>
  80074. <method name="readFields"
  80075. abstract="false" native="false" synchronized="false"
  80076. static="false" final="false" visibility="public"
  80077. deprecated="not deprecated">
  80078. <param name="in" type="java.io.DataInput"/>
  80079. <exception name="IOException" type="java.io.IOException"/>
  80080. </method>
  80081. <method name="write"
  80082. abstract="false" native="false" synchronized="false"
  80083. static="false" final="false" visibility="public"
  80084. deprecated="not deprecated">
  80085. <param name="out" type="java.io.DataOutput"/>
  80086. <exception name="IOException" type="java.io.IOException"/>
  80087. </method>
  80088. <method name="deepCompare"
  80089. abstract="false" native="false" synchronized="false"
  80090. static="false" final="false" visibility="public"
  80091. deprecated="not deprecated">
  80092. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  80093. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  80094. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  80095. </method>
  80096. <doc>
  80097. <![CDATA[Captures the resource usage metrics.]]>
  80098. </doc>
  80099. </class>
  80100. <!-- end class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  80101. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  80102. <class name="RewindableInputStream" extends="java.io.InputStream"
  80103. abstract="false"
  80104. static="false" final="false" visibility="public"
  80105. deprecated="not deprecated">
  80106. <constructor name="RewindableInputStream" type="java.io.InputStream"
  80107. static="false" final="false" visibility="public"
  80108. deprecated="not deprecated">
  80109. <doc>
  80110. <![CDATA[Constructor.
  80111. @param input]]>
  80112. </doc>
  80113. </constructor>
  80114. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  80115. static="false" final="false" visibility="public"
  80116. deprecated="not deprecated">
  80117. <doc>
  80118. <![CDATA[Constructor
  80119. @param input
  80120. input stream.
  80121. @param maxBytesToRemember
  80122. Maximum number of bytes we need to remember at the beginning of
  80123. the stream. If {@link #rewind()} is called after so many bytes are
  80124. read from the stream, {@link #rewind()} would fail.]]>
  80125. </doc>
  80126. </constructor>
  80127. <method name="read" return="int"
  80128. abstract="false" native="false" synchronized="false"
  80129. static="false" final="false" visibility="public"
  80130. deprecated="not deprecated">
  80131. <exception name="IOException" type="java.io.IOException"/>
  80132. </method>
  80133. <method name="read" return="int"
  80134. abstract="false" native="false" synchronized="false"
  80135. static="false" final="false" visibility="public"
  80136. deprecated="not deprecated">
  80137. <param name="buffer" type="byte[]"/>
  80138. <param name="offset" type="int"/>
  80139. <param name="length" type="int"/>
  80140. <exception name="IOException" type="java.io.IOException"/>
  80141. </method>
  80142. <method name="close"
  80143. abstract="false" native="false" synchronized="false"
  80144. static="false" final="false" visibility="public"
  80145. deprecated="not deprecated">
  80146. <exception name="IOException" type="java.io.IOException"/>
  80147. </method>
  80148. <method name="rewind" return="java.io.InputStream"
  80149. abstract="false" native="false" synchronized="false"
  80150. static="false" final="false" visibility="public"
  80151. deprecated="not deprecated">
  80152. <exception name="IOException" type="java.io.IOException"/>
  80153. </method>
  80154. <doc>
  80155. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  80156. made more memory efficient by grow the internal buffer adaptively.]]>
  80157. </doc>
  80158. </class>
  80159. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  80160. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  80161. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80162. abstract="false"
  80163. static="false" final="false" visibility="public"
  80164. deprecated="not deprecated">
  80165. <constructor name="Task20LineHistoryEventEmitter"
  80166. static="false" final="false" visibility="protected"
  80167. deprecated="not deprecated">
  80168. </constructor>
  80169. </class>
  80170. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  80171. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  80172. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80173. abstract="true"
  80174. static="false" final="false" visibility="public"
  80175. deprecated="not deprecated">
  80176. <constructor name="TaskAttempt20LineEventEmitter"
  80177. static="false" final="false" visibility="protected"
  80178. deprecated="not deprecated">
  80179. </constructor>
  80180. </class>
  80181. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  80182. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  80183. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  80184. abstract="false"
  80185. static="false" final="false" visibility="public"
  80186. deprecated="not deprecated">
  80187. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80188. <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"
  80189. static="false" final="false" visibility="public"
  80190. deprecated="not deprecated">
  80191. <doc>
  80192. <![CDATA[Create an event to record successful finishes for setup and cleanup
  80193. attempts
  80194. @param id Attempt ID
  80195. @param taskType Type of task
  80196. @param taskStatus Status of task
  80197. @param finishTime Finish time of attempt
  80198. @param hostname Host where the attempt executed
  80199. @param state State string
  80200. @param counters Counters for the attempt]]>
  80201. </doc>
  80202. </constructor>
  80203. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80204. abstract="false" native="false" synchronized="false"
  80205. static="false" final="false" visibility="public"
  80206. deprecated="not deprecated">
  80207. <doc>
  80208. <![CDATA[Get the task ID]]>
  80209. </doc>
  80210. </method>
  80211. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80212. abstract="false" native="false" synchronized="false"
  80213. static="false" final="false" visibility="public"
  80214. deprecated="not deprecated">
  80215. <doc>
  80216. <![CDATA[Get the task attempt id]]>
  80217. </doc>
  80218. </method>
  80219. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80220. abstract="false" native="false" synchronized="false"
  80221. static="false" final="false" visibility="public"
  80222. deprecated="not deprecated">
  80223. <doc>
  80224. <![CDATA[Get the task type]]>
  80225. </doc>
  80226. </method>
  80227. <method name="getTaskStatus" return="java.lang.String"
  80228. abstract="false" native="false" synchronized="false"
  80229. static="false" final="false" visibility="public"
  80230. deprecated="not deprecated">
  80231. <doc>
  80232. <![CDATA[Get the task status]]>
  80233. </doc>
  80234. </method>
  80235. <method name="getFinishTime" return="long"
  80236. abstract="false" native="false" synchronized="false"
  80237. static="false" final="false" visibility="public"
  80238. deprecated="not deprecated">
  80239. <doc>
  80240. <![CDATA[Get the attempt finish time]]>
  80241. </doc>
  80242. </method>
  80243. <method name="getHostname" return="java.lang.String"
  80244. abstract="false" native="false" synchronized="false"
  80245. static="false" final="false" visibility="public"
  80246. deprecated="not deprecated">
  80247. <doc>
  80248. <![CDATA[Get the host where the attempt executed]]>
  80249. </doc>
  80250. </method>
  80251. <method name="getState" return="java.lang.String"
  80252. abstract="false" native="false" synchronized="false"
  80253. static="false" final="false" visibility="public"
  80254. deprecated="not deprecated">
  80255. <doc>
  80256. <![CDATA[Get the state string]]>
  80257. </doc>
  80258. </method>
  80259. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  80260. abstract="false" native="false" synchronized="false"
  80261. static="false" final="false" visibility="public"
  80262. deprecated="not deprecated">
  80263. <doc>
  80264. <![CDATA[Get the counters for the attempt]]>
  80265. </doc>
  80266. </method>
  80267. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80268. abstract="false" native="false" synchronized="false"
  80269. static="false" final="false" visibility="public"
  80270. deprecated="not deprecated">
  80271. <doc>
  80272. <![CDATA[Get the event type]]>
  80273. </doc>
  80274. </method>
  80275. <doc>
  80276. <![CDATA[Event to record successful task completion]]>
  80277. </doc>
  80278. </class>
  80279. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  80280. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  80281. <class name="TaskAttemptInfo" extends="java.lang.Object"
  80282. abstract="true"
  80283. static="false" final="false" visibility="public"
  80284. deprecated="not deprecated">
  80285. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  80286. static="false" final="false" visibility="protected"
  80287. deprecated="not deprecated">
  80288. </constructor>
  80289. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  80290. abstract="false" native="false" synchronized="false"
  80291. static="false" final="false" visibility="public"
  80292. deprecated="not deprecated">
  80293. <doc>
  80294. <![CDATA[Get the final {@link State} of the task-attempt.
  80295. @return the final <code>State</code> of the task-attempt]]>
  80296. </doc>
  80297. </method>
  80298. <method name="getRuntime" return="long"
  80299. abstract="true" native="false" synchronized="false"
  80300. static="false" final="false" visibility="public"
  80301. deprecated="not deprecated">
  80302. <doc>
  80303. <![CDATA[Get the total runtime for the task-attempt.
  80304. @return the total runtime for the task-attempt]]>
  80305. </doc>
  80306. </method>
  80307. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  80308. abstract="false" native="false" synchronized="false"
  80309. static="false" final="false" visibility="public"
  80310. deprecated="not deprecated">
  80311. <doc>
  80312. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  80313. @return the <code>TaskInfo</code> for the given task-attempt]]>
  80314. </doc>
  80315. </method>
  80316. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  80317. transient="false" volatile="false"
  80318. static="false" final="true" visibility="protected"
  80319. deprecated="not deprecated">
  80320. </field>
  80321. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  80322. transient="false" volatile="false"
  80323. static="false" final="true" visibility="protected"
  80324. deprecated="not deprecated">
  80325. </field>
  80326. <doc>
  80327. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  80328. task-attempt gleaned from job-history of the job.]]>
  80329. </doc>
  80330. </class>
  80331. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  80332. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  80333. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  80334. abstract="false"
  80335. static="false" final="false" visibility="public"
  80336. deprecated="not deprecated">
  80337. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80338. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  80339. static="false" final="false" visibility="public"
  80340. deprecated="not deprecated">
  80341. <doc>
  80342. <![CDATA[Create an event to record the start of an attempt
  80343. @param attemptId Id of the attempt
  80344. @param taskType Type of task
  80345. @param startTime Start time of the attempt
  80346. @param trackerName Name of the Task Tracker where attempt is running
  80347. @param httpPort The port number of the tracker]]>
  80348. </doc>
  80349. </constructor>
  80350. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80351. abstract="false" native="false" synchronized="false"
  80352. static="false" final="false" visibility="public"
  80353. deprecated="not deprecated">
  80354. <doc>
  80355. <![CDATA[Get the task id]]>
  80356. </doc>
  80357. </method>
  80358. <method name="getTrackerName" return="java.lang.String"
  80359. abstract="false" native="false" synchronized="false"
  80360. static="false" final="false" visibility="public"
  80361. deprecated="not deprecated">
  80362. <doc>
  80363. <![CDATA[Get the tracker name]]>
  80364. </doc>
  80365. </method>
  80366. <method name="getStartTime" return="long"
  80367. abstract="false" native="false" synchronized="false"
  80368. static="false" final="false" visibility="public"
  80369. deprecated="not deprecated">
  80370. <doc>
  80371. <![CDATA[Get the start time]]>
  80372. </doc>
  80373. </method>
  80374. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80375. abstract="false" native="false" synchronized="false"
  80376. static="false" final="false" visibility="public"
  80377. deprecated="not deprecated">
  80378. <doc>
  80379. <![CDATA[Get the task type]]>
  80380. </doc>
  80381. </method>
  80382. <method name="getHttpPort" return="int"
  80383. abstract="false" native="false" synchronized="false"
  80384. static="false" final="false" visibility="public"
  80385. deprecated="not deprecated">
  80386. <doc>
  80387. <![CDATA[Get the HTTP port]]>
  80388. </doc>
  80389. </method>
  80390. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80391. abstract="false" native="false" synchronized="false"
  80392. static="false" final="false" visibility="public"
  80393. deprecated="not deprecated">
  80394. <doc>
  80395. <![CDATA[Get the attempt id]]>
  80396. </doc>
  80397. </method>
  80398. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80399. abstract="false" native="false" synchronized="false"
  80400. static="false" final="false" visibility="public"
  80401. deprecated="not deprecated">
  80402. <doc>
  80403. <![CDATA[Get the event type]]>
  80404. </doc>
  80405. </method>
  80406. <doc>
  80407. <![CDATA[Event to record start of a task attempt]]>
  80408. </doc>
  80409. </class>
  80410. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  80411. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  80412. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  80413. abstract="false"
  80414. static="false" final="false" visibility="public"
  80415. deprecated="not deprecated">
  80416. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80417. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  80418. static="false" final="false" visibility="public"
  80419. deprecated="not deprecated">
  80420. <doc>
  80421. <![CDATA[Create an event to record the unsuccessful completion of attempts
  80422. @param id Attempt ID
  80423. @param taskType Type of the task
  80424. @param status Status of the attempt
  80425. @param finishTime Finish time of the attempt
  80426. @param hostname Name of the host where the attempt executed
  80427. @param error Error string]]>
  80428. </doc>
  80429. </constructor>
  80430. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80431. abstract="false" native="false" synchronized="false"
  80432. static="false" final="false" visibility="public"
  80433. deprecated="not deprecated">
  80434. <doc>
  80435. <![CDATA[Get the task id]]>
  80436. </doc>
  80437. </method>
  80438. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80439. abstract="false" native="false" synchronized="false"
  80440. static="false" final="false" visibility="public"
  80441. deprecated="not deprecated">
  80442. <doc>
  80443. <![CDATA[Get the task type]]>
  80444. </doc>
  80445. </method>
  80446. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80447. abstract="false" native="false" synchronized="false"
  80448. static="false" final="false" visibility="public"
  80449. deprecated="not deprecated">
  80450. <doc>
  80451. <![CDATA[Get the attempt id]]>
  80452. </doc>
  80453. </method>
  80454. <method name="getFinishTime" return="long"
  80455. abstract="false" native="false" synchronized="false"
  80456. static="false" final="false" visibility="public"
  80457. deprecated="not deprecated">
  80458. <doc>
  80459. <![CDATA[Get the finish time]]>
  80460. </doc>
  80461. </method>
  80462. <method name="getHostname" return="java.lang.String"
  80463. abstract="false" native="false" synchronized="false"
  80464. static="false" final="false" visibility="public"
  80465. deprecated="not deprecated">
  80466. <doc>
  80467. <![CDATA[Get the name of the host where the attempt executed]]>
  80468. </doc>
  80469. </method>
  80470. <method name="getError" return="java.lang.String"
  80471. abstract="false" native="false" synchronized="false"
  80472. static="false" final="false" visibility="public"
  80473. deprecated="not deprecated">
  80474. <doc>
  80475. <![CDATA[Get the error string]]>
  80476. </doc>
  80477. </method>
  80478. <method name="getTaskStatus" return="java.lang.String"
  80479. abstract="false" native="false" synchronized="false"
  80480. static="false" final="false" visibility="public"
  80481. deprecated="not deprecated">
  80482. <doc>
  80483. <![CDATA[Get the task status]]>
  80484. </doc>
  80485. </method>
  80486. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80487. abstract="false" native="false" synchronized="false"
  80488. static="false" final="false" visibility="public"
  80489. deprecated="not deprecated">
  80490. <doc>
  80491. <![CDATA[Get the event type]]>
  80492. </doc>
  80493. </method>
  80494. <doc>
  80495. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  80496. </doc>
  80497. </class>
  80498. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  80499. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  80500. <class name="TaskFailedEvent" extends="java.lang.Object"
  80501. abstract="false"
  80502. static="false" final="false" visibility="public"
  80503. deprecated="not deprecated">
  80504. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80505. <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"
  80506. static="false" final="false" visibility="public"
  80507. deprecated="not deprecated">
  80508. <doc>
  80509. <![CDATA[Create an event to record task failure
  80510. @param id Task ID
  80511. @param finishTime Finish time of the task
  80512. @param taskType Type of the task
  80513. @param error Error String
  80514. @param status Status
  80515. @param failedDueToAttempt The attempt id due to which the task failed]]>
  80516. </doc>
  80517. </constructor>
  80518. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80519. abstract="false" native="false" synchronized="false"
  80520. static="false" final="false" visibility="public"
  80521. deprecated="not deprecated">
  80522. <doc>
  80523. <![CDATA[Get the task id]]>
  80524. </doc>
  80525. </method>
  80526. <method name="getError" return="java.lang.String"
  80527. abstract="false" native="false" synchronized="false"
  80528. static="false" final="false" visibility="public"
  80529. deprecated="not deprecated">
  80530. <doc>
  80531. <![CDATA[Get the error string]]>
  80532. </doc>
  80533. </method>
  80534. <method name="getFinishTime" return="long"
  80535. abstract="false" native="false" synchronized="false"
  80536. static="false" final="false" visibility="public"
  80537. deprecated="not deprecated">
  80538. <doc>
  80539. <![CDATA[Get the finish time of the attempt]]>
  80540. </doc>
  80541. </method>
  80542. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80543. abstract="false" native="false" synchronized="false"
  80544. static="false" final="false" visibility="public"
  80545. deprecated="not deprecated">
  80546. <doc>
  80547. <![CDATA[Get the task type]]>
  80548. </doc>
  80549. </method>
  80550. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80551. abstract="false" native="false" synchronized="false"
  80552. static="false" final="false" visibility="public"
  80553. deprecated="not deprecated">
  80554. <doc>
  80555. <![CDATA[Get the attempt id due to which the task failed]]>
  80556. </doc>
  80557. </method>
  80558. <method name="getTaskStatus" return="java.lang.String"
  80559. abstract="false" native="false" synchronized="false"
  80560. static="false" final="false" visibility="public"
  80561. deprecated="not deprecated">
  80562. <doc>
  80563. <![CDATA[Get the task status]]>
  80564. </doc>
  80565. </method>
  80566. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80567. abstract="false" native="false" synchronized="false"
  80568. static="false" final="false" visibility="public"
  80569. deprecated="not deprecated">
  80570. <doc>
  80571. <![CDATA[Get the event type]]>
  80572. </doc>
  80573. </method>
  80574. <doc>
  80575. <![CDATA[Event to record the failure of a task]]>
  80576. </doc>
  80577. </class>
  80578. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  80579. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  80580. <class name="TaskFinishedEvent" extends="java.lang.Object"
  80581. abstract="false"
  80582. static="false" final="false" visibility="public"
  80583. deprecated="not deprecated">
  80584. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80585. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  80586. static="false" final="false" visibility="public"
  80587. deprecated="not deprecated">
  80588. <doc>
  80589. <![CDATA[Create an event to record the successful completion of a task
  80590. @param id Task ID
  80591. @param finishTime Finish time of the task
  80592. @param taskType Type of the task
  80593. @param status Status string
  80594. @param counters Counters for the task]]>
  80595. </doc>
  80596. </constructor>
  80597. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80598. abstract="false" native="false" synchronized="false"
  80599. static="false" final="false" visibility="public"
  80600. deprecated="not deprecated">
  80601. <doc>
  80602. <![CDATA[Get task id]]>
  80603. </doc>
  80604. </method>
  80605. <method name="getFinishTime" return="long"
  80606. abstract="false" native="false" synchronized="false"
  80607. static="false" final="false" visibility="public"
  80608. deprecated="not deprecated">
  80609. <doc>
  80610. <![CDATA[Get the task finish time]]>
  80611. </doc>
  80612. </method>
  80613. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  80614. abstract="false" native="false" synchronized="false"
  80615. static="false" final="false" visibility="public"
  80616. deprecated="not deprecated">
  80617. <doc>
  80618. <![CDATA[Get task counters]]>
  80619. </doc>
  80620. </method>
  80621. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80622. abstract="false" native="false" synchronized="false"
  80623. static="false" final="false" visibility="public"
  80624. deprecated="not deprecated">
  80625. <doc>
  80626. <![CDATA[Get task type]]>
  80627. </doc>
  80628. </method>
  80629. <method name="getTaskStatus" return="java.lang.String"
  80630. abstract="false" native="false" synchronized="false"
  80631. static="false" final="false" visibility="public"
  80632. deprecated="not deprecated">
  80633. <doc>
  80634. <![CDATA[Get task status]]>
  80635. </doc>
  80636. </method>
  80637. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80638. abstract="false" native="false" synchronized="false"
  80639. static="false" final="false" visibility="public"
  80640. deprecated="not deprecated">
  80641. <doc>
  80642. <![CDATA[Get event type]]>
  80643. </doc>
  80644. </method>
  80645. <doc>
  80646. <![CDATA[Event to record the successful completion of a task]]>
  80647. </doc>
  80648. </class>
  80649. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  80650. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  80651. <class name="TaskInfo" extends="java.lang.Object"
  80652. abstract="false"
  80653. static="false" final="false" visibility="public"
  80654. deprecated="not deprecated">
  80655. <constructor name="TaskInfo" type="long, int, long, int, long"
  80656. static="false" final="false" visibility="public"
  80657. deprecated="not deprecated">
  80658. </constructor>
  80659. <constructor name="TaskInfo" type="long, int, long, int, long, org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  80660. static="false" final="false" visibility="public"
  80661. deprecated="not deprecated">
  80662. </constructor>
  80663. <method name="getInputBytes" return="long"
  80664. abstract="false" native="false" synchronized="false"
  80665. static="false" final="false" visibility="public"
  80666. deprecated="not deprecated">
  80667. <doc>
  80668. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  80669. may not always match the input bytes to the task.]]>
  80670. </doc>
  80671. </method>
  80672. <method name="getInputRecords" return="int"
  80673. abstract="false" native="false" synchronized="false"
  80674. static="false" final="false" visibility="public"
  80675. deprecated="not deprecated">
  80676. <doc>
  80677. <![CDATA[@return Number of records input to this task.]]>
  80678. </doc>
  80679. </method>
  80680. <method name="getOutputBytes" return="long"
  80681. abstract="false" native="false" synchronized="false"
  80682. static="false" final="false" visibility="public"
  80683. deprecated="not deprecated">
  80684. <doc>
  80685. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  80686. not match output bytes.]]>
  80687. </doc>
  80688. </method>
  80689. <method name="getOutputRecords" return="int"
  80690. abstract="false" native="false" synchronized="false"
  80691. static="false" final="false" visibility="public"
  80692. deprecated="not deprecated">
  80693. <doc>
  80694. <![CDATA[@return Number of records output from this task.]]>
  80695. </doc>
  80696. </method>
  80697. <method name="getTaskMemory" return="long"
  80698. abstract="false" native="false" synchronized="false"
  80699. static="false" final="false" visibility="public"
  80700. deprecated="not deprecated">
  80701. <doc>
  80702. <![CDATA[@return Memory used by the task leq the heap size.]]>
  80703. </doc>
  80704. </method>
  80705. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  80706. abstract="false" native="false" synchronized="false"
  80707. static="false" final="false" visibility="public"
  80708. deprecated="not deprecated">
  80709. <doc>
  80710. <![CDATA[@return Resource usage metrics]]>
  80711. </doc>
  80712. </method>
  80713. </class>
  80714. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  80715. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  80716. <class name="TaskStartedEvent" extends="java.lang.Object"
  80717. abstract="false"
  80718. static="false" final="false" visibility="public"
  80719. deprecated="not deprecated">
  80720. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80721. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  80722. static="false" final="false" visibility="public"
  80723. deprecated="not deprecated">
  80724. <doc>
  80725. <![CDATA[Create an event to record start of a task
  80726. @param id Task Id
  80727. @param startTime Start time of the task
  80728. @param taskType Type of the task
  80729. @param splitLocations Split locations, applicable for map tasks]]>
  80730. </doc>
  80731. </constructor>
  80732. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80733. abstract="false" native="false" synchronized="false"
  80734. static="false" final="false" visibility="public"
  80735. deprecated="not deprecated">
  80736. <doc>
  80737. <![CDATA[Get the task id]]>
  80738. </doc>
  80739. </method>
  80740. <method name="getSplitLocations" return="java.lang.String"
  80741. abstract="false" native="false" synchronized="false"
  80742. static="false" final="false" visibility="public"
  80743. deprecated="not deprecated">
  80744. <doc>
  80745. <![CDATA[Get the split locations, applicable for map tasks]]>
  80746. </doc>
  80747. </method>
  80748. <method name="getStartTime" return="long"
  80749. abstract="false" native="false" synchronized="false"
  80750. static="false" final="false" visibility="public"
  80751. deprecated="not deprecated">
  80752. <doc>
  80753. <![CDATA[Get the start time of the task]]>
  80754. </doc>
  80755. </method>
  80756. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80757. abstract="false" native="false" synchronized="false"
  80758. static="false" final="false" visibility="public"
  80759. deprecated="not deprecated">
  80760. <doc>
  80761. <![CDATA[Get the task type]]>
  80762. </doc>
  80763. </method>
  80764. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80765. abstract="false" native="false" synchronized="false"
  80766. static="false" final="false" visibility="public"
  80767. deprecated="not deprecated">
  80768. <doc>
  80769. <![CDATA[Get the event type]]>
  80770. </doc>
  80771. </method>
  80772. <doc>
  80773. <![CDATA[Event to record the start of a task]]>
  80774. </doc>
  80775. </class>
  80776. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  80777. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  80778. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  80779. abstract="false"
  80780. static="false" final="false" visibility="public"
  80781. deprecated="not deprecated">
  80782. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80783. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  80784. static="false" final="false" visibility="public"
  80785. deprecated="not deprecated">
  80786. <doc>
  80787. <![CDATA[Create an event to record task updates
  80788. @param id Id of the task
  80789. @param finishTime Finish time of the task]]>
  80790. </doc>
  80791. </constructor>
  80792. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80793. abstract="false" native="false" synchronized="false"
  80794. static="false" final="false" visibility="public"
  80795. deprecated="not deprecated">
  80796. <doc>
  80797. <![CDATA[Get the task ID]]>
  80798. </doc>
  80799. </method>
  80800. <method name="getFinishTime" return="long"
  80801. abstract="false" native="false" synchronized="false"
  80802. static="false" final="false" visibility="public"
  80803. deprecated="not deprecated">
  80804. <doc>
  80805. <![CDATA[Get the task finish time]]>
  80806. </doc>
  80807. </method>
  80808. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80809. abstract="false" native="false" synchronized="false"
  80810. static="false" final="false" visibility="public"
  80811. deprecated="not deprecated">
  80812. <doc>
  80813. <![CDATA[Get the event type]]>
  80814. </doc>
  80815. </method>
  80816. <doc>
  80817. <![CDATA[Event to record updates to a task]]>
  80818. </doc>
  80819. </class>
  80820. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  80821. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  80822. <class name="TopologyBuilder" extends="java.lang.Object"
  80823. abstract="false"
  80824. static="false" final="false" visibility="public"
  80825. deprecated="not deprecated">
  80826. <constructor name="TopologyBuilder"
  80827. static="false" final="false" visibility="public"
  80828. deprecated="not deprecated">
  80829. </constructor>
  80830. <method name="process"
  80831. abstract="false" native="false" synchronized="false"
  80832. static="false" final="false" visibility="public"
  80833. deprecated="not deprecated">
  80834. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80835. <doc>
  80836. <![CDATA[Process one {@link HistoryEvent}
  80837. @param event
  80838. The {@link HistoryEvent} to be processed.]]>
  80839. </doc>
  80840. </method>
  80841. <method name="process"
  80842. abstract="false" native="false" synchronized="false"
  80843. static="false" final="false" visibility="public"
  80844. deprecated="not deprecated">
  80845. <param name="conf" type="java.util.Properties"/>
  80846. <doc>
  80847. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  80848. to be called once.
  80849. @param conf
  80850. The job conf properties to be added.]]>
  80851. </doc>
  80852. </method>
  80853. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  80854. abstract="false" native="false" synchronized="false"
  80855. static="false" final="false" visibility="public"
  80856. deprecated="not deprecated">
  80857. <doc>
  80858. <![CDATA[Request the builder to build the final object. Once called, the
  80859. {@link TopologyBuilder} would accept no more events or job-conf properties.
  80860. @return Parsed {@link LoggedNetworkTopology} object.]]>
  80861. </doc>
  80862. </method>
  80863. <doc>
  80864. <![CDATA[Building the cluster topology.]]>
  80865. </doc>
  80866. </class>
  80867. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  80868. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  80869. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  80870. abstract="false"
  80871. static="false" final="false" visibility="public"
  80872. deprecated="not deprecated">
  80873. <implements name="org.apache.hadoop.util.Tool"/>
  80874. <constructor name="TraceBuilder"
  80875. static="false" final="false" visibility="public"
  80876. deprecated="not deprecated">
  80877. </constructor>
  80878. <method name="main"
  80879. abstract="false" native="false" synchronized="false"
  80880. static="true" final="false" visibility="public"
  80881. deprecated="not deprecated">
  80882. <param name="args" type="java.lang.String[]"/>
  80883. </method>
  80884. <method name="run" return="int"
  80885. abstract="false" native="false" synchronized="false"
  80886. static="false" final="false" visibility="public"
  80887. deprecated="not deprecated">
  80888. <param name="args" type="java.lang.String[]"/>
  80889. <exception name="Exception" type="java.lang.Exception"/>
  80890. </method>
  80891. <doc>
  80892. <![CDATA[The main driver of the Rumen Parser.]]>
  80893. </doc>
  80894. </class>
  80895. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  80896. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  80897. <class name="TreePath" extends="java.lang.Object"
  80898. abstract="false"
  80899. static="false" final="false" visibility="public"
  80900. deprecated="not deprecated">
  80901. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  80902. static="false" final="false" visibility="public"
  80903. deprecated="not deprecated">
  80904. </constructor>
  80905. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  80906. static="false" final="false" visibility="public"
  80907. deprecated="not deprecated">
  80908. </constructor>
  80909. <method name="toString" return="java.lang.String"
  80910. abstract="false" native="false" synchronized="false"
  80911. static="false" final="false" visibility="public"
  80912. deprecated="not deprecated">
  80913. </method>
  80914. <doc>
  80915. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  80916. trees during rumen unit tests. If the trees are not identical, this chain
  80917. will be converted to a string which describes the path from the root to the
  80918. fields that did not compare.]]>
  80919. </doc>
  80920. </class>
  80921. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  80922. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  80923. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  80924. abstract="false"
  80925. static="false" final="false" visibility="public"
  80926. deprecated="not deprecated">
  80927. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  80928. static="false" final="false" visibility="public"
  80929. deprecated="not deprecated">
  80930. <doc>
  80931. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  80932. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  80933. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  80934. @param topology
  80935. The network topology.
  80936. @param defaultNode
  80937. The default node setting.]]>
  80938. </doc>
  80939. </constructor>
  80940. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  80941. static="false" final="false" visibility="public"
  80942. deprecated="not deprecated">
  80943. <exception name="IOException" type="java.io.IOException"/>
  80944. <doc>
  80945. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  80946. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  80947. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  80948. @param path Path to the JSON-encoded topology file.
  80949. @param conf
  80950. @param defaultNode
  80951. The default node setting.
  80952. @throws IOException]]>
  80953. </doc>
  80954. </constructor>
  80955. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  80956. static="false" final="false" visibility="public"
  80957. deprecated="not deprecated">
  80958. <exception name="IOException" type="java.io.IOException"/>
  80959. <doc>
  80960. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  80961. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  80962. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  80963. @param input The input stream for the JSON-encoded topology file.
  80964. @param defaultNode
  80965. The default node setting.
  80966. @throws IOException]]>
  80967. </doc>
  80968. </constructor>
  80969. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  80970. abstract="false" native="false" synchronized="false"
  80971. static="false" final="false" visibility="public"
  80972. deprecated="not deprecated">
  80973. </method>
  80974. <doc>
  80975. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  80976. obtained from job history logs.]]>
  80977. </doc>
  80978. </class>
  80979. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  80980. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  80981. <class name="ZombieJob" extends="java.lang.Object"
  80982. abstract="false"
  80983. static="false" final="false" visibility="public"
  80984. deprecated="not deprecated">
  80985. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  80986. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  80987. static="false" final="false" visibility="public"
  80988. deprecated="not deprecated">
  80989. <doc>
  80990. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  80991. {@link LoggedJob} passed in this parameter
  80992. @param job
  80993. The dead job this ZombieJob instance is based on.
  80994. @param cluster
  80995. The cluster topology where the dead job ran on. This argument can
  80996. be null if we do not have knowledge of the cluster topology.
  80997. @param seed
  80998. Seed for the random number generator for filling in information
  80999. not available from the ZombieJob.]]>
  81000. </doc>
  81001. </constructor>
  81002. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  81003. static="false" final="false" visibility="public"
  81004. deprecated="not deprecated">
  81005. <doc>
  81006. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  81007. {@link LoggedJob} passed in this parameter
  81008. @param job
  81009. The dead job this ZombieJob instance is based on.
  81010. @param cluster
  81011. The cluster topology where the dead job ran on. This argument can
  81012. be null if we do not have knowledge of the cluster topology.]]>
  81013. </doc>
  81014. </constructor>
  81015. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  81016. abstract="false" native="false" synchronized="true"
  81017. static="false" final="false" visibility="public"
  81018. deprecated="not deprecated">
  81019. </method>
  81020. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  81021. abstract="false" native="false" synchronized="false"
  81022. static="false" final="false" visibility="public"
  81023. deprecated="not deprecated">
  81024. </method>
  81025. <method name="getName" return="java.lang.String"
  81026. abstract="false" native="false" synchronized="false"
  81027. static="false" final="false" visibility="public"
  81028. deprecated="not deprecated">
  81029. </method>
  81030. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  81031. abstract="false" native="false" synchronized="false"
  81032. static="false" final="false" visibility="public"
  81033. deprecated="not deprecated">
  81034. </method>
  81035. <method name="getNumberMaps" return="int"
  81036. abstract="false" native="false" synchronized="false"
  81037. static="false" final="false" visibility="public"
  81038. deprecated="not deprecated">
  81039. </method>
  81040. <method name="getNumberReduces" return="int"
  81041. abstract="false" native="false" synchronized="false"
  81042. static="false" final="false" visibility="public"
  81043. deprecated="not deprecated">
  81044. </method>
  81045. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  81046. abstract="false" native="false" synchronized="false"
  81047. static="false" final="false" visibility="public"
  81048. deprecated="not deprecated">
  81049. </method>
  81050. <method name="getSubmissionTime" return="long"
  81051. abstract="false" native="false" synchronized="false"
  81052. static="false" final="false" visibility="public"
  81053. deprecated="not deprecated">
  81054. </method>
  81055. <method name="getQueueName" return="java.lang.String"
  81056. abstract="false" native="false" synchronized="false"
  81057. static="false" final="false" visibility="public"
  81058. deprecated="not deprecated">
  81059. </method>
  81060. <method name="getNumLoggedMaps" return="int"
  81061. abstract="false" native="false" synchronized="false"
  81062. static="false" final="false" visibility="public"
  81063. deprecated="not deprecated">
  81064. <doc>
  81065. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  81066. @return The number of map tasks that are actually logged in the trace.]]>
  81067. </doc>
  81068. </method>
  81069. <method name="getNumLoggedReduces" return="int"
  81070. abstract="false" native="false" synchronized="false"
  81071. static="false" final="false" visibility="public"
  81072. deprecated="not deprecated">
  81073. <doc>
  81074. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  81075. @return The number of map tasks that are actually logged in the trace.]]>
  81076. </doc>
  81077. </method>
  81078. <method name="getUser" return="java.lang.String"
  81079. abstract="false" native="false" synchronized="false"
  81080. static="false" final="false" visibility="public"
  81081. deprecated="not deprecated">
  81082. </method>
  81083. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  81084. abstract="false" native="false" synchronized="false"
  81085. static="false" final="false" visibility="public"
  81086. deprecated="not deprecated">
  81087. <doc>
  81088. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  81089. This is mainly for debugging.
  81090. @return the underlining {@link LoggedJob} object]]>
  81091. </doc>
  81092. </method>
  81093. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81094. abstract="false" native="false" synchronized="false"
  81095. static="false" final="false" visibility="public"
  81096. deprecated="not deprecated">
  81097. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81098. <param name="taskNumber" type="int"/>
  81099. <param name="taskAttemptNumber" type="int"/>
  81100. <doc>
  81101. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  81102. taskType, taskNumber, and taskAttemptNumber. This function does not care
  81103. about locality, and follows the following decision logic: 1. Make up a
  81104. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  81105. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  81106. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  81107. {@link TaskAttemptInfo} from the trace.]]>
  81108. </doc>
  81109. </method>
  81110. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  81111. abstract="false" native="false" synchronized="false"
  81112. static="false" final="false" visibility="public"
  81113. deprecated="not deprecated">
  81114. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81115. <param name="taskNumber" type="int"/>
  81116. </method>
  81117. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81118. abstract="false" native="false" synchronized="false"
  81119. static="false" final="false" visibility="public"
  81120. deprecated="not deprecated">
  81121. <param name="taskNumber" type="int"/>
  81122. <param name="taskAttemptNumber" type="int"/>
  81123. <param name="locality" type="int"/>
  81124. <doc>
  81125. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  81126. taskType, taskNumber, and taskAttemptNumber. This function considers
  81127. locality, and follows the following decision logic: 1. Make up a
  81128. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  81129. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  81130. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  81131. from the trace, without considering locality. 4. If final state is
  81132. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  81133. scaled according to locality in simulation and locality in trace.]]>
  81134. </doc>
  81135. </method>
  81136. <doc>
  81137. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  81138. Each {@link ZombieJob} object represents a job in job history. For everything
  81139. that exists in job history, contents are returned unchanged faithfully. To
  81140. get input splits of a non-exist task, a non-exist task attempt, or an
  81141. ill-formed task attempt, proper objects are made up from statistical
  81142. sketches.]]>
  81143. </doc>
  81144. </class>
  81145. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  81146. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  81147. <class name="ZombieJobProducer" extends="java.lang.Object"
  81148. abstract="false"
  81149. static="false" final="false" visibility="public"
  81150. deprecated="not deprecated">
  81151. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  81152. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  81153. static="false" final="false" visibility="public"
  81154. deprecated="not deprecated">
  81155. <exception name="IOException" type="java.io.IOException"/>
  81156. <doc>
  81157. <![CDATA[Constructor
  81158. @param path
  81159. Path to the JSON trace file, possibly compressed.
  81160. @param cluster
  81161. The topology of the cluster that corresponds to the jobs in the
  81162. trace. The argument can be null if we do not have knowledge of the
  81163. cluster topology.
  81164. @param conf
  81165. @throws IOException]]>
  81166. </doc>
  81167. </constructor>
  81168. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  81169. static="false" final="false" visibility="public"
  81170. deprecated="not deprecated">
  81171. <exception name="IOException" type="java.io.IOException"/>
  81172. <doc>
  81173. <![CDATA[Constructor
  81174. @param path
  81175. Path to the JSON trace file, possibly compressed.
  81176. @param cluster
  81177. The topology of the cluster that corresponds to the jobs in the
  81178. trace. The argument can be null if we do not have knowledge of the
  81179. cluster topology.
  81180. @param conf
  81181. @param randomSeed
  81182. use a deterministic seed.
  81183. @throws IOException]]>
  81184. </doc>
  81185. </constructor>
  81186. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  81187. static="false" final="false" visibility="public"
  81188. deprecated="not deprecated">
  81189. <exception name="IOException" type="java.io.IOException"/>
  81190. <doc>
  81191. <![CDATA[Constructor
  81192. @param input
  81193. The input stream for the JSON trace.
  81194. @param cluster
  81195. The topology of the cluster that corresponds to the jobs in the
  81196. trace. The argument can be null if we do not have knowledge of the
  81197. cluster topology.
  81198. @throws IOException]]>
  81199. </doc>
  81200. </constructor>
  81201. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  81202. static="false" final="false" visibility="public"
  81203. deprecated="not deprecated">
  81204. <exception name="IOException" type="java.io.IOException"/>
  81205. <doc>
  81206. <![CDATA[Constructor
  81207. @param input
  81208. The input stream for the JSON trace.
  81209. @param cluster
  81210. The topology of the cluster that corresponds to the jobs in the
  81211. trace. The argument can be null if we do not have knowledge of the
  81212. cluster topology.
  81213. @param randomSeed
  81214. use a deterministic seed.
  81215. @throws IOException]]>
  81216. </doc>
  81217. </constructor>
  81218. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  81219. abstract="false" native="false" synchronized="false"
  81220. static="false" final="false" visibility="public"
  81221. deprecated="not deprecated">
  81222. <exception name="IOException" type="java.io.IOException"/>
  81223. </method>
  81224. <method name="close"
  81225. abstract="false" native="false" synchronized="false"
  81226. static="false" final="false" visibility="public"
  81227. deprecated="not deprecated">
  81228. <exception name="IOException" type="java.io.IOException"/>
  81229. </method>
  81230. <doc>
  81231. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  81232. </doc>
  81233. </class>
  81234. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  81235. </package>
  81236. </api>